Properly removing SATA hard drives(hot-swap)
Hi,
Is there a proper command that I should be running before unplugging a SATA hard drive from my motherboard's SATA port? Assuming my motherboard supports SATA hot-swapping of course, and that the drive has already been unmounted(or never mounted in the first place)
I notice that when I just unplug the drive and run "fdisk -l", it will hang there for 10-20s before completing. This seems to indicate that there's a duration where the PC is trying to detect the drive but it isn't there, then it times out.
So, is there a way for me to let the OS/PC know right before I unplug, that it should switch off the HDD and remove it from its list of detected devices?
I'm using Mandriva 2009 btw.
Thanks!
|