Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Cannot Unmount /dev/cd0

252 views
Skip to first unread message

COSMO

unread,
Jan 7, 1998, 3:00:00 AM1/7/98
to


Ron Sheridan wrote:

> I'm trying to determine why I cannot umount /dev/cd0. Its mounted over
> filesystem /cdrom and when I do an "unmount /cdrom", I get the message;
>
> unmount: 0506-349 Cannot unmount /dev/cd0: The requested resource is busy.
>
> Is there a way to determine what has the device busy? I'm on AIX 4.2.
> This has been a problem since a system crash and reboot with /cdrom mounted
> and the cd itself mounted in the drive. Is this the cause of the problem?
> I'm reasonably confident that there isn't anyone using it from the standpoint
> of them doing a cd /cdrom. It's an oracle install cd and that process is
> long past done. Can an unmount be forced??
>
> Thanks for any help!
>
> Ron
>
> r...@yuma.acns.colostate.edu


I have used "fuser" on filesystems to see what had a filesystem busy that kept it

from unmounting. I am not sure that fuser will work on /dev/cd0 though.

Ron Sheridan

unread,
Jan 7, 1998, 3:00:00 AM1/7/98
to

Thanks for the responses! fuser did not show anything using the device.
However, after getting an update of lsof so it once again works, it showed
the culprit process and I can deal with it accordingly.

Ron

r...@yuma.acns.colostate.edu

Michael Farmer

unread,
Jan 9, 1998, 3:00:00 AM1/9/98
to

Just a thought, but is it possible that one of the Oracle processes is
running from the CD instead of the hard disk(s)?

Mike Farmer
mw...@msn.com

Ron Sheridan wrote in message <68u8js$3f...@yuma.ACNS.ColoState.EDU>...

Daniel E Whicker

unread,
Jan 9, 1998, 3:00:00 AM1/9/98
to

Michael Farmer (mw...@email.msn.com) wrote:
: Just a thought, but is it possible that one of the Oracle processes is

: Mike Farmer
: mw...@msn.com

# fuser -u /cdrom

and

# fuser -uk /cdrom

Kevin Gee

unread,
Jan 9, 1998, 3:00:00 AM1/9/98
to

You'd best use fuser on the device (/dev/cd0). As used here, fuser
would only check on activity in the /cdrom directory, not in any
subdirectories. Even better: get lsof and run it against the device.

--
Kevin Gee | CS Grad. Student - Univ. of Texas at Arlington
ge...@cse.uta.edu | Team Lead, AIX Supportline - IBM
IBM and UTA are not responsible for my opinions.

Steffen Mehlig

unread,
Jan 11, 1998, 3:00:00 AM1/11/98
to

r...@yuma.ACNS.ColoState.EDU (Ron Sheridan ) have write on the 06.01.98
in /COMP/UNIX/AIX to the theme: Cannot Unmount /dev/cd0:

> I'm trying to determine why I cannot umount /dev/cd0. Its mounted over
> filesystem /cdrom and when I do an "unmount /cdrom", I get the message;
>
> unmount: 0506-349 Cannot unmount /dev/cd0: The requested resource is
> busy.
>
> Is there a way to determine what has the device busy? I'm on AIX 4.2.
> This has been a problem since a system crash and reboot with /cdrom
> mounted and the cd itself mounted in the drive. Is this the cause of the
> problem? I'm reasonably confident that there isn't anyone using it from
> the standpoint of them doing a cd /cdrom. It's an oracle install cd and
> that process is long past done. Can an unmount be forced??
>

> Thanks for any help!
>
> Ron

I have had the same problem. Then, I have use Smitty for mounting, with
the options for removable drive (And, I think, set for softmount) .You can
look also with key F6, what Smitty used for a command . Unfortunately, I'm
now at home and not on my AIX box in the firm, where I can looking for the
right command line. I have had never problems with umount, the cd drive.

Hope, this helps, Steffen

--

E-Mail : ste...@paradise.sachsen.hexe.de
CB-Packet-Radio-Net : SM1WBL@FH0BOX.#DD.SAX.DEU.EU

Have a good time .....

Fabrice Gonton

unread,
Jan 14, 1998, 3:00:00 AM1/14/98
to

STE...@PARADISE.sachsen.hexe.de (Steffen Mehlig) writes:


> I'm trying to determine why I cannot umount /dev/cd0. Its mounted over
> filesystem /cdrom and when I do an "unmount /cdrom", I get the message;
>
> unmount: 0506-349 Cannot unmount /dev/cd0: The requested resource is
> busy.
>
> Is there a way to determine what has the device busy? I'm on AIX 4.2.
> This has been a problem since a system crash and reboot with /cdrom
> mounted and the cd itself mounted in the drive. Is this the cause of the
> problem? I'm reasonably confident that there isn't anyone using it from
> the standpoint of them doing a cd /cdrom. It's an oracle install cd and
> that process is long past done. Can an unmount be forced??

First, try umount -f
But :
You cannot use the umount command on a device in use, as the man says.
You can use lsof to determine the guilty process(es) using /dev/cd0
ressource

--
Fabrice
All opinions expressed here are mine ...

Walter Harms

unread,
Jan 14, 1998, 3:00:00 AM1/14/98
to

STE...@PARADISE.sachsen.hexe.de (Steffen Mehlig) writes:

>r...@yuma.ACNS.ColoState.EDU (Ron Sheridan ) have write on the 06.01.98
>in /COMP/UNIX/AIX to the theme: Cannot Unmount /dev/cd0:

>> I'm trying to determine why I cannot umount /dev/cd0. Its mounted over


>> filesystem /cdrom and when I do an "unmount /cdrom", I get the message;
>>
>> unmount: 0506-349 Cannot unmount /dev/cd0: The requested resource is
>> busy.
>>
>> Is there a way to determine what has the device busy? I'm on AIX 4.2.
>> This has been a problem since a system crash and reboot with /cdrom
>> mounted and the cd itself mounted in the drive. Is this the cause of the
>> problem? I'm reasonably confident that there isn't anyone using it from
>> the standpoint of them doing a cd /cdrom. It's an oracle install cd and
>> that process is long past done. Can an unmount be forced??
>>

>> Thanks for any help!
>>
>> Ron

>I have had the same problem. Then, I have use Smitty for mounting, with
>the options for removable drive (And, I think, set for softmount) .You can
>look also with key F6, what Smitty used for a command . Unfortunately, I'm
>now at home and not on my AIX box in the firm, where I can looking for the
>right command line. I have had never problems with umount, the cd drive.

the problem occurs if someone is still using /cdrom.
to mount a cd use
mount -rv cdrfs /dev/cd0 /mnt
and check whats going on. normaly you can umount via:
umount /mnt

walter


>--

> E-Mail : ste...@paradise.sachsen.hexe.de
> CB-Packet-Radio-Net : SM1WBL@FH0BOX.#DD.SAX.DEU.EU

> Have a good time .....

--
-----
"Work for? I don't work for anybody. I'm just having fun!"
-----

Richard Ataman

unread,
Jan 14, 1998, 3:00:00 AM1/14/98
to

Fabrice Gonton wrote:

>
> STE...@PARADISE.sachsen.hexe.de (Steffen Mehlig) writes:
>
> > I'm trying to determine why I cannot umount /dev/cd0. Its mounted over
> > filesystem /cdrom and when I do an "unmount /cdrom", I get the message;
> >
> > unmount: 0506-349 Cannot unmount /dev/cd0: The requested resource is
> > busy.
> >
> > Is there a way to determine what has the device busy? I'm on AIX 4.2.
> > This has been a problem since a system crash and reboot with /cdrom
> > mounted and the cd itself mounted in the drive. Is this the cause of the
> > problem? I'm reasonably confident that there isn't anyone using it from
> > the standpoint of them doing a cd /cdrom. It's an oracle install cd and
> > that process is long past done. Can an unmount be forced??
>
> First, try umount -f
> But :
> You cannot use the umount command on a device in use, as the man says.
> You can use lsof to determine the guilty process(es) using /dev/cd0
> ressource
>
> --
> Fabrice
> All opinions expressed here are mine ...
This could be dumb but I have seen some individuals in the past with the
same problem because they had a shell open on that filesystem!

Jim Lane

unread,
Apr 24, 1998, 3:00:00 AM4/24/98
to

i have used LSOF to solve this exact problem. works just fine.
Jim Lane
Systems Programmer
Toronto Hydro
On Wed, 07 Jan 1998 00:47:01 -0700, COSMO <cos...@ibm.net> wrote:

>
>
>Ron Sheridan wrote:
>
>> I'm trying to determine why I cannot umount /dev/cd0. Its mounted over
>> filesystem /cdrom and when I do an "unmount /cdrom", I get the message;
>>
>> unmount: 0506-349 Cannot unmount /dev/cd0: The requested resource is busy.
>>
>> Is there a way to determine what has the device busy? I'm on AIX 4.2.
>> This has been a problem since a system crash and reboot with /cdrom mounted
>> and the cd itself mounted in the drive. Is this the cause of the problem?
>> I'm reasonably confident that there isn't anyone using it from the standpoint
>> of them doing a cd /cdrom. It's an oracle install cd and that process is
>> long past done. Can an unmount be forced??
>>

>> Thanks for any help!
>>
>> Ron
>>

0 new messages