I have a USB-powered external HDD connected to my DELL laptop. Some times, after clicking on "Safely remove" item in pop-up menu of its icon in side bar, the drive is un-mounted and is removed from /dev/
folder (sdb
and sdb1
both are removed) and lsusb
do not show the device, but the HDD remains spinning and I could sense the vibration by putting my finger on it. But some times a few seconds after clicking on "Safely remove", it stops spinning and has no vibration. Is there any way (may be a CLI command or a script) to force the drive stop spinning every time after "Safely remove"?
I know that hdparm
could stop spinning, but works while drive is connected, but I need a way that works after "Safely remove"!
Note:
When I safely removed the drive I want to keep it plugged-in but not-spinning and not-mounted. Because The access to my laptop USB port is somewhat hard when I fixed my laptop on my desk which is full of extra things and widgets! and also may be I forgot to disconnect the USB port! Considering this, there are two reasons for wanting the drive not-spinning after unmount:
- If I run laptop on battery, spinning drive uses more energy!
- If I suddenly take-off my laptop or move it, there may be a damage to connected USB-cable or even to the HDD (which is now spinning)!