Subject: Help, newfs/disklabel for disk images
To: None <netbsd-users@netbsd.org>
From: Michael Dexter <dexter@ambidexter.com>
List: netbsd-users
Date: 07/26/2006 00:51:30
Hello,
Our team is porting a project from OpenBSD to NetBSD and TFM, (having
Read it) is not getting me through a hang up with the formatting of
disk images under NetBSD 3.0 Release, x86 P4.
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?
Appreciated,
Michael.