From owner-freebsd-questions Thu Apr 13 14: 6:21 2000 Delivered-To: freebsd-questions@freebsd.org Received: from semail00.eng.us.uu.net (semail00.eng.us.uu.net [206.64.200.131]) by hub.freebsd.org (Postfix) with ESMTP id 3874537B649 for ; Thu, 13 Apr 2000 14:06:16 -0700 (PDT) (envelope-from stripes@eng.us.uu.net) Received: from garotte.eng.us.uu.net by semail00.eng.us.uu.net with ESMTP (peer crosschecked as: garotte.eng.us.uu.net [199.170.215.24]) id RAA05002; Thu, 13 Apr 2000 17:06:15 -0400 (EDT) Received: from garotte.eng.us.uu.net by garotte.eng.us.uu.net with ESMTP (peer crosschecked as: localhost.eng.us.uu.net [127.0.0.1]) id RAA17859; Thu, 13 Apr 2000 17:06:14 -0400 (EDT) Message-Id: To: mailto:;mailto:;mailto: ;, @eng.us.uu.net; Subject: trubble with vnconfig/disklabel/fdisk and a 16M image Date: Thu, 13 Apr 2000 17:06:14 -0400 From: "Josh M. Osborne" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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