[ubuntu-it] cdrecord
spa
driveallnight a email.it
Gio 8 Dic 2005 16:20:29 GMT
sto scrivendo uno script che mi crea il backup di tutti i pacchetti
installati (con APT-MOVE) e di seguito masterizzare il cd per poi usarlo
su pc dove non c'è la connessione.
se vi va di analizzarlo e magari mi date qualche dritta, lo script
(ancora da ottimizzare) lo trovate su
http://web.tiscali.it/openallnight/cc_.sh
uso Breezy
praticamemte ho già fatto tutto e tutto funziona, solo che cdrecord mi
dà dei problemi non indifferenti.
la storia sta' cosi:
i comandi dentro lo script incriminati sono questi:
cdrecord -v speed=0 -eject -multi isoimage.raw
cdrecord -v blank=fast -force speed=0
cdrecord -v blank=all -force speed=0
IL problema è che alcune volte mi ha funzionato, ma la moggior parte
delle volte no.........non riesco a capire la logica nel momento in cui
fuziona.
ho provato in mille modi, dando anche il device in mille modi possibili
e il risultato è questo:
*************************
spa a SEMPRON:~$ sudo cdrecord -v blank=fast -force speed=0 -eject
Cdrecord-Clone 2.01.01a01 (i686-pc-linux-gnu) Copyright (C) 1995-2004
Joerg Schilling
NOTE: this version of cdrecord is an inofficial (modified) release of
cdrecord
and thus may have bugs that are not present in the original
version.
Please send bug reports and support requests to
<cdrtools a packages.debian.org>.
The original author should not be bothered with problems of this
version.
cdrecord: Warning: Running on Linux-2.6.12-10-386
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or
Solaris.IL problema è che mi ha funzionato alcune volte, ma non riesco a
capire la logica nel momento in cui fuziona.
TOC Type: 1 = CD-ROM
scsidev: '/dev/cdrw'
devname: '/dev/cdrw'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
Error trying to open /dev/cdrw exclusively (Device or resource busy)...
retrying in 1 second.
Error trying to open /dev/cdrw exclusively (Device or resource busy)...
retrying in 1 second.
Error trying to open /dev/cdrw exclusively (Device or resource busy)...
retrying in 1 second.
Error trying to open /dev/cdrw exclusively (Device or resource busy)...
retrying in 1 second.
Error trying to open /dev/cdrw exclusively (Device or resource busy)...
retrying in 1 second.
Error trying to open /dev/cdrw exclusively (Device or resource busy)...
retrying in 1 second.
Error trying to open /dev/cdrw exclusively (Device or resource busy)...
retrying in 1 second.
Error trying to open /dev/cdrw exclusively (Device or resource busy)...
retrying in 1 second.
Error trying to open /dev/cdrw exclusively (Device or resource busy)...
retrying in 1 second.
Error trying to open /dev/cdrw exclusively (Device or resource busy)...
retrying in 1 second.
cdrecord: Device or resource busy. Cannot open '/dev/cdrw'. Cannot open
SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
cdrecord:
cdrecord: For more information, install the cdrtools-doc
cdrecord: package and read /usr/share/doc/cdrecord/README.ATAPI.setup .
******************************
il mio scanbus è il seguente:
******************************
spa a SEMPRON:~$ cdrecord -scanbus dev=ATAPI
Cdrecord-Clone 2.01.01a01 (i686-pc-linux-gnu) Copyright (C) 1995-2004
Joerg Schilling
NOTE: this version of cdrecord is an inofficial (modified) release of
cdrecord
and thus may have bugs that are not present in the original
version.
Please send bug reports and support requests to
<cdrtools a packages.debian.org>.
The original author should not be bothered with problems of this
version.
cdrecord: Warning: Running on Linux-2.6.12-10-386
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or
Solaris.
scsidev: 'ATAPI'
devname: 'ATAPI'
scsibus: -2 target: -2 lun: -2
Warning: Using ATA Packet interface.
Warning: The related Linux kernel interface code seems to be
unmaintained.
Warning: There is absolutely NO DMA, operations thus are slow.
Error: Cannot gain SYS_RAWIO capability.Is cdrecord installed SUID root?
: Operation not permitted
Using libscg version 'ubuntu-0.8ubuntu1'.
cdrecord: Warning: using inofficial version of libscg (ubuntu-0.8ubuntu1
'@(#)scsitransp.c 1.91 04/06/17 Copyright 1988,1995,2000-2004 J.
Schilling').
scsibus0:
0,0,0 0) 'LG ' 'DVD-ROM DRD8120B' '1.04' Removable
CD-ROM
0,1,0 1) 'TSSTcorp' 'CD/DVDW TS-H552B' 'TS03' Removable
CD-ROM
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
***********************************************
Pensando che dovevo cercare di liberare il device.... ho usato il
comando di cdrecord reset e abort, ma una sola volta ha funzionato.
dal man di cdrecord:
-reset Try to reset the SCSI bus where the CD recorder is located. This
works not on all operating systems.
-abort Try to send an abort sequence to the drive. If you use cdrecord
only, this should never be needed; but other software may leave a
drive in an unusable condition. Calling cdrecord -reset may be
needed if a previous write has been interrupted and the software did not
tell the drive that it will not continue to write.
MI AIUTATE??
More information about the ubuntu-it
mailing list