Subject: Re: Help, newfs/disklabel for disk images
To: Jeff Rizzo <riz@NetBSD.org>
From: Michael Dexter <dexter@ambidexter.com>
List: netbsd-users
Date: 07/27/2006 11:50:59
> > I follow these steps under OpenBSD to create and mount a 500MB disk
> > image:
> >
>> sudo dd if=/dev/zero of=/home/sysjail00.img bs=1024 count=500000
>> sudo vnconfig -c /dev/vnd0c /home/sysjail00.img
>> sudo newfs /dev/vnd0c
>> sudo fsck -y /dev/vnd0c
>> sudo mkdir /mnt/sysjail00/
>> sudo mount_ffs /dev/vnd0c /mnt/sysjail00/
>>
>> Under NetBSD I get as far as:
>>
>> sudo dd if=/dev/zero of=/home/sysjail00.img bs=1024 count=500000
>> sudo vnconfig vnd0 /home/sysjail00.img
>> ... and
>> sudo newfs vnd0 fails. I have tried vnd0c and I see evidence on the
>> net (in reference to memory, CD and CF images) that disklabel and
>> perhaps fdisk may be required. I tried several disklabel variations
>> but perhaps a manual disklabel edit is required? If so, what entries
> > are required?
>
>On the i386 (and amd64) ports of NetBSD, the "entire disk" raw partition
>is "d", so if you use vnd0d above, it should all work.
Somewhat unexpectedly, vnd0a works and I had not tried it during my
first attempts. Might I encounter any issues by specifying vnd0a?
Appreciated,
Michael.