View previous topic :: View next topic |
Author |
Message |
bofh n00b
Joined: 31 Jan 2003 Posts: 12
|
Posted: Wed Apr 30, 2003 4:58 pm Post subject: cdrdao scanbus and cdrecord -scanbus returns nothing |
|
|
I have a machine, using the gaming sources. scanbus finds nada.
From dmesg:
Kernel command line: root=/dev/hda3 vga=extended hdc=ide-scsi hdd=ide-scsi idebus=66 ide0=dma ide1=dma
hda: WDC WD800BB-60CJA1, ATA DISK drive
hdb: Maxtor 5T040H4, ATA DISK drive
hdc: COMPAQ DVD-ROM GDR8160B, ATAPI CD/DVD-ROM drive
hdd: PIONEER DVD-RW DVR-104, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
blk: queue c047fbe4, I/O limit 4095Mb (mask 0xffffffff)
hda: 156301488 sectors (80026 MB) w/2048KiB Cache, CHS=155061/16/63, UDMA(66)
blk: queue c047fd34, I/O limit 4095Mb (mask 0xffffffff)
hdb: setmax LBA 80043264, native 78198750
hdb: 78198750 sectors (40038 MB) w/2048KiB Cache, CHS=77578/16/63, UDMA(66)
Partition check:
/dev/ide/host0/bus0/target0/lun0: p1 p2 p3
/dev/ide/host0/bus0/target1/lun0: p1 p2
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: COMPAQ Model: DVD-ROM GDR8160B Rev: 0012
Type: CD-ROM ANSI SCSI revision: 02
Vendor: PIONEER Model: DVD-RW DVR-104 Rev: 1.20
Type: CD-ROM ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Attached scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0
sr0: scsi3-mmc drive: 20x/48x cd/rw xa/form2 cdda tray
sr0: mmc-3 profile capable, current profile: 0h
Uniform CD-ROM driver Revision: 3.12
sr1: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray
sr1: mmc-3 profile capable, current profile: 8h
I have noticed that when I do a "cdrdao scanbus", the following shows up in dmesg:
sr0: mmc-3 profile: 0h
Here's my .config
CONFIG_BLK_DEV_IDECD=m
CONFIG_BLK_DEV_IDESCSI=y
CONFIG_SCSI=y
CONFIG_BLK_DEV_SR=y
CONFIG_SR_EXTRA_DEVS=4
CONFIG_CHR_DEV_SG=y
ide-cd is not loaded as a module.
/etc/init.d/hdparm is loaded and contains the following line:
/sbin/hdparm -A1 -X66 -k1 -K1 -c1 -d1 /dev/ide/hd/*u? #&> /dev/null
I can think of no reason why the two dvd drives are not touchable by cdrdao and cdrecord.
The frustrating thing is - I have the same gentoo version on my laptop, and it works fine. Also, I downloaded and tried kernel-2.5.68, and under that kernel, cdrdao scanbus gave me results. I tried knoppix, and that could find the dvd burner as well.
Any ideas? Thanx.
-bofh
ps: What's a good dvd burner software? |
|
Back to top |
|
|
echeslack Tux's lil' helper
Joined: 21 Jul 2002 Posts: 131 Location: NJ, USA
|
Posted: Thu May 01, 2003 12:21 am Post subject: |
|
|
Ok, so I don't have much experience in this area, but I believe this:
Code: |
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Attached scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0
|
Is all you need. Those three numbers are the numbers you need for the device, so to use the first one the command would look something like:
Code: |
cdrecord dev=0,0,0 {rest of command}
|
As for why it isn't showing up, I don't know. You could try a dummy action with the above command and the option -dummy. If it works then you should be fine.
Oh, and I am guessing that the mmc-3 thing is the driver. You might need that if it can't autodetect it.
-ewen |
|
Back to top |
|
|
grooveman Veteran
Joined: 24 Feb 2003 Posts: 1217
|
Posted: Thu May 01, 2003 12:30 pm Post subject: |
|
|
Hey bofh,
I had a similar problem, and have since learned that kernel 2.4.20 had a problem with the idecrom module. I cannot speak for subsequent kernel versions, but I can tell youwhat fixed the problem for me.
Get rid of ide/atapi cd-rom support from the kernel (modular or otherwise), make sure you have your scsi disk SCSI-CD-Rom support as a module in the kernel, and I would also modularize the generic scsi option as well.
Then, in you grub or lilo, instead of putting something like this: hdX=ide-scsi, put hdX=scsi.
I put sg in my modules.autoload as well as ide-scsi (you may not need to to this, however).
What this will do is dupe your system into thinking that your drives are scsi drives, and the device associated with them/it will be /dev/srX instead of /dev/scdX.
I had to change a few scripts that I wrote that point to /dev/scd0 to /dev/sr0... but it works flawlessly. I have done this on two systems now.
Hope it helps.
--Chris _________________ To look without without looking within is like looking without without looking at all. |
|
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
|
|