LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   cdrom mount freezes (https://www.linuxquestions.org/questions/linux-software-2/cdrom-mount-freezes-15967/)

NSKL 03-10-2002 02:44 PM

cdrom mount freezes
 
From when i reinstalled everything on my computer almost everytime when i try to mount a cdrom (mount /dev/hdc /cdrom) the system freezes and i have to restart it manually cuz keyboard doesnt respond anymore to any key combination.
This happens with all kernels im using (2.4.5. , 2.2.19 and 2.4.17) and its really annoying since i NEED to mount the cd to install software...
What can be causing this, or how can i solve it?
Any ideas?

Thanks in advance

-Nskl

trickykid 03-10-2002 02:52 PM

could be hardware causing this to freeze up.. have you tried a different cdrom to test with ?? that is what i would try if it is happening on any kernel, distro..etc you have used ..

-trickykid

NSKL 03-11-2002 09:36 AM

no, it used to work fine with slack before, its just from when i reinstalled everything that this happens. I am wondering could it be due to an error in /etc/fstab. The last two entries in /etc/fstab are two numbers that i do not know what they do. I just set them to 0 0 so that might be the problem. Here is my /etc/fstab and if someone can please post theirs so i can see if i set up mine correctly.
Thanks

/etc/fstab

/dev/hdb1 swap swap defaults 0 0
/dev/hdb2 / ext2 defaults 1 1
/dev/hdb3 /home ext2 defaults 1 1
/dev/hdb4 /usr ext2 defaults 1 1
/dev/hda1 /win vfat defaults 1 0
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
/dev/cdrom /cdrom iso9660 ro,user 0 0
/dev/fd0 /floppy auto defaults,user 0 0
/dev/sda1 /zip auto defaults,user 0 0

trickykid 03-11-2002 10:08 AM

those two 0's at the end are fine... according to you fstab, you have your /dev/hdc linked to /dev/cdrom

have you tried mounting using mount /dev/cdrom /cdrom?

-trickykid

NSKL 03-11-2002 03:10 PM

Yeah i tried mounting in every possible way it always freezes and i have to reboot holding the power button cuz the keyboard is tottaly not responding.
So if its not /etc/fstab and it's not a hardware problem for sure cuz i can mount just fine with one (of two) 2.4.5 kernels and with 2.2.19 it's the other 2.4.5 and the new 2.4.17 kernels that have this problem. This leads me to think it has to be a problem in Kernel configuration. Is it possible that the kernel automounter somehow causes this to happen, or maybe it somehow sliped me to include ISO9660 support, but even then the kernel shouldnt freeze!!
I'll try recompiling again and hopefully it'll work, but it is very strange indeed since i can perfectly mount any other device (zip, HD, etc) it's just cd rom that has this problem...
Anywayz thanks for help!!

-NSKL

jdctx 03-11-2002 10:07 PM

For a while I had such an issue with my cdrom. This occured between Mandrake 7.0-7.2 perhaps some of the same kernels you've used. What was happening is I was getting interrupt errors. You could see this in you log. Before going any further I noticed in you fstab

/dev/cdrom /cdrom iso9660 ro,user 0 0

if you cdrom is attached to the second ide and not slaved shouldn't it read

/dev/hdc /cdrom iso9660 ro,user 0 0

to be certain you could do a hdparm /dev/hdc as root and see what it says.

If all this seems right and the cdrom is hooked up correctly and such. I would suggest looking at the kernel. Your cdrom may have extra support needed. Most kernels include this but load it as module. I would maybe recompile and add the support needed for you cdrom straight into kernel.

NSKL 03-13-2002 11:54 AM

DAMN! I re-compiled 2.4.17, i downloaded and compiled 2.4.18 and it freezes as well. Everyting freezes, console, X and the keyboard, only way is to reboot with the power button...
The only Kernel that mounts the cds normally witout problems is 2.4.5 and i cant figure out why?!?!
Please if someone has a clue what might be casing this let me know cuz its really driving me crazy now.

Thanks

-nskl

NSKL 03-13-2002 12:05 PM

Posted ^ that twice by mistake...

jdctx 03-13-2002 10:46 PM

Someone would have to help me on this but I believe there's a way to use the same kernel configuration for 2.4.5 and apply the same settings to 2.4.17 or any other kernel. Since is worked with 2.4.5 maybe with the same settings it will work with 2.4.17


During recompile you'll probably have to do a make dep make modules and make modules_install again.

NSKL 03-14-2002 05:15 AM

Yeah when i recompile i do: make mrproper, make clean, make menuconfig, make dep, make bzImage, make modules, make modules_install...
Im wondering if i make oldconfig in /usr/src/linux-2.4.5 and then copy the .config file to /usr/src/linux-2.4.17 and make menuconfig use that .config file will that work?
Basically can i use .config from 2.4.5 and load it into .2.4.17 or is the format of the file different?
Thanks for help
-nskl

Eraser02 05-15-2002 10:28 AM

I've been having the same problem with Redhat 7.2 but I did find in another post here someone (and I wish I remember who it was so they got the credit for this link) found a link to a place with a reference to turn off DMA in at least Redhat, it may not cover Slackware, but here it is you may want to give it a try.

http://www.exocore.com/technologies/linux/rhl71dma/


:Pengy:


Eraser

Sfin 05-15-2002 03:52 PM

to use the old .config file, copy it over to the linux direcory, and type in:

make oldconfig

that will use the old config file settings.


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