Re: umount question
From: Mike Wooding (timmywooding_at_yahoo.com)
Date: 03/30/05
- Previous message: Steven Jones: "RE: Why redhat will never get another dime of my money."
- Next in thread: Marty Landman: "Re: umount question"
- Reply: Marty Landman: "Re: umount question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 30 Mar 2005 13:26:07 -0800 (PST) To: General Red Hat Linux discussion list <redhat-list@redhat.com>
--- Marty Landman <MLandman@face2interface.com> wrote:
> How do I get this cd unmounted?
>
> --------------------------------------------------------------------
>
> [root@penguin RPMS]# umount /mnt/cdrom
> umount: /mnt/cdrom: device is busy
> [root@penguin RPMS]# /sbin/fuser -m /mnt/cdrom
> /mnt/cdrom: 19774c 19924c
> [root@penguin RPMS]# umount /mnt/cdrom
> umount: /mnt/cdrom: device is busy
> [root@penguin RPMS]# /sbin/fuser -k /mnt/cdrom/19774c
> /mnt/cdrom/19774c: No such file or directory
> [root@penguin RPMS]# /sbin/fuser -k /mnt/cdrom/19924c
> /mnt/cdrom/19924c: No such file or directory
> [root@penguin RPMS]# umount /mnt/cdrom
> umount: /mnt/cdrom: device is busy
If someone (sh?) has cwd set to somewhere in the /mnt/cdrom
fs, (e.g. cd /mnt/cdrom) that will make the mounted fs busy.
This can seomtimes be subtle to discover. E.g. if you have
a shell and do a cd /mnt/cdrom, the "su" so you can do rooty
stuff and then cd / and try and umount, the device will still
be busy, because the process you left when you su'd is still
cwd to /mnt/cdrom. Did I make that sufficiently confusing?
He who laughs last thinks slowest.
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/
-- redhat-list mailing list unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list
- Previous message: Steven Jones: "RE: Why redhat will never get another dime of my money."
- Next in thread: Marty Landman: "Re: umount question"
- Reply: Marty Landman: "Re: umount question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]