Subject: Re: mkhybrid and/or vnconfig problem
To: None <port-i386@netbsd.org>
From: None <Federico_Lupi@mail.datasys.it>
List: port-i386
Date: 05/29/2001 15:34:21
Ray Phillips <r.phillips@mailbox.uq.edu.au> wrote:
> 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.
>
> ...
>
>   % gzip -vt /mnt/store.log.gz
>   /mnt/store.log.gz:
>   gzip: /mnt/store.log.gz: unexpected end of file
>
> ...
>
> Ray Phillips

Try looking at
     http://www.mclink.it/personal/MG2508/nbsdeng/chap-misc.html#AEN4052

I think that you need to specify the sizes to vnconfig or you will get
the "unexpected end of file" error. Eg.

     vnconfig -v vnd0 cdimage 512/556/1/1
                                  ^^^
(The value 556 is the result of the size of the cdimage file divided by 512.)

Federico