Hi misc,
I have, apparently, some sort of problem when burning DVDs with
dvd+rw-tools-5.21.4.10.8 using UDF on OpenBSD 3.8.
The DVDs are burned, but when I check them with tar (to list its
contents for example) I get invalid header errors. Also, when checking
the txt index file I also produce with the backup script, I get garbled
text in some parts. This happens when I try this on the mounted DVD.
The weird things is that, when doing md5 or sha1, I'm getting the same
results. For example:
backup:/# mount -t udf /dev/cd0a /mnt
backup:/# mount
/dev/wd0a on / type ffs (local)
/dev/wd0f on /backups type ffs (local, nodev, nosuid)
/dev/wd0d on /usr type ffs (local, nodev)
/dev/wd0e on /var type ffs (local, nodev, nosuid)
/dev/cd0a on /mnt type udf (local, read-only)
backup:/# md5 /backups/IT.0.tar.gz
MD5 (/backups/IT.0.tar.gz) = a0f59f6af6392c7f2e6ccb9edc52a3a0
backup:/# md5 /mnt/IT.0.tar.gz
MD5 (IT.0.tar.gz) = a0f59f6af6392c7f2e6ccb9edc52a3a0
Of course, the files I burn to the DVD come from /backups. Now, if I
copy it back to the hard disk, there seems to be something not quite right.
backup:/# cp /mnt/IT.0.tar.gz /tmp
backup:/# md5 /tmp/IT.0.tar.gz
MD5 (/tmp/IT.0.tar.gz) = d552935f4992620c66eb787731233881
The md5 result for the /tmp directory seems to vary after copying the
file from the dvd to the hdd a couple of times. So one could say that
the DVD recorder seems to be having problems reading the disc, but then,
why am I getting good md5 or sha1 results when doing them on /mnt? I
have run the md5 tests several times on /mnt, always yielding the same
good result.
The line I use to burn the DVDs is:
backup:/# growisofs -Z /dev/rcd0c -J -joliet-long -udf -r .
I'm doing this on a rather old machine (Pentium 166), but it seems to be
burning them ok at around 1X. After having burned the first one, I then
checked it on a different machine (Windows) opening it with WinRAR and
it seemed to be good.
It seems that md5 (and its relatives) seem to use open() to digest the
file, where cat for example uses fopen(). I really don't know if this
could mean any difference, just speculating, but I really can't see any
other difference between one command and the other.
Any clues?
Full dmesg of the backup box below:
OpenBSD 3.8 (GENERIC) #138: Sat Sep 10 15:41:37 MDT 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium/MMX ("GenuineIntel" 586-class) 166 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,MMX
cpu0: F00F bug workaround installed
real mem = 33136640 (32360K)
avail mem = 22245376 (21724K)
using 430 buffers containing 1761280 bytes (1720K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 07/15/95, BIOS32 rev. 0 @ 0xfdb10
apm0 at bios0: Power Management spec V1.2 (BIOS mgmt disabled)
apm0: APM power management enable: power management disabled (1)
apm0: APM engage (device 1): power management disabled (1)
apm0: AC on, battery charge unknown
apm0: flags b0102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000
pcibios0: PCI BIOS has 4 Interrupt Routing table entries
pcibios0: no compatible PCI ICU found
pcibios0: Warning, unable to fix up PCI interrupt routing
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc0000/0x8000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 5 function 0 "Hint Host" rev 0x00
pcib0 at pci0 dev 5 function 1 "Hint ISA" rev 0x00
pciide0 at pci0 dev 5 function 2 "Hint EIDE" rev 0x00: no DMA, channel 0
wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <WDC WD400BB-00JHC0>
wd0: 16-sector PIO, LBA, 38166MB, 78165360 sectors
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <PIONEER, DVD-RW DVR-111D, 1.06> SCSI0
5/cdrom removable
rl0 at pci0 dev 9 function 0 "Realtek 8139" rev 0x10: irq 10 address
00:50:bf:17:cc:17
rlphy0 at rl0 phy 0: RTL internal phy
vga1 at pci0 dev 10 function 0 "Cirrus Logic CL-GD5430" rev 0x22
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
rl1 at pci0 dev 11 function 0 "Realtek 8139" rev 0x10: irq 11 address
00:c0:26:00:c9:3c
rlphy1 at rl1 phy 0: RTL internal phy
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
isapnp0 at isa0 port 0x279: read port 0x203
"CMI8330. Audio Adapter, @@@0001, , " at isapnp0 port 0x530/8,0x388/8
irq 5 drq 0 not configured
"CMI8330. Audio Adapter, @[EMAIL PROTECTED], , " at isapnp0 port 0x330/2 irq 9 not
configured
joy0 at isapnp0 "CMI8330. Audio Adapter, @[EMAIL PROTECTED], , " port 0x200/8
sb1 at isapnp0 "CMI8330. Audio Adapter, @[EMAIL PROTECTED], , " port 0x220/16 irq 5
drq 1,5: dsp v4.13
midi1 at sb1: <SB MIDI UART>
audio0 at sb1
opl0 at sb1: model OPL3
midi2 at opl0: <SB Yamaha OPL3>
biomask f345 netmask ff45 ttymask ffc7
pctr: 586-class performance counters and user-level cycle counter enabled
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302