[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Sid and cdrecord



Le Jeudi 22 Août 2002 04:07, Karl Hammar a écrit :
> > Hello all,
> >
> > I've problems to run cdrecord with sid.
> > First, i've upgraded to 2.4.18 and all seem to work, except cdrecord.
> >
> > In /var/log/messages that's what i have for the scsi chain:
> >
> > Aug 20 14:49:47 FRVILD0P43530 kernel: SCSI subsystem driver Revision:
> > 1.00
>
> ...
>
> > Aug 20 14:49:47 FRVILD0P43530 kernel: sr1: scsi3-mmc drive: 40x/40x
> > writer cd/rw xa/form2 cdda tray
> >
> >
> > In /proc/scsi/scsi that's what i have :
>
> ...
>
> > trying to scan scsi buses :
> >
> > FRVILD0P43530:/# cdrecord -scanbus
> > Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 J
> > cdrecord: No such file or directory. Cannot open SCSI driver.
> > cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are
> > root.
> >
> >
> > Trying to blank a CD :
> >
> > FRVILD0P43530:/# cdrecord blank=all dev=0,2,0
> > Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 J
> > scsidev: '0,2,0'
> > scsibus: 0 target: 2 lun: 0
> > cdrecord: No such device. Cannot open '/dev/pg2'. Cannot open scsi
> > driver. cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure
> > you are root.
> >
> >
> > Ok, i've searched over google, and founded in archives that we have to
> > make thoses devices. So i tried :
> >
> > FRVILD0P43530:/dev# ./MAKEDEV -v pg
> > create pg0      c 97 0 root:root 0600
> > create pg1      c 97 1 root:root 0600
> > create pg2      c 97 2 root:root 0600
> > create pg3      c 97 3 root:root 0600
> >
> > And finaly tried again to blank a CD => same result with same error.
> >
> >
> > Any idea will greatly welcome :)
> > Regard's
> > Vincent
>
> That is strange. I thought that cdrecord used sg-devices. It does so
> in testing:
>
>   # cdrecord -scanbus
>   Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 Jörg Schilling
>   Linux sg driver version: 3.1.22
>   Using libscg version 'schily-0.5'
>   scsibus0:
> 	  0,0,0     0) 'IBM     ' 'DMVS09D         ' '02B0' Disk
> 	  0,1,0     1) 'IBM     ' 'DDYS-T36950M    ' 'S80D' Disk
> 	  0,2,0     2) *
> 	  0,3,0     3) *
> 	  0,4,0     4) 'SEAGATE ' 'ST373405LC      ' '0003' Disk
> 	  0,5,0     5) *
> 	  0,6,0     6) *
> 	  0,7,0     7) *
> 	  0,14,0   14) 'TANDBERG' 'MLR3            ' '0404' Removable Tape
>   scsibus1:
> 	  1,0,0   100) *
> 	  1,1,0   101) *
> 	  1,2,0   102) *
> 	  1,3,0   103) *
> 	  1,4,0   104) *
> 	  1,5,0   105) 'PLEXTOR ' 'CD-R   PX-W124TS' '1.05' Removable CD-ROM
> 	  1,6,0   106) *
> 	  1,7,0   107) *
>
> I assume you have sg in the kernel.
>
> Poking around gives me:
>
>   $ grep -B1 -A5 97 /dev/MAKEDEV
>
>   RCSID='$Id: MAKEDEV 2.3 1997/09/29 19:03:13 johnsonm Exp $'
>
>  
> #---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#---#--
>-# # Customisation:
>   #   The devices fall into various classes.  This section contains the
> mapping # from a class name into a group name and permission.
>   --
> 	  pktcdvd)
> 		  major=97
> 		  for unit in 0 1 2 3
> 		  do
> 			  makedev pktcdvd$unit b $major $unit $cdrom
> 		  done
> 		  ;;
>   --
> 	  pg)
> 		  major=`Major pg 97`
> 		  for unit in 0 1 2 3
> 		  do
> 			  makedev pg$unit c $major $unit $scsi
> 		  done
> 		  ;;
>
> and
>
>   $ grep -A 14 '^ 97' kernel-source-2.4.18/Documentation/devices.txt
>    97 char        Parallel port generic ATAPI interface
> 		    0 = /dev/pg0          First parallel port ATAPI device
> 		    1 = /dev/pg1          Second parallel port ATAPI device
> 		    2 = /dev/pg2          Third parallel port ATAPI device
> 		    3 = /dev/pg3          Fourth parallel port ATAPI device
>
> 		  These devices support the same API as the generic SCSI
> 		  devices.
>
>       block       Packet writing for CD/DVD devices
> 		    0 = /dev/pktcdvd0     First packet-writing module
> 		    1 = /dev/pktcdvd1     Second packet-writing module
> 		      ...
>
>    98 char        Control and Measurement Device (comedi)
>
> Hope that helps a little.
>
> Regards,
> /Karl
>
> -----------------------------------------------------------------------
> Karl Hammar                    Aspö Data           karl@kalle.csb.ki.se
> Lilla Aspö 2340             +46  173 140 57                    Networks
> S-742 94 Östhammar          +46 18 26 09 00                   Computers
> Sweden                     +46  10 270 26 67                 Consulting
> -----------------------------------------------------------------------

thank's for your reply.

About the pg, i did it according to result of search i made on google. 
however this confus me, because in the doc, it is said that ipg is related to 
parallel port. I haven't anything on the parallel port. All my devices are on 
the true scsi chain and are true scsi devices. 
So what about pg here?

Regard's
Vincent



Reply to: