cdrdao and other burners show an error - Page 2


Page 2 of 2 FirstFirst 12
Results 16 to 29 of 29

Thread: cdrdao and other burners show an error

  1. #16
    Join Date
    Feb 2003
    Location
    Arkansas, CSA
    Posts
    886
    You have to add an append line to your lilo.conf file to let the ide-scsi module know what to do. As Icarus said, this is required for the 2.4.xx kernels but is no longer required for the 2.6.x kernels.

    Fer example here is my /etc/lilo.conf entry for the 2.4.27 kernel:
    image = /boot/vmlinuz
    root = /dev/hda8
    append = "hdc=ide-scsi,hdd=ide-scsi"
    label = Linux
    read-only

    I have two burners and a USB DVD drive. Using the above append line sets up /dev/hdc (my primary CD/DVD R) as /dev/sr0, /dev/hdd (my secondary CDRW) as /dev/sr1 and my USB DVD drive as /dev/sr2

    OPPS - my bad, append line for 2.4.xx kernel should read:
    append = "hdc=ide-scsi hdd=ide-scsi"
    Don't put a comma between the two, just a space. Sorry!

    HTH
    MMYoung
    Last edited by MMYoung; 10-22-2004 at 11:37 AM.
    In the 60's people took LSD to make the world weird. Now the world is weird and people take Prozac to make it normal.

    Slackware 11.0 - Dropline GNOME 2.16.1 - kernel 2.6.18
    openSUSE 10.2 with Xgl/compiz/beryl
    Windows XP - kernel klink
    Buy Slack
    Dropline GNOME

  2. #17
    Join Date
    Mar 2004
    Posts
    282
    I did as you sad, but the same error when I try to blank cd-rw:

    ERROR: Cannot open SCSI device '/dev/cdrecorder': Cannot open '/dev/cdrecorder'
    Supported SCSI transports for this platform:

    Transport name: sg
    Transport descr.: Generic transport independent SCSI
    Transp. layer ind.:
    Target specifier: bus,target,lun
    Target example: 1,2,0
    SCSI Bus scanning: supported
    Open via UNIX device: not supported

    Transport name: pg
    Transport descr.: SCSI transport for ATAPI over Parallel Port
    Transp. layer ind.:
    Target specifier: bus,target,lun
    Target example: 1,2,0
    SCSI Bus scanning: supported
    Open via UNIX device: not supported

    Transport name: ATA
    Transport descr.: ATA Packet specific SCSI transport
    Transp. layer ind.: ATAPI:
    Target specifier: bus,target,lun
    Target example: ATAPI:1,2,0
    SCSI Bus scanning: supported
    Open via UNIX device: not supported

    Transport name: ATA
    Transport descr.: ATA Packet specific SCSI transport using sg interface
    Transp. layer ind.: ATA:
    Target specifier: bus,target,lun
    Target example: 1,2,0
    SCSI Bus scanning: supported
    Open via UNIX device: not supported
    ERROR: Please use option '--device [proto:]bus,id,lun', e.g. --device 0,6,0 or --device ATAPI:0,0,0
    ERROR: Cannot setup device /dev/cdrecorder.

    And when I try to mount the cd, I get this:

    root@Slackware:/home/kristian# mount /dev/cdrom
    mount: wrong fs type, bad option, bad superblock on /dev/cdrom,
    or too many mounted file systems
    (could this be the IDE device where you in fact use
    ide-scsi so that sr0 or sda or so is needed?)

    What is wrong? Thank you!

  3. #18
    Join Date
    Feb 2003
    Location
    Arkansas, CSA
    Posts
    886
    Originally posted by Yosuke_
    root@Slackware:/home/kristian# mount /dev/cdrom
    mount: wrong fs type, bad option, bad superblock on /dev/cdrom,
    or too many mounted file systems
    (could this be the IDE device where you in fact use
    ide-scsi so that sr0 or sda or so is needed?)

    What is wrong? Thank you!
    Not sure about the rest of it, but it might be related, but when you enabled ide-scsi the kernel no loger sees hdc nor hdd. They are now sr0 and sr1, so you will need to change any symlinks to match.

    To verify this type the following at a command prompt:
    Code:
    ls -l /dev/cdrom
    More than likely it will report that /dev/cdrom is linked to /dev/hdc (or hdd). What you will need to do is remove the /dev/cdrom symlink and recreate it to the correct device. To do this type in the following:
    Code:
    rm /dev/cdrom
    ln -s /dev/sr0 /dev/cdrom
    That *should* fix that error anyway.

    Now, for the other problem. What is the EXACT command you are using when you get all the other errors? (If you have already listed them my apologies)

    MMYoung
    In the 60's people took LSD to make the world weird. Now the world is weird and people take Prozac to make it normal.

    Slackware 11.0 - Dropline GNOME 2.16.1 - kernel 2.6.18
    openSUSE 10.2 with Xgl/compiz/beryl
    Windows XP - kernel klink
    Buy Slack
    Dropline GNOME

  4. #19
    Join Date
    Mar 2004
    Posts
    282
    root@Slackware: ls -l /dev/cdrom
    lrwxrwxrwx 1 root root 8 Oct 22 23:54 /dev/cdrom -> /dev/hdc

    Then I did this:

    rm /dev/cdrom
    ln -s /dev/sr0 /dev/cdrom

    When I try to mound dev/cdrom I get this:

    root@Slackware:/home/kristian# mount /dev/cdrom
    mount: wrong fs type, bad option, bad superblock on /dev/cdrom,
    or too many mounted file systems
    root@Slackware:/home/kristian#

    So I try to mount hdc:

    root@Slackware:/home/kristian# mount /dev/hdc
    mount: can't find /dev/hdc in /etc/fstab or /etc/mtab

    and then sr0:

    root@Slackware:/home/kristian# mount /dev/sr0
    mount: can't find /dev/sr0 in /etc/fstab or /etc/mtab

    When I try to blank a cd-rw disk I get this:

    root@Slackware:/home/kristian# cdrdao blank
    Cdrdao version 1.1.9 - (C) Andreas Mueller <andreas@daneb.de>
    SCSI interface library - (C) Joerg Schilling
    Paranoia DAE library - (C) Monty

    Check http://cdrdao.sourceforge.net/drives.html#dt for current driver tables.

    ERROR: Cannot open SCSI device '/dev/cdrecorder': Cannot open '/dev/cdrecorder'
    Supported SCSI transports for this platform:

    Transport name: sg
    Transport descr.: Generic transport independent SCSI
    Transp. layer ind.:
    Target specifier: bus,target,lun
    Target example: 1,2,0
    SCSI Bus scanning: supported
    Open via UNIX device: not supported

    Transport name: pg
    Transport descr.: SCSI transport for ATAPI over Parallel Port
    Transp. layer ind.:
    Target specifier: bus,target,lun
    Target example: 1,2,0
    SCSI Bus scanning: supported
    Open via UNIX device: not supported

    Transport name: ATA
    Transport descr.: ATA Packet specific SCSI transport
    Transp. layer ind.: ATAPI:
    Target specifier: bus,target,lun
    Target example: ATAPI:1,2,0
    SCSI Bus scanning: supported
    Open via UNIX device: not supported

    Transport name: ATA
    Transport descr.: ATA Packet specific SCSI transport using sg interface
    Transp. layer ind.: ATA:
    Target specifier: bus,target,lun
    Target example: 1,2,0
    SCSI Bus scanning: supported
    Open via UNIX device: not supported
    ERROR: Please use option '--device [proto:]bus,id,lun', e.g. --device 0,6,0 or --device ATAPI:0,0,0
    ERROR: Cannot setup device /dev/cdrecorder

    Thank you!

  5. #20
    Join Date
    Feb 2003
    Location
    Arkansas, CSA
    Posts
    886
    OK, let's try a few things. I've booted to my 2.4.27 kernel just so we are both playing on the same field.

    First off, run the following:
    Code:
    dmesg | grep sr
    When I do that I get the following output:

    mmyoung@mypc~$ dmesg | grep sr
    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: 40x/40x writer cd/rw xa/form2 cdda tray
    sr1: scsi3-mmc drive: 40x/52x writer cd/rw xa/form2 cdda tray
    Attached scsi CD-ROM sr2 at scsi1, channel 0, id 0, lun 0
    sr2: scsi-1 drive

    So now I know that I have the following CD Drives:
    /dev/sr0 (which is actually my primary IDE DVD-CD/RW)
    /dev/sr1 (which is actually my seconday IDE CD/RW)
    /dev/sr2 (which is my USB DVD)

    With that information I can now put a cd rw in my secondary CD/RW and blank it with the following command issued as user:
    Code:
    mmyoung@mypc~$ cdrdao blank --device 0,1,0 --driver generic-mmc --speed 12 --blank-mode full --eject
    Explanation:
    --device 0,1,0
    channel, id, and lun from dmesg output. You have to specify the device to be used.
    --driver generic-mmc
    specifies the driver that is to be used. For the most part you can use generic-mmc for most all burners. There are a few that you have to specify by name but they are listed. BTW, as root you do not have to use the --driver option (least I didn't have to).
    --speed 12
    My disk were capable of being written to at 12x speed. You do not have to specify this as cdrdao will adjust the speed to the max capable of your disk (I think).
    --blank mode full
    Complete blanking, similar to a full format on a floppy. You can also specifiy minimal and it will only overwrite the partition table, again similar to a "quick" format for a floppy.
    --eject
    ejects the disk when the operation is finished.

    HTH,
    MMYoung
    In the 60's people took LSD to make the world weird. Now the world is weird and people take Prozac to make it normal.

    Slackware 11.0 - Dropline GNOME 2.16.1 - kernel 2.6.18
    openSUSE 10.2 with Xgl/compiz/beryl
    Windows XP - kernel klink
    Buy Slack
    Dropline GNOME

  6. #21
    Join Date
    Mar 2004
    Posts
    282
    Thank you very much!
    Well, I try to type dmesg | grep sr in console, but nothing happened! When I type just dmesg I get this:

    VP_IDE: VIA vt82c686b (rev 40) IDE UDMA100 controller on pci00:07.1
    ide0: BM-DMA at 0xd000-0xd007, BIOS settings: hdaMA, hdbio
    ide1: BM-DMA at 0xd008-0xd00f, BIOS settings: hdcMA, hddio
    hda: Maxtor 4D040H2, ATA DISK drive
    blk: queue c03a9d80, I/O limit 4095Mb (mask 0xffffffff)
    hdc: HL-DT-ST GCE-8525B, ATAPI CD/DVD-ROM drive
    ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
    ide1 at 0x170-0x177,0x376 on irq 15
    hda: attached ide-disk driver.
    hda: host protected area => 1
    hda: 80022600 sectors (40972 MB) w/2048KiB Cache, CHS=4981/255/63, UDMA(100)
    hdc: attached ide-cdrom driver.
    hdc: ATAPI 52X CD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
    Uniform CD-ROM driver Revision: 3.12
    Partition check:
    hda: hda1 hda2 hda3 hda4
    SCSI subsystem driver Revision: 1.00
    kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
    kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
    kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
    md: linear personality registered as nr 1
    md: raid0 personality registered as nr 2
    md: raid1 personality registered as nr 3
    md: raid5 personality registered as nr 4
    raid5: measuring checksumming speed
    8regs : 1290.400 MB/sec
    32regs : 738.800 MB/sec
    pII_mmx : 2107.200 MB/sec
    p5_mmx : 2688.400 MB/sec
    raid5: using function: p5_mmx (2688.400 MB/sec)
    md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
    md: Autodetecting RAID arrays.
    md: autorun ...
    md: ... autorun DONE.

    When I did as you sad, I mean that long command I get this:

    root@Slackware:/home/Kristian# cdrdao blank --device 0,1,0 --driver generic-mmc --speed 12 --blank-mode full --eject
    Cdrdao version 1.1.7 - (C) Andreas Mueller <andreas@daneb.de>
    SCSI interface library - (C) Joerg Schilling
    Paranoia DAE library - (C) Monty

    Check http://cdrdao.sourceforge.net/drives.html#dt for current driver tables.

    ERROR: Cannot open SCSI device '0,1,0': Cannot open '/dev/pg1'
    ERROR: Please use option '--device bus,id,lun', e.g. --device 0,6,0
    ERROR: Cannot setup device 0,1,0.
    root@Slackware:/home/Kristian#

    Thank you very much for helping me!!! Am I the only one who has this cind of problems with cd-writer? Thank you!

  7. #22
    Join Date
    Feb 2003
    Location
    Arkansas, CSA
    Posts
    886
    hdc: attached ide-cdrom driver.
    hdc: ATAPI 52X CD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
    Uniform CD-ROM driver Revision: 3.12
    Here's what my dmesg output shows for the same input(s):
    hdc: SONY DVD RW DRU-530A, ATAPI CD/DVD-ROM drive
    hdd: HL-DT-ST GCE-8523B, ATAPI CD/DVD-ROM drive
    ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
    ide1 at 0x170-0x177,0x376 on irq 15
    Looks like you only have one CDR/RW. So you won't need BOTH of the ide-scsi in your append line, you'll only need the one that says hdc=ide-scsi. I have two CDR/RW so I need both of the ide-scsi statements in my append line.
    SCSI subsystem driver Revision: 1.00
    kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
    kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
    kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
    I get the same error messages, not a problem, unless of course you actually do have a scsi adapter .

    What you are missing (or at least it's not in your post) is the following:
    hdc: attached ide-scsi driver.
    hdd: attached ide-scsi driver.
    scsi0 : SCSI host adapter emulation for IDE ATAPI devices
    Vendor: SONY Model: DVD RW DRU-530A Rev: 2.1a
    Type: CD-ROM ANSI SCSI revision: 02
    Vendor: HL-DT-ST Model: CD-RW GCE-8523B Rev: 1.04
    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: 40x/40x writer cd/rw xa/form2 cdda tray
    Uniform CD-ROM driver Revision: 3.12
    sr1: scsi3-mmc drive: 40x/52x writer cd/rw xa/form2 cdda tray
    This is where the append line initializes the ide-scsi emulation for your CD drives. If that isn't in you dmesg output then it ain't happening.

    Since you only have one CD, remove the hdd=ide-scsi statement from the append line of you lilo.conf, after you do that be sure and run /sbin/lilo (be sure and do this as root) so that your changes are "configurated" and reboot. Then run the dmesg | grep sr again to see what happens.

    BTW, since ide-scsi obviously isn't being initialized you wouldn't be able to use the command that I gave you to do the blanking. Even if it did initialize properly you couldn't use the 0,1,0 for the device as you won't have a 0,1,0. You should use 0,0,0 instead.

    HTH,
    MMYoung
    In the 60's people took LSD to make the world weird. Now the world is weird and people take Prozac to make it normal.

    Slackware 11.0 - Dropline GNOME 2.16.1 - kernel 2.6.18
    openSUSE 10.2 with Xgl/compiz/beryl
    Windows XP - kernel klink
    Buy Slack
    Dropline GNOME

  8. #23
    Join Date
    Mar 2004
    Posts
    282
    Hi! I think there is a litle progress!!!

    root@Slackware:/home/Kristian# dmesg | grep sr
    Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
    sr0: scsi3-mmc drive: 15x/52x writer cd/rw xa/form2 cdda tray
    root@Slackware:/home/Kristian# cdrdao blank --device 0,0,0 --driver generic-mmc --speed 12 --blank-mode full --eject
    Cdrdao version 1.1.7 - (C) Andreas Mueller <andreas@daneb.de>
    SCSI interface library - (C) Joerg Schilling
    Paranoia DAE library - (C) Monty

    Check http://cdrdao.sourceforge.net/drives.html#dt for current driver tables.

    Using libscg version 'andreas-0.5-UNIXWARE_Patch'

    0,0,0: HL-DT-ST CD-RW GCE-8525B Rev: 1.03
    Using driver: Generic SCSI-3/MMC - Version 2.0 (options 0x0000)

    ?: Input/output error. : scsi sendcmd: no error
    CDB: BB 00 FF FF 08 4C 00 00 00 00 00 00
    status: 0x2 (CHECK CONDITION)
    Sense Bytes: 70 00 02 00 00 00 00 0A 00 00 00 00 04 08 00 80
    Sense Key: 0x2 Not Ready, Segment 0
    Sense Code: 0x04 Qual 0x08 (logical unit not ready, long write in progress) Fru 0x0
    Sense flags: Blk 0 (not valid) operation 0% done
    cmd finished after 0.000s timeout 20s
    ERROR: Cannot set cd speed.
    ERROR: Blanking speed 12 not supported by device.
    root@Slackware:/home/Kristian#
    When I remove --Speed 12 then:

    root@Slackware:/home/Kristian# cdrdao blank --device 0,0,0 --driver generic-mmc --blank-mode full --eject
    Cdrdao version 1.1.7 - (C) Andreas Mueller <andreas@daneb.de>
    SCSI interface library - (C) Joerg Schilling
    Paranoia DAE library - (C) Monty

    Check http://cdrdao.sourceforge.net/drives.html#dt for current driver tables.

    Using libscg version 'andreas-0.5-UNIXWARE_Patch'

    0,0,0: HL-DT-ST CD-RW GCE-8525B Rev: 1.03
    Using driver: Generic SCSI-3/MMC - Version 2.0 (options 0x0000)

    Blanking disk...
    ?: Input/output error. : scsi sendcmd: no error
    CDB: A1 10 00 00 00 00 00 00 00 00 00 00
    status: 0x2 (CHECK CONDITION)
    Sense Bytes: 70 00 02 00 00 00 00 0A 00 00 00 00 04 08 00 80
    Sense Key: 0x2 Not Ready, Segment 0
    Sense Code: 0x04 Qual 0x08 (logical unit not ready, long write in progress) Fru 0x0
    Sense flags: Blk 0 (not valid) operation 0% done
    cmd finished after 0.000s timeout 20s
    ERROR: Cannot erase CD-RW.
    ERROR: Blanking failed.
    root@Slackware:/home/Kristian#
    Thank you very much!!!

  9. #24
    Join Date
    Feb 2003
    Location
    Arkansas, CSA
    Posts
    886
    root@Slackware:/home/Kristian#
    If you are logged in as root, try it without the --driver generic-mmc and see what happens. The only time I had to use the --driver switch was when I was logged in as a regular user. When logged in as root I didn't need it.

    Later,
    MMYoung
    In the 60's people took LSD to make the world weird. Now the world is weird and people take Prozac to make it normal.

    Slackware 11.0 - Dropline GNOME 2.16.1 - kernel 2.6.18
    openSUSE 10.2 with Xgl/compiz/beryl
    Windows XP - kernel klink
    Buy Slack
    Dropline GNOME

  10. #25
    Join Date
    Mar 2004
    Posts
    282
    Kristian@Slackware:~$ cdrdao blank --device 0,0,0 --blank-mode full --eject
    Cdrdao version 1.1.7 - (C) Andreas Mueller <andreas@daneb.de>
    SCSI interface library - (C) Joerg Schilling
    Paranoia DAE library - (C) Monty

    Check http://cdrdao.sourceforge.net/drives.html#dt for current driver tables.

    ERROR: Cannot open SCSI device '0,0,0': Cannot open '/dev/sg0'
    ERROR: Please use option '--device bus,id,lun', e.g. --device 0,6,0
    ERROR: Cannot setup device 0,0,0.
    Kristian@Slackware:~$ cdrdao blank --device 0,6,0 --blank-mode full --eject
    Cdrdao version 1.1.7 - (C) Andreas Mueller <andreas@daneb.de>
    SCSI interface library - (C) Joerg Schilling
    Paranoia DAE library - (C) Monty

    Check http://cdrdao.sourceforge.net/drives.html#dt for current driver tables.

    ERROR: Cannot open SCSI device '0,6,0': Cannot open '/dev/sg0'
    ERROR: Please use option '--device bus,id,lun', e.g. --device 0,6,0
    ERROR: Cannot setup device 0,6,0.
    Kristian@Slackware:~$ cdrdao blank --device 0,6,0 --blank-mode full --eject

    Kristian@Slackware:~$ dmesg | grep sr
    Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
    sr0: scsi3-mmc drive: 40x/52x writer cd/rw xa/form2 cdda tray

    This doesn't work!! Thank you!

  11. #26
    Join Date
    Mar 2004
    Posts
    282
    OK, is there another way to get it runing? For example to update kernel, is it complicated? Thank you!

  12. #27
    Join Date
    Feb 2003
    Location
    Arkansas, CSA
    Posts
    886
    I just happened to notice that you are using cdrdao version 1.1.7 you might want to upgrade to the latest version before you try updating the kernel. The latest version, from the Slackware "current" tree is 1.1.9 (that's the one that I'm using). Might not fix the problem but then it won't hurt to try that first.

    Reason I suggest doing that is the command and switches you are using works on my PC with the 2.4.27 kernel and so *should* work on yours as well. The only thing that I can see different is the versions of cdrdao that we are using.

    Later,
    MMYoung
    In the 60's people took LSD to make the world weird. Now the world is weird and people take Prozac to make it normal.

    Slackware 11.0 - Dropline GNOME 2.16.1 - kernel 2.6.18
    openSUSE 10.2 with Xgl/compiz/beryl
    Windows XP - kernel klink
    Buy Slack
    Dropline GNOME

  13. #28
    Join Date
    Mar 2004
    Posts
    282
    Thank you very much!!!
    Without you I won't be runing cd-rw bow!

    I try'd this and it works:
    cdrdao blank --device 0,0,0 --blank-mode full --eject

    when I try --device /dev/hdc i get this:
    bash-2.05b# cdrdao blank --device /dev/hdc
    cdrdao: Invalid argument. Cannot set SG_SET_TIMEOUT.

    But it works!!! Thank you sooooooooooo much!!!! I'm so happy right now!!! Thanx

  14. #29
    Join Date
    Feb 2003
    Location
    Arkansas, CSA
    Posts
    886
    Well, glad to have helped out.

    Don't know if you like "gui" type stuff (some do some don't) but K3b works really well for me. It is a clone of Easy CD Creator/Nero Burning ROM for KDE. You can get it from LinuxPackages so that all you have to do is install it using installpkg.

    I prefer to download the source from K3b and compile it myself. I use checkinstall (located in the /extra directory on the Slackware CD's) to then create a Slackware package of my compiled source files.

    Also, you might want to consider upgrading to a 2.6.x kernel (I suggest 2.6.7 as there are some problems for some people with cdrecord/cdrdao with anything after 2.6.7). There are several HOWTO's on JustLinux on how to download, compile and install a new kernel.

    If you have any questions, feel free to PM me and maybe I can help you out.

    Later,
    MMYoung
    In the 60's people took LSD to make the world weird. Now the world is weird and people take Prozac to make it normal.

    Slackware 11.0 - Dropline GNOME 2.16.1 - kernel 2.6.18
    openSUSE 10.2 with Xgl/compiz/beryl
    Windows XP - kernel klink
    Buy Slack
    Dropline GNOME

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •