Foro de Linux - Gustavo Guillermo Software Compunauta Micro Linux (uLinux)
MAIL & COMMENTS | MAIN TOPICS

[Gnupérnico II - MetaBuscador]


SCRIPT OR COMMAND MADED IN PERL TO HANDLE MULTISESSION CDs ON LINUX CONSOLE (add2cd) V2.1 ERASE,ISO

Download English / Descargar en Español
Download ebuild for Gentoo

GENERAL

Author: ME, Gustavo Guillermo Pérez. This script born with my own way to handle multisession CDs cause is too ugly on console to remember or type large and horrible command line. New options was added, can delete before write with --erase=on and record an iso with --burniso=ulinux.iso.
You'll need to modify the script to set up the default CDRW device and speed.


BEHEAVIOUR

Launching the add2cd script without orders you'll got:

add2cd Ver 1.0-2003, Gustavo Pérez gustavo@compunauta.com www.compunauta.com/forums/linux
usage: add2cd [option=value] files dirs
		--speed=10                Speed
		--dev=0,0,0               Device, can be /dev/cdrw
		--fs=30m                  Buffer size 
		--f=on                    Follow SymLinks
		--erase=on		  		ERASE OR TRY TO ERASE BEFORE WRITE
		--cdxtras=-dummy          CDRECORD EXTRAS
		--mkxtras=-f              MKISOFS EXTRAS
		--debug=on                DEBUG
		--burniso=ulinux.iso			WRITES ulinux.iso AND LEAVE THE CD OPENED
example: add2cd /home/gus/bin
writes the content of a dir (/bin) 

example: add2cd /home/gus/bin /compartir/publicar.html
writes the content of a dir (/bin) and a file (publicar.html)

example: add2cd bin/=/home/gus/bin
writes the content of a dir (/bin) over a cd dir called /bin

ej: add2cd /home/gus/bin --cdxtras=-dummy
just try, don't write

ej: add2cd bin/=/home/gus/bin /compartir/publicar.html --f=on
follow the symlinks inside (/home/gus/bin) and writes a file publicar.html

ej: add2cd --erase=on
just erase the TOC
		

DOWNLOAD

To download new 2.1 add2cd click here. and to install on /bin exec: chmod +x /bin/add2cd ,if you wish the older version for older Linux Distributions: old add2cd

Something like if you executes the script:

add2cd Ver 1.0-2003, Gustavo Pérez gustavo@compunauta.com www.compunauta.com/forums/linux
Type	: Phase change 
Made by	: Seantram Technology Inc.
CdSpeed	: 4
CdMin	: 74
Size	: 650
Speed	: 52
Mode	: Continuando CD multisesión
ESize	: 66 MB



Warning: creating filesystem that does not conform to ISO-9660.
Rock Ridge signatures found
scsidev: '0,0,0'
scsibus: 0 target: 0 lun: 0
Linux sg driver version: 3.1.22
Cdrecord 1.11a28 (i686-suse-linux) Copyright (C) 1995-2002 Jörg Schilling
TOC Type: 1 = CD-ROM
Waiting for data on stdin...
Using libscg version 'schily-0.6'
atapi: 1
Device type    : Removable CD-ROM
Version        : 0
Response Format: 1
Vendor_info    : 'AOPEN   '
Identifikation : 'CD-RW CRW5224   '
Revision       : '1.05'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags   : SWABAUDIO 
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R96R
Drive buf size : 1359872 = 1328 KB
FIFO size      : 31457280 = 30720 KB
cdrecord: WARNING: Total disk size unknown. Data may not fit on disk.
 79.21% done, estimate finish Tue Feb 25 18:32:56 2003
 80.66% done, estimate finish Tue Feb 25 18:32:56 2003
 82.16% done, estimate finish Tue Feb 25 18:32:56 2003
 83.62% done, estimate finish Tue Feb 25 18:32:56 2003
Track 01: data  unknown length
Total size:        0 MB (00:00.00) = 0 sectors
Lout start:        0 MB (00:02/00) = 0 sectors
Current Secsize: 2048
ATIP info from disk:
  Indicated writing power: 5
  Reference speed: 2
  Is not unrestricted
  Is erasable
  ATIP start of lead in:  -11982 (97:22/18)
  ATIP start of lead out: 336601 (74:50/01)
  speed low: 0 speed high: 4
  power mult factor: 4 6
  recommended erase/write power: 3
  A2 values: 5C B6 26
Disk type:    Phase change
Manuf. index: 53
Manufacturer: Seantram Technology Inc.
Starting to write CD/DVD at speed 4 in real TAO mode for multi session.
Last chance to quit, starting real write in 2 seconds. 85.07% done, estimate finish Tue Feb 25 18:32:56 2003
 86.53% done, estimate finish Tue Feb 25 18:32:56 2003
 88.03% done, estimate finish Tue Feb 25 18:32:56 2003
 89.48% done, estimate finish Tue Feb 25 18:32:56 2003
 90.94% done, estimate finish Tue Feb 25 18:32:56 2003
 92.39% done, estimate finish Tue Feb 25 18:32:56 2003
 93.89% done, estimate finish Tue Feb 25 18:32:56 2003
 95.35% done, estimate finish Tue Feb 25 18:32:56 2003
 96.80% done, estimate finish Tue Feb 25 18:32:56 2003
 98.26% done, estimate finish Tue Feb 25 18:32:56 2003
 99.76% done, estimate finish Tue Feb 25 18:32:56 2003
Total translation table size: 0
Total rockridge attributes bytes: 11047
Total directory bytes: 30720
Path table size(bytes): 158
Max brk space used a000
34096 extents written (66 Mb)
1 seconds. 0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
Performing OPC...
Starting new track at sector: 26838
Track 03:   0 MB written.
Track 03:    1 MB written (fifo 100%) 36.2x.
Track 03:    2 MB written (fifo 100%)  3.1x.
Track 03:    3 MB written (fifo 100%)  4.2x.
Track 03:    4 MB written (fifo 100%)  4.1x.
Track 03:    5 MB written (fifo 100%)  4.2x.
Track 03:    6 MB written (fifo 100%)  4.1x.
Track 03:    7 MB written (fifo 100%)  4.2x.
Track 03:    8 MB written (fifo 100%)  4.1x.
Track 03:    9 MB written (fifo 100%)  4.2x.
Track 03:   10 MB written (fifo 100%)  4.1x.
Track 03:   11 MB written (fifo 100%)  4.2x.
Track 03:   12 MB written (fifo 100%)  4.1x.
Track 03:   13 MB written (fifo 100%)  4.2x.
Track 03:   14 MB written (fifo 100%)  4.1x.
Track 03: Total bytes read/written: 14864384/14864384 (7258 sectors).
Writing  time:   29.580s
Fixating...
Fixating time:   39.017s
cdrecord: fifo had 236 puts and 236 gets.
cdrecord: fifo was 0 times empty and 0 times full, min fill was 100%.


|Contrate Nuestra asesoría, instalación y cursos en Sistemas Linux, Redes, etc. Acerca de este sitio web Webmaster | Volver Al Inicio | Compunauta Micro Linux (uLinux) El servidor en CD, sin innstalación. |