Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-02-2003, 11:17 AM   #1
LQ Newbie
Registered: Apr 2003
Location: Calgary,AB,Canada
Posts: 9

Rep: Reputation: 0
Question How to release /dev/cdorm or mount point (/mnt/cdrom) after doing this :

System redhat8 or redhat9:

step 1:
$mount /dev/cdrom

step 2:
delete the mounted cdrom description such as
"/dev/cdrom /mnt/cdrom iso9660 ro,nosuid,nodev 0 0" in file /etc/mtab
Now /etc/mtab is like this:

/dev/hda2 / ext3 rw 0 0
none /proc proc rw 0 0
usbdevfs /proc/bus/usb usbdevfs rw 0 0
/dev/hda1 /boot ext3 rw 0 0
none /dev/pts devpts rw,gid=5,mode=620 0 0
none /dev/shm tmpfs rw 0 0

step 3:
$eject /dec/cdrom

Here comes a very wierd situation:
The CD has already ejected, but the CDROM icon is still on the desktop, you could still "ls /mnt/cdrom" and see the file names on the previous loaded CD. The system still thinks the CD is still mounted. My question is how to release "/dev/cdrom" or recover the system now ?

Thank you so very much !
Old 07-02-2003, 11:19 AM   #2
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
type umount instead of eject
Old 07-02-2003, 12:05 PM   #3
LQ Newbie
Registered: Apr 2003
Location: Calgary,AB,Canada
Posts: 9

Original Poster
Rep: Reputation: 0
It does not work using umount instead of eject, it is not that easy. I think umount watches /etc/mtab first.
Old 07-02-2003, 06:07 PM   #4
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 49
What are you trying to accomplish? So far, this just looks like a round about, ineffective way of umounting CD.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount point /mnt/cdrom does not exist. njbrain Linux - General 4 02-13-2007 07:01 PM
Which /mnt or /dev point is my camera card? krome Linux - General 3 08-15-2005 12:34 AM
How to release /dev/cdorm or mount point (/mnt/cdrom) after doing this : norman68 Linux - General 1 07-02-2003 12:14 PM
CD problems: /mnt/cdrom and /dev/cdrom okok Linux - Newbie 5 04-09-2003 10:11 AM
My mount point of /dev/hda1(win98) is /mnt/c,but now it says input/output error whepin Linux - General 2 12-20-2001 12:41 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:07 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration