View previous topic :: View next topic |
Author |
Message |
Qweasda Apprentice
Joined: 04 Feb 2003 Posts: 152
|
Posted: Thu Feb 27, 2003 1:38 am Post subject: CD burner install woes |
|
|
I couldn't find much info via searching on this, can someone point me or help me? I have a Lite-On 48/24/48x CDRW, I want to hook it up to burn. I enabled ide-scsi as module, and enabled scsi emulation and generic scsi CD rom support, etc and loaded them as modules - no luck. I now have them built into the kernel, no luck.
K3B added this to my /etc/fstab:
/dev/ide/host0/bus1/target0/lun0/cd /mnt/cdrom auto ro,noauto,user,exec 0 0
/dev/ide/host0/bus1/target1/lun0/cd /mnt/cdrom1 auto ro,noauto,user,exec 0 0
Looks good no?
I really don't know what to do. |
|
Back to top |
|
|
akhkharu99 Apprentice
Joined: 08 Jun 2002 Posts: 162 Location: Gainesville, FL
|
Posted: Thu Feb 27, 2003 3:59 am Post subject: |
|
|
what does
say? |
|
Back to top |
|
|
NicholasDWolfwood Apprentice
Joined: 19 Jan 2003 Posts: 235
|
Posted: Thu Feb 27, 2003 3:59 am Post subject: |
|
|
AFAIK, it will be either /dev/hdb, /dev/hdc, or /dev/hdd (The latter if for example you have 2 hard drives on the first controller, a DVD or CD-ROM as master on the second controller and a CD-RW as slave on the second controller) |
|
Back to top |
|
|
Qweasda Apprentice
Joined: 04 Feb 2003 Posts: 152
|
Posted: Thu Feb 27, 2003 4:24 am Post subject: |
|
|
That command gave me this:
Code: | Cdrecord 1.11a33 (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. |
I did it as root.
Wouldn't it not be labelled hdx? Isn't that just for harddrives?
Should I try to recompile my kernel with those scsi options as modules and try again? Tomorrow....
Thanks for the replies. |
|
Back to top |
|
|
akhkharu99 Apprentice
Joined: 08 Jun 2002 Posts: 162 Location: Gainesville, FL
|
Posted: Thu Feb 27, 2003 2:24 pm Post subject: |
|
|
i compiled all those options straight into the kernel so as to not have to wrry about loading the modules.
i got my cd-rw to work by following the most recent x86 gentoo installation guide.
it does not llok like you have scsi emulation setup properly since your fstab has /dev/ide/... whereas mine has /dev/scsi...
have you looked at how the installation guide says to set this all up?
i followed that word for word except for the modules part |
|
Back to top |
|
|
barran Tux's lil' helper
Joined: 14 Jan 2003 Posts: 142 Location: Århus, DK
|
Posted: Thu Feb 27, 2003 7:24 pm Post subject: |
|
|
If you won't have to worry about where your cdrom drives are located, the symlinks under /dev/cdroms are updated automatically by devfs. I have this in my fstab:
Code: |
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,user,ro 0 0
/dev/cdroms/cdrom1 /mnt/burner iso9660 noauto,user,ro 0 0
|
|
|
Back to top |
|
|
Qweasda Apprentice
Joined: 04 Feb 2003 Posts: 152
|
Posted: Thu Feb 27, 2003 10:33 pm Post subject: |
|
|
Yes, I did it right from the manual. This, to be exact:
Code: | If you have an IDE cd burner, then you need to enable SCSI emulation in the kernel. Turn on "ATA/IDE/MFM/RLL support" ---> "IDE, ATA and ATAPI Block devices" ---> "SCSI emulation support" (I usually make it a module), then under "SCSI support" enable "SCSI support", "SCSI CD-ROM support" and "SCSI generic support" (again, I usually compile them as modules). If you also choose to use modules, then echo -e "ide-scsi\nsg\nsr_mod" >> /etc/modules.autoload to have them automatically added at boot time. |
|
|
Back to top |
|
|
Qweasda Apprentice
Joined: 04 Feb 2003 Posts: 152
|
Posted: Fri Feb 28, 2003 3:02 am Post subject: |
|
|
Oh, I saw that you have to:
Code: | Important: If you set up scsi emulation for an IDE cd burner earlier, then to get it to actually work you need to add an "hdx=ide-scsi" fragment to the kernel line in grub.conf (where "hdx" should be the device for your cd burner). |
So I did that, but it didn't work, how exaclty would it go in? Like this:
kernel=(hd0,0)/boot/bzImage "hdc=ide-scsi"
or w/o parenthesis or what? (I tried both, no luck..) |
|
Back to top |
|
|
Malakin Veteran
Joined: 14 Apr 2002 Posts: 1692 Location: Victoria BC Canada
|
Posted: Fri Feb 28, 2003 3:31 am Post subject: |
|
|
Quote: | So I did that, but it didn't work, how exaclty would it go in? Like this: | The easiest way is to just remove "ide/atapi cdrom support" from your kernel and it will default to scsi emulation. |
|
Back to top |
|
|
ananse n00b
Joined: 28 Feb 2003 Posts: 16
|
Posted: Fri Feb 28, 2003 3:31 am Post subject: kernel? |
|
|
which kernel are you running? |
|
Back to top |
|
|
akhkharu99 Apprentice
Joined: 08 Jun 2002 Posts: 162 Location: Gainesville, FL
|
Posted: Fri Feb 28, 2003 3:36 am Post subject: |
|
|
i agree with malakin. if you have both atapi support and scsi emulation, the kernel will use the native atapi |
|
Back to top |
|
|
ananse n00b
Joined: 28 Feb 2003 Posts: 16
|
Posted: Fri Feb 28, 2003 3:38 am Post subject: using latest cdrtools . .. |
|
|
and simply the ide driver in the kernel (no scsi stuff necessary)
you should be able to do a:
"ln -sf /dev/ide/host0/bus1/target1/lun0/cd /dev/sg1"
(no quotes)
and k3b should detect your ide cdrw drive.
mine works like this with Arson |
|
Back to top |
|
|
Qweasda Apprentice
Joined: 04 Feb 2003 Posts: 152
|
Posted: Fri Feb 28, 2003 5:32 am Post subject: |
|
|
Cool, thanks I will try more of this tomorrow. But I did try recompiling my kernel and now when I boot to the new one it goes about 3 seconds past Grub (mounting and loading all the stuff) then says something like "kernel panic: cannot mount root fs..." I tried it two times. I have compiled a kernel at least 4 or 5 times with never this problem. But this is only the second time using a 2.4.20 kernel.
So help with that would be nice.
My kernel is 2.4.20-gentoosources |
|
Back to top |
|
|
BobbyJ n00b
Joined: 25 Feb 2003 Posts: 14 Location: Los Angeles
|
Posted: Mon Mar 03, 2003 1:59 am Post subject: |
|
|
This is my first post to the forum. I must say this thread interests me, as have a nice new Gentoo SMP box, but I can't seem to get my Samsung CDRW/DVD Combo drive recognized. I've been doing the S & L thing for a few days (Searching and Lurking) but have yet to find anything that has helped me get my combo drive operation. Reads cd'sfind, Mounted on /dev/cdrom
Evern with "hdc=ide-scsi' in grub.conf as a kernel paramater.
I've got all the probper scsi items compiled into my 2.4.20 rc1 kernel, and at boot I get this error:
Mar 2 14:45:32 blade kernel: hda: WDC WD400BB-32CLB0, ATA DISK drive
Mar 2 14:45:32 blade kernel: hdb: WDC WD600BB-00CAA0, ATA DISK drive
Mar 2 14:45:32 blade kernel: hdc: SAMSUNG CDRW/DVD SM-332B, ATAPI CD/DVD-ROM drive
Mar 2 14:45:32 blade kernel: hdd: WDC WD1200BB-00CAA1, ATA DISK drive
Mar 2 14:45:32 blade kernel: SCSI subsystem driver Revision: 1.00
Mar 2 14:45:32 blade kernel: kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
I think that the ATPI is 'owning' it before the SCSI gets a chance.
I suppose I will go and disable ATAPI for the Samsung, or compile it as a module, and see how that effects the SCSI detection.
I mean what good is this Dual 1600 Athlon if I can't goof off and watch a movie when I am supposed to be working?
OR even burn a new Gentoo ISO.
Overall, having been through other distros, I like Gentoo the best and getting SCSI CD burning and DVD working is more of an interesting dillemma to solve and learn somehting new than it is something for me to B*&% about After coming through Debian, Slack, Mandrake ( Nice but never lives up to its billing IMO--there is ALWAYS something broke in it), I think I like Gentoo the best, as I have exactly what I want. And waht I want fits into less than a gig on my drive. Even if it won't burn a CD.
Yet |
|
Back to top |
|
|
BobbyJ n00b
Joined: 25 Feb 2003 Posts: 14 Location: Los Angeles
|
Posted: Mon Mar 03, 2003 6:31 am Post subject: |
|
|
Here is how I got my combo CDRW/DVD ROM/CD drive working:
I deselected ATAPI CDROM in my kernel, made it a module in case I need it later, I can just plug it in.
When you do this, the hdx=ide-scsi seems to take effect, your cdrom device will be, or mine is, /dev/sro
"cdrecord -scanbus" reports it to be at 0,0,0 and I can burn CD's.
Mplayer complained that I did not have /dev/dvd and refused to play the DVD disk i shoved in the drive and mounted. sigh
I made a link:
ln -s /dev/sr0 /dev/dvd
Now Mplayer will play the disk too. _________________ I had amnesia once. No.....twice. |
|
Back to top |
|
|
Danrol n00b
Joined: 23 Feb 2003 Posts: 23
|
Posted: Mon Mar 03, 2003 1:50 pm Post subject: |
|
|
I have a similar problem to you Qweasda "cdrecord -scanbus" comes back with the same error (Cannot open '/dev/pg*).
You could try doing "cdrecord -dev=ATAPI -scanbus". This shows my IDE burner (and DVD).
Burning is simply a case of "cdrecord -dev=ATAPI:0,0,0 /path/to/file(s)"
(Where 0,0,0 is the burner from scanbus.)
Not an ideal solution but it works for me.....
P.S. It's my first post |
|
Back to top |
|
|
Beekster Apprentice
Joined: 26 Nov 2002 Posts: 268 Location: Sydney
|
Posted: Tue Mar 04, 2003 5:42 pm Post subject: |
|
|
I had a similar issue with Gentoo-Sources-2.4.20-r1.
I have a dvd player (hdc) and a CD burner (hdd), and with Gentoo-sources-2.4.19-r10, I could have the dvd as an ATAPI, with the CD burner emulated as SCSI with the hdd=ide-scsi kernel parameter.
WIth 2.4.20-r1, I could only get them to be both ATAPI, or both SCSI emulated, not split with one each way. I've gone back to Gentoo-Sources-2.4.19-r10 for the time being.
I haven't experimented yet with the other sources out there. Has anyone with a similar setup been able to load two CD/DVD devices, one each way, with 2.4.20? If so, which sources, and please post your .config!
Thanks |
|
Back to top |
|
|
eivinn Apprentice
Joined: 10 Jul 2002 Posts: 219 Location: Norway
|
Posted: Sun Mar 09, 2003 3:13 pm Post subject: |
|
|
I am getting this error too. Passing hdc=ide-scsi to the kernel does not seam to work with gentoo-sources 2.4.20-r1 |
|
Back to top |
|
|
eivinn Apprentice
Joined: 10 Jul 2002 Posts: 219 Location: Norway
|
Posted: Sun Mar 09, 2003 9:55 pm Post subject: |
|
|
Current workaround from another thread:
Leave out ATAPI CDROM SUPPORT from kernel, use SCSI emulation instead... |
|
Back to top |
|
|
tgnb Apprentice
Joined: 16 Apr 2002 Posts: 208 Location: New York, NY
|
Posted: Mon Mar 10, 2003 3:28 am Post subject: ye |
|
|
Just wanted to say i got the same problem with the latest gentoo-sources |
|
Back to top |
|
|
|