1825804 Members
2521 Online
109687 Solutions
New Discussion

Re: can't umount cdrom

 
eric_204
Frequent Advisor

can't umount cdrom

I meet this problem for many times already, could suggest how can I umount the cdrom . thx in advance.

# umount /mnt/cdrom
umount: /mnt/cdrom: device is busy
# lsof /mnt/cdrom
# fuser /mnt/cdrom
/mnt/cdrom:
No process references; use -v for the complete list
# fuser -v /mnt/cdrom

USER PID ACCESS COMMAND
/mnt/cdrom root kernel mount /mnt/cdrom
14 REPLIES 14
Alexander Chuzhoy
Honored Contributor

Re: can't umount cdrom

Did you try: umount -l /mnt/cdrom
Mark Grant
Honored Contributor

Re: can't umount cdrom

Personally, I think think the "mount -l" option could become more irritating than it's worth.

Do you have an automountin CDROM?

Never preceed any demonstration with anything more predictive than "watch this"
eric_204
Frequent Advisor

Re: can't umount cdrom

thd , but I tried "-l" , it pop "no such option" , please advise .
Steven E. Protter
Exalted Contributor

Re: can't umount cdrom

reboot the unit, eject the cd while the server/computer is resetting.

The most common cause of this is an open process on the cdrom

In HP-UX the command to break that is fuser -cuk /mount_of_cdrom

9 times out of 10 you terminate yourself in that process.

While doing an install cd /cdrom instead of /cdrom/runInstaller from somewhere else.

That sort of thing.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Alexander Chuzhoy
Honored Contributor

Re: can't umount cdrom

Does the "eject" command works?
eric_204
Frequent Advisor

Re: can't umount cdrom

thx reply , the command "eject" is not work in my case . On the other hand , except reboot the server , what can I do ? thx.
eric_204
Frequent Advisor

Re: can't umount cdrom

I don't want to reboot the system , is there other suggestion ? thx.
Cristian Draghici
Frequent Advisor

Re: can't umount cdrom

What if you press the eject button on the CDROM unit?

Is the CD ejected?

K.C. Chan
Trusted Contributor

Re: can't umount cdrom

Have you check to make sure there are no process accessing /mnt/cdrom, try using fuser -u /mnt/cdrom. If there are any processes accessing /mnt/cdrom, you can use fuser -k options to kill it, then try umounting /mnt/cdrom.
Reputation of a thousand years can be determined by the conduct of an hour
Martin P.J. Zinser
Honored Contributor

Re: can't umount cdrom

Hello,

first try df to check what is mounted on
/mnt/cdrom . The next would be to check
/etc/fstab if there might be an automount
that just hogs the CD already during startup.

Greetings, Martin
Adam Moody_1
Trusted Contributor

Re: can't umount cdrom

I've had problems before with automount (or autofsd) grabbing the cdrom and not letting go until a reboot (until I discovered that killing the automount daemon resolved it) - never found out why the automount did this, and it only did this on some CD's.

Also, have you tried ejecting with root?
Closed all user terminals to the server?
Denise Spinger
Occasional Advisor

Re: can't umount cdrom

Try the command:

exportfs -u /dev/cdrom
umount /dev/cdrom

Maybe your cdrom is nfs exported and that is the reason for not umounting.

Good lock.

Deise
Nobody's Hero
Valued Contributor

Re: can't umount cdrom

Remember, if someone pfs mounted the cdrom like "pfs_mount -o xlat=unix /dev/dsk/cxtxdx /cdrom"

Then you need to pfs_umount /cdrom.
If this is the case, run pfs_umount -c /cdrom
to clear and release cdrom. Make sure pfsd and pfs_mountd are running, they are in /usr/sbin.

If you use pfs_mount you must use pfs_umount. If you use pfs_mount and the use umount, it will lock the cdrom and you must reboot. I've been through this problem a million times.
UNIX IS GOOD
Bill Maginnis
Occasional Advisor

Re: can't umount cdrom

I've found that if I had Konqueror open and was currently in the /MNT/CDROM directory (or a sub-directory), closed Konqueror, and tried to UMOUNT, I would get the "device is busy" headache. To resolve this I would re-open Konqueror, select a directory other than the /mnt/cdrom, then try the umount, everything would be fine.
If I had MP3s on the mounted CD and the MP3 player software had choked, then I'd have to kill that first and then umount.
Just a thought...
-*-Bill