On Fri, 30 Oct 2009, 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.
Very right, disklabel is OpenBSD specific, rest of the world need
something else. So:
Step 1: using fdisk(8), create a MSDOS and OpenBSD fdisk partitions
Step 2: using disklabel(8), create an OpenBSD disklabel partition
You seem to have skipped Step 1.
Also, see the FAQ (Chapter 14 - Disk Setup).
Regards,
David