cdrecord: Cannot open '/dev/pg*' 

Fresh install of Sarge. Have tried two different DVD/CD writers (Sony and Lite-on).

Trying to get cdrecord going but I get the following error when I run "cdrecord -scanbus"

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

Thought it might need the "append hdc=ide-scsi" fix. Sarge installed with grub so I edited the /boot/menu.lst file with guidance from google to look like…

title           Debian GNU/Linux, kernel 2.4.25-1-386
root            (hd0,0)
kernel          /vmlinuz-2.4.25-1-386 root=/dev/hda3 ro hdc=ide-scsi
initrd          /initrd.img-2.4.25-1-386
savedefault
boot

Not positive that is correct, but it seems to have worked as I see the following with dmesg: scsi0 : SCSI host adapter emulation for IDE ATAPI devices

Gary Hodges

cdrecord: Cannot open '/dev/pg*' 

> Trying to get cdrecord going but I get the following error when I run
> "cdrecord -scanbus"
>
> cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot
> open SCSI driver.

Sometimes it takes resorting to posting to find the answers…

>From <http://www-106.ibm.com/developerworks/linux/library/l-cdburn.html>[]

In /etc/modules add "ignore=hdc" to the ide-cd line, e.g.

ide-cd ignore=hdc

In /boot/grub/menu.lst at the end of the kernel line add

hdc=scsi

It all worked fine after doing this.

Gary Hodges

NB, this uses the ide scsi emulation interface.

cdrecord: Cannot open '/dev/pg*' 

> Thought it might need the "append hdc=ide-scsi" fix.  Sarge installed
> with grub so I edited the /boot/menu.lst file with guidance from google
> to look like...

Looks ok to me, for grub I have: kernel …. hda=ide-scsi this is on Krud FC1

> At this point I'm mostly stuck.  I'll keep googling but maybe someone
> here has a suggestion.

cat /proc/scsi/scsi shows the recognized SCSI devices, eg.:

Host: scsi0 Channel: 00 Id: 00 Lun: 00

If the file empty your cd isn't recognized.

You can also check /proc/sys/dev/cdrom/info. If it has a column named sr0 then this is the first CD-ROM device. I have /dev/scd0 as the frist cd (krud fc1), it might be /dev/sr0 on other distributions.

To see what cdrecord thinks the device is capable of do:

cdrecord -checkdrive dev=0,0,0

Get the dev values from cdrecord -scanbus. Unless you have real SCSI controllers and devices, 0,0,0 is probably the right spec

The -checkdrive output will tell you if cdrecord sees the drive and knows how to use it.

Lee Woodworth