[wellylug] RE: Copying from USB stick in Redhat server
Peter Dawson
peter_dawson at eagle.co.nz
Mon Mar 26 09:20:45 NZST 2007
> Date: Sun, 25 Mar 2007 22:48:44 +1200
> From: Jethro Carr
> Subject: Re: [wellylug] Copying from USB stick in Redhat server
> On Sat, 2007-03-24 at 11:21 +1200, John Durham wrote:
> > > umount /mnt/usbstick
> > >
> > > Sometimes with SCSI devices you need to use eject as well
> > >
> > > eject /dev/sda
> > >
8><=== snip...
> I've never heard of needing to use eject on a USB stick before - you did make sure that the > umount command had finished didn't you? It will return you to a prompt once complete.
>
> Sometimes it takes a few seconds to complete, as it has to write the cache to the disk
> before it can umount the filesystem - if you were to pull it out whilst this was happening,
> you'd get the errors.
I recently saw a comment somewhere that mentioned that some USB devices seem to be programmed to expect a particular command sequence to disconnect properly, specifically one emitted by Windows (Cameras & mp3 players spring to mind), and these devices complained about not having been correctly removed from the PC without that sequence.
I gathered also that 'eject' supplies that command sequence before actually 'unmount'ing the device.
Personally, I have taken to using eject rather than umount when an intelligent device is being disconnected. It doesn't appear to have caused any problems yet... YMMV
Cheers, Phreadde :-)
===
www.eagle.co.nz
This email is confidential and may be legally privileged.
If received in error please destroy and immediately notify us.
More information about the wellylug
mailing list