From owner-freebsd-questions Tue Jan 23 17:36:59 2001 Delivered-To: freebsd-questions@freebsd.org Received: from alicia.nttmcl.com (alicia.nttmcl.com [216.69.69.10]) by hub.freebsd.org (Postfix) with ESMTP id 48F8F37B6CA for ; Tue, 23 Jan 2001 17:36:40 -0800 (PST) Received: from asiale (asiale.nttmcl.com [216.69.69.78]) by alicia.nttmcl.com (8.9.3/8.9.0) with SMTP id RAA00172 for ; Tue, 23 Jan 2001 17:36:39 -0800 (PST) From: "Eugene M. Kim" To: Subject: Disklabel question Date: Tue, 23 Jan 2001 17:32:56 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Greetings, How can I disklabel a partition within a virtual harddrive created using = vn(4)? I tried the following steps but they didn't work quite right. truncate -s 16M hd.img vnconfig -c -s labels hd.img fdisk -I vn0 disklabel -w -B vn0s1 auto The fourth step failed with EINVAL on ioctl(DIOCGDINFO). I'm aware that there are alternative ways, such as putting a temporary = entry in /etc/disktab and using it instead of `auto' keyword, or = synthesizing a disklabel from scratch and applying it using disklabel = -R. But none of these methods seems suitable for automated scripts, = which I need. Could anyone shed a light on this? Thank you in advance, Eugene Kim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message