PDA

View Full Version : ATAPI-SCSI emulation


Erik-joix
7th May 2004, 03:37 AM
Does someone know how to enable that for a CD/DVD burner?
I tried this in grub.conf but it didnt work.
kernel /vmlinuz-2.6.5-1.351 ro root=LABEL=/ hdd=ide-scsi rhgb quiet
Also "ls -l /dev/cdrom" returns this.
lrwxrwxrwx 1 root root 8 Apr 30 01:00 /dev/cdrom -> /dev/hdd

Edit:
I tried the search function but it didn't return anything.
Edit #2:
I tried to manually load modules. When i tried cdrom and ide_scsi did i get following.
[root@localhost root]# modprobe cdrom
FATAL: Module cdrom not found.
and
[root@localhost root]# modprobe ide-scsi
FATAL: Module ide_scsi not found.

lsmod returns this
Module Size Used by
sr_mod 13348 0
snd_mixer_oss 13824 2
snd_emu10k1 71172 3
snd_rawmidi 17184 1 snd_emu10k1
snd_pcm 68872 1 snd_emu10k1
snd_timer 17156 1 snd_pcm
snd_seq_device 6152 2 snd_emu10k1,snd_rawmidi
snd_ac97_codec 50436 1 snd_emu10k1
snd_page_alloc 7940 2 snd_emu10k1,snd_pcm
snd_util_mem 3200 1 snd_emu10k1
snd_hwdep 6276 1 snd_emu10k1
snd 38372 11 snd_mixer_oss,snd_emu10k1,snd_rawmidi,snd_pcm,snd_ timer,snd_seq_device,snd_ac97_codec,snd_util_mem,s nd_hwdep
soundcore 6112 3 snd
parport_pc 19392 1
lp 8236 0
parport 29640 2 parport_pc,lp
autofs4 10624 0
sunrpc 101064 1
typhoon 70916 0
floppy 47440 0
sg 27552 0
scsi_mod 91344 2 sr_mod,sg
microcode 4768 0
dm_mod 33184 0
usblp 9476 0
uhci_hcd 23708 0
button 4504 0
battery 6924 0
asus_acpi 8472 0
ac 3340 0
ipv6 184288 8
ext3 102376 2
jbd 40216 1 ext3

and "cdrecord -scanbus" this
[root@localhost root]# cdrecord -scanbus
Cdrecord-Clone 2.01a27-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 <warly@mandrakesoft.com>.
Note: The author of cdrecord should not be bothered with problems in this version.
scsidev: 'ATA'
devname: 'ATA'
scsibus: -2 target: -2 lun: -2
Warning: Using badly designed ATAPI via /dev/hd* interface.
cdrecord: No such file or directory. Cannot open '/dev/hd*'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.

crackers
7th May 2004, 04:31 AM
I believe the ide-scsi driver was removed from 2.6 becuse Linus never liked it and thought it was "hacky and inelegant." I seem to remember there was quite a row over this between the kernel hackers and the cdrecord project...

Erik-joix
7th May 2004, 04:46 AM
So could this mean i wouldn't be able to burn DVD's since K3B and/or X-CD-Roast require this emulation or is there something else?

Darkmage
7th May 2004, 05:09 AM
what is the output of
ls -la /dev/cd*

Erik-joix
7th May 2004, 05:59 AM
lrwxrwxrwx 1 root root 8 Apr 30 01:00 /dev/cdrom -> /dev/hdd
brw-rw---- 1 root disk 15, 0 Feb 23 14:02 /dev/cdu31a
brw-rw---- 1 root disk 24, 0 Feb 23 14:02 /dev/cdu535
lrwxrwxrwx 1 root root 8 May 6 22:49 /dev/cdwriter -> /dev/hdd

Darkmage
7th May 2004, 06:35 AM
kernel /vmlinuz-2.6.5-1.351 ro root=LABEL=/ hdd=ide-scsi rhgb quiet
remove hdd=ide-scsi from grub.conf and reboot
At a shell what is the output of
cdrecord -scanbus

Trying to see if it is any different from the one you posted before.

kai_t
7th May 2004, 10:24 PM
Use cdrecord dev=ATAPI: -scanbus to list all ATAPI devices.

You should be able to specify the device using e.g. dev=ATAPI:0,0,0 or dev=/dev/hdd.

cdrdao supports non-SCSI-emulated ATAPI devices as of version 1.1.8.

Erik-joix
8th May 2004, 05:08 AM
I removed hdd=ide-scsi from grub.conf and rebooted. The output of "cdrecord -scanbus" is now this.


[root@localhost root]# cdrecord -scanbus
Cdrecord-Clone 2.01a27-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schi lling
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 <warly@mandrakesoft.com>.
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 (schily - Red Hat-scsi-linux-sg.c-1.80-RH '@(#)scsi-linux-sg.c 1.80 04/03/08 Copyright 1997 J. Schilling').
scsibus1:
1,0,0 100) *
1,1,0 101) 'PIONEER ' 'DVD-RW DVR-106D' '1.08' 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) *

Erik-joix
8th May 2004, 05:17 AM
Originally posted by kai_t
Use cdrecord dev=ATAPI: -scanbus to list all ATAPI devices.

You should be able to specify the device using e.g. dev=ATAPI:0,0,0 or dev=/dev/hdd.

cdrdao supports non-SCSI-emulated ATAPI devices as of version 1.1.8.

This is what "cdrecord dev=ATAPI: -scanbus" returns.

[root@localhost root]# cdrecord dev=ATAPI: -scanbus
Cdrecord-Clone 2.01a27-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 <warly@mandrakesoft.com>.
Note: The author of cdrecord should not be bothered with problems in this version.
scsidev: 'ATAPI:'
devname: 'ATAPI'
scsibus: -1 target: -1 lun: -1
Warning: Using ATA Packet interface.
Warning: The related libscg interface code is in pre alpha.
Warning: There may be fatal problems.
Using libscg version 'schily-0.8'.
scsibus0:
0,0,0 0) *
0,1,0 1) 'PIONEER ' 'DVD-RW DVR-106D' '1.08' 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) *

And "cdrecord dev=/dev/hdd: -scanbus" gives this.

[root@localhost root]# cdrecord dev=/dev/hdd: -scanbus
Cdrecord-Clone 2.01a27-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 <warly@mandrakesoft.com>.
Note: The author of cdrecord should not be bothered with problems in this version.
scsidev: '/dev/hdd:'
devname: '/dev/hdd'
scsibus: -1 target: -1 lun: -1
Warning: Open by 'devname' is unintentional and not supported.
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.80-RH '@(#)scsi-linux-sg.c 1.80 04/03/08 Copyright 1997 J. Schilling').
scsibus1:
1,0,0 100) *
1,1,0 101) 'PIONEER ' 'DVD-RW DVR-106D' '1.08' 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) *


cdrdao supports non-SCSI-emulated ATAPI devices as of version 1.1.8.


To burn DVD's?

Darkmage
8th May 2004, 09:49 AM
To burn a DVD I use K3b in kde but, I am not sure about gnome

trufflesdad
8th May 2004, 09:59 AM
I had exactly this problem and after a lot of editing I find I have to enter into grub
as so after the kernel call...root=LABEL=/ ide-scsi rhgb quiet

This rips a cd ok but as yet not tried a burn....

Ted

Erik-joix
8th May 2004, 04:47 PM
Originally posted by Darkmage
To burn a DVD I use K3b in kde but, I am not sure about gnome
I also tried K3B and X-CD-Roast in KDE but with the same negativ results.

Erik-joix
8th May 2004, 04:48 PM
Originally posted by trufflesdad
I had exactly this problem and after a lot of editing I find I have to enter into grub
as so after the kernel call...root=LABEL=/ ide-scsi rhgb quiet

This rips a cd ok but as yet not tried a burn....

Ted

Can you burn DVD's this way and are you sure that line is correct?

trufflesdad
8th May 2004, 05:42 PM
Before I edited the line I had the same results as you but after the edit 2 cd icons
showed up on the toolbar and I was able to rip a cd and play a cd...I would only take a minute for you to edit menu.lst reboot and find out what happens...

Erik-joix
8th May 2004, 08:14 PM
Originally posted by trufflesdad
....edit menu.lst reboot and find out what happens...
I'm not quite getting why i should do this.
Where's this "menu.lst" file and what's it for?

trufflesdad
8th May 2004, 08:59 PM
I'm not quite getting why i should do this.
Where's this "menu.lst" file and what's it for?
Grub is the bootloader and menu.lst tells
it what to load, the file is in
/boot/grub/menu.lst. If you have never
done this before do a
cp menu.lst menu.lst.good so
you have a file to goback to in case of
errors..

trufflesdad
8th May 2004, 10:19 PM
I'm not quite getting why i should do this.
Where's this "menu.lst" file and what's it for?

/boot/grub/menu.lst is the file in grub that tells grub what to load and grub is the bootloader ...
If you decide to edit this make a copy of menu.lst first so you can replace it if necessary..
ie cp menu.lst menu.lst.good..

Erik-joix
9th May 2004, 12:10 AM
This doesn't really make sense.
The file "menu.lst" seems to be a exact copy of "grub.conf".

This is how my "grub.conf" looks like.
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hdh2
# initrd /initrd-version.img
#boot=/dev/hdh1
default=1
timeout=2
splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core (2.6.5-1.356)
root (hd0,0)
kernel /vmlinuz-2.6.5-1.356 ro root=LABEL=/ ide-scsi rhgb quiet
initrd /initrd-2.6.5-1.356.img
#title Fedora Core (2.6.5-1.351)
# root (hd0,0)
# kernel /vmlinuz-2.6.5-1.351 ro root=LABEL=/ rhgb quiet
# initrd /initrd-2.6.5-1.351.img
#title Fedora Core (2.6.5-1.349)
# root (hd0,0)
# kernel /vmlinuz-2.6.5-1.349 ro root=LABEL=/ rhgb quiet
# initrd /initrd-2.6.5-1.349.img
#title Fedora Core (2.6.5-1.327)
# root (hd0,0)
# kernel /vmlinuz-2.6.5-1.327 ro root=LABEL=/ rhgb quiet
# initrd /initrd-2.6.5-1.327.img

