I can't get IDE SCSI emulation working under
CentOS4 kernel 2.6.9-5.0.5.EL on a Dell Dimension
2400 with a Sony DVD+RW drive I installed. Worked
fine when Fedora Core 1 was running on this box.
Just re-built the system with CentOS4.
All I had to do for Fedora Core 1 was append
these lines to '/etc/rc.d/rc.sysinit':
insmod scsi_mod
insmod ide-scsi
With CentOS4 the 'insmod' commands fail with
insmod: can't read 'scsi_mod': No such file or directory
insmod: can't read 'ide-scsi': No such file or directory
Ran 'depmod' and nothing happened to /etc/modprobe.conf,
no improvement for 'insmod'.
Was able to run
modprobe scsi_mod
modprobe ide-scsi
modproge sg
then
cd /dev
MAKEDEV sg
But the /dev/sg? devices still don't work!!!!
'lsmod' produces:
# lsmod
Module Size Used by
sg 33377 0
ide_scsi 16713 0
scsi_mod 121165 2 sg,ide_scsi
vfat 14529 0
fat 44257 1 vfat
loop 15817 0
nls_utf8 2113 0
udf 82117 0
nfs 218309 7
lockd 63977 2 nfs
md5 4033 1
ipv6 232833 10
sunrpc 157093 10 nfs,lockd
button 6481 0
battery 8901 0
ac 4805 0
b44 22853 0
mii 4673 1 b44
dm_snapshot 17029 0
dm_zero 2369 0
dm_mirror 22957 2
ext3 116809 4
jbd 71257 1 ext3
dm_mod 54741 7 dm_snapshot,dm_zero,dm_mirror
'cdrecord -scanbus' produces:
# cdrecord -scanbus
Cdrecord-Clone 2.01-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
Note: This version is an unofficial (modified) version with DVD support
Note: and therefore may have bugs that are not present in the original.
Note: Please send bug reports or support requests to http://bugzilla.redhat.com/bugzilla
Note: The author of cdrecord should not be bothered with problems in this version.
scsidev: 'ATA'
devname: 'ATA'
scsibus: -2 target: -2 lun: -2
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
cdrecord: Warning: using inofficial libscg transport code version (schily - Red Hat-scsi-linux-sg.c-1.83-RH '@(#)scsi-linux-sg.c 1.83 04/05/20 Copyright
1997 J. Schilling').
scsibus1:
1,0,0 100) 'SONY ' 'DVD RW DRU-540A ' '1.0a' Removable CD-ROM
1,1,0 101) 'SONY ' 'CD-RW CRX216E ' 'PD01' 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) *
but 'cdrecord' produces:
# cdrecord -v -dao dev=1,0,0 iso_image
Cdrecord-Clone 2.01-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
Note: This version is an unofficial (modified) version with DVD support
Note: and therefore may have bugs that are not present in the original.
Note: Please send bug reports or support requests to http://bugzilla.redhat.com/bugzilla
Note: The author of cdrecord should not be bothered with problems in this version.
TOC Type: 1 = CD-ROM
scsidev: '1,0,0'
scsibus: 1 target: 0 lun: 0
cdrecord: Success. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
*and* the orignial 'cdrecord-prodvd produces:
# /opt/schily/bin/cdrecord-prodvd -scanbus
Cdrecord-ProDVD-Clone 2.01b31 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
Unlocked features: ProDVD Clone
Limited features:
This copy of cdrecord is licensed for: private/research/educational_non-commercial_use
/opt/schily/bin/cdrecord-prodvd: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI driver.
/opt/schily/bin/cdrecord-prodvd: For possible targets try 'cdrecord -scanbus'.
/opt/schily/bin/cdrecord-prodvd: For possible transport specifiers try 'cdrecord dev=help'.
AAAggghhh!!!!
module 'ide_scsi' doesn't work, can't burn with 'cdrecord'
Re: module 'ide_scsi' doesn't work, can't burn with 'cdrecord'
Figured it out. Had to add
append="hdc=ide-scsi hdd=ide-scsi"
to my 'lilo.conf' file (don't like grub).
Also need just the 'modprobe sg' appended
to 'rc.sysinit' file to allow pure Schilly
'cdrecord-prodvd' to work. CentOS4
'cdrecord' works against the '/dev/scd?' devices
that are created at boot, but the Schilly
version want '/dev/sg?' devices.
append="hdc=ide-scsi hdd=ide-scsi"
to my 'lilo.conf' file (don't like grub).
Also need just the 'modprobe sg' appended
to 'rc.sysinit' file to allow pure Schilly
'cdrecord-prodvd' to work. CentOS4
'cdrecord' works against the '/dev/scd?' devices
that are created at boot, but the Schilly
version want '/dev/sg?' devices.
Re: module 'ide_scsi' doesn't work, can't burn with 'cdrecord'
Starting with 2.6 kernel, you don't need SCSI emulation to write CDs/DVDs anymore.
To write to a IDE drive, you need to put a flag on cdrecord. I don't remember what are, but searching with Google I found this:
http://lists.debian.org/debian-user/2004/02/msg00102.html
With CentOS4, you have graphical tools for easy write CD/DVD (drag&drop, auto-blank CD/DVD, etc.). With Gnome comes Nautilus-cd-burner for data CD/DVD, or if you want more features (CD Music) you can install Graveman, here is the RPM file for CentOS4:
http://dag.wieers.com/packages/graveman/graveman-0.3.9-1.2.el4.rf.i386.rpm
To write to a IDE drive, you need to put a flag on cdrecord. I don't remember what are, but searching with Google I found this:
http://lists.debian.org/debian-user/2004/02/msg00102.html
With CentOS4, you have graphical tools for easy write CD/DVD (drag&drop, auto-blank CD/DVD, etc.). With Gnome comes Nautilus-cd-burner for data CD/DVD, or if you want more features (CD Music) you can install Graveman, here is the RPM file for CentOS4:
http://dag.wieers.com/packages/graveman/graveman-0.3.9-1.2.el4.rf.i386.rpm
module 'ide_scsi' doesn't work, can't burn with 'cdrecord'
This has been driving me absolutely crazy too !
Try the following
# su -
Discover devices to find your n,n,n
# cdrecord dev=ATAPI -scanbus
Put a pre-record CD in to test reading (replace 1,0,0 with your n,n,n)
# cdrecord dev=ATAPI:1,0,0 -v -toc | less
Put a CDRW in to test rewriting erase (replace 1,0,0 with your n,n,n)
WARNING this should ERASE your CD/RW
# cdrecord dev=ATAPI:1,0,0 blank=fast
Put a CDR or CDRW in to test burning (replace 1,0,0 with your n,n,n)
# cdrecord dev=ATAPI:1,0,0 -v -data KNOPPIX_V3.8.2-2005-05-05-EN.iso
References and massive thanks to the following
=====================================
http://lists.debian.org/debian-user/2004/01/msg03789.html
http://www.linuxquestions.org/questions/history/318827
http://archives.mandrakelinux.com/cooker/2004-02/msg06100.php
http://www.experts-exchange.com/Operating_Systems/Linux/Q_21266424.html
Outputs
cdrecord -dev=ATAPI -scanbus
===============
Cdrecord-Clone 2.01-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
Note: This version is an unofficial (modified) version with DVD support
Note: and therefore may have bugs that are not present in the original.
Note: Please send bug reports or support requests to http://bugzilla.redhat.com/bugzilla
Note: The author of cdrecord should not be bothered with problems in this version.
scsidev: 'ATAPI'
devname: 'ATAPI'
scsibus: -2 target: -2 lun: -2
Use of ATA is preferred over ATAPI.
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.
Using libscg version 'schily-0.8'.
scsibus0:
0,0,0 0) '' '' '' NON CCS Disk
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) *
scsibus1:
1,0,0 100) 'LITE-ON ' 'DVDRW LDW-451S ' 'GSBC' Removable CD-ROM
1,1,0 101) *
1,2,0 102) *
1,3,0 103) *
1,4,0 104) *
1,5,0 105) *
1,6,0 106) *
1,7,0 107) *
cdrecord dev=ATAPI:1,0,0 -v -toc
===========================
Cdrecord-Clone 2.01-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
Note: This version is an unofficial (modified) version with DVD support
Note: and therefore may have bugs that are not present in the original.
Note: Please send bug reports or support requests to http://bugzilla.redhat.com/bugzilla
Note: The author of cdrecord should not be bothered with problems in this version.
TOC Type: 1 = CD-ROM
scsidev: 'ATAPI:1,0,0'
devname: 'ATAPI'
scsibus: 1 target: 0 lun: 0
Use of ATA is preferred over ATAPI.
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.
Using libscg version 'schily-0.8'.
SCSI buffer size: 64512
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 2
Capabilities :
Vendor_info : 'LITE-ON '
Identifikation : 'DVDRW LDW-451S '
Revision : 'GSBC'
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 FORCESPEED
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 1895168 = 1850 KB
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 6
Reference speed: 0
Is not unrestricted
Is erasable
Disk sub type: Ultra High speed Rewritable media (2)
ATIP start of lead in: -11744 (97:25/31)
ATIP start of lead out: 359848 (79:59/73)
1T speed low: 16 1T speed high: 16
2T speed low: 8 2T speed high: 24
power mult factor: 1 4
recommended erase/write power: 3
A1 values: 66 18 B8
A2 values: 38 80 00
A3 values: 04 CF 88
Disk type: Phase change
Manuf. index: 40
Manufacturer: INFODISC Technology Co., Ltd.
first: 1 last 1
track: 1 lba: 0 ( 0) 00:02:00 adr: 1 control: 4 mode: 1
track:lout lba: 355124 ( 1420496) 78:56:74 adr: 1 control: 4 mode: -1
Try the following
# su -
Discover devices to find your n,n,n
# cdrecord dev=ATAPI -scanbus
Put a pre-record CD in to test reading (replace 1,0,0 with your n,n,n)
# cdrecord dev=ATAPI:1,0,0 -v -toc | less
Put a CDRW in to test rewriting erase (replace 1,0,0 with your n,n,n)
WARNING this should ERASE your CD/RW
# cdrecord dev=ATAPI:1,0,0 blank=fast
Put a CDR or CDRW in to test burning (replace 1,0,0 with your n,n,n)
# cdrecord dev=ATAPI:1,0,0 -v -data KNOPPIX_V3.8.2-2005-05-05-EN.iso
References and massive thanks to the following
=====================================
http://lists.debian.org/debian-user/2004/01/msg03789.html
http://www.linuxquestions.org/questions/history/318827
http://archives.mandrakelinux.com/cooker/2004-02/msg06100.php
http://www.experts-exchange.com/Operating_Systems/Linux/Q_21266424.html
Outputs
cdrecord -dev=ATAPI -scanbus
===============
Cdrecord-Clone 2.01-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
Note: This version is an unofficial (modified) version with DVD support
Note: and therefore may have bugs that are not present in the original.
Note: Please send bug reports or support requests to http://bugzilla.redhat.com/bugzilla
Note: The author of cdrecord should not be bothered with problems in this version.
scsidev: 'ATAPI'
devname: 'ATAPI'
scsibus: -2 target: -2 lun: -2
Use of ATA is preferred over ATAPI.
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.
Using libscg version 'schily-0.8'.
scsibus0:
0,0,0 0) '' '' '' NON CCS Disk
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) *
scsibus1:
1,0,0 100) 'LITE-ON ' 'DVDRW LDW-451S ' 'GSBC' Removable CD-ROM
1,1,0 101) *
1,2,0 102) *
1,3,0 103) *
1,4,0 104) *
1,5,0 105) *
1,6,0 106) *
1,7,0 107) *
cdrecord dev=ATAPI:1,0,0 -v -toc
===========================
Cdrecord-Clone 2.01-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
Note: This version is an unofficial (modified) version with DVD support
Note: and therefore may have bugs that are not present in the original.
Note: Please send bug reports or support requests to http://bugzilla.redhat.com/bugzilla
Note: The author of cdrecord should not be bothered with problems in this version.
TOC Type: 1 = CD-ROM
scsidev: 'ATAPI:1,0,0'
devname: 'ATAPI'
scsibus: 1 target: 0 lun: 0
Use of ATA is preferred over ATAPI.
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.
Using libscg version 'schily-0.8'.
SCSI buffer size: 64512
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 2
Capabilities :
Vendor_info : 'LITE-ON '
Identifikation : 'DVDRW LDW-451S '
Revision : 'GSBC'
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 FORCESPEED
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 1895168 = 1850 KB
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 6
Reference speed: 0
Is not unrestricted
Is erasable
Disk sub type: Ultra High speed Rewritable media (2)
ATIP start of lead in: -11744 (97:25/31)
ATIP start of lead out: 359848 (79:59/73)
1T speed low: 16 1T speed high: 16
2T speed low: 8 2T speed high: 24
power mult factor: 1 4
recommended erase/write power: 3
A1 values: 66 18 B8
A2 values: 38 80 00
A3 values: 04 CF 88
Disk type: Phase change
Manuf. index: 40
Manufacturer: INFODISC Technology Co., Ltd.
first: 1 last 1
track: 1 lba: 0 ( 0) 00:02:00 adr: 1 control: 4 mode: 1
track:lout lba: 355124 ( 1420496) 78:56:74 adr: 1 control: 4 mode: -1