LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   odd behavior when mounting CDs (https://www.linuxquestions.org/questions/linux-newbie-8/odd-behavior-when-mounting-cds-39000/)

superbondbond 12-20-2002 07:34 PM

odd behavior when mounting CDs
 
This is something that really has me stumped.

I have been working on installing Wine to get Half-Life up and running since I removed Windows from my PC. My problem is when I insert the installation disc in my CD-Rom drive, the entire system seems to just hang, becoming very unresponsive.

It's apparent that in KDE, it automatically mounts the disc, as I can see that it tries to pull up Konqueror once the disc is in. but the window never comes up. It does the same when I try to manually open Konqueror. I know the disc get mounted OK, because I can view the contects of /mnt/cdrom from the console.

Now that my whole system is unresponsive, I try to umount the disc. It tells me the disc is busy. I can eventually get it unmounted with KwikDisk, but it's tricky because once I unmount it, it immediately tries to (automatically) mount it all over again. It takes a quick hand to push the eject button at just the right time to get the disc tray to eject.

Once I eventually get the disc ejected, the system returns to normal. And what's more confusing is that after I successfully eject the disc, 3 or 4 Konqueror windows pop up on the screen showing the (now empty) contents of /mnt/cdrom.

I only run into this problem with installation CD's for Windows. the RedHat CD's mount perfectly, and there's no trouble with audio discs (although I know that they aren't really "mounted" in the same way as data).

Where can I disable this "auto-mount" in KDE (possibly something in fstab, I'm not sure), or is there something else I'm overlooking?

By the way, the forums have been a great resource to me so far.
Thanks.

DavidPhillips 12-20-2002 10:59 PM

what's in your fstab file

superbondbond 12-21-2002 02:10 AM

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1 /mnt/cdrom1 iso9660 noauto,owner,kudzu,ro 0 0
/dev/hdb /mnt/ls120.0 auto noauto,owner,kudzu 0 0
/dev/hdc /mnt/cdrom auto ro,noauto,user,exec 0 0
/dev/scd0 /mnt/cdrom1 auto ro,noauto,user,exec 0 0

whansard 12-21-2002 02:31 AM

the auto mount thing is called supermount.
i forgot where the config for it is, maybe /etc/auto.vol,
i just looked.
but you can comment out the lines referring to
cdroms in fstab and reboot if you want to experiment.
just don't comment out the line with your root filesystem

DavidPhillips 12-21-2002 04:42 AM

well there's your problem

you have the cdroms in there twice

/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1 /mnt/cdrom1 iso9660 noauto,owner,kudzu,ro 0 0

/dev/hdc /mnt/cdrom auto ro,noauto,user,exec 0 0
/dev/scd0 /mnt/cdrom1 auto ro,noauto,user,exec 0 0

if this works

mount /dev/cdrom

remove this
/dev/hdc /mnt/cdrom auto ro,noauto,user,exec 0 0

if not change
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0

to
/dev/hdc /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0

and remove this
/dev/hdc /mnt/cdrom auto ro,noauto,user,exec 0 0

do the same with the other one

superbondbond 12-21-2002 12:44 PM

I think that fixed it.

I took out the duplicate entries in my fstab giving me:

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/dev/scd0 /mnt/cdrom1 iso9660 noauto,owner,kudzu,ro 0 0
/dev/hdb /mnt/ls120.0 auto noauto,owner,kudzu 0 0

Now everything seems to be as it should be. I mounted the Half-Life installation disc, and no troubles.

Thanks David.

DavidPhillips 12-21-2002 01:21 PM

Great dude, I figured that would do it.

Check out the affero link if you have time.


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