LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   got confused with my cd-rw kernal&device configuration!!! (https://www.linuxquestions.org/questions/linux-hardware-18/got-confused-with-my-cd-rw-kernal-and-device-configuration-277480/)

tagigogo 01-13-2005 05:06 PM

got confused with my cd-rw kernal&device configuration!!!
 
well, i have a cd-rw/dvd-rom combo in my laptop...the system is Linux From Scratch 5(installed it several months ago); now I am trying to get my cd-rw working...although I followed some suggestions (i will specify what i did a little later), I basically don't know what i am doing and lack the general understanding... :scratch:

--------------
What I did
--------------
o recompiled the kernal:
ATA/IDE/MFM/RLL support menu
  • IDE/ATAPI CDROM support: M
  • SCSI emulation support: Y
SCSI support menu
  • SCSI support: Y
  • SCSI CD-ROM support: Y
  • SCSI generic support: Y
o created some device files: scdx and sgx...

----------------
dmesg shows
----------------
hdc: HL-DT-STCD-RW/DVD-ROM GCC-4240N, ATAPI CD/DVD-ROM drive
hdc: attached ide-scsi driver.
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Type: CD-ROM ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray

------------
Questions
------------
1 What can I do next???
2 How to know if it works? how to test???
3 is that okay the cdrom still be mounted to /dev/hdc?? should I load ide-cd.o for music cds??
4 plz give me a general picture to show how everything connect with each other...

Thanks!!!

jailbait 01-13-2005 08:21 PM

"3 is that okay the cdrom still be mounted to /dev/hdc?? should I load ide-cd.o for music cds??
4 plz give me a general picture to show how everything connect with each other... "

If you are using kernel 2.4.x then you should set up the CD using scsi emulation, which you did. Then you need to add a kernel boot parameter to LILO: append="hdc=ide-scsi". Then make /dev/hdc a symbolic pointer to /dev/scd0 (I think its scd0). Load ide-scsi.o.

If you are running kernel 2.6.x then you do not want to use ide-scsi. Use native IDE support for /dev/hdc. Load ide-cd.ko. You do not need any scsi support (unless you have scsi devices). You do not need the append in your lilo or grub boot parameters.

--------------------------
Steve Stites

tagigogo 01-13-2005 11:12 PM

thanks for replying, steve!
If I found the LQ's wiki page: IDE_CD_Writer, I could know that there might be no necessary to use scsi emulation at all...since my cd-rw was detected at first time and it can be addressed directly...
anyway, scsi emulation works fine :D


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