| This example will show how I first burned some FreshPorts
backups and then a cvs repository. I have snipped some bits from the output. Create
the first ISO:
# mkisofs -J -L -R -o freshports.raw mycvs.2000.12.31.tgz
Warning: creating filesystem that does not conform to ISO-9660.
Total translation table size: 0
Total rockridge attributes bytes: 261
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used c164
1237 extents written (2 Mb)
Burn the first ISO:
# cdrecord -v -multi -data speed=12 dev=0,5,0 freshports.raw
Cdrecord 1.9 (i386-unknown-freebsd4.2) Copyright (C) 1995-2000 Jörg Schilling
[snip]
Blocks total: 336225 Blocks current: 336225 Blocks remaining: 334986
Starting to write CD/DVD at speed 12 in write mode for multi session.
Last chance to quit, starting real write in 1 seconds.
Waiting for reader process to fill input buffer ... input buffer ready.
Performing OPC...
Starting new track at sector: 0
Track 01: 2 of 2 MB written (fifo 100%).
Track 01: Total bytes read/written: 2533376/2533376 (1237 sectors).
Writing time: 23.826s
Fixating...
Fixating time: 23.689s
cdrecord: fifo had 40 puts and 40 gets.
cdrecord: fifo was 0 times empty and 0 times full, min fill was 100%.
Have a quick look at the drive contents:
# mount /cdrom
# ls -l /cdrom
total 2411
-rw-r--r-- 1 dan dan 2469096 Dec 31 11:50 mycvs.2000.12.31.tgz
# umount /cdrom
Find out the where the free space starts:
# cdrecord -msinfo dev=0,5,0
0,12639
Create the second ISO using the free space information from the previous step:
# mkisofs -J -L -R -o freshportsbackup.raw -M /dev/cd0a -C 0,12639
my.backup.2000.12.*
Warning: creating filesystem that does not conform to ISO-9660.
[snip]
52.89% done, estimate finish Sun Dec 31 12:59:18 2000
70.51% done, estimate finish Sun Dec 31 12:59:22 2000
88.17% done, estimate finish Sun Dec 31 12:59:23 2000
Total translation table size: 0
Total rockridge attributes bytes: 1885
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used d164
28369 extents written (55 Mb)
Burn the second ISO:
# cdrecord -v -multi -data speed=12 dev=0,5,0 freshportsbackup.raw
[snip]
Blocks total: 336225 Blocks current: 323586 Blocks remaining: 307854
Starting to write CD/DVD at speed 12 in write mode for multi session.
Last chance to quit, starting real write in 1 seconds.
Waiting for reader process to fill input buffer ... input buffer ready.
Performing OPC...
Starting new track at sector: 12639
Track 02: 30 of 30 MB written (fifo 100%).
Track 02: Total bytes read/written: 32215040/32215040 (15730 sectors).
Writing time: 33.053s
Fixating...
Fixating time: 10.438s
cdrecord: fifo had 508 puts and 508 gets.
cdrecord: fifo was 0 times empty and 361 times full, min fill was 95%.
Have a look at the contents now:
# mount /cdrom
# ls /cdrom
my.backup.2000.12.17.tgz
my.backup.2000.12.18.tgz
my.backup.2000.12.19.tgz
my.backup.2000.12.20.tgz
my.backup.2000.12.21.tgz
my.backup.2000.12.22.tgz
my.backup.2000.12.24.tgz
my.backup.2000.12.25.tgz
my.backup.2000.12.26.tgz
my.backup.2000.12.27.tgz
my.backup.2000.12.28.tgz
my.backup.2000.12.29.tgz
my.backup.2000.12.30.tgz
my.backup.2000.12.31.tgz
mycvs.2000.12.31.tgz
# umount /cdrom
|