Operating System - HP-UX
1847124 Members
5337 Online
110263 Solutions
New Discussion

Unable to umount the /dvdrom

 
Delecole
Frequent Advisor

Unable to umount the /dvdrom

Hi there !

i'm installing an application on a L1000 machine with a DVD.
I have mounted the dvd with :
/etc/mount -F cdfs -o rr /dev/dsk/dvdrom /dvdrom

... installed the application, which did reboot the machine.

Once the application is installed, I try to umount the drive, but getting the following error :

# /etc/umount /dvdrom
umount: cannot unmount /dvdrom : Device busy
umount: return error 1.


- I think the problem is only appearing when the machine reboots with a CD inside of the Drive.
- I can't fins any process using the /dvdrom anymore ...

the only solution (That I want to avoid, is to reboot the server.

Anybody has an idea ?
Many Thanks !
11 REPLIES 11
Peter Godron
Honored Contributor

Re: Unable to umount the /dvdrom

Hi,
have you tried:
cd /
fuser -cuk /dvdrom

This will kill any process using the device.

Otherwise you can normally force eject the media, by inserting a paperclip into the small eject hole.
Arunvijai_4
Honored Contributor

Re: Unable to umount the /dvdrom

Hi,

Try with # fuser -ku /dvdrom.

It should kill all the processes using /dvdrom

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Delecole
Frequent Advisor

Re: Unable to umount the /dvdrom

thanks guys !!
I'll try this and let you know !
Delecole
Frequent Advisor

Re: Unable to umount the /dvdrom

PC ... instead of killing ... before killing, is it possible to see the process that uses /dvdrom ?
Pete Randall
Outstanding Contributor

Re: Unable to umount the /dvdrom

Sure, just don't use the "-k" switch.


Pete

Pete
Torsten.
Acclaimed Contributor

Re: Unable to umount the /dvdrom

fuser without "-k" or lsof

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
RAC_1
Honored Contributor

Re: Unable to umount the /dvdrom

fsuer may not report it, but lsof will.
lsof /dev/dvdrom
There is no substitute to HARDWORK
Bill Hassell
Honored Contributor

Re: Unable to umount the /dvdrom

Note that there is no /etc/umount command. It is actually a temporary transition link which is provided so administrators can fix all their old code and habits. Use the command:

ll -d /etc/mount

to see the link. The command is /usr/bin/umount or /sbin/umount.

Note also that is any process (perhaps a login shell) does a cd /dvdrom, the device will remain busy forever. It is always recommended not to cd into removable media directories for this reason. Most likely, someone has cd'ed into the /dvdrom directory.


Bill Hassell, sysadmin
Delecole
Frequent Advisor

Re: Unable to umount the /dvdrom

Perhaps, yes ... but even if I "cd" back to /, the device stays busy then ?
Bill Hassell
Honored Contributor

Re: Unable to umount the /dvdrom

If any user cd's to /dvdrom, then the mountpoint will be busy. Do you have /dvdrom listed in /etc/fstab? If so, add the option noauto to the cdfs flags, something like:

/dev/dsk/c0t2d0 /dvdrom cdfs ro,noauto 0 0

Now the CD won't be automatically mounted but can be mounted and umounted as needed. The only way you will find the culprit is to download lsof. It will find the process that is keeping this mountpoint open.


Bill Hassell, sysadmin
Chan 007
Honored Contributor

Re: Unable to umount the /dvdrom

Hi

If you installed it and you have not come out of the session, just logout this may kill your open process and you can get rid of this problem.

Chan