View previous topic :: View next topic |
Author |
Message |
UnderDog138 n00b
Joined: 03 Dec 2002 Posts: 67 Location: Dallas, TX, USA
|
Posted: Thu Dec 05, 2002 9:26 pm Post subject: CD burner doesn't work |
|
|
I have an HP CD-Writer 9300, internal ATAPI IDE device (fairly common burner) and when I used to run Mandrake, I noticed the burner device ran as a SCSI emulated device. I could burn CDs like no tomorrow back then. I run Gentoo now (yay). I forgot to include this option in the kernel the first time, so I recompiled it with the option SCSI Emulation Support enabled under the ATA/IDE/ATAPI/etcetera/etcetera Device section, yet it still doesn't recognize the burner device. Anyone know why? What options or configs do I need to set to make the kernel recognize an IDE CDR as a SCSI Emulated burner? |
|
Back to top |
|
|
sa Guru
Joined: 10 Jun 2002 Posts: 450
|
|
Back to top |
|
|
li1_getoo l33t
Joined: 20 Oct 2002 Posts: 661 Location: Queens , NY
|
Posted: Fri Dec 06, 2002 5:17 am Post subject: |
|
|
dont forget to add hdX=ide-scsi to ur /boot/grub/menu.lst , its one of the last ones:) |
|
Back to top |
|
|
krt Tux's lil' helper
Joined: 27 Nov 2002 Posts: 102 Location: Earth
|
Posted: Fri Dec 06, 2002 10:36 am Post subject: |
|
|
For all ATAPI burners under Linux, you'll need to remember some basic steps:
1) If you want to use it as a reader only, you don't need scsi-emulation... but it does work for reading too. Your devices will show up as /dev/srX (scsi cdrom style device), which you'll use for reading (point your audio programs at this, etc.) and /dev/sgX (scsi generic device, used for writing/burning/etc.).
2) If you have a reader and a burner in the same system, both devices do not have to be emulated scsi, but its not very fun having multiple cdrom drivers loaded for ATAPI drives. I turn on scsi-emulation even for my readers, and use them as /dev/srX devices.
3) In the kernel, you -dont- want IDE-CDROM support, but you do want IDE SCSI Emulation, Scsi Generic and Scsi CDROM device drivers. You don't have to muck with much else, i.e. the additional LUN and vendor extensions, etc. (those are for real SCSI devices)
4) You'll need to tell the kernel on bootup which device is to be emulated. This is where "hdX=ide-scsi" comes into play. I specify this in grub's menu.lst file on the kernel line(and in the older days, in lilo with an append line).
That should be all you need to get it working. To determine if its working, you can use "cdrecord -scanbus" - you'll see it in the list as its device number (1,0,1 etc.). I use these for cdrecord and cdrdao. It should look something like this:
cdroot@gandalf:~# cdrecord -scanbus
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.5'
scsibus0:
0,0,0 0) 'MATSHITA' 'UJDA720 DVD/CDRW' '1.03' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
I've written a little cdrecord script for myself, that uses the bus/target/lun numbering style:
root@gandalf:~# cat burnit
#!/bin/bash
/usr/bin/cdrecord dev=0,0,0 driver=mmc_cdr_sony speed=8 -v $1
/usr/bin/renice -10 -p $( ps -a | grep cdrecord | cut -c1-5 )
You can also see your devices in your kernel bootup messages, looking something like this:
first, the ide device is found and attached to the channel:
hdc: UJDA720 DVD/CDRW, ATAPI CD/DVD-ROM drive
later, the scsi-emulated device is setup (note that it says 24x/24x, which are, iirc, the capabilities of the scsi-generic device, not your burner!):
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: MATSHITA Model: UJDA720 DVD/CDRW Rev: 1.03
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
Uniform CD-ROM driver Revision: 3.12
Enjoy burning under Linux with ATAPI drives. :-) |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|