LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   cdrom not shown with ide-scsi emulation (https://www.linuxquestions.org/questions/linux-general-1/cdrom-not-shown-with-ide-scsi-emulation-224337/)

RestInPieces 08-30-2004 11:54 AM

cdrom not shown with ide-scsi emulation
 
hi!
i compiled a kernel with scsi emulation, did what i always do and finally got the following dmesg:
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: SONY Model: CD-RW CRX220E1 Rev: 6YS1
Type: CD-ROM ANSI SCSI revision: 02
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 5
ok then... i replaced the fstab like so:
/dev/hda5 swap swap defaults 0 0
/dev/hda1 / ext2 defaults 1 1
/dev/sg0 /mnt/cdrom iso9660 noauto,user,rw,unhide 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc
..according to what the kernel "said"...
the problem is that when I do a ls -l /dev/cdrom , i get :/usr/bin/ls: /dev/cdrom: No such file or directory...
that worked untill now.. err...:confused:
anyway.. to even get it to show Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 5, i had to modify the modules.conf... and added :
alias scsi_hostadapter ide-scsi
ide-cd ignore="hdb" (i use the 2.6.7 kernel)
i have the append "hdb=ide-scsi" line in my lilo.conf...
Any help appreciated
PS: the cdrecord scanbus works...

hw-tph 08-30-2004 12:07 PM

I often use cdparanoia to find out the names of CD devices. Try cdparanoia -vsQ as root.

The usual device name for the first SCSI-emulated CD-ROM is /dev/scd0, so you could try ln -s /dev/scd0 /dev/cdrom unless you want to set up all your applications to use /dev/scd0 by hand.


Håkan

michaelk 08-30-2004 12:08 PM

2.6 kernels do not require SCSI emulation for ATAPI CDROM drives.

RestInPieces 08-30-2004 12:15 PM

i just like scsi burning... even if it's deprecated
anyway.. cdparanoia shows :
Checking /dev/sg0 for cdrom...
Testing /dev/sg0 for cooked ioctl() interface
/dev/sg0 is not a cooked ioctl CDROM.
Testing /dev/sg0 for SCSI interface
No cdrom device found to match generic device /dev/sg0
generic device: /dev/sg0
ioctl device: not found

Found an accessible SCSI CDROM drive.
Looking at revision of the SG interface in use...
SG interface version 3.5.31; OK.

CDROM model sensed sensed: SONY CD-RW CRX220E1 6YS1

Checking for SCSI emulation...
Drive is ATAPI (using SCSI host adaptor emulation)

Checking for MMC style command set...
Drive does not have MMC CDDA support
004: Unable to read table of contents header
...i really don't like the No cdrom device found to match generic part...

RestInPieces 08-30-2004 12:55 PM

err.... i have a computer with a strong personality.. the above statement changed to Testing /dev/sg0 for SCSI interface
generic device: /dev/sg0
ioctl device: /dev/sr0
so.. i have it "found" on sr0... (ugh..again..).. i wonder if i can keep it there for the next boot :)


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