Bug 147236 - cdrecord broken due to udev
Summary: cdrecord broken due to udev
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Other (show other bugs)
Version: Final
Hardware: Other Other
: P5 - None : Normal
Target Milestone: ---
Assignee: Vladimir Nadvornik
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-01 11:39 UTC by Stefan Dirsch
Modified: 2006-02-02 15:24 UTC (History)
2 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Dirsch 2006-02-01 11:39:10 UTC
Thanks to udev on 10.0 /dev/hdb no longer exists and therefore cdrecord no longer works. :-(

Hardware configuration:

/dev/hda harddisk
/dev/hdc BENQ DVD DD DW1620 (DVD Burner)
/dev/hdd PLEXTOR DVD-ROM PX-116A3 (DVD ROM)

# strace -f -eopen cdrecord dev=ATAPI -scanbus
Cdrecord-Clone 2.01 (i686-suse-linux) Copyright (C) 1995-2004 Jörg Schilling
Note: This version is an unofficial (modified) version
Note: and therefore may have bugs that are not present in the original.
Note: Please send bug reports or support requests to http://www.suse.de/feedback
Note: The author of cdrecord should not be bothered with problems in this version.
scsidev: 'ATAPI'
devname: 'ATAPI'
scsibus: -2 target: -2 lun: -2
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.
open("/dev/cdroms/cdrom0", O_RDONLY|O_NONBLOCK) = -1 ENOENT (No such file or directory)
open("/dev/sr0", O_RDONLY|O_NONBLOCK)   = -1 ENOENT (No such file or directory)
open("/dev/hda", O_RDONLY|O_NONBLOCK)   = 3
open("/dev/hdb", O_RDONLY|O_NONBLOCK)   = -1 ENOENT (No such file or directory)
cdrecord: No such file or directory. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.

After creating /dev/hdb 
(brw-r-----  1 root root 3, 0 2006-01-30 19:35 /dev/hdb)

# strace -f -eopen cdrecord dev=ATAPI -scanbus
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/lib/libresmgr.so.1", O_RDONLY)   = 3
open("/lib/tls/libc.so.6", O_RDONLY)    = 3
open("/etc/default/cdrecord", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/default/cdrecord", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/default/cdrecord", O_RDONLY) = -1 ENOENT (No such file or directory)
Cdrecord-Clone 2.01 (i686-suse-linux) Copyright (C) 1995-2004 Jörg Schilling
Note: This version is an unofficial (modified) version
Note: and therefore may have bugs that are not present in the original.
Note: Please send bug reports or support requests to http://www.suse.de/feedback
Note: The author of cdrecord should not be bothered with problems in this versio
n.
scsidev: 'ATAPI'
devname: 'ATAPI'
scsibus: -2 target: -2 lun: -2
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.
open("/dev/cdroms/cdrom0", O_RDONLY|O_NONBLOCK) = -1 ENOENT (No such file or dir
ectory)
open("/dev/sr0", O_RDONLY|O_NONBLOCK)   = -1 ENOENT (No such file or directory)
open("/dev/hda", O_RDONLY|O_NONBLOCK)   = 3
open("/dev/hdb", O_RDONLY|O_NONBLOCK)   = 3
open("/dev/hdc", O_RDONLY|O_NONBLOCK)   = 3
open("/dev/hdd", O_RDONLY|O_NONBLOCK)   = 4
open("/dev/hde", O_RDONLY|O_NONBLOCK)   = -1 ENOENT (No such file or directory)
Using libscg version 'schily-0.8'.
scsibus0:
        0,0,0     0) 'BENQ    ' 'DVD DD DW1620   ' 'B7K9' Removable CD-ROM
        0,1,0     1) 'PLEXTOR ' 'DVD-ROM PX-116A3' '1.00' Removable CD-ROM
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *
Comment 1 Vladimir Nadvornik 2006-02-01 15:10:38 UTC
dev=ATAPI is obsoleted.
dev=ATA works, so the impact of this bug is bnot so big.
Comment 2 Stefan Dirsch 2006-02-01 15:43:39 UTC
Thanks. Good to know this. And you get different results.

# cdrecord dev=ATA -scanbus
Cdrecord-Clone 2.01 (i686-suse-linux) Copyright (C) 1995-2004 Jörg Schilling
Note: This version is an unofficial (modified) version
Note: and therefore may have bugs that are not present in the original.
Note: Please send bug reports or support requests to http://www.suse.de/feedback
Note: The author of cdrecord should not be bothered with problems in this versio
n.
scsidev: 'ATA'
devname: 'ATA'
scsibus: -2 target: -2 lun: -2
Warning: Using badly designed ATAPI via /dev/hd* interface.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
cdrecord: Warning: using inofficial libscg transport code version (okir@suse.de-
scsi-linux-sg.c-1.83-resmgr-patch '@(#)scsi-linux-sg.c  1.83 04/05/20 Copyright 
1997 J. Schilling').
scsibus1:
^^^^^^^^^^
        1,0,0   100) 'BENQ    ' 'DVD DD DW1620   ' 'B7K9' Removable CD-ROM
        1,1,0   101) 'PLEXTOR ' 'DVD-ROM PX-116A3' '1.00' Removable CD-ROM
        ^^^^^
        1,2,0   102) *
        1,3,0   103) *
        1,4,0   104) *
        1,5,0   105) *
        1,6,0   106) *
        1,7,0   107) *
Comment 3 Vladimir Nadvornik 2006-02-02 11:15:08 UTC
The problem is that Joerg Schilling considers ide-scsi in 2.4 kernels 
the only correct interface. He is very proud of the message about "badly designed /dev/hd* interface" and starts whinning when we remove it.

I am not sure what the numbers mean, but cdrecord accepts them back correctly.
In our distributions dev=/dev/cdrecorder is the preffered way, it works without problems and scanning is quite unneeded.

I think that I will remove the message anyway, because it is too confusing
and add an description of the prefered interface into README.SUSE
Comment 4 Stefan Dirsch 2006-02-02 11:22:53 UTC
Thanks!
Comment 5 Vladimir Nadvornik 2006-02-02 15:24:44 UTC
fixed for 10.1 beta4