LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-27-2004, 09:50 PM   #1
Kanaflloric
Member
 
Registered: Jun 2004
Location: Canada
Distribution: Slackware 10.0
Posts: 80

Rep: Reputation: 15
kernel panic while mounting my cdrom !


Hi everybody

I can no more mount my CDRom : each time i try, i get a "kernel panic"
It worked fine until today....and it works fine under windows !

I tried under root also, and it<s the same thing. My DVDRom still works...

What could have happened between yesterday and today ?
Any suggestions ?
 
Old 07-28-2004, 05:17 AM   #2
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
What CD is in there? Does this occur with all CDs or just that one?
 
Old 07-28-2004, 10:39 AM   #3
Kanaflloric
Member
 
Registered: Jun 2004
Location: Canada
Distribution: Slackware 10.0
Posts: 80

Original Poster
Rep: Reputation: 15
I tried with a couple of data CD (not Audio).
What disturbs me is that they were correctly seen by window.
 
Old 07-28-2004, 11:24 AM   #4
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Windows is, in general, irrelevant. About all you can say is that 1) the drive is thus not broken, and 2) the CD itself is readable.

Which is useful information, but not overwhelmingly useful, since a kernel panic when mounting a drive is a strange enough occurrence that it implies that the CD drive is not the problem anyway (but instead it's the kernel).

1) What command are you using to mount the drive? Under what circumstances (access via a GUI file manager, trying to open a file on the CD directly with some program, from the command line)?

2) What is the actual output of the kernel panic (why does it say it's panicking)?

3) What kernel is this (uname -r in a terminal)?
 
Old 07-28-2004, 08:47 PM   #5
Kanaflloric
Member
 
Registered: Jun 2004
Location: Canada
Distribution: Slackware 10.0
Posts: 80

Original Poster
Rep: Reputation: 15
1) In command line, i type :
$ cd /mnt
$ mount cdrom1

I don't see any errors from a console in windowmaker, it just jam.

What is in /etc/fstab :

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

2) Here is what could be found in /var/log/messages after i tried to mount:

Jul 28 20:25:10 localhost kernel: Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Jul 28 20:25:10 localhost kernel: sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
Jul 28 20:25:45 localhost kernel: scsi : aborting command due to timeout : pid 17, scsi0, channel 0, id 0, lun 0 Read (10) 00 00 00 00 10 00 00 01 00
Jul 28 20:25:45 localhost kernel: hdd: timeout waiting for DMA
Jul 28 20:25:45 localhost kernel: ide_dmaproc: chipset supported ide_dma_timeout func only: 14
Jul 28 20:25:45 localhost kernel: hdd: status timeout: status=0xff { Busy }
Jul 28 20:25:45 localhost kernel: hdd: drive not ready for command

and this is what is said in the boot process :

Jul 28 20:23:56 localhost kernel: scsi0 : SCSI host adapter emulation for IDE ATAPI devices
jui 28 20:23:50 localhost network: Montage de l'interface : succeeded
Jul 28 20:23:56 localhost kernel: Vendor: HP Model: CD-Writer+ 9300 Rev: 1.0c
Jul 28 20:23:56 localhost kernel: Type: CD-ROM ANSI SCSI revision: 02
jui 28 20:23:56 localhost autofs: automount startup succeeded



3) My kernel is : 2.4.18-14


There's 2 words i'm worried about :

1 : SCSI : I don't think i have SCSI devices
2 : DMA (timeout) : The day before it all began, I added memory to my computer (wich seems to work fine).
 
Old 07-29-2004, 11:22 AM   #6
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
If you have a CD or DVD drive capable of writing, you don't have SCSI, but you do have scsi emulation. If you do not use this, any CD or DVD drive will be read-only; scsi emulation is what allows you to write to it.

But enabling scsi emulation on writeable removeable drives does often change the device names/locations, as it seems to have done in your case. This line
Quote:
kernel: sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
suggests that your line in /etc/fstab should read something like

/dev/sr0 /mnt/cdrom

since the read-only device formerly at /dev/cdrom has likely been replaced by the read-write device at sr0.

But what's this....?
Quote:
localhost autofs: automount startup succeeded
If you're using automount fs, isn't it possible or even likely that this is the source of the conflict?

If not the CD drives, what, if anything, is automount mounting, and conversely why are you mounting manually when automount is available and running?

You might want to take a look at Autofs Automounter HOWTO, in order to find out how to see what's really going on between the device and this service.
 
Old 07-29-2004, 11:01 PM   #7
Kanaflloric
Member
 
Registered: Jun 2004
Location: Canada
Distribution: Slackware 10.0
Posts: 80

Original Poster
Rep: Reputation: 15
Well, it is solved.

Automount was not involved (I'm not sure of what it does on my system...).
The problem was the DMA configuration of my cdrom. It was set to ultraDMA mode 2, wich is too fast for my hardware. It was probably setup during RedHat install.
To reduce speed I tried :

$ hdparm -d1 -X34 /dev/hdd

as mentionned in http://www.tldp.org/HOWTO/SCSI-2.4-HOWTO/sr.html and the cdrom works now.

I still don't know why my cdrom is called sr0. I guess it's related to the 3 layers of the CDROM subsystem in kernel 2.4. But i didn't found sr0 in my system !

Thank you for all !

Last edited by Kanaflloric; 07-30-2004 at 10:17 AM.
 
  


Reply


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
Kernel Panic Mounting issue Mr_Munkey Linux - Hardware 1 02-21-2005 01:44 PM
Mounting the cd causes kernel panic Ex-Pralite_Monk Linux - Hardware 0 07-11-2004 08:15 PM
Kernel panic when Redhat 9.0 cdrom is initializing for installation armes Linux - Software 0 06-01-2004 02:45 PM
Kernel 2.6 and mounting a CDROM Zaskar Fedora 2 02-22-2004 10:30 AM
Kernel Panic when mounting root fs Neorio Linux - General 1 10-21-2003 09:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:47 PM.

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