Subject: mkhybrid and/or vnconfig problem
To: None <port-i386@netbsd.org>
From: Ray Phillips <r.phillips@mailbox.uq.edu.au>
List: port-i386
Date: 05/25/2001 17:52:20
Dear Port i386:
Could offer me any suggestions about a problem I'm experiencing with
myhybrid running on a NetBSD/i386 1.5 machine, please?
The problem is that one of my files doesn't seem to be written properly to
the iso file created by mkybrid.
The command I used to create the iso file (which seemed to work all right) was:
% ./mkhybrid -log-file log.file -o cd.iso \
-r -J -V "Store Log" store.log.gz
re-directing all messages to log.file
I mounted the file as a virtual disk device using the commands:
vnconfig -c vnd0 cd.iso
mount -t cd 9660 /dev/vnd0c /mnt
which worked with this iso file as expected.
The file that's causing trouble is named store.log.gz. Before putting it
into the iso file I executed these commands on it
% ls-l store.log.gz
-rw-r--r-- 1 ray wheel 343068607 May 23 19:14 store.log.gz
% gzip -vl store.log.gz
method crc date time compressed uncompr. ratio uncompressed_name
defla 2b556560 May 23 19:14 343068607 2110984088 83.7% store.log
% gzip -vt store.log.gz
store.log.gz: OK
I've found that executing
gzip -vl store.log.gz
on the file in the virtual drive gives a different answer each time, for
example:
% gzip -vl /mnt/store.log.gz
method crc date time compressed uncompr. ratio uncompressed_name
defla 2b556560 May 23 19:14 343068607 2110984088 83.7% store.log
% gzip -vl /mnt/store.log.gz
method crc date time compressed uncompr. ratio uncompressed_name
defla 5accb628 May 23 19:14 343068607 1461744675 76.5% /mnt/store.log
% gzip -vl /mnt/store.log.gz
method crc date time compressed uncompr. ratio uncompressed_name
defla e181ab41 May 23 19:14 343068607 -1412029498 - 0.1% /mnt/store.log
% gzip -vl /mnt/store.log.gz
method crc date time compressed uncompr. ratio uncompressed_name
defla 22cd1895 May 23 19:14 343068607 1207296212 71.5% /mnt/store.log
and using gzip to test the file on the virtual drive produces an error:
% gzip -vt /mnt/store.log.gz
/mnt/store.log.gz:
gzip: /mnt/store.log.gz: unexpected end of file
When I copied the file from the virtual drive to my /usr partition the
files weren't the same size:
% cp /mnt/store.log.gz .
% ls -l store.log.gz /mnt/store.log.gz
-r--r--r-- 1 root wheel 343068607 May 23 19:14 /mnt/store.log.gz
-r--r--r-- 1 root wheel 342822912 May 26 02:50 store.log.gz
I've tried building an iso file with just -o cd.iso store.log.gz as the
arguments for mkhybrid, but the problem didn't go away.
I suppose the obvious conclusion is that there's something strange about
this file, but it's just a gzipped text file and it checks out all right
with gzip. I've even unzipped it, rezipped and then buildt an iso file
again from the re-zipped file -- all to no avail.
I first noticed the problem when I was checking an iso file I'd created
which contained three gzip files:
% ls -l *.gz
-rw-r--r-- 1 ray wheel 334876651 May 23 18:19 access.log.gz
-rw-r--r-- 1 ray wheel 467072 May 23 16:33 cache.log.gz
-rw-r--r-- 1 ray wheel 343068607 May 23 19:14 store.log.gz
The other two files on the virtual drive checked out OK using gzip.
Since the size of these three together is only just less than the 650 MB
limit for a CD, I tried making an iso file containing just store.log.gz;
still no improvement.
The version I'm using is a pre-compiled one from the NetBSD packages
collection
(ftp://ftp.netbsd.org/pub/NetBSD/packages/1.5/i386/All/mkhybrid-1.12b5.2.tgz).
I'll append the log file created by mkhybrid to this message. (You'll note
that the clock on this test NetBSD machine is about then hours fast.)
Ray Phillips
./mkhybrid -log-file log.file -v -o cd.iso -r -J -V Store Log store.log.gz
mkhybrid 1.12b5.2
2.99% done, estimate finish Sat May 26 02:52:26 2001
5.98% done, estimate finish Sat May 26 02:52:09 2001
8.96% done, estimate finish Sat May 26 02:52:04 2001
11.95% done, estimate finish Sat May 26 02:51:53 2001
14.93% done, estimate finish Sat May 26 02:51:53 2001
17.91% done, estimate finish Sat May 26 02:51:47 2001
20.89% done, estimate finish Sat May 26 02:51:48 2001
23.88% done, estimate finish Sat May 26 02:51:45 2001
26.86% done, estimate finish Sat May 26 02:51:42 2001
29.85% done, estimate finish Sat May 26 02:51:40 2001
32.83% done, estimate finish Sat May 26 02:51:38 2001
35.82% done, estimate finish Sat May 26 02:51:22 2001
38.80% done, estimate finish Sat May 26 02:51:04 2001
41.79% done, estimate finish Sat May 26 02:50:48 2001
44.77% done, estimate finish Sat May 26 02:50:35 2001
47.76% done, estimate finish Sat May 26 02:50:23 2001
50.74% done, estimate finish Sat May 26 02:50:13 2001
53.73% done, estimate finish Sat May 26 02:50:03 2001
56.71% done, estimate finish Sat May 26 02:49:53 2001
59.69% done, estimate finish Sat May 26 02:49:49 2001
62.67% done, estimate finish Sat May 26 02:49:47 2001
65.66% done, estimate finish Sat May 26 02:49:45 2001
68.64% done, estimate finish Sat May 26 02:49:43 2001
71.63% done, estimate finish Sat May 26 02:49:42 2001
74.61% done, estimate finish Sat May 26 02:49:42 2001
77.60% done, estimate finish Sat May 26 02:49:42 2001
80.58% done, estimate finish Sat May 26 02:49:40 2001
83.57% done, estimate finish Sat May 26 02:49:39 2001
86.55% done, estimate finish Sat May 26 02:49:39 2001
89.54% done, estimate finish Sat May 26 02:49:38 2001
92.52% done, estimate finish Sat May 26 02:49:37 2001
95.51% done, estimate finish Sat May 26 02:49:37 2001
98.49% done, estimate finish Sat May 26 02:49:36 2001
Total translation table size: 0
Total rockridge attributes bytes: 253
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 127a4
167544 extents written (327 Mb)