Group: comp.os.linux.hardware


Subject: Is there a command to unplug correctly a usb hdd?
From: =SERGE=
Date: 10/22/2007 12:26:10 AM
tha's the question are there any necessary actions to take to disconnect a usb HDD or it is ennough just to turn it down? thank you

Subject: Is there a command to unplug correctly a usb hdd?
From: et472@FreeNet.Carleton.CA (Michael Black)
Date: 10/21/2007 8:49:46 PM
"=SERGE=" (serge_mtu@mtu-net.ru) writes: > tha's the question > > are there any necessary actions to take to disconnect a usb HDD or it is > ennough just to turn it down? > > thank you > > I would think you'd want to umount it before doing anything. Otherwise, you can't be sure that the information "written" to the drive has actually been written to it, or if it's merely waiting in a buffer or cache. That's no different from removing a floppy or USB flash drive without umounting it. That's the key point, I can't imagine other things being needed. Michael

Subject: Is there a command to unplug correctly a usb hdd?
From: Dances With Crows
Date: 10/21/2007 10:03:35 PM
Michael Black staggered into the Black Sun and said: > "=SERGE=" (serge_mtu@mtu-net.ru) writes: >> Are there any necessary actions to take to disconnect a usb HDD, or it >> is [it enough] just to turn it down? Turn it down? ("*My* USB disk goes to 11!") > I would think you'd want to umount it before doing anything. > Otherwise, you can't be sure that the information "written" to the > drive has actually been written to it, or if it's merely waiting in a > buffer or cache. That's the key point, I can't imagine other things > being needed. This is true. However, some USB disks display different/odd behavior. The iPod I have displays a "Do not disconnect" on its LCD when it's plugged into a USB2 port. It does this regardless of whether it's been mounted or not. ISTR the workaround for this was to rmmod ehci-hcd (really) but all this does is replace "do not disconnect" with the default menu. Data integrity is not affected, AFAICT, by unplugging the iPod after "umount /mnt/ipod" has returned successfully. -- This is my rifle, this is my GNU This is for fighting, this is for $FOO! --AJS in ASR Matt G|There is no Darkness in Eternity/But only Light too dim for us to see