NetBSD-Users archive

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

dumping to CD fails



I've been trying without success to dump a file system on a machine running NetBSD/amd64 5.1 to CD or DVD as outlined by Wojciech on this page:

http://mail-index.netbsd.org/netbsd-users/2002/01/02/0023.html

Initially I used a file system containing a single 1.6 GB file and a named pipe but dump wouldn't complete, as per Example 1 below. The percentage done before the Broken pipe error varied though.

Then I tried a file system containing an 18 MB directory. dump completed but restore failed.

Since there was only 18 MB to be dumped I tried piping dump's output into cdrecord directly instead of via the named pipe but that didn't help, see Example 2 below.

Can anyone tell me what's going wrong please?


Ray


Example 1
=========

--- Terminal dump was run from ---
# dump -0a -B 4572250 -f /tmp/cdrecord /mnt
  DUMP: Found /dev/rwd1e on /mnt in mount table
  DUMP: Date of this level 0 dump: Fri Jan 27 13:33:00 2012
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/rwd1e (/mnt) to /tmp/cdrecord
  DUMP: Label: none
  DUMP: mapping (Pass I) [regular files]
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 1728987 tape blocks.
  DUMP: Volume 1 started at: Fri Jan 27 13:34:02 2012
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
  DUMP: 29.98% done, finished in 0:11
  DUMP: 76.95% done, finished in 0:02
  DUMP: Broken pipe
  DUMP: The ENTIRE dump is aborted.
#
--- Terminal cdrecord was run from ---
of# mkisofs -print-size /mnt
Total extents scheduled to be written = 858354
858354
of#
of# cdrecord dev=31,0,0 -v blank=fast driveropts=burnproof -tsize=858354s /tmp/cdrecord
cdrecord: No write mode specified.
cdrecord: Assuming -sao mode.
cdrecord: If your drive does not accept -sao, try -tao.
cdrecord: Future versions of cdrecord may have different drive dependent defaults. Cdrecord-ProDVD-ProBD-Clone 3.01a03 (amd64-unknown-netbsd5.1) Copyright (C) 1995-2010 Joerg Schilling
TOC Type: 1 = CD-ROM
scsidev: '31,0,0'
scsibus: 31 target: 0 lun: 0
Using libscg version 'schily-0.9'.
Driveropts: 'burnproof'
SCSI buffer size: 61440
atapi: 1
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   :
Vendor_info    : 'HL-DT-ST'
Identifikation : 'DVDRAM GSA-H44N '
Revision       : 'RB01'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Current: DVD-RW sequential recording
Profile: DVD-RAM
Profile: DVD-R sequential recording
Profile: DVD-R/DL sequential recording
Profile: DVD-R/DL layer jump recording
Profile: DVD-RW sequential recording (current)
Profile: DVD-RW restricted overwrite (current)
Profile: DVD+RW
Profile: DVD+R
Profile: DVD+R/DL
Profile: DVD-ROM (current)
Profile: CD-R
Profile: CD-RW
Profile: CD-ROM
Profile: Removable Disk
Using generic SCSI-3/mmc-2 DVD-R/DVD-RW/DVD-RAM driver (mmc_dvd).
Driver flags   : NO-CD DVD MMC-3 SWABAUDIO BURNFREE
Supported modes: PACKET SAO LAYER_JUMP
Drive buf size : 1114112 = 1088 KB
Drive pbuf size: 1966080 = 1920 KB
Drive DMA Speed: 17655 kB/s 100x CD 12x DVD 3x BD
FIFO size      : 4194304 = 4096 KB
Track 01: data  1676 MB
Total size:     1676 MB = 858354 sectors
Current Secsize: 2048
Total power on  hours: 0
WARNING: Phys disk size 1697364 differs from rzone size 0! Prerecorded disk?
WARNING: Phys start: 196608 Phys end 1893971
WARNING: Drive returns zero media size. Using media size from ADIP.
Reducing transfer size from 61440 to 32768 bytes.
Starting to write CD/DVD/BD at speed 2 in real SAO mode for single session.
Last chance to quit, starting real write    0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
Blanking PMA, TOC, pregap
Blanking time:   58.772s
Total power on  hours: 0
Blocks total: 2298496 Blocks current: 2298496 Blocks remaining: 1440142
BURN-Free is ON.
Starting new track at sector: 0
Track 01: 1676 of 1676 MB written (fifo 100%) [buf 100%]   2.0x.
Track 01: Total bytes read/written: 1757908992/1757908992 (858354 sectors).
Writing  time:  675.333s
Average write speed   1.9x.
Min drive buffer fill was 97%
Fixating...
Fixating time:   50.289s
cdrecord: fifo had 53648 puts and 53648 gets.
cdrecord: fifo was 0 times empty and 20983 times full, min fill was 95%.
of#

