LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Eject Cdrom (https://www.linuxquestions.org/questions/linux-general-1/eject-cdrom-8610/)

themuppeteer 11-12-2001 02:46 AM

Eject Cdrom
 
Hello ,

I want to eject the cdrom in Linux.
The problem is that I 've booted from this cdrom.
Now, what I've tried is:

umount /mnt/cdrom

but this gives me the error message:

umount: /mnt/cdrom: device is busy

Can anyone help me please ? Its quite urgent.

dorward 11-12-2001 05:38 AM

You probably have something running from the cd, a document on the cd open, or a terminal cded in to the cd directory.

The most common problem is something like this:

Code:

cd /mnt/cdrom
ls
su
cd ..
umount cdrom

In that case the user is still in the CD directory, but the su session isn't.

themuppeteer 11-12-2001 06:34 AM

thnx for your reply, but it still doesn't work.

There's somthing I forgot to mention, Linux booted from that cd,
so I guess there's always something running...

I've already searched on the net for solutions, but I don't find a case where bootable cd's and umount are discussed.

thnx.

Thymox 11-12-2001 08:07 AM

If you booted from the CD (is this Suse Live-Eval?) it is possible that the entry in the fstab would not allow user mounting.

Post the contents of your /etc/fstab file here.

themuppeteer 11-12-2001 08:12 AM

Here it is...



LABEL=/ / ext2 defaults 1 1
/dev/fd0 /mnt:floppy auto noauto,owner 0 0
none /proc proc defaults 0 0
none /dev/pts devpts gid=5,mode=620 0 0

themuppeteer 11-12-2001 08:25 AM

this might be useful to...
when I type the command
fuser -v /mnt/cdrom
I get:

USER PID ACCES COMMAND
/mnt/cdrom root kernel mount /mnt/cdrom


All times are GMT -5. The time now is 05:55 AM.