Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-11-2005, 06:26 PM
|
#1
|
Member
Registered: May 2005
Location: Potchefstroom SA
Distribution: Slackware
Posts: 85
Rep:
|
Mandrake doesn't unmount/eject devices
HI.
The problem in a nutshell:
System won't eject/unmount CD, DVD or Remote drives
System detail:
OS/Distro Mandrake 10.1
Box P4, 240MB RAM + 1GB SWAP
A typical scenario:
I'm looking for a previous version of a document/presentation that was saved on a CD. After not finding it on CD #1, I right-click on /mnt/cdrom, in Konqueror, select Eject and instead of the CD being ejected I get an error message that says that it can not eject the CD because the device is busy or the device is not mounted etc. If I then manually eject the CD, Konqueror will not read it (it displays the content of the previous CD) or list some files and folders with garbage for names. The only way I can then read the next CD is to reboot.
I've even tried (as root and su root) to unmount the CD using umount /mnt/cdrom , umount -f /mnt/cdrom , umount -l /mnt/cdrom , umount -f -l /mnt/cdrom with basically the same result.
How do I fix this?
K
|
|
|
06-11-2005, 06:42 PM
|
#2
|
Member
Registered: Jun 2004
Location: Nova Scotia, Canada
Distribution: Ubuntu 8.04 LTS
Posts: 138
Rep:
|
Not sure, but have you tried unmounting the device instead of the mount point?
umount /dev/hdc
|
|
|
06-11-2005, 07:42 PM
|
#3
|
Senior Member
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468
Rep:
|
Could be many reasons you can't unmount... If Konqueror is in /mnt/cdrom you won't be able to umount. Also there could be a process running that is holding your cd captive... Here is an example of a process holding me from unmounting my cdrom.
# umount -f /mnt/cdrom
umount2: Device or resource busy
umount: /mnt/cdrom: device is busy
umount2: Device or resource busy
umount: /mnt/cdrom: device is busy
Then:
[root@localhost kencaz]# fuser -m /mnt/cdrom
/mnt/cdrom: 4452
[root@localhost kencaz]# kill 4452
[root@localhost kencaz]# umount /mnt/cdrom
success!
also check your fstab to see if you have "supermount" enabled
cat /etc/fstab
If it is you will see "supermount" in the file. If not you can envolk it with:
supermount -i enable
Remember this will edit your fstab file so make a backup first... Then you cd's should be mounted automatically when inserted...
KC
|
|
|
06-11-2005, 08:26 PM
|
#4
|
Member
Registered: May 2005
Location: Potchefstroom SA
Distribution: Slackware
Posts: 85
Original Poster
Rep:
|
Bluenoser, Yep, I've tried unmounting the device itself.
KenCaz, here's what the relavent part of my fstab:
Code:
/dev/hdc /mnt/cdrom auto umask=0,user,iocharset=iso8859-15,codepage=850,noauto,ro,exec 0 0
/dev/hdd /mnt/cdrom2 auto umask=0,user,iocharset=iso8859-15,codepage=850,noauto,ro,exec 0 0
I'll try the fuser thing. won't supermount interfere with k3b?
Last edited by kriidler; 06-11-2005 at 10:07 PM.
|
|
|
06-11-2005, 10:02 PM
|
#5
|
Member
Registered: May 2005
Location: Potchefstroom SA
Distribution: Slackware
Posts: 85
Original Poster
Rep:
|
Whoa! KenCaz, that fuser routine gavi me a WHOLE lot of numders, and when I started to kill them, I killed my system and had to reboot! And I've enabled supermount with supermount -i enable and now Konqueror doesn't even read the CDs. It mounts them only when I log in.  I do have icons for the drives on my desktop, showing them as mounted drives.
Last edited by kriidler; 06-11-2005 at 10:10 PM.
|
|
|
06-11-2005, 10:19 PM
|
#6
|
Senior Member
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468
Rep:
|
Hmm, must have killed a critical process!!! My sympathy...
Well, supermount should only mount your CD when you insert it. If there is one in at boot it will mount it. It senses when you have removed a CD or Floppy and unmounts the drive. Konqueror, however, should not have anything to do with mounting. Once a CD is mounted you should be able to navigate to /mnt/cdrom and view contents. If you eject the CD and are still in the /mnt/cdrom folder you may have to use F5 to refresh Konq's file list.
If you dont' like Supermount you can disable like this:
supermount -i disable
KC
|
|
|
06-12-2005, 12:27 PM
|
#7
|
Member
Registered: May 2005
Location: Potchefstroom SA
Distribution: Slackware
Posts: 85
Original Poster
Rep:
|
Thanks Guys.
It looks like the probels solved.
|
|
|
All times are GMT -5. The time now is 11:36 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|