Click to See Complete Forum and Search --> : cdrtools problem
roamingnomad
11-25-2003, 12:32 PM
I have installed cdrtools/cdrecord and tried this:
# cdrecord -scanbus
Cdrecord 2.0 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jorg 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 'cdrecrd dev=help'.
#
I have no clue what to do here. I'm using a JustLink CDR drive that came bundled with Nero 5 (for Windows) if that helps at all.
What can I do????
I would really appreciate any help.
Icarus
11-25-2003, 01:04 PM
Doesn't look like SCSI emulation is on, even though it's an IDE drive all CDR is based on SCSI instructions.
In you lilo/grub check if you have a line like
/dev/hdc=ide-scsi
And reading through the CD-Writing HOWTO (http://tldp.org/HOWTO/CD-Writing-HOWTO.html) might answer other problems you might run into (if the proper modules are loaded, ect...)
roamingnomad
11-25-2003, 01:57 PM
Forget all that. I forgot to check on RH's Gnome menu, and there it is..... GnomeToaster!
Icarus
11-25-2003, 02:09 PM
...GnomeToaster uses cdrecord
Does it work ok for you?
roamingnomad
11-25-2003, 02:17 PM
uhhh.... yeah, I just noticed that a few seconds ago when I tried to burn the CD. Rats!
Hmm.... I get the same error. I'm reading through the CD-Writing HOWTO to figure out the ide scsi emulation....
Anyway, here's my grub.conf :
# 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,1)
# kernel /vmlinuz-version ro root=/dev/hda3
# initrd /initrd-version.img
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd0,1)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /initrd-2.4.20-8.img
title Windows XP
rootnoverify (hd0,0)
chainloader +1
roamingnomad
11-25-2003, 02:29 PM
so it seems I would have to insert a line like
append="hdb=ide-scsi"
into my grub.conf.
The problem is that that particular syntax is made for lilo, not grub. Does anyone know the correct syntax for such lines???
roamingnomad
11-25-2003, 02:48 PM
okay, triple post!!! (note that there are three bangs!!! for three posts!!!)
Originally posted by mdwatts in this thread (http://www.justlinux.com/forum/showthread.php?s=&threadid=76789&highlight=grub+configuration+scsi+emulation)
Adding
hdc=ide-scsi
to the kernel line of your Grub config (/boot/grub/menu.lst or grub.conf) should work.
i.e.
kernel = /boot/vmlinuz-2.4.19-64GB-SMP vga=788 noapic hdc=ide-scsi root=/dev/hda5
That's good, however, in that case the kernel was already compiled with scsi emulation. Is there any way to check about mine???
Also, I would need to know which device (hda, b, c, etc) my cdrom drive is. I have a feeling that my /etc/fstab would be useful, though I don't really know:
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda5 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
Again, all help is greatly appreciated.
Icarus
11-25-2003, 02:49 PM
Since you must of missed my earlier post on this and I"m a nce guy ;)
In you lilo/grub check if you have a line like
/dev/hdc=ide-scsi
roamingnomad
11-25-2003, 02:52 PM
yeah, I saw that, but I thought it was an off-the-top-of-the-head example, like "It should look something like this". I didn't realize it was the exact syntax until I had found it myself. How ironic.:rolleyes:
And I don't have a line like that.
Primary drive on IDE port 1: hda
Secondary drive on IDE port 1: hdb
Primary drive on IDE port 2: hdc
secondary drive on IDE port 2: hdd
Am I correct in this? Is there any way to determine where the cd drive is connected without actually taking off the side panel on the computer? (I preformed the cd-burner transplant last night, don't want to go there again!)
Icarus
11-25-2003, 03:17 PM
It's wasn't quite off the top of my head...I had to dig through a couple layers fo muck to get it :)
I don't think you need the /dev bit though...
The next trick is finding where the CDR is located...you are correct on the mappings from IDE to /dev, so the easiest thing to do would be reboot, check the BIOS to find where it is at, then at the GRUB screen hit 'e' to edit the line and 'e' again on the kernel line, add "hdx=ide-scsi" at the end, hit enter, then 'b' to boot.
phew, is that as difficult to read as it was to type? :)
Of course that is temporary, but if "cdrecord -scanbus" works after doing this, add that into the /boot/grub.conf permently
roamingnomad
11-25-2003, 03:18 PM
YES!!! It's in the BIOS! I found it!!!
so now I'll put /dev/hdc=ide-scsi into my grub.conf (how'd you know how I connected my cables???)
(let's hope that scsi emulation was compiled into my kernel)
roamingnomad
11-25-2003, 04:03 PM
It works!!!
# cdrecord -scanbus
Cdrecord 2.0 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jorg Schilling
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.7'
cdrecord: Warning: using inofficial libscg transport code version (schily - Red Hat-scsi-linux-sg.c-1.75-RH '@(#)scsi-linux-sg.c 1.75 02/10/21 Copyright 1997 J. Schilling').
scsibus0:
0,0,0 0) 'ARTEC ' 'WRR-4848 ' '1.00' Removable CD-ROM
There was more, but I truncated it.
(yaaaaaaaaaaaaaaaaaaaaaaaaaaaay!)
Icarus
11-25-2003, 04:38 PM
Originally posted by roamingnomad
so now I'll put /dev/hdc=ide-scsi into my grub.conf (how'd you know how I connected my cables???) Don't you know the mods have remote ioscan capabilities? :D
j/k
don't get paranoid, we only see IPs ;)
Don't forget to edit your grub.conf so it works everytime