Trick with USB drives
Matt Zimmerman
mdz at ubuntu.com
Mon Apr 4 18:25:49 UTC 2005
On Mon, Apr 04, 2005 at 05:53:15PM +0300, ZIYAD A. M. AL-BATLY wrote:
> On Mon, 2005-04-04 at 01:50 -0400, Matt Patterson wrote:
> > I don't know if anyone has ever had this, but...If you have for example
> > a usb stick drive plugged in and mounted, but you forget and unplug it,
> > then sometimes you can't unmount it. You definitely can't unmount it
> > unless you plug the stick back in. The trick is to use the mknod command
> > to create in the /dev/ directory a node identical to the one that was
> > there when the device was connected, then unmount the drive. Then you
> > can delete the node you created.
> >
> > I have a flky usb card so I have this a lot, this is the best solution I
> > have found.
> >
> > Matt
>
> I don't think this is a good thing to do in such cases. If this ever
> happened to you again, try 'umount -r -l /dev/media_node'.
The system automatically attempts this when it notices that a device is
unplugged; if it is not noticing that the device is unplugged, there is
likely a bug present.
--
- mdz
More information about the ubuntu-users
mailing list