Tim77 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 13 May 2003 Posts: 211 Location: Germany
|
Posted: Wed May 21, 2003 10:48 am Post subject: Mounting a cdrom freezes the system |
|
|
I have a Teac CD-Rom and a Plextor-CDRW. I can mount cdroms inside the Plextor CDR, but when I try to mount a cdrom in the Teac-Drive, the whole system freezes (have to reset). I found a few similar threads in this forum, but couldn't manage to fix the problem. The situation is:
I am using the actual Gentoo-Sources Kernel with the SCSI-Stuff compiled in (not as modules):
Code: | [*] SCSI support
[*] SCSI CD-ROM support
[*] SCSI generic support
[*] Enable vendor-specific extensions
[ ] Probe all LUNs on each SCSI device
[*] Verbose SCSI error reporting (kernel size +=12K)
[*] Enhanced IDE/MFM/RLL disc/cdrom/tape/floppy support
[ ] Include IDE/ATAPI CDROM support
[*] SCSI emulation support
[*] Generic PCI bus-master DMA support
[*] USE PCI DMA by default when available
[*] ISO 9660 CDROM filesystemsupport
[*] Microsoft Joliet CDROM extensions
|
As I have no IDE-CDROM-support in the kernel I do not pass any scsi-related options to the kernel in my grub.conf.
I think, my devices are now
Code: | /dev/cdroms/cdrom0 --> Plextor
/dev/cdroms/cdrom1 --> Teac |
I have system links in /dev:
Code: | lr-xr-xr-x 1 root root 34 Jan 1 1970 /dev/cdroms/cdrom0 -> ../scsi/host0/bus0/target0/lun0/cd
lr-xr-xr-x 1 root root 34 Jan 1 1970 /dev/cdroms/cdrom1 -> ../scsi/host0/bus0/target1/lun0/cd |
This is the output for "cdrecord -scanbus":
Code: | Cdrecord 2.01a14 (i686-pc-linux-gnu) Copyright (C) 1995-2003 Jörg Schilling
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.7'
scsibus0:
0,0,0 0) 'PLEXTOR ' 'CD-R PX-W4012A' '1.02' Removable CD-ROM
0,1,0 1) 'TEAC ' 'CD-540E ' '1.0A' Removable CD-ROM
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) * |
This is my /etc/fstab:
Code: | ...
/dev/cdroms/cdrom0 /brenner iso9660 user,noauto,ro 0 0
/dev/cdroms/cdrom1 /cdrom iso9660 user,noauto,ro 0 0
... |
/brenner and /cdrom do exist...
This is my /etc/devfsd.conf:
Code: | # This is done to have non root user use the burner (scan the scsi bus)
REGISTER ^scsi/host.*/bus.*/target.*/lun.*/generic PERMISSIONS root.cdrw 660
# Create /dev/cdrom for the first cdrom drive
LOOKUP ^cdrom$ CFUNCTION GLOBAL mksymlink cdroms/cdrom0 cdrom
REGISTER ^cdrom/cdrom0$ CFUNCTION GLOBAL mksymlink $devname cdrom
UNREGISTER ^cdrom/cdrom0$ CFUNCTION GLOBAL unlink cdrom
# Create /dev/cdrw for the second cdrom drive
LOOKUP ^cdrw$ CFUNCTION GLOBAL mksymlink ${mntpnt}/cdroms/cdrom1 cdrw
REGISTER ^cdrom/cdrom1$ CFUNCTION GLOBAL mksymlink ${devpath} cdrw
UNREGISTER ^cdrom/cdrom1$ CFUNCTION GLOBAL unlink cdrw |
Any clue? |
|