On Thu, Jan 23, 2003 at 04:07:41PM -0200, Marcelo Chiapparini wrote:
> Hi!
> 
> In spite of a couple of suggestions,  I am still trying to put my 
> cdwriter to work :(
> First of all, make sure that the scsi support is loaded. The output for 
> the dmesg command is:
> 
> nostromo:/home/chiappa# dmesg |grep scsi
> Kernel command line: auto BOOT_IMAGE=linux ro root=306 hdc=ide-scsi 
> hdd=ide-scsi max_scsi_luns=1
> ide_setup: hdc=ide-scsi
> ide_setup: hdd=ide-scsi
> scsi0 : SCSI host adapter emulation for IDE ATAPI devices
> Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
> Attached scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0
> sr0: scsi3-mmc drive: 0x/56x cd/rw xa/form2 cdda tray
> sr1: scsi3-mmc drive: 24x/32x writer cd/rw xa/form2 cdda tray
> 
> remember that my problem is this message:
> 
> nostromo:/home/chiappa# cdrecord -scanbus
> Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 J?rg Schilling
> cdrecord: No such file or directory. Cannot open SCSI driver.
> 
> 
> Now, after surfed google a little, I am wonder if I have a problem with 
> the /dev/sg0 device. The MAKEDEV manual says that /dev/sg* are used to 
> speak to scsi devices, so...
> 
> In a potato system, which runs cdrecord OK, I have the following output 
> to the command "cdrecord -scsnbus /dev/sg0"
> 
> dft:/home/chiappa# cdrecord -scanbus /dev/sg0
> cdrecord: No tracks allowed with this option
> cdrecord: Usage: cdrecord [options] track1...trackn
> 
> the command is wrong, but the output proves that cdrecord does interact 
> with the /dev/sg0 device in some way.

Try just 'cdrecord -scanbus' on its own. You'll get some useful output
then. It'll tell you the SCSI ID numbers you need for cdrecord's -Dm,n
syntax for referring to CD drives.

> In my woody, kernel 2.4.18, system I get for the same command:
> 
> nostromo:/home/chiappa# cdrecord -scanbus /dev/sg0
> cdrecord: No such device. Cannot open '/dev/sg0'.
> 
> cdrecord says that the device doesn exist... but actually, this device 
> does exist:
> 
> nostromo:/home/chiappa# ls -l /dev/sg0
> crw-------    1 root     root      21,   0 Jun 13  2001 /dev/sg0
> 
> So, I have two questions:
> 
> a) does cdrecord use the /dev/sg* devices?
> b) why cdrecord can see this device in my system?
> 
> Thanks in advance for any help!

What permissions does /dev/sg0 have in your potato system? Try setting
the woody ones the same as the potato ones. Or try (as root)

addgroup cdburners
adduser your_user_name cdburners
chgrp cdburners /dev/sg0
chmod g+rw /dev/sg0

(also for /dev/sg1 - seems that's a CD writer as well)

cdrecord does AFAIK use the /dev/sg* devices but it doesn't call them
that. Instead, you use the option -Dm,n where m, n are SCSI ID/LUN
numbers for your CD-writer, which you get by running cdrecord -scanbus;
the figures in the second and third columns are the ones you want.

Pigeon


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to