----------------------------------



Example 2
=========

# uname -mrs
NetBSD 5.1 amd64
# df -h
Filesystem        Size       Used      Avail %Cap Mounted on
/dev/wd0a         147G       9.6G       130G   6% /
kernfs            1.0K       1.0K         0B 100% /kern
ptyfs             1.0K       1.0K         0B 100% /dev/pts
procfs            4.0K       4.0K         0B 100% /proc
/dev/wd1e         192G        18M       183G   0% /mnt
#
# dump -0a -B 666000 -f - /mnt | cdrecord dev=31,0,0 -v blank=fast driveropts=burnproof -tao -
  DUMP: Found /dev/rwd1e on /mnt in mount table
Cdrecord-ProDVD-ProBD-Clone 3.01a03 (amd64-unknown-netbsd5.1) Copyright (C) 1995-2010 Joerg Schilling
TOC Type: 1 = CD-ROM
scsidev: '31,0,0'
scsibus: 31 target: 0 lun: 0
Using libscg version 'schily-0.9'.
Driveropts: 'burnproof'
SCSI buffer size: 61440
atapi: 1
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   :
Vendor_info    : 'HL-DT-ST'
Identifikation : 'DVDRAM GSA-H44N '
Revision       : 'RB01'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
  DUMP: Date of this level 0 dump: Mon Jan 30 18:13:42 2012
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/rwd1e (/mnt) to standard output
  DUMP: Label: none
Current: CD-RW
Profile: DVD-RAM
Profile: DVD-R sequential recording
Profile: DVD-R/DL sequential recording
Profile: DVD-R/DL layer jump recording
Profile: DVD-RW sequential recording
Profile: DVD-RW restricted overwrite
Profile: DVD+RW
Profile: DVD+R
Profile: DVD+R/DL
Profile: DVD-ROM
Profile: CD-R
Profile: CD-RW (current)
Profile: CD-ROM
Profile: Removable Disk
  DUMP: mapping (Pass I) [regular files]
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R LAYER_JUMP
Drive buf size : 1053696 = 1029 KB
Drive pbuf size: 1966080 = 1920 KB
Drive DMA Speed: 17454 kB/s 99x CD 12x DVD 3x BD
FIFO size      : 4194304 = 4096 KB
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: 2
  Reference speed: 6
Disk Is not unrestricted
Disk Is erasable
  Disk sub type: High speed Rewritable (CAV) media (1)
  ATIP start of lead in:  -11077 (97:34/23)
  ATIP start of lead out: 359849 (79:59/74)
  1T speed low:  4 1T speed high: 10
  2T speed low:  2 2T speed high: 10
  power mult factor: 2 6
  recommended erase/write power: 5
  A1 values: 24 2C DC
  A2 values: 14 A4 4A
  A3 values: 04 C4 80
Disk type:    Phase change
Manuf. index: 11
Manufacturer: Mitsubishi Chemical Corporation

    Capacity  Blklen/Sparesz.  Format-type  Type
0 2048 0x00 No Media Present or Unknown Capacity
cdrecord: WARNING: Total disk size unknown. Data may not fit on disk.
Starting to write CD/DVD/BD at speed 10 in real TAO mode for single session.
Last chance to quit, starting real write    0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... DUMP: mapping (Pass II) [directories]
  DUMP: estimated 28492 tape blocks.
  DUMP: Volume 1 started at: Mon Jan 30 18:14:44 2012
  DUMP: dumping (Pass III) [directories]
input buffer ready.
Performing OPC...
Blanking PMA, TOC, pregap
Blanking time:   20.361s
Blocks total: 359849 Blocks current: 359849 Blocks remaining: 359849
BURN-Free is ON.
Performing OPC...
Starting new track at sector: 0
Track 01: 2 MB written (fifo 100%) [buf 99%] 10.7x. DUMP: dumping (Pass IV) [regular files] Track 01: 20 MB written (fifo 100%) [buf 99%] 10.5x. DUMP: 25403 tape blocks
  DUMP: Volume 1 completed at: Mon Jan 30 18:15:20 2012
  DUMP: Volume 1 took 0:00:36
  DUMP: Volume 1 transfer rate: 705 KB/s
  DUMP: Date of this level 0 dump: Mon Jan 30 18:13:42 2012
  DUMP: Date this dump completed:  Mon Jan 30 18:15:20 2012
  DUMP: Average transfer rate: 705 KB/s
  DUMP: DUMP IS DONE
Track 01:   24 MB written (fifo 100%) [buf  99%]  10.4x.
Track 01: Total bytes read/written: 26009600/26009600 (12700 sectors).
Writing  time:   20.168s
Min drive buffer fill was 99%
Fixating...
Fixating time:   26.401s
cdrecord: fifo had 425 puts and 425 gets.
cdrecord: fifo was 0 times empty and 341 times full, min fill was 85%.
#
# cdrecord dev=31,0,0 -minfo
Cdrecord-ProDVD-ProBD-Clone 3.01a03 (amd64-unknown-netbsd5.1) Copyright (C) 1995-2010 Joerg Schilling
scsidev: '31,0,0'
scsibus: 31 target: 0 lun: 0
Using libscg version 'schily-0.9'.
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   :
Vendor_info    : 'HL-DT-ST'
Identifikation : 'DVDRAM GSA-H44N '
Revision       : 'RB01'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R LAYER_JUMP
Mounted media class:      CD
Mounted media type:       CD-RW
Disk Is erasable
data type:                standard
disk status:              complete
session status:           complete
BG format status:         none
first track:              1
number of sessions:       1
first track in last sess: 1
last track in last sess:  1
Disk Is not unrestricted
Disk type: CD-DA or CD-ROM
Disk id: 0x825527
last start of lead in: 716730
last start of lead out: 1166730

Track  Sess Type   Start Addr End Addr   Size
==============================================
    1     1 Data   0          12699      12700

Last session start address:         0
Last session leadout start address: 12700
#
# restore -if /dev/cd0d
restore > ls
.:
gnu/

restore > xit
# cd /mnt
# ls
gnu
# rm -R *
# ls
# restore rf /dev/cd0d
Mount tape volume 2
Enter ``none'' if there are no more tapes
otherwise enter tape name (default: /dev/cd0d) none
Warning: End-of-input encountered while extracting ./gnu/wget/1.13/1.13.4/wget-1.13.4/po/pt_BR.po
bad entry: incomplete operations
name: ./gnu/wget/1.13/1.13.4/wget-1.13.4/po/be.po
parent name ./gnu/wget/1.13/1.13.4/wget-1.13.4/po
sibling name: ./gnu/wget/1.13/1.13.4/wget-1.13.4/po/pt_BR.po
entry type: LEAF
inode number: 20197664
flags: NEW
abort? [yn] y
dump core? [yn] n
#


Home | Main Index | Thread Index | Old Index