Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Problems setting up CD burner

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
18 posts • Page 1 of 1
Author
Message
H-Dragon
Guru
Guru
User avatar
Posts: 547
Joined: Tue Oct 22, 2002 1:04 pm
Contact:
Contact H-Dragon
Website

  • Quote

Post by H-Dragon » Sat Nov 09, 2002 1:40 pm

followed your steps.... but:

Code: Select all

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!
Top
rac
Bodhisattva
Bodhisattva
User avatar
Posts: 6553
Joined: Thu May 30, 2002 6:19 am
Location: Japanifornia
Contact:
Contact rac
Website

  • Quote

Post by rac » Sat Nov 09, 2002 1:48 pm

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
Top
H-Dragon
Guru
Guru
User avatar
Posts: 547
Joined: Tue Oct 22, 2002 1:04 pm
Contact:
Contact H-Dragon
Website

sorry

  • Quote

Post by H-Dragon » Sat Nov 09, 2002 1:53 pm

sorry... really..

dmesg :

Code: Select all

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!
Top
int1
Tux's lil' helper
Tux's lil' helper
Posts: 139
Joined: Fri Nov 08, 2002 7:59 pm

ah yes...

  • Quote

Post by int1 » Sat Nov 09, 2002 4:53 pm

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
Top
H-Dragon
Guru
Guru
User avatar
Posts: 547
Joined: Tue Oct 22, 2002 1:04 pm
Contact:
Contact H-Dragon
Website

  • Quote

Post by H-Dragon » Tue Nov 19, 2002 12:48 pm

Code: Select all

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: Select all

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!
Top
H-Dragon
Guru
Guru
User avatar
Posts: 547
Joined: Tue Oct 22, 2002 1:04 pm
Contact:
Contact H-Dragon
Website

  • Quote

Post by H-Dragon » Tue Nov 19, 2002 12:53 pm

i followed kerframils guide....
http://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!
Top
puddpunk
l33t
l33t
User avatar
Posts: 680
Joined: Sat Jul 20, 2002 11:07 pm
Location: New Zealand

  • Quote

Post by puddpunk » Mon Jan 06, 2003 6:08 am

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:
Top
H-Dragon
Guru
Guru
User avatar
Posts: 547
Joined: Tue Oct 22, 2002 1:04 pm
Contact:
Contact H-Dragon
Website

  • Quote

Post by H-Dragon » Mon Jan 06, 2003 9:43 am

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!
Top
puddpunk
l33t
l33t
User avatar
Posts: 680
Joined: Sat Jul 20, 2002 11:07 pm
Location: New Zealand

  • Quote

Post by puddpunk » Mon Jan 06, 2003 12:16 pm

Two months ago! I just noticed it recently kuzz i installed my CD burner today :oops:
Top
NorthGoingZax
Apprentice
Apprentice
User avatar
Posts: 189
Joined: Tue Dec 03, 2002 3:49 pm

  • Quote

Post by NorthGoingZax » Tue Jan 07, 2003 11:41 pm

Has anyone tried any of this with a dvd-rom/cd-rw ?
Top
int1
Tux's lil' helper
Tux's lil' helper
Posts: 139
Joined: Fri Nov 08, 2002 7:59 pm

  • Quote

Post by int1 » Thu Jan 09, 2003 3:24 am

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
Top
-hb-
n00b
n00b
Posts: 9
Joined: Sun Mar 16, 2003 7:49 pm

Re: ah yes...

  • Quote

Post by -hb- » Mon Mar 31, 2003 2:19 pm

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
Top
tablot
n00b
n00b
Posts: 1
Joined: Sun Jun 15, 2003 2:52 pm
Location: Worcester MA
Contact:
Contact tablot
Website

  • Quote

Post by tablot » Sun Jun 15, 2003 6:57 pm

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
Top
hackerError
Guru
Guru
User avatar
Posts: 342
Joined: Fri Mar 14, 2003 11:47 pm
Location: Reston, VA, USA
Contact:
Contact hackerError
Website

  • Quote

Post by hackerError » Thu Jun 26, 2003 10:41 pm

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: Select all

 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.
Top
MasterX
Veteran
Veteran
Posts: 1165
Joined: Thu Jun 26, 2003 4:19 pm

  • Quote

Post by MasterX » Tue Jul 01, 2003 11:19 pm

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
Top
MasterX
Veteran
Veteran
Posts: 1165
Joined: Thu Jun 26, 2003 4:19 pm

  • Quote

Post by MasterX » Wed Jul 02, 2003 2:52 am

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?
Top
pcrissman
n00b
n00b
User avatar
Posts: 35
Joined: Sat Oct 04, 2003 5:12 pm
Location: MPLS, MN, USA
Contact:
Contact pcrissman
Website

  • Quote

Post by pcrissman » Tue Dec 16, 2003 1:44 pm

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: Select all

cdrecord dev=/dev/sr0 ...
What you want is

Code: Select all

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.
Top
glurps
Apprentice
Apprentice
User avatar
Posts: 292
Joined: Thu Mar 11, 2004 9:10 pm

  • Quote

Post by glurps » Thu Mar 31, 2005 3:37 pm

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

Code: Select all

#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
Top
Post Reply

18 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic