Subject: Re: Using cloop2 images
To: tech-embed@NetBSD.org <tech-embed@NetBSD.org>
From: David Young <dyoung@pobox.com>
List: tech-embed
Date: 06/13/2007 20:34:20
On Thu, Jun 14, 2007 at 02:29:51AM +0200, Adam Hoka wrote:
> Hello,
> 
> I have decided to use compressed disk image on my livecd, but I ran into problems.
> I have created the image with makefs and vndcompress, and after that, I`ve attached it:
> 
> # makefs pkg.ffs pkg/
> # vndcompress pkg.ffs pkg.ffs.cloop2
> # vnconfig -z vnd0 pkg.ffs.cloop2 
> # vnconfig -l
> vnconfig: warning: /var/run/dev.db: No such file or directory
> vnd0: dev 0,7 inode 2199632
> vnd1: not in use
> vnd2: not in use
> vnd3: not in use
> 
> However, when I want to mount it, I get this:
> 
> # mount /dev/vnd0a /mnt/
> mount_ffs: /dev/vnd0a on /mnt: incorrect super block
> 
> It`s a NetBSD 4.0beta2 system, and the VND_COMPRESS option is in the kernel config.
> Any ideas what`s wrong?

Maybe you need to mount the raw partition, instead?  /dev/rwd0d on x86,
/dev/rwd0c otherwise.  What does 'disklabel vnd0' say?

Dave

-- 
David Young             OJC Technologies
dyoung@ojctech.com      Urbana, IL * (217) 278-3933 ext 24