Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Apr 2000 17:06:14 -0400
From:      "Josh M. Osborne" <stripes@eng.us.uu.net>
To:        mailto:;mailto:;mailto: ;, @eng.us.uu.net;
Subject:   trubble with vnconfig/disklabel/fdisk and a 16M image
Message-ID:  <RAA17859.200004132106@garotte.eng.us.uu.net>

next in thread | raw e-mail | index | archive | help
I'm trying to build a 16M FreeBSD image (like PicoBSD, but not as
small).  I'm doing it under 4.0 (I need the USB code).

I'm trying to test it with bochs (I tryed vmware before, but gave up).

I've tryed many variations of the following:

# dd if=/dev/zero bs=1048576 count=16 of=16M-bochs
# vnconfig -u -v vn0
# vnconfig -v vn0 16M-bochs
# disklabel -R -r vn0 bochs.label
# fdisk -I -B -v vn0
(test image -- no boot blocks found)
# disklabel -w -B vn0 auto
(gets "disklabel: No space left on device",
same with "disklabel -w -B vn0 bochs.label")

bochs.label contains:
# /dev/rvn0c:
type: unknown
disk: amnesiac
label: 
flags:
bytes/sector: 512
sectors/track: 17
tracks/cylinder: 8
sectors/cylinder: 136
cylinders: 240
sectors/unit: 32640
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0 

8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  c: 32623        17    unused        0     0           # (Cyl.    0 - 65279)
  a: 32640        0    unused        0     0            # (Cyl.    0 - 65279)

With this it claims "disklabel: ioctl DIOCSDINFO: open partition
would move or shrink".  If I take out the a partition, or use "auto"
rather then "bochs.label" the disklabel seems to work, but no boot
blocks are written.

Does anyone have any ideas on how to do this?


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?RAA17859.200004132106>