Strange isn’t it?
There was a time when all you had to do was “Safely Remove” and see the progress bar dance for a few seconds — and you were golden.
Those were the days! Anyway it turns out unmount/eject/safely remove are all meant to do different things.
Yes we are talking about our near and dear external hard-disks. (think: WD, Segate, FreeAgent Blah Blah)
Now with Ubuntu 12.10, only “unmount” is available on “Nautilus”! Even “Thunar” is no good.
(*these are lets say pretty awesome “Windows Explorer” in the world of Linux)
Well people have even reported it [bug]. Please feel free to mark it “The Bug affects You”.
What do you mean “why”? Its a BUG. The beauty of opensource is that someone will fix it. Sit back and relax. Its not urgent anyway.
So why this post?
Well who would not want to make sure that their Hard Drive is doing well and not in an inconsistent state — unable to do the most important thing that they are supposed to do — SAVE DATA! You wouldn’t want a lossy storage. Anyway, the point is — to make sure that all the data was written to the harddisk before you unplugged it — you’d need to UNMOUNT it. You always should. And if there are more than one partitions on the Hard Drive then you need to unmount each and everyone separately (which was earlier taken care by “SAFELY REMOVE”).
Still the Harddisk keeps spinning. You can feel it. You can even hear it. And the LED would just keep glowing.
So until they fixed it, we have a work around.
Spin down the harddisk
I found answers to my queries here:
I created a quick shell script
#!/bin/bash echo "Unmounting disks..." udisks --unmount /dev/sdb1 udisks --unmount /dev/sdb2 #udisks --unmount /dev/sdb3 #depending on the number of partitions you have on your drive edit above #please make sure all the partitions are unmounted before you detach echo "Spinning down!" udisks --detach /dev/sdb echo "All done!"
Execute it …
$ chmod u+x safelyremove.sh $ ./safelyremove.sh Unmounting disks... Spinning down! All done!
Or even better — Save it on Desktop
Just double click; “Run” and you are almost “GOLDEN” again!