On Fri, Oct 30, 2009 at 4:06 PM, Otto Moerbeek <[email protected]> wrote:
> The disklabel is written at the start of the disk and you're
> overwriting it with the newfs_msdos command. You should fdisk the
> disk first, and reserve a separate MBR partition for MSDOS.
>
> See the FAQ.

Thank you all for responses -- I have a better idea now. The only
thing that I noticed was newfs_msdos wipes out the entire disklabel as
well as any fdisk created partitions and gobbles up the entire disk.

I guess what James Hartley said in this thread is correct -- Windows
must be used to create the DOS partition, and then disklabel to get
the OpenBSD one.

-Amarendra

>
>        -Otto
>
> On Fri, Oct 30, 2009 at 03:30:23PM +0530, Amarendra Godbole wrote:
>
>> Hi,
>>
>> I have a 320G Buffalo Ministation external USB drive, which I wish to
>> partition so that it contains 1 DOS and 1 native OpenBSD (FFS)
>> partition. Using disklabel, I could created these:
>> > p
>> OpenBSD area: 0-625142448; size: 625142448; free: 0
>> #                size           offset  fstype [fsize bsize  cpg]
>>   c:        625142448                0  unused
>>   h:        310557618        314584830  4.2BSD   2048 16384    1
>>   i:        314584830                0   MSDOS
>> >
>>
>> Now I format sd1h with newfs and things go fine. But when I format
>> sd1i with newfs_msdos, I see the disklabel changed to something like
>> this:
>> OpenBSD_46$ sudo disklabel -E sd1
>> Label editor (enter '?' for help at any prompt)
>> > p
>> OpenBSD area: 0-625142448; size: 625142448; free: 0
>> #                size           offset  fstype [fsize bsize  cpg]
>>   c:        625142448                0  unused
>>   i:        625142448                0   MSDOS
>> >
>>
>> So the FFS partition is gone. I want the USB disk to be also used on
>> Windows XP, so the MSDOS partition. I am not sure if this is possible,
>> since disklabel is OpenBSD specific, and XP may not be able to see it
>> anyways. I am missing something here for sure, but cannot figure out
>> what. Would appreciate a pointer. Thanks.
>>
>> Also, is there another way to achieve this? (I was unable to create a
>> MSDOS partition from Windows XP, as it only allows NTFS now).
>>
>> -Amarendra

Reply via email to