Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems setting up CD burner
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
H-Dragon
Guru
Guru


Joined: 22 Oct 2002
Posts: 547

PostPosted: Sat Nov 09, 2002 1:40 pm    Post subject: Reply with quote

followed your steps.... but:
Code:

sh-2.05a$ su   
Password:
bash-2.05a# modprobe sg
bash-2.05a# cdrecord -scanbus
Cdrecord 1.11a39 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
cdrecord: No such file or directory. Cannot open '/dev/pg*'. 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'.
bash-2.05a#

guess it didn't work out...

i emerged cdrtools shortly before ..... i have the kernel as you told me....
_________________
WEBSITE
Do not meddle with the affairs of Dragons, for you are crunchy and tasty with ketchup!
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sat Nov 09, 2002 1:48 pm    Post subject: Reply with quote

This post originally appeared in Kernel SCSI emulation for CD burning - the truth. Please don't post support questions to threads in Documentation, Tips and Tricks.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
H-Dragon
Guru
Guru


Joined: 22 Oct 2002
Posts: 547

PostPosted: Sat Nov 09, 2002 1:53 pm    Post subject: sorry Reply with quote

sorry... really..

dmesg :
Code:

hda: IBM-DTLA-305040, ATA DISK drive
hdc: CR-48XCTE, ATAPI CD/DVD-ROM drive
hdd: AOpen 12X DVD-ROM/ASH 04242001, ATAPI CD/DVD-ROM drive

hda: 80418240 sectors (41174 MB) w/380KiB Cache, CHS=5005/255/63, UDMA(100)
hdc: ATAPI 48X CD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
hdd: ATAPI 40X DVD-ROM drive, 512kB Cache, UDMA(33)


anyone got an idea?
_________________
WEBSITE
Do not meddle with the affairs of Dragons, for you are crunchy and tasty with ketchup!
Back to top
View user's profile Send private message
int1
Tux's lil' helper
Tux's lil' helper


Joined: 08 Nov 2002
Posts: 139

PostPosted: Sat Nov 09, 2002 4:53 pm    Post subject: ah yes... Reply with quote

I had this problem.... You need to ensure in your kernel that you are building support for SCSI emulation and not overriding it with regular ATAPI CDROM support.

When building the kernel, in ATA/IDE/MFM/RLL support block devices, build IDE/ATAPI CDROM as a module (or not at all if you only have a CDRW). You need to ensure you have SCSI emulation as either a module or built-in.

Then under SCSI support, ensure SCSI support, SCSI CD-ROM support, and SCSI generic support are either built-in or a module (I went with modules). If you go with modules, add the modules ide-scsi, sg, and sr_mod to /etc/modules.autoload.

In your /boot/grub/menu.lst or grub.conf (whichever you are using), ensure on your kernel line that you have hdX=ide-scsi. For example, mine reads:
kernel /boot/bzImage root=/dev/hda3 hdb=ide-scsi

If you are using devfs, you might need to edit /etc/devfsd.conf.

Hope this helps!
int1
Back to top
View user's profile Send private message
H-Dragon
Guru
Guru


Joined: 22 Oct 2002
Posts: 547

PostPosted: Tue Nov 19, 2002 12:48 pm    Post subject: Reply with quote

Code:

Transport name:      pg
Transport descr.:   SCSI transport for ATAPI over Parallel Port
Transp. layer ind.:   
Target specifier:   bus,target,lun
Target example:      1,2,0
SCSI Bus scanning:   supported
Open via UNIX device:   not supported

i get an error running 'cdrecord -scanbus' saying :
Code:

bash-2.05a# cdrecord -scanbus
Cdrecord 1.11a39 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
cdrecord: No such file or directory. Cannot open '/dev/pg*'. 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'.

the 'pg' thing is scsi over pp... isn't it?? so why is it searching for my dvd and cdrw there???
_________________
WEBSITE
Do not meddle with the affairs of Dragons, for you are crunchy and tasty with ketchup!
Back to top
View user's profile Send private message
H-Dragon
Guru
Guru


Joined: 22 Oct 2002
Posts: 547

PostPosted: Tue Nov 19, 2002 12:53 pm    Post subject: Reply with quote

i followed kerframils guide....
https://forums.gentoo.org/viewtopic.php?t=20175
but cdrecord cant find anything.... i am thinking of giving the old method a try... built everything into the kernel... and give grub in my menu.lst the hdc and hdd =ide-scsi .....
has anyone maybe performed a benchmark? or what are the advantages of kerframils solution.... if any.
_________________
WEBSITE
Do not meddle with the affairs of Dragons, for you are crunchy and tasty with ketchup!
Back to top
View user's profile Send private message
puddpunk
l33t
l33t


Joined: 20 Jul 2002
Posts: 681
Location: New Zealand

PostPosted: Mon Jan 06, 2003 6:08 am    Post subject: Reply with quote

I made this mistake, I changed everything before i realised i'd done it...

Did you mount your boot partition before you copied your kernel??

It musta been a few hours before i figured that one out :oops:
Back to top
View user's profile Send private message
H-Dragon
Guru
Guru


Joined: 22 Oct 2002
Posts: 547

PostPosted: Mon Jan 06, 2003 9:43 am    Post subject: Reply with quote

i did... but now i got it working.... you have to autoload all the modules... and have the propper settings in your kernel.

that thread was posted like month ago.
_________________
WEBSITE
Do not meddle with the affairs of Dragons, for you are crunchy and tasty with ketchup!
Back to top
View user's profile Send private message
puddpunk
l33t
l33t


Joined: 20 Jul 2002
Posts: 681
Location: New Zealand

PostPosted: Mon Jan 06, 2003 12:16 pm    Post subject: Reply with quote

Two months ago! I just noticed it recently kuzz i installed my CD burner today :oops:
Back to top
View user's profile Send private message
NorthGoingZax
Apprentice
Apprentice


Joined: 03 Dec 2002
Posts: 189

PostPosted: Tue Jan 07, 2003 11:41 pm    Post subject: Reply with quote

Has anyone tried any of this with a dvd-rom/cd-rw ?
Back to top
View user's profile Send private message
int1
Tux's lil' helper
Tux's lil' helper


Joined: 08 Nov 2002
Posts: 139

PostPosted: Thu Jan 09, 2003 3:24 am    Post subject: Reply with quote

NorthGoingZax wrote:
Has anyone tried any of this with a dvd-rom/cd-rw ?


Yup, on both my P3 laptop and P4 desktop.... Steps should work as I mentioned above.

int1
Back to top
View user's profile Send private message
-hb-
n00b
n00b


Joined: 16 Mar 2003
Posts: 9

PostPosted: Mon Mar 31, 2003 2:19 pm    Post subject: Re: ah yes... Reply with quote

int1 wrote:
I had this problem.... You need to ensure in your kernel that you are building support for SCSI emulation and not overriding it with regular ATAPI CDROM support.

When building the kernel, in ATA/IDE/MFM/RLL support block devices, build IDE/ATAPI CDROM as a module (or not at all if you only have a CDRW). You need to ensure you have SCSI emulation as either a module or built-in.

Then under SCSI support, ensure SCSI support, SCSI CD-ROM support, and SCSI generic support are either built-in or a module (I went with modules). If you go with modules, add the modules ide-scsi, sg, and sr_mod to /etc/modules.autoload.

In your /boot/grub/menu.lst or grub.conf (whichever you are using), ensure on your kernel line that you have hdX=ide-scsi. For example, mine reads:
kernel /boot/bzImage root=/dev/hda3 hdb=ide-scsi

If you are using devfs, you might need to edit /etc/devfsd.conf.

Hope this helps!
int1


Thanks a lot int1, following your instructions made everything work perfectly
Back to top
View user's profile Send private message
tablot
n00b
n00b


Joined: 15 Jun 2003
Posts: 1
Location: Worcester MA

PostPosted: Sun Jun 15, 2003 6:57 pm    Post subject: Reply with quote

Hey all, I was wondering, with respect to having the boot loader pass information to the kernel... I have seen much about getting grub to do this, but what if you use lilo for your boot loader... I am guessing that lilo.conf needs to be modified, but how ?

I have a CDR/RW and i have followed kerframil's guide and tried using some of the other info gleamed from this thread, but nobody says anything about configuring lilo tell the kernel about 'hdx=ide-scsi' (or the lilo equivalent)

I to am experiencing the '/dev/pg' command when running cdrecord -scanbus

thanks
Back to top
View user's profile Send private message
hackerError
Guru
Guru


Joined: 14 Mar 2003
Posts: 342
Location: Reston, VA, USA

PostPosted: Thu Jun 26, 2003 10:41 pm    Post subject: Reply with quote

tablot wrote:
Hey all, I was wondering, with respect to having the boot loader pass information to the kernel... I have seen much about getting grub to do this, but what if you use lilo for your boot loader... I am guessing that lilo.conf needs to be modified, but how ?

I have a CDR/RW and i have followed kerframil's guide and tried using some of the other info gleamed from this thread, but nobody says anything about configuring lilo tell the kernel about 'hdx=ide-scsi' (or the lilo equivalent)

I to am experiencing the '/dev/pg' command when running cdrecord -scanbus

thanks


i use grub but
i think its
Code:
 append="hdX =ide-scsi"

anyone know?
_________________
Before you insult someone, it is often best to walk a mile in their shoes.

That way when you insult them you're already a mile away and have their shoes.
Back to top
View user's profile Send private message
MasterX
Veteran
Veteran


Joined: 26 Jun 2003
Posts: 1165

PostPosted: Tue Jul 01, 2003 11:19 pm    Post subject: Reply with quote

i did everything that I read in this post. The only difference is that the scsi emulation, the scsi support etc are build in the kernel. In the /etc/devfsd.conf I uncommented the section that is about cdrw and geeru scsi drivers. IN the lilo.conf I added the line append="hdd=ide-scsi" (I have DVD and CDRW and 2 harddisks)
But the command cdrecord-scnbus gives

cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI driver

Please, help
Thanks
Back to top
View user's profile Send private message
MasterX
Veteran
Veteran


Joined: 26 Jun 2003
Posts: 1165

PostPosted: Wed Jul 02, 2003 2:52 am    Post subject: Reply with quote

Ok, I do not know what I did,
cdrecord -scanbus gives some information about the CDRW

However cdrecord dev=/dev/sr0 gives the same message
cdrecord: Is a directory. Cannot open '/dev/s0r'. Cannot open SCSI driver.

Any idea?
Back to top
View user's profile Send private message
pcrissman
n00b
n00b


Joined: 04 Oct 2003
Posts: 35
Location: MPLS, MN, USA

PostPosted: Tue Dec 16, 2003 1:44 pm    Post subject: Reply with quote

Quote:
Ok, I do not know what I did,
cdrecord -scanbus gives some information about the CDRW

However cdrecord dev=/dev/sr0 gives the same message
cdrecord: Is a directory. Cannot open '/dev/s0r'. Cannot open SCSI driver.


Hopefully you've fixed that by now, but in case anyone with the same problem finds this thread...

You don't want to do
Code:
cdrecord dev=/dev/sr0 ...


What you want is
Code:
cdrecord dev=0,0 ...


Substitute for `0,0' whatever your cdrw is when you run cdrecord -scanbus; use the last two digits (so it will be (probably) 0,0 or 1,0 or 2,0 etc)

I have a different problem; I can run cdrecord -scanbus and find my drive, but I can't mount a data cdrom. Of course, I think I still have ide-cdrom compiled into the kernel, and I have no entry in /etc/fstab for my cd-rw... I'm not sure if I need to recompile w/o ide-cdrom, or exactly what to put into /etc/fstab so I can mount a cd just to read it....

If anyone has an idea what (probably obvious) steps I am missing, let me know.
Back to top
View user's profile Send private message
glurps
Apprentice
Apprentice


Joined: 11 Mar 2004
Posts: 292

PostPosted: Thu Mar 31, 2005 3:37 pm    Post subject: Reply with quote

if you have an atapi drive you might try something like this:

Code:
#this will give you the necessary information about the drive
cdrecord dev=ATA --scanbus #or
cdrecord dev=/dev/hdc --scanbus

cdrecord dev=ATA:1,0,0 foo.iso # worked for me
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum