Linux: Stopping HDD

Once in a blue moon, you want to change your hard disk without shutting down your system. And all you need to do is run this command:

echo 1 > /sys/block/sdX/device/delete


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *