On 28-Oct-00 Matt Dillon wrote:
>:> I think you are specifying the wrong arguments to disklabel; I
>:> seem to rememebr a -w/-W distinction...
>:
>:Nope.
>:
>:> In any case, I'm running with a disklabel inside a DOS partition
>:> on all but one box of mine, and always have been. I installed
>:> 4.1 on my laptop that way.
>:
>:Sysinstall can create a disklabel inside of a MBR slice fine. The
>:problem is that the disklabel(8) _program_ itself doesn't know how
>:to create a virgin disklabel for a MBR slice.
>:
>:--
>:
>:John Baldwin <[EMAIL PROTECTED]> -- http://www.FreeBSD.org/~jhb/
>
> The patchset I put on the lists earlier today will allow disklabel
> to install a virgin label on a slice. Did it not get out? As matters
> currently stand, disklabel can only edit a preexisting label on a slice.
If your patch works it looks great to me. I was just referring to our
currently checked in code in disklabel(8). :)
> I'll post it again... included below (this time without the file
> descriptor cruft that snuck into my previous posting of the patch). With
> the patch you can do this:
I did wonder about the file descriptor patch the first go-round... :)
> # optional dd if you are paranoid
> # dd if=/dev/zero of=/dev/da0 bs=32k count=4
> fdisk -I da0
> disklabel -w -r da0s1 auto
>
> That's much preferable to having to use sysinstall if all you want to
> do is initialize a label on a slice.
Yes, this is definitely the desired behavior.
--
John Baldwin <[EMAIL PROTECTED]> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!" - http://www.FreeBSD.org/
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message