1

I just got Bionic Beaver on a USB stick to see if my old single core 750M RAM system could support it and so far quite happy. Now I'm trying to make a new USB stick using the updated code on the current one. This will involve a lot of "fdisk" and "dd" and does not need the hard drive so I would like to power it off for safety- it will be hard to recreate by Debian install from circa 2011. The closest question that came up was this,

Hard drive doesn't go to sleep when is not in use

But I am not even using the disk and do not want hibernate. I guess I could open the case and pull the power to the HDD but that seems pretty extreme.

Also it looks like Beaver is lumping all these things into /dev/sdx and I'm used to Debian putting the HD on /dev/hdx so a typo could easily get by.

Is there some command or low level thing I can do to stop it from spinning?

Thanks.

1 Answers1

0

You have already mentioned the most low level method - unplug the drive, or at least the power and/or data connection. This is straight-forward, and you can be sure that it will work :-)

In many (but not all) computers, you can disable a drive in BIOS/UEFI menu system at boot. It is worth checking if this option is available in your computer.


Depending on what you want to do, you may find a tool which helps you identify the drives and select target and perform the operations. There should also be a final checkpoint. These features will make your potentially risky operations safer.


But in any case, it is very important to check which drives are connected, and which device letter corresponds to each of the drives, to avoid writing to the wrong drive.

I would recommend the following commands

df -h
sudo lsblk -f
sudo lsblk -m
sudo parted -ls

maybe also

sudo fdisk -lu
sudo blkid

and if you want a graphical tool gparted from the menu or

sudo -H gparted

Edit:

  • According to your comment, I think it is a good solution to just power down the hard drive by unplugging it or unplug the power and/or data cables.

  • Later on,

sudodus
  • 47,684