$ dd if=/dev/zero of=/boot/home/image.img bs=1024k count=400
400+0 records in
400+0 records out
$ mkbfs 2048 /boot/home/image.img backup
BFS w/2048 byte blocks successfully created on /boot/home/image.img as backup
BFS Dump:
fd 3 dev_block_size 512 dev_block_conversion 4
tmp block data @ 0x8003a000
num bitmap blocks: 13
Disk Super Block:
name: backup
magic1: 0x42465331
fs byte order: big endian
block size: 2048
num blocks: 204800
num blocks used: 2387
inode size: 2048
magic2: 0xdd121031
num blocks per allocation group: 1
ag shift: 14
num ag's: 13
flags: 0x434c454e
magic3: 0x15b6830e
log start: 0 -- log end: 0
log area: ag : 0 start : 14 len : 2048
root dir inode: ag : 8 start : 0 len : 1
indices inode: ag : 0 start : 2062 len : 1
pad: 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
------------------------------------------
nsid: -2147251712 nbitmap blocks 13 bv @ 0x80043000 bbm_sem 22274
sem 22272 fd 3 dev block size 512
inodes: root 0x80052800 index 0x80096800 name 0x80098800 size 0x80099800
create time 0x0 last m. time 0x8009a800
index list @ 0x0
log sem 22275 cur_log_end 0 cur_lh 0x8004bcc0 active_lh 0
completed log entries @ 0x0 tmp blocks @ 0x8003a000 tmp b. sem 22273
$ mkdir /backup
$ mount /boot/home/image.img /backup
$ unmount /backup
$ cdrecord
/boot/home/config/bin/cdrecord: No CD/DVD-Recorder device specified.
/boot/home/config/bin/cdrecord: Usage: /boot/home/config/bin/cdrecord [options]
track1...trackn
Options:
-version print version information and exit
-v increment general verbose level by one
-V increment SCSI command transport verbose level by one
-debug print additional debug messages
dev=target SCSI target to use as CD/DVD-Recorder
timeout=# set the default SCSI command timeout to #.
driver=name user supplied driver name, use with extreme care
-checkdrive check if a driver for the drive is present
-prcap print drive capabilities for MMC compliant drives
-inq do an inquiry for the drive end exit
-scanbus scan the SCSI bus end exit
-reset reset the SCSI bus with the cdrecorder (if possible)
-ignsize ignore the known size of a medium (may cause problems)
-useinfo use *.inf files to overwrite audio options.
speed=# set speed of drive
blank=type blank a CD-RW disc (see blank=help)
fs=# Set fifo size to # (0 to disable, default is 4 MB)
-load load the disk and exit (works only with tray loader)
-eject eject the disk after doing the work
-dummy do everything with laser turned off
-msinfo retrieve multi-session info for mkisofs >= 1.10
-toc retrieve and print TOC/PMA data
-atip retrieve and print ATIP data
-multi generate a TOC that allows multi session
In this case default track type is CD-ROM XA2
-fix fixate a corrupt or unfixated disk (generate a TOC)
-nofix do not fixate disk after writing tracks
-force force to continue on some errors to allow blanking bad d
isks
-dao Write disk in DAO mode. This option will go away in the
future.
tsize=# Length of valid data in next track
padsize=# Amount of padding for next track
pregap=# Amount of pre-gap sectors before next track
defpregap=# Amount of pre-gap sectors for all but track #1
mcn=text Set the media catalog number for this CD to 'text'
isrc=text Set the ISRC number for the next track to 'text'
index=list Set the index list for the next track to 'list'
-audio Subsequent tracks are CD-DA audio tracks
-data Subsequent tracks are CD-ROM data mode 1 (default)
-mode2 Subsequent tracks are CD-ROM data mode 2
-xa1 Subsequent tracks are CD-ROM XA mode 1
-xa2 Subsequent tracks are CD-ROM XA mode 2
-cdi Subsequent tracks are CDI tracks
-isosize Use iso9660 file system size for next data track
-preemp Audio tracks are mastered with 50/15 s preemphasis
-nopreemp Audio tracks are mastered with no preemphasis (default)
-pad Pad data tracks with 15 zeroed sectors
Pad audio tracks to a multiple of 2352 bytes
-nopad Do not pad data tracks (default)
-swab Audio data source is byte-swapped (little-endian/Intel)
The type of the first track is used for the toc type.
Currently only form 1 tracks are supported.
$ cdrecord -v dev=0,4,0 speed=8 -dummy -data /boot/home/image.img
Cdrecord 1.8 (powerpc-be-beos) Copyright (C) 1995-2000 Jg Schilling
TOC Type: 1 = CD-ROM
/boot/home/config/bin/cdrecord: WARNING: Cannot set priority on this OS.
/boot/home/config/bin/cdrecord: WARNING: This causes a high risk for buffer unde
rruns.
/boot/home/config/bin/cdrecord: Fifo not supported.
scsidev: '0,4,0'
scsibus: 0 target: 4 lun: 0
Using libscg version 'schily-0.1'
atapi: -1
Device type : Removable CD-ROM
Version : 2
Response Format: 2
Capabilities : SYNC LINKED
Vendor_info : 'MATSHITA'
Identifikation : 'CD-R CW-7503 '
Revision : '1.08'
Device seems to be: Generic mmc CD-R.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags : SWABAUDIO
Drive buf size : 2090928 = 2041 KB
FIFO size : 4194304 = 4096 KB
Track 01: data 400 MB
Total size: 459 MB (45:30.69) = 204802 sectors
Lout start: 459 MB (45:32/52) = 204802 sectors
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 5
Is not unrestricted
Is not erasable
Disk sub type: 3
ATIP start of lead in: -11634 (97:26/66)
ATIP start of lead out: 338100 (75:10/00)
Disk type: Short strategy type (Phthalocyanine or similar)
Manuf. index: 3
Manufacturer: CMC Magnetics Corporation
Blocks total: 338100 Blocks current: 338100 Blocks remaining: 133298
Starting to write CD/DVD at speed 8 in dummy mode for single session.
Last chance to quit, starting dummy write in 1 seconds.
Starting new track at sector: 0
Track 01: 400 of 400 MB written.
Track 01: Total bytes read/written: 419430400/419430400 (204800 sectors).
Writing time: 349.020s
Fixating...
WARNING: Some drives don't like fixation in dummy mode.
Fixating time: 37.591s
$ cdrecord -v dev=0,4,0 speed=8 -data /boot/home/image.img
Cdrecord 1.8 (powerpc-be-beos) Copyright (C) 1995-2000 Jg Schilling
TOC Type: 1 = CD-ROM
/boot/home/config/bin/cdrecord: WARNING: Cannot set priority on this OS.
/boot/home/config/bin/cdrecord: WARNING: This causes a high risk for buffer unde
rruns.
/boot/home/config/bin/cdrecord: Fifo not supported.
scsidev: '0,4,0'
scsibus: 0 target: 4 lun: 0
Using libscg version 'schily-0.1'
atapi: -1
Device type : Removable CD-ROM
Version : 2
Response Format: 2
Capabilities : SYNC LINKED
Vendor_info : 'MATSHITA'
Identifikation : 'CD-R CW-7503 '
Revision : '1.08'
Device seems to be: Generic mmc CD-R.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags : SWABAUDIO
FIFO size : 4194304 = 4096 KB
Track 01: data 400 MB
Total size: 459 MB (45:30.69) = 204802 sectors
Lout start: 459 MB (45:32/52) = 204802 sectors
/boot/home/config/bin/cdrecord: No Error. test unit ready: scsi sendcmd: fatal e
rror
CDB: 00 00 00 00 00 00
Sense Bytes:
Sense Key: 0x2 Not Ready, Segment 0
Sense Code: 0x3A Qual 0x02 (medium not present - tray open) Fru 0x0
Sense flags: Blk 0 (not valid)
/boot/home/config/bin/cdrecord: No disk / Wrong disk!
$ cdrecord -v dev=0,4,0 speed=8 -data /boot/home/image.img
Cdrecord 1.8 (powerpc-be-beos) Copyright (C) 1995-2000 Jg Schilling
TOC Type: 1 = CD-ROM
/boot/home/config/bin/cdrecord: WARNING: Cannot set priority on this OS.
/boot/home/config/bin/cdrecord: WARNING: This causes a high risk for buffer unde
rruns.
/boot/home/config/bin/cdrecord: Fifo not supported.
scsidev: '0,4,0'
scsibus: 0 target: 4 lun: 0
Using libscg version 'schily-0.1'
atapi: -1
/boot/home/config/bin/cdrecord: Cannot do inquiry for CD/DVD-Recorder.
/boot/home/config/bin/cdrecord: No Error. test unit ready: scsi sendcmd: fatal e
rror
CDB: 00 00 00 00 00 00
Sense Bytes:
Sense Key: 0x2 Not Ready, Segment 0
Sense Code: 0x04 Qual 0x01 (logical unit is in process of becoming ready) Fru 0x
0
Sense flags: Blk 0 (not valid)
cmd finished after 0.046s timeout 40s
$ cdrecord -v dev=0,4,0 speed=8 -data /boot/home/image.img
Cdrecord 1.8 (powerpc-be-beos) Copyright (C) 1995-2000 Jg Schilling
TOC Type: 1 = CD-ROM
/boot/home/config/bin/cdrecord: WARNING: Cannot set priority on this OS.
/boot/home/config/bin/cdrecord: WARNING: This causes a high risk for buffer unde
rruns.
/boot/home/config/bin/cdrecord: Fifo not supported.
scsidev: '0,4,0'
scsibus: 0 target: 4 lun: 0
Using libscg version 'schily-0.1'
atapi: -1
Device type : Removable CD-ROM
Version : 2
Response Format: 2
Capabilities : SYNC LINKED
Vendor_info : 'MATSHITA'
Identifikation : 'CD-R CW-7503 '
Revision : '1.08'
Device seems to be: Generic mmc CD-R.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags : SWABAUDIO
Drive buf size : 2090928 = 2041 KB
FIFO size : 4194304 = 4096 KB
Track 01: data 400 MB
Total size: 459 MB (45:30.69) = 204802 sectors
Lout start: 459 MB (45:32/52) = 204802 sectors
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 5
Is not unrestricted
Is not erasable
Disk sub type: 3
ATIP start of lead in: -11634 (97:26/66)
ATIP start of lead out: 338100 (75:10/00)
Disk type: Short strategy type (Phthalocyanine or similar)
Manuf. index: 3
Manufacturer: CMC Magnetics Corporation
Blocks total: 338100 Blocks current: 338100 Blocks remaining: 133298
Starting to write CD/DVD at speed 8 in write mode for single session.
Last chance to quit, starting real write in 1 seconds.
Starting new track at sector: 0
Track 01: 400 of 400 MB written.
Track 01: Total bytes read/written: 419430400/419430400 (204800 sectors).
Writing time: 360.966s
Fixating...
Fixating time: 38.039s
$