Unix Technical Forum

problem with my atapi device

This is a discussion on problem with my atapi device within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hello dudes, I'm invoking the power of usenet in order to help me fixing a quite annoying problem : ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 06:27 AM
myardbenoit@gmail.com
 
Posts: n/a
Default problem with my atapi device

Hello dudes,

I'm invoking the power of usenet in order to help me fixing a quite
annoying problem : i can't use burn CD with my cd driver. Yeah i know,
what a common issue, but you're kinda of my last chance..

First of all, i've to say that, Slackware is such a great distro, and
untill now, everything was just perfect.

As you probably assumed, it's an ATAPI device, and i'm running kernel
2.4.29, it's the standard kernel (called bare.i).

I gave the kernel the 'hdc=ide-scsi' option (using GRUB) and I can see
it in dmesg's output, i also know that the ide-scsi module is loaded,
but i can't burn anything..

My question is that : what can I do, what should I read ? Perahps load
an extra module ? Or is my device an exotic one that should work fine
with another well-tuned kernel ?

And for information, i read somewhere that i have to load sr_mod, but
modprobe can't find it ! (normal behavior with bare.i ?)

And before you ask, dmesg, cdrecord -scanbus and lsmod 's outputs
follow (perahps i shouldn't..?).

Hope you managed to understand me..

Thanks in advance.

Here is the output of demsg (after trying to burn something) :

Linux version 2.4.29 (root@midas) (gcc version 3.3.4) #6 Thu Jan 20
16:30:37 PST 2005
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000000bff0000 (usable)
BIOS-e820: 000000000bff0000 - 000000000bff3000 (ACPI NVS)
BIOS-e820: 000000000bff3000 - 000000000c000000 (ACPI data)
BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
191MB LOWMEM available.
On node 0 totalpages: 49136
zone(0): 4096 pages.
zone(1): 45040 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/hda1 hdc=ide-scsi
ide_setup: hdc=ide-scsi
Initializing CPU#0
Detected 731.470 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 1458.17 BogoMIPS
Memory: 190888k/196544k available (1831k kernel code, 5268k reserved,
607k data, 120k init, 0k highmem)
Dentry cache hash table entries: 32768 (order: 6, 262144 bytes)
Inode cache hash table entries: 16384 (order: 5, 131072 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 8192 (order: 3, 32768 bytes)
Page-cache hash table entries: 65536 (order: 6, 262144 bytes)
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
CPU: After generic, caps: 0383f9ff 00000000 00000000 00000000
CPU: Common caps: 0383f9ff 00000000 00000000 00000000
CPU: Intel Pentium III (Coppermine) stepping 03
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xfb150, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI: Using IRQ router VIA [1106/0596] at 00:02.0
Activating ISA DMA hang workarounds.
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
VFS: Disk quotas vdquot_6.5.1
Journalled Block Device driver loaded
pty: 512 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS
MULTIPORT SHARE_IRQ SERIAL_PCIenabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
Real Time Clock Driver v1.10f
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
RAMDISK driver initialized: 16 RAM disks of 7777K size 1024 blocksize
loop: loaded (max 8 devices)
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with
idebus=xx
VP_IDE: IDE controller at PCI slot 00:02.1
VP_IDE: chipset revision 16
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: VIA vt82c596b (rev 22) IDE UDMA66 controller on pci00:02.1
ide0: BM-DMA at 0xe000-0xe007, BIOS settings: hdaMA, hdbMA
ide1: BM-DMA at 0xe008-0xe00f, BIOS settings: hdcMA, hddio
hda: ST320413A, ATA DISK drive
hdb: WDC WD153AA-00BAA0, ATA DISK drive
blk: queue c03ad460, I/O limit 4095Mb (mask 0xffffffff)
blk: queue c03ad59c, I/O limit 4095Mb (mask 0xffffffff)
hdc: CREATIVE CD-RW RW4424E, 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: 39102336 sectors (20020 MB) w/512KiB Cache, CHS=2434/255/63,
UDMA(66)
hdb: attached ide-disk driver.
hdb: host protected area => 1
hdb: 30064608 sectors (15393 MB) w/2048KiB Cache, CHS=1871/255/63,
UDMA(66)
Partition check:
hda: hda1 hda2
hdb: hdb1
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 : 1210.400 MB/sec
32regs : 696.400 MB/sec
pIII_sse : 1475.200 MB/sec
pII_mmx : 1655.600 MB/sec
p5_mmx : 1728.000 MB/sec
raid5: using function: pIII_sse (1475.200 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.
LVM version 1.0.8(17/11/2003)
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP: Hash tables configured (established 16384 bind 32768)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 310k freed
VFS: Mounted root (ext2 filesystem).
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Freeing unused kernel memory: 120k freed
Adding Swap: 996020k swap-space (priority -1)
EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,1), internal journal
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 149M
agpgart: Detected Via Apollo Pro chipset
agpgart: AGP aperture is 64M @ 0xd0000000
hdc: attached ide-scsi driver.
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: CREATIVE Model: CD-RW RW4424E Rev: 1.12
Type: CD-ROM ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.12
PCI: Found IRQ 10 for device 00:0b.0
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
uhci.c: USB Universal Host Controller Interface driver v1.1
PCI: Found IRQ 5 for device 00:02.2
uhci.c: USB UHCI at I/O 0xe400, IRQ 5
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
hub.c: new USB device 00:02.2-1, assigned address 2
usb.c: USB device 2 (vend/prod 0xd7d/0x1600) is not claimed by any
active driver.
hub.c: new USB device 00:02.2-2, assigned address 3
usb.c: USB device 3 (vend/prod 0x1110/0x9022) is not claimed by any
active driver.
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: Model: USB DISK 20X Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 243712 512-byte hdwr sectors (125 MB)
sda: Write Protect is off
sda: sda1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.
paride: version 1.06 installed (parport)
pg: pg version 1.02, major 97
pg0: Autoprobe failed
pg: No ATAPI device detected
paride: version 1.06 installed (parport)
pg: pg version 1.02, major 97
pg0: Autoprobe failed
pg: No ATAPI device detected
paride: version 1.06 installed (parport)
pg: pg version 1.02, major 97
pg0: Autoprobe failed
pg: No ATAPI device detected
paride: version 1.06 installed (parport)
pg: pg version 1.02, major 97
pg0: Autoprobe failed
pg: No ATAPI device detected
paride: version 1.06 installed (parport)
pg: pg version 1.02, major 97
pg0: Autoprobe failed
pg: No ATAPI device detected
paride: version 1.06 installed (parport)
pg: pg version 1.02, major 97
pg0: Autoprobe failed
pg: No ATAPI device detected
paride: version 1.06 installed (parport)
pg: pg version 1.02, major 97
pg0: Autoprobe failed
pg: No ATAPI device detected
paride: version 1.06 installed (parport)
pg: pg version 1.02, major 97
pg0: Autoprobe failed
pg: No ATAPI device detected
sr0: CDROM not ready. Make sure there is a disc in the drive.
sr0: CDROM (ioctl) reports ILLEGAL REQUEST.
sr0: CDROM (ioctl) reports ILLEGAL REQUEST.
attempt to access beyond end of device
0b:00: rw=0, want=34, limit=2
isofs_read_super: bread failed, dev=0b:00, iso_blknum=16, block=16
attempt to access beyond end of device
0b:00: rw=0, want=34, limit=2
isofs_read_super: bread failed, dev=0b:00, iso_blknum=16, block=16
ISO 9660 Extensions: Microsoft Joliet Level 3
ISOFS: changing to secondary root
ISO 9660 Extensions: Microsoft Joliet Level 3
ISOFS: changing to secondary root
paride: version 1.06 installed (parport)
pg: pg version 1.02, major 97
pg0: Autoprobe failed
pg: No ATAPI device detected
paride: version 1.06 installed (parport)
pg: pg version 1.02, major 97
pg0: Autoprobe failed
pg: No ATAPI device detected
paride: version 1.06 installed (parport)
pg: pg version 1.02, major 97
pg0: Autoprobe failed
pg: No ATAPI device detected
paride: version 1.06 installed (parport)
pg: pg version 1.02, major 97
pg0: Autoprobe failed
pg: No ATAPI device detected

I'm really sorry, it was pretty long...

cdrecord -scanbus finds my device (but why is it 0,0,0 and why is my
usb bus listed ?) :

Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 JГ¶rg
Schilling
Linux sg driver version: 3.1.25
Using libscg version 'schily-0.8'.
scsibus0:
0,0,0 0) 'CREATIVE' 'CD-RW RW4424E ' '1.12' Removable
CD-ROM
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) ' ' 'USB DISK 20X ' '1.00' Removable
Disk
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) *

And now comes lsmod's output :

Module Size Used by Not tainted
snd-pcm-oss 36704 0
snd-mixer-oss 12152 2 [snd-pcm-oss]
usb-storage 62336 1
uhci 24284 0 (unused)
usbcore 58860 1 [usb-storage uhci]
snd-cmipci 16704 3
gameport 1420 0 [snd-cmipci]
snd-pcm 54504 1 [snd-pcm-oss snd-cmipci]
snd-opl3-lib 5860 0 [snd-cmipci]
snd-hwdep 4352 0 [snd-opl3-lib]
snd-timer 13412 0 [snd-pcm snd-opl3-lib]
snd-mpu401-uart 3200 0 [snd-cmipci]
snd-rawmidi 12320 0 [snd-mpu401-uart]
snd-seq-device 3812 0 [snd-opl3-lib snd-rawmidi]
snd 31268 0 [snd-pcm-oss snd-mixer-oss snd-cmipci
snd-pcm snd-opl3-lib snd-hwdep snd-timer snd-mpu401-uart snd-rawmidi
snd-seq-device]
snd-page-alloc 4712 0 [snd-mixer-oss snd-pcm snd-hwdep
snd-timer snd-rawmidi snd-seq-device snd]
soundcore 3396 4 [snd]
ide-scsi 9392 0
agpgart 45092 0 (unused)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 06:27 AM
lists@linuxgreybeards.com
 
Posts: n/a
Default Re: problem with my atapi device

As root type this command:

cdrecord -scanbus

That will show you where your CD burner is -- typically 0,0,0 if you
only have one.

Then to burn type:

cdrecord -v -eject dev=ATAPI:0,0,0 someiso.iso

That will burn the file someiso.iso. If you get a buffer overrun error
try adding speed=0. A Cd burner can't wait for data, so if the buffer
runs dry you get a coster.

You can create an iso from a directory of files with mkisofs.

NOTE: Any modern Slackware kernel does *NOT* need hd(whatever)=ide-scsi
appended to GRUB or lilo.

Dennisk

--
Phoenix Linux Users Group

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 06:27 AM
E. Charters
 
Posts: n/a
Default Re: problem with my atapi device

Just guessing but you may need to read the CD-Writing-HOWTO
very carefully where it applies to ide-scsi modules
such as sg and sr_mod and ide-scsi and their order of loading.

Particularly pre-install options in modules.conf That is
where you put the options outlined in 2.1 of the HOWTO.

If your writer is usb it may not be supported.

EC<:-}

myardbenoit@gmail.com wrote:
> Hello dudes,
>
> I'm invoking the power of usenet in order to help me fixing a quite
> annoying problem : i can't use burn CD with my cd driver. Yeah i know,
> what a common issue, but you're kinda of my last chance..
>
> First of all, i've to say that, Slackware is such a great distro, and
> untill now, everything was just perfect.
>
> As you probably assumed, it's an ATAPI device, and i'm running kernel
> 2.4.29, it's the standard kernel (called bare.i).
>
> I gave the kernel the 'hdc=ide-scsi' option (using GRUB) and I can see
> it in dmesg's output, i also know that the ide-scsi module is loaded,
> but i can't burn anything..
>
> And for information, i read somewhere that i have to load sr_mod, but
> modprobe can't find it ! (normal behavior with bare.i ?)
>
>


Kernel command line: root=/dev/hda1 hdc=ide-scsi
> ide_setup: hdc=ide-scsi
> Initializing CPU#0
> Detected 731.470 MHz processor.
> Console: colour VGA+ 80x25
> Calibrating delay loop... 1458.17 BogoMIPS
> Memory: 190888k/196544k available (1831k kernel code, 5268k reserved,
> 607k data, 120k init, 0k highmem)
> PCI: Using IRQ router VIA [1106/0596] at 00:02.0
> VP_IDE: IDE controller at PCI slot 00:02.1
> VP_IDE: chipset revision 16
> VP_IDE: not 100% native mode: will probe irqs later
> VP_IDE: VIA vt82c596b (rev 22) IDE UDMA66 controller on pci00:02.1
> ide0: BM-DMA at 0xe000-0xe007, BIOS settings: hdaMA, hdbMA
> ide1: BM-DMA at 0xe008-0xe00f, BIOS settings: hdcMA, hddio


hdc: CREATIVE CD-RW RW4424E, 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: 39102336 sectors (20020 MB) w/512KiB Cache, CHS=2434/255/63,
UDMA(66)
hdb: attached ide-disk driver.
hdb: host protected area => 1
hdb: 30064608 sectors (15393 MB) w/2048KiB Cache, CHS=1871/255/63,
UDMA(66)

> Partition check:
> hda: hda1 hda2
> hdb: hdb1


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

ah -ha!


> scsi0 : SCSI host adapter emulation for IDE ATAPI devices
> Vendor: CREATIVE Model: CD-RW RW4424E Rev: 1.12
> Type: CD-ROM ANSI SCSI revision: 02
> Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
> sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray
> Uniform CD-ROM driver Revision: 3.12
> I'm really sorry, it was pretty long...
>
> cdrecord -scanbus finds my device (but why is it 0,0,0 and why is my
> usb bus listed ?) :
>
> Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 JГ¶rg
> Schilling
> Linux sg driver version: 3.1.25
> Using libscg version 'schily-0.8'.
> scsibus0:
> 0,0,0 0) 'CREATIVE' 'CD-RW RW4424E ' '1.12' Removable
> CD-ROM
> 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) ' ' 'USB DISK 20X ' '1.00' Removable
> Disk
> 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) *
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 06:27 AM
+Alan Hicks+
 
Posts: n/a
Default Re: problem with my atapi device

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In alt.os.linux.slackware, myardbenoit@gmail.com dared to utter,
> And before you ask, dmesg, cdrecord -scanbus and lsmod 's outputs
> follow (perahps i shouldn't..?).


Well, you gave us everything but the output of cdrecord. How about
laying that on us?

> cdrecord -scanbus finds my device (but why is it 0,0,0 and why is my
> usb bus listed ?) :


It lists as 0,0,0 because you have no real scsi controller and this was
the first scsi "device" it found. USB mass storage devices also use
SCSI. SCSI's not just about hard drives anymore; it's really become a
generic hardware access layer I guess you could say. IIRC firewire uses
SCSI too?

- --
It is better to hear the rebuke of the wise,
Than for a man to hear the song of fools.
Ecclesiastes 7:5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFCHWLsvgVcFKpJf4gRAiEcAJ9ZXMzQmA8Y27uMzFDuun HyEEl0uACghOy2
DY/HsoFepj2yKFL0QYO7o30=
=xMPm
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 06:27 AM
Blumf
 
Posts: n/a
Default Re: problem with my atapi device

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

myardbenoit@gmail.com wrote:

> I'm invoking the power of usenet in order to help me fixing a quite
> annoying problem : i can't use burn CD with my cd driver. Yeah i know,
> what a common issue, but you're kinda of my last chance..


"hdc=ide-scsi" is right for the 2.4 series kernels, and your dmesg output
shows that the drive is being assigned to /dev/sr0 all right.

My first thought is, are you trying this as a normal user or root? If you
haven't tried it as root yet it may be a permission issue.

Ideally you should have something like this...

$ ls -l /dev/sg0
crw-rw---- 1 root cdrom 21, 0 1999-04-13 05:24 /dev/sg0

(/dev/sg0 is the device use to write to the CDRW, as opposed to /dev/sr0 (or
scd0) which is used to read)

And your user account should be a member of the cdrom group so that it has
rw access to the drive (or you can just chmod 666 /dev/sg0, to give every
user access).

If you have tried as root, then we'll probably need to see the commands +
error messages you got.

> And before you ask, dmesg, cdrecord -scanbus and lsmod 's outputs
> follow (perahps i shouldn't..?).


Nope, that's good, gives us the basic info to check. Only thing missing was
the command you used to try and burn a disc and it's output.

Blumf

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFCHWQ3Mid3IcxolsoRAggdAJ4yK6z346u6gOTy6HJ3Ok 5wWSkH7QCff+rM
R3mycO8KP5VTLg4OVnotkII=
=7a2z
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-20-2008, 06:28 AM
ksudjsd
 
Posts: n/a
Default Re: problem with my atapi device

Blumf wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> myardbenoit@gmail.com wrote:
>
>
>>I'm invoking the power of usenet in order to help me fixing a quite
>>annoying problem : i can't use burn CD with my cd driver. Yeah i know,
>>what a common issue, but you're kinda of my last chance..

>
>
> "hdc=ide-scsi" is right for the 2.4 series kernels, and your dmesg output
> shows that the drive is being assigned to /dev/sr0 all right.
>
> My first thought is, are you trying this as a normal user or root? If you
> haven't tried it as root yet it may be a permission issue.
>
> Ideally you should have something like this...
>
> $ ls -l /dev/sg0
> crw-rw---- 1 root cdrom 21, 0 1999-04-13 05:24 /dev/sg0
>
> (/dev/sg0 is the device use to write to the CDRW, as opposed to /dev/sr0 (or
> scd0) which is used to read)
>
> And your user account should be a member of the cdrom group so that it has
> rw access to the drive (or you can just chmod 666 /dev/sg0, to give every
> user access).
>
> If you have tried as root, then we'll probably need to see the commands +
> error messages you got.
>
>
>>And before you ask, dmesg, cdrecord -scanbus and lsmod 's outputs
>>follow (perahps i shouldn't..?).

>
>
> Nope, that's good, gives us the basic info to check. Only thing missing was
> the command you used to try and burn a disc and it's output.
>
> Blumf
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
>
> iD8DBQFCHWQ3Mid3IcxolsoRAggdAJ4yK6z346u6gOTy6HJ3Ok 5wWSkH7QCff+rM
> R3mycO8KP5VTLg4OVnotkII=
> =7a2z
> -----END PGP SIGNATURE-----



If your device is as /dev/sr0.. you can use it to burn cds as well, my
cd-writer is /dev/sr0 and i can burn cd's...
If you are sure that ide-scsi module is loaded, and that the line in
"lilo.conf" is correct (hdc=ide-scsi), check the cdrecord -scanbus, that
will show to you if you have your cd-writer installed. If so, try to use
gtoaster as your burn software, must remind you, that if you are trying
to burn cd's with a normal user, its normal that you can't burn
anything, try first with root.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-20-2008, 06:28 AM
William Hamblen
 
Posts: n/a
Default Re: problem with my atapi device

On 2005-02-24, lists@linuxgreybeards.com <lists@linuxgreybeards.com> wrote:
> NOTE: Any modern Slackware kernel does *NOT* need hd(whatever)=ide-scsi
> appended to GRUB or lilo.


Any 2.6.x kernel. myardbenoit@gmail.com is using 2.4.29, according to his
dmesg output, and so still needs hdc=ide-scsi. The kernel option doesn't
need spaces.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-20-2008, 06:28 AM
myardbenoit@gmail.com
 
Posts: n/a
Default Re: problem with my atapi device

Hello, first of all, i would like to thank you for your help, even if
it doesn't work, i've learnt a bit about devices assumed as SCSI.

E. Charters wrote :
> Just guessing but you may need to read the CD-Writing-HOWTO
> very carefully where it applies to ide-scsi modules
> such as sg and sr_mod and ide-scsi and their order of loading.


Mmh i'm probably ill, but can't find it ...

Also, there is a thing that looks very strange in dmesg's ouput, it's
the 3 lines.. doesn't it matter ?

> kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2


According to ksudjsd i tried to burn cd as root, but the result is the
same, so this time, here is the output of the command (i burn using
xcdroast, sorry but i'm not used to burn in command line) :

Calling: /usr/lib/xcdroast-0.98/bin/xcdrwrap CDRECORD dev= "0,0,0"
gracetime=2 fs=4096k -v -useinfo speed=4 -eject -multi -pad -data
"/tmp/luc-01.iso" ...

cdrecord: No write mode specified.
cdrecord: Asuming -tao mode.
cdrecord: Future versions of cdrecord may have different drive
dependent defaults.
cdrecord: Continuing in 5 seconds...
scsidev: '0,0,0'
scsibus: 0 target: 0 lun: 0
Linux sg driver version: 3.1.25
SCSI buffer size: 64512
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jцrg
Schilling
TOC Type: 1 = CD-ROM
Using libscg version 'schily-0.8'.
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 1
Vendor_info : 'CREATIVE'
Identifikation : 'CD-RW RW4424E '
Revision : '1.12'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC SWABAUDIO
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P
RAW/R96R
Drive buf size : 1904640 = 1860 KB
FIFO size : 4194304 = 4096 KB
pregap1: -1
Track 01: data 4 MB padsize: 30 KB
Total size: 5 MB (00:32.12) = 2409 sectors
Lout start: 5 MB (00:34/09) = 2409 sectors
Current Secsize: 2048
ATIP start of lead in: -150 (00:00/00)
Disk type: unknown dye (reserved id code)
Manuf. index: -1
Manufacturer: unknown (not in table)
Starting to write CD/DVD at speed 2 in real TAO mode for multi session.
Waiting for reader process to fill input buffer ...
input buffer ready.
Performing OPC...
cdrecord: Input/output error. send opc: scsi sendcmd: no error
CDB: 54 01 00 00 00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 03 00 00 00 00 0A 00 00 00 00 02 00 00 00
Sense Key: 0x3 Medium Error, Segment 0
Sense Code: 0x02 Qual 0x00 (no seek complete) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 23.591s timeout 60s
cdrecord: OPC failed.
Writing time: 24.902s
cdrecord: fifo had 64 puts and 0 gets.
cdrecord: fifo was 0 times empty and 0 times full, min fill was 100%.

Once more, thank you all

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-20-2008, 06:28 AM
Bradley Reed
 
Posts: n/a
Default Re: problem with my atapi device

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

myardbenoit@gmail.com wrote:

| Performing OPC...
| cdrecord: Input/output error. send opc: scsi sendcmd: no error
| CDB: 54 01 00 00 00 00 00 00 00 00
| status: 0x2 (CHECK CONDITION)
| Sense Bytes: 70 00 03 00 00 00 00 0A 00 00 00 00 02 00 00 00
| Sense Key: 0x3 Medium Error, Segment 0

Just a wild guess, but you haven't been trying to burn with the same
disk for all these tests have you? If you had a partial burn on the CDR
on one of the earlier attempts, it may be a coaster now that will cause
all future attempts to burn on it to fail as well.

Brad
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFCHjzqkDp4KjYna1ARApJkAJ9uh51EXTpFGuK5c6idJY a3kNQM4gCdGh0p
0UmrjtlnchW052R5pxK0Tp0=
=1NRQ
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-20-2008, 06:28 AM
Myard Benoit
 
Posts: n/a
Default Re: problem with my atapi device

Howdy

Bradley Reed wrote :
> Just a wild guess, but you haven't been trying to burn with the same
> disk for all these tests have you? If you had a partial burn on the

CDR
> on one of the earlier attempts, it may be a coaster now that will

cause
> all future attempts to burn on it to fail as well.


Ahah no i am not.. and well, if it was the case, i'd be very confused
of bthering you all..
Anyhow, no cd have benn burnt yet...

btw, i tried a bad thing.. i probed a module called 'st' (listed in
/etc/rc.d/rc.modules just after ide-scsi) and i tried to burn, it
worked this time, but there is still an error, and i can't access my
cd. cdrecord told me it couldn't fix the cd.

That's all...

Well, dudes i think i'd better to stop there now.. i'll try another
kernel and see if it's possible to probe sr_mod..

Big Thanks to all, bye.

PS : i have some invitations to gmail.. just drop me some lines..

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:55 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com