by sambul13 » Thu Nov 15, 2012 10:49 pm
I've a USB HD in enclosure connected to a Plug, and its multi-partitioned. Before switching the plug off, if the HD is spinning, I either wait till it stops due to power saving control of the HD own chipset, or issue the umount command:
$this->bbcode_second_pass_code('', 'for n in /dev/sdb* ; do umount $n ; done')
It still spins after that for some time, but unmounting makes it impossible to write data to it by regular FS means, then I switch the enclosure off right away. Never a problem.