Find the answer to your Linux question:
Results 1 to 7 of 7
Hi. I have recently upgraded to kernel 2.6.8.1. Everything has worked so far except that I am no longer able to make CDs. Here is the output of eroaster when ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2004
    Posts
    10

    DVD/CD writer no longer works


    Hi. I have recently upgraded to kernel 2.6.8.1. Everything has worked so far except that I am no longer able to make CDs. Here is the output of eroaster when I erase a CD when I was still
    using kernel 2.6.8-rc3-mm1 (and probably even earlier with kernel 2.6.7)

    cdrecord: Cannot allocate memory. WARNING: Cannot do mlockall(2).
    cdrecord: WARNING: This causes a high risk for buffer underruns.
    cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler
    cdrecord: Permission denied. WARNING: Cannot set priority using setpriority().
    cdrecord: WARNING: This causes a high risk for buffer underruns.
    scsidev: 'ATAPI:0,0,0'
    devname: 'ATAPI'
    scsibus: 0 target: 0 lun: 0
    Warning: Using ATA Packet interface.
    Warning: The related Linux kernel interface code seems to be unmaintained.
    Warning: There is absolutely NO DMA, operations thus are slow.
    SCSI buffer size: 64512
    Cdrecord-Clone 2.01a34 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
    NOTE: this version of cdrecord is an inofficial (modified) release of cdrecord
    and thus may have bugs that are not present in the original version.
    Please send bug reports and support requests to <cdrtools@packages.debian.org>.
    The original author should not be bothered with problems of this version.
    TOC Type: 1 = CD-ROM
    Using libscg version 'schily-0.8'.
    atapi: 1
    Device type : Removable CD-ROM
    Version : 0
    Response Format: 2
    Capabilities :
    Vendor_info : 'SONY '
    Identifikation : 'DVD RW DW-U12A '
    Revision : '2.0d'
    Device seems to be: Generic mmc2 DVD-R/DVD-RW.
    Current: 0x000A
    Profile: 0x001B
    Profile: 0x001A
    Profile: 0x0014
    Profile: 0x0013
    Profile: 0x0011
    Profile: 0x0010
    Profile: 0x000A (current)
    Profile: 0x0009
    Profile: 0x0008
    Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
    Driver flags : MMC-3 SWABAUDIO BURNFREE
    Supported modes: TAO PACKET SAO SAO/R96R RAW/R96R
    Drive buf size : 8112896 = 7922 KB
    Drive DMA Speed: 22093 kB/s 125x CD 15x DVD
    Current Secsize: 2048
    ATIP info from disk:
    Indicated writing power: 5
    Reference speed: 2
    Is not unrestricted
    Is erasable
    ATIP start of lead in: -11745 (97:25/30)
    ATIP start of lead out: 359849 (79:59/74)
    1T speed low: 0 (reserved val 0) 1T speed high: 4
    2T speed low: 8 2T speed high: 0 (reserved val 10)
    power mult factor: 4 6
    recommended erase/write power: 5
    A1 values: 02 4C D0
    A2 values: 4A D8 5A
    Disk type: Phase change
    Manuf. index: 40
    Manufacturer: INFODISC Technology Co., Ltd.
    Starting to write CD/DVD at speed 4 in real BLANK mode for single session.
    Performing OPC...
    Blanking PMA, TOC, pregap
    Blanking time: 53.858s

    ---------------------------------------------------------

    Here's the output now, which says something that the operation is not permitted:

    cdrecord: Operation not permitted. WARNING: Cannot do mlockall(2).
    cdrecord: WARNING: This causes a high risk for buffer underruns.
    cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler
    cdrecord: Permission denied. WARNING: Cannot set priority using setpriority().
    cdrecord: WARNING: This causes a high risk for buffer underruns.
    scsidev: 'ATAPI:0,0,0'
    devname: 'ATAPI'
    scsibus: 0 target: 0 lun: 0
    Warning: Using ATA Packet interface.
    Warning: The related Linux kernel interface code seems to be unmaintained.
    Warning: There is absolutely NO DMA, operations thus are slow.
    SCSI buffer size: 64512
    Cdrecord-Clone 2.01a34 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
    NOTE: this version of cdrecord is an inofficial (modified) release of cdrecord
    and thus may have bugs that are not present in the original version.
    Please send bug reports and support requests to <cdrtools@packages.debian.org>.
    The original author should not be bothered with problems of this version.
    TOC Type: 1 = CD-ROM
    Using libscg version 'schily-0.8'.
    atapi: 1
    Device type : Removable CD-ROM
    Version : 0
    Response Format: 2
    Capabilities :
    Vendor_info : 'SONY '
    Identifikation : 'DVD RW DW-U12A '
    Revision : '2.0d'
    Device seems to be: Generic mmc2 DVD-R/DVD-RW.
    Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
    Driver flags : MMC-3 SWABAUDIO BURNFREE
    Supported modes:
    Drive buf size : 8126464 = 7936 KB
    Drive DMA Speed: 21942 kB/s 124x CD 15x DVD
    cdrecord: Operation not permitted. prevent/allow medium removal: scsi sendcmd: no error
    CDB: 1E 00 00 00 01 00
    status: 0x0 (GOOD STATUS)
    cmd finished after 0.000s timeout 40s
    cdrecord: Cannot init drive.
    Current Secsize: 2048
    ATIP info from disk:
    Indicated writing power: 5
    Reference speed: 2
    Is not unrestricted
    Is erasable
    ATIP start of lead in: -11745 (97:25/30)
    ATIP start of lead out: 359849 (79:59/74)
    1T speed low: 0 (reserved val 0) 1T speed high: 4
    2T speed low: 8 2T speed high: 0 (reserved val 10)
    power mult factor: 4 6
    recommended erase/write power: 5
    A1 values: 02 4C D0
    A2 values: 4A D8 5A
    Disk type: Phase change
    Manuf. index: 40
    Manufacturer: INFODISC Technology Co., Ltd.

    -------------------------------------------------------------------------

    I'm pretty sure I've kept the same kernel configuration in both cases.
    I have the following turned on in the ATAPI and SCSI sections:

    enhanced IDE/MFM/RLL support
    IDE/ATA-2 support
    use multi-mode as default
    IDE/ATAPI CDROM support
    IDE/ATAPI FLOPPY support
    generic/default IDE support
    PCI IDE support
    sharing PCI IDE interrupts
    generic PCI IDE
    (the rest are more or less machine specific)
    (nothing is turned on in the SCSI section)


    I don't think this will help much, but here's the output of lspci:

    0000:00:00.0 Host bridge: Intel Corp. 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02)
    0000:00:01.0 PCI bridge: Intel Corp. 82865G/PE/P PCI to AGP Controller (rev 02)
    0000:00:1d.0 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #1 (rev 02)
    0000:00:1d.1 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #2 (rev 02)
    0000:00:1d.2 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #3 (rev 02)
    0000:00:1d.3 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #4 (rev 02)
    0000:00:1d.7 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
    0000:00:1e.0 PCI bridge: Intel Corp. 82801 PCI Bridge (rev c2)
    0000:00:1f.0 ISA bridge: Intel Corp. 82801EB/ER (ICH5/ICH5R) LPC Bridge (rev 02)
    0000:00:1f.1 IDE interface: Intel Corp. 82801EB/ER (ICH5/ICH5R) Ultra ATA 100 Storage Controller (rev 02)
    0000:00:1f.3 SMBus: Intel Corp. 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
    0000:00:1f.5 Multimedia audio controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
    0000:00:1f.6 Modem: Intel Corp. 82801EB/ER (ICH5/ICH5R) AC'97 Modem Controller (rev 02)
    0000:01:00.0 VGA compatible controller: ATI Technologies Inc RV280 [Radeon 9200] (rev 01)
    0000:02:08.0 Ethernet controller: Intel Corp. 82562EZ 10/100 Ethernet Controller (rev 02)
    0000:02:0e.0 FireWire (IEEE 1394): NEC Corporation uPD72874 IEEE1394 OHCI 1.1 3-port PHY-Link Ctrlr (rev 01)


    Any ideas on what the problem is? I tried checking the change log for the kernel and couldn't find anything that might have changed since when it was working.

    Thanks for any help,
    Yale

  2. #2
    Linux Engineer
    Join Date
    Jul 2003
    Location
    Stockholm, Sweden
    Posts
    1,296
    For 2.6 kernels you dont need scsi emulation for IDE cd/dvd drives. perhaps that is part of the problem.

  3. #3
    Just Joined!
    Join Date
    Sep 2004
    Posts
    9
    bobwall:

    I get pretty much the same error as you get.
    Did you find a solution?

    I'm also using 2.6.8.1 and Debian.
    I can burn as root though, but I have cdrecord installed as suid so that would mean a normal user is executing it with root's rights?
    Still no go as a normal user:
    Code:
    cdrecord&#58; Operation not permitted. prevent/allow medium removal&#58; scsi sendcmd&#58; no error
    CDB&#58;  1E 00 00 00 01 00
    status&#58; 0x0 &#40;GOOD STATUS&#41;
    cmd finished after 0.000s timeout 40s
    cdrecord&#58; Cannot init drive.
    edit:
    I just found your thread at LinuxQuestions.org.
    Looks like I have to bide my time then...
    However, I find it strange that a suid binary doesn't do the trick...

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    Are you guys using devfs or udev? Actually...it may not matter...try adding the user to the disk group and see if you can burn then.
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  6. #5
    Just Joined!
    Join Date
    Sep 2004
    Posts
    9
    I'm already a member of disk and cdrom, which is the group used on cdrecord in Debian:
    Code:
    &#91;eek@apeekaboo eek&#93;$ ll $&#40;which cdrecord&#41;
    -rwsr-xr-x    1 root     cdrom         133 2004-09-04 14&#58;13 /usr/bin/cdrecord*
    But you gave me the idea to try with another user, which unfortunately didn't work any better... I got the same error message.

    How can I tell if I'm using udev?
    I know I'm not using devfs, since xconfig said it was obsolete so I didn't choose it.
    Does this automatically mean I'm using udev?
    I have a /dev dir with a bunch of device files in it anyway...

    edit:
    cdrecord: Warning: Running on Linux-2.6.8.1
    cdrecord: There are unsettled issues with Linux-2.5 and newer.
    cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
    cdrecord: Warning: Linux-2.6.8 introduced incompatible interface changes.
    cdrecord: Warning: SCSI transport does no longer work for suid root programs.
    cdrecord: Warning: if cdrecord fails, try to run it from a root account.
    scsidev: 'ATAPI:0,0,0'
    devname: 'ATAPI'
    scsibus: 0 target: 0 lun: 0
    Warning: Using ATA Packet interface.
    Warning: The related Linux kernel interface code seems to be unmaintained.
    Warning: There is absolutely NO DMA, operations thus are slow.

    Maybe this warning about SCSI transport says it all..?
    Although I didn't think SCSI transport was used when handling the device as ATAPI?

    edit2:
    Setting up sudo without a password for cdrecord, and adding alias cdrecord='sudo cdrecord' did the trick!

  7. #6
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    Hrm...good workaround, but you shouldn't need it. Post your /etc/udev/permissions.d/50-udev.permissions file. Let me peruse that and see if I can figure anything out.
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  8. #7
    Just Joined!
    Join Date
    Sep 2004
    Posts
    9
    sarumont: Thanx for trying to help out!

    I couldn't find that file, so I guess I'm not using udev after all...
    Perhaps I'm still using my old devfs from the 2.4 kernel I used before.
    I thought this was going to solve itself when I didn't choose devfs in 2.6.
    There's a package in Debian called udev which has this description:
    Code:
    Description&#58; /dev/ management daemon
     udev is a program which dynamically creates and removes device nodes from
     /dev/. It responds to /sbin/hotplug device events and requires a 2.6 kernel.
    Maybe this is what's missing?

    edit:
    OK, I installed udev and now there's a whole new layot in /dev.
    I also tried doing dpkg-reconfigure cdrecord which said something about 'creating the necessary device file', but I still can't burn as a normal user.
    Root can still burn though, so nothing has really changed.
    This is the output from /etc/udev/permissions.d/udev.permissions:
    Code:
    # name&#58;user&#58;group&#58;mode
    
    # character devices
    
    ptmx&#58;root&#58;tty&#58;0666
    random&#58;root&#58;root&#58;0666
    urandom&#58;root&#58;root&#58;0444
    kmem&#58;root&#58;kmem&#58;0640
    mem&#58;root&#58;kmem&#58;0640
    port&#58;root&#58;kmem&#58;0640
    null&#58;root&#58;root&#58;0666
    zero&#58;root&#58;root&#58;0666
    full&#58;root&#58;root&#58;0666
    
    misc/nvram&#58;root&#58;nvram&#58;660
    nvram&#58;root&#58;nvram&#58;660
    misc/rtc&#58;root&#58;audio&#58;0664
    rtc&#58;root&#58;audio&#58;0664
    
    tts/*&#58;root&#58;dialout&#58;0660
    bluetooth/rfcomm/*&#58;root&#58;dialout&#58;0660
    tty&#91;BCDEFHILMPRSTUVWX&#93;&#91;0-9&#93;*&#58;root&#58;dialout&#58;0660
    ttyS&#91;ACIR&#93;&#91;0-9&#93;*&#58;root&#58;dialout&#58;0660
    ttyUSB&#91;0-9&#93;*&#58;root&#58;dialout&#58;0660
    ttyACM&#91;0-9&#93;*&#58;root&#58;dialout&#58;0660
    ippp&#91;0-9&#93;*&#58;root&#58;dialout&#58;0660
    isdn&#91;0-9&#93;*&#58;root&#58;dialout&#58;0660
    isdnctrl&#91;0-9&#93;*&#58;root&#58;dialout&#58;0660
    capi&#91;0-9.&#93;*&#58;root&#58;dialout&#58;0660
    dcbri&#91;0-9&#93;*&#58;root&#58;dialout&#58;0660
    ircomm&#91;0-9&#93;*&#58;root&#58;dialout&#58;0660
    rfcomm&#91;0-9&#93;*&#58;root&#58;dialout&#58;0660
    tty&#58;root&#58;tty&#58;0666
    
    snd/*&#58;root&#58;audio&#58;0660
    sound/*&#58;root&#58;audio&#58;0660
    admmidi*&#58;root&#58;audio&#58;0660
    adsp*&#58;root&#58;audio&#58;0660
    aload*&#58;root&#58;audio&#58;0660
    amidi*&#58;root&#58;audio&#58;0660
    amixer*&#58;root&#58;audio&#58;0660
    audio*&#58;root&#58;audio&#58;0660
    dmfm*&#58;root&#58;audio&#58;0660
    dsp*&#58;root&#58;audio&#58;0660
    audio*&#58;root&#58;audio&#58;0660
    mixer*&#58;root&#58;audio&#58;0660
    music&#58;root&#58;audio&#58;0660
    sequencer*&#58;root&#58;audio&#58;0660
    
    printers/*&#58;root&#58;lp&#58;0660
    usb/lp&#91;0-9&#93;*&#58;root&#58;lp&#58;0660
    usb/legousbtower&#91;0-9&#93;*&#58;root&#58;root&#58;666
    lp&#91;0-9&#93;*&#58;root&#58;lp&#58;0660
    parport&#91;0-9&#93;*&#58;root&#58;lp&#58;0660
    irlpt&#91;0-9&#93;*&#58;root&#58;lp&#58;0660
    usblp&#91;0-9&#93;*&#58;root&#58;lp&#58;0660
    
    input/mice&#58;root&#58;root&#58;0666
    input/mouse*&#58;root&#58;root&#58;0644
    input/js*&#58;root&#58;root&#58;0644
    input/*&#58;root&#58;root&#58;0600
    js*&#58;root&#58;root&#58;0644
    djs*&#58;root&#58;root&#58;0644
    
    dri/card&#91;0-9&#93;*&#58;root&#58;video&#58;0660
    fb/*&#58;root&#58;video&#58;0660
    fb&#91;0-9&#93;*&#58;root&#58;video&#58;0660
    agpgart&#58;root&#58;video&#58;0660
    nvidia*&#58;root&#58;video&#58;0660
    
    v4l/*&#58;root&#58;video&#58;0660
    video&#91;0-9&#93;*&#58;root&#58;video&#58;0660
    radio&#91;0-9&#93;*&#58;root&#58;video&#58;0660
    vbi&#91;0-9&#93;*&#58;root&#58;video&#58;0660
    vtx&#91;0-9&#93;*&#58;root&#58;video&#58;0660
    
    # block devices
    
    floppy/*&#58;root&#58;floppy&#58;0660
    fd&#91;0-9&#93;*&#58;root&#58;floppy&#58;0660
    cdemu/*&#58;root&#58;cdrom&#58;0660
    pktcdvd&#91;0-9&#93;*&#58;root&#58;cdrom&#58;0660
    
    ram&#91;0-9&#93;*&#58;root&#58;disk&#58;0660
    raw/*&#58;root&#58;disk&#58;0660
    
    ide/*/cd&#58;root&#58;cdrom&#58;0660
    ide/*&#58;root&#58;disk&#58;0660
    hd&#91;a-s&#93;&#58;root&#58;disk&#58;0660
    hd&#91;a-s&#93;&#91;0-9&#93;*&#58;root&#58;disk&#58;0660
    
    scsi/*/cd&#58;root&#58;cdrom&#58;0660
    scsi/*&#58;root&#58;disk&#58;0660
    sd&#91;a-z&#93;&#58;root&#58;disk&#58;0660
    sd&#91;a-z&#93;&#91;0-9&#93;*&#58;root&#58;disk&#58;0660
    sd&#91;a-i&#93;&#91;a-z&#93;&#58;root&#58;disk&#58;0660
    sd&#91;a-i&#93;&#91;a-z&#93;&#91;0-9&#93;*&#58;root&#58;disk&#58;0660
    s&#91;gr&#93;&#91;0-9&#93;*&#58;root&#58;disk&#58;0660
    scd&#91;0-9&#93;*&#58;root&#58;cdrom&#58;0660
    
    dasd&#91;0-9&#93;*&#58;root&#58;disk&#58;0660
    ataraid&#91;0-9&#93;*&#58;root&#58;disk&#58;0660
    
    loop/*&#58;root&#58;disk&#58;0660
    loop&#91;0-9&#93;*&#58;root&#58;disk&#58;0660
    md/*&#58;root&#58;disk&#58;0660
    md&#91;0-9&#93;*&#58;root&#58;disk&#58;0660
    dm-*&#58;root&#58;disk&#58;0640
    
    ht&#91;0-9&#93;*&#58;root&#58;tape&#58;0660
    nht&#91;0-9&#93;*&#58;root&#58;tape&#58;0660
    pt&#91;0-9&#93;*&#58;root&#58;tape&#58;0660
    npt&#91;0-9&#93;*&#58;root&#58;tape&#58;0660
    st&#91;0-9&#93;*&#58;root&#58;tape&#58;0660
    nst&#91;0-9&#93;*&#58;root&#58;tape&#58;0660
    
    sgi_fetchop&#58;root&#58;root&#58;666
    iseries/vcd*&#58;root&#58;disk&#58;660
    iseries/vd*&#58;root&#58;disk&#58;660
    I guess these lines are the interesting ones:
    ide/*/cd:root:cdrom:0660
    ide/*:root:disk:0660
    hd[a-s]:root:disk:0660
    hd[a-s][0-9]*:root:disk:0660

    I can't anything named 'ide' in /dev...

Posting Permissions

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