And this is how "menu.lst" looks like.
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hdh2
# initrd /initrd-version.img
#boot=/dev/hdh1
default=1
timeout=2
splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core (2.6.5-1.356)
root (hd0,0)
kernel /vmlinuz-2.6.5-1.356 ro root=LABEL=/ ide-scsi rhgb quiet
initrd /initrd-2.6.5-1.356.img
#title Fedora Core (2.6.5-1.351)
# root (hd0,0)
# kernel /vmlinuz-2.6.5-1.351 ro root=LABEL=/ rhgb quiet
# initrd /initrd-2.6.5-1.351.img
#title Fedora Core (2.6.5-1.349)
# root (hd0,0)
# kernel /vmlinuz-2.6.5-1.349 ro root=LABEL=/ rhgb quiet
# initrd /initrd-2.6.5-1.349.img
#title Fedora Core (2.6.5-1.327)
# root (hd0,0)
# kernel /vmlinuz-2.6.5-1.327 ro root=LABEL=/ rhgb quiet
# initrd /initrd-2.6.5-1.327.img

These 2 files look pretty much alike.
Also, when i alter "grub.conf", the changes are also written to "menu.lst" and vice-versa. So to me it doesn't really make sense that it matters which one of those 2 files you alter.

BTW: Your suggestion didn't work. Thanks anyway. Looks like i have to transfer these files over to my Win32 system so i can burn them there.:(

crackers
9th May 2004, 02:59 AM
They are the same file:


$ ls -l /boot/grub/menu.lst
lrwxrwxrwx 1 root root 11 Nov 15 14:08 /boot/grub/menu.lst -> ./grub.conf

trufflesdad
9th May 2004, 08:47 AM
Originally posted by crackers
They are the same file:


$ ls -l /boot/grub/menu.lst
lrwxrwxrwx 1 root root 11 Nov 15 14:08 /boot/grub/menu.lst -> ./grub.conf


But it is the menu.lst that must be edited for the .conf file to read it...
I must say there has been quite a lot of
mails abt this and the ide-scsi.
From my readings hcd=ide-scsi never works and some require ide-scsi as I do
and others will only work if ide-scsi is removed from menu.lst...
On my Debian partition there is no mention of ide-scsi nor in Slackware
both using the same kernel..I have posted
to many newsgroups abt this but got no answers

Darkmage
9th May 2004, 11:34 AM
Here is a new version of k3b from development , give it a try http://people.redhat.com/notting/k3b-0.11.9-4.i386.rpm and feedback report if it works/don't work at https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=122096
and try it wihout ide-scsi in /etc/grub.conf

trufflesdad
9th May 2004, 11:46 AM
Originally posted by Darkmage
Here is a new version of k3b from development , give it a try http://people.redhat.com/notting/k3b-0.11.9-4.i386.rpm and feedback report if it works/don't work at https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=122096
and try it wihout ide-scsi in /etc/grub.conf

I think you will have to remove the ide-scsi from menu.lst as the link to grub.conf reads menu.lst..I do not think the k3b
will work as I believe it is a frontend to cdrecord...I always burn from the command line and I have problems until
I entered the ide-scsi in menu.lst...
I have enquired on several groups abt the 2.6.x kernel and scsi but no replies so will try a post to the kernel group and risk the flames :-)

Darkmage
9th May 2004, 12:34 PM
Originally posted by Erik-joix
I removed hdd=ide-scsi from grub.conf and rebooted. The output of "cdrecord -scanbus" is now this.


[root@localhost root]# cdrecord -scanbus
Cdrecord-Clone 2.01a27-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schi lling
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 <warly@mandrakesoft.com>.
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 (schily - Red Hat-scsi-linux-sg.c-1.80-RH '@(#)scsi-linux-sg.c 1.80 04/03/08 Copyright 1997 J. Schilling').
scsibus1:
1,0,0 100) *
1,1,0 101) 'PIONEER ' 'DVD-RW DVR-106D' '1.08' 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) *


Since cdrecord detects it a a DVD-RW device, then there is no problem with the kernel or any of the modules, so I will suggest looking at cdrecord

I think you will have to remove the ide-scsi from menu.lst as the link to grub.conf reads menu.lst..
editing any one of these files /etc/grub.conf or /boot/grub/menu.lst will change /boot/grub/grub.conf because they are linked files. So it really doesn't matter which one you edit.

Erik-joix
9th May 2004, 05:46 PM
Originally posted by Darkmage
Here is a new version of k3b from development , give it a try http://people.redhat.com/notting/k3b-0.11.9-4.i386.rpm and feedback report if it works/don't work at https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=122096
and try it wihout ide-scsi in /etc/grub.conf

That didn't do it either.

Darkmage
9th May 2004, 06:19 PM
I was just going through the Add/Remove application and I realized that there also a the dvd version of dvdrecord which allows you to burn dvd. Do you have it installed?

Erik-joix
9th May 2004, 07:48 PM
Yes i do.

Hohhot - Xingtai Travel Photos on Instagram - Hangzhou Travel Photos on Instagram -