, <netbsd-help@netbsd.org>
From: Conrad T. Pino <NetBSD-Current@Pino.com>
List: netbsd-help
Date: 03/18/2004 02:42:36
Hi Leslie,
Disregard my previous message. You replies were received separately and I
didn't see your reply to Manuel which I've now read.
The issue you're having is the NetBSD disk label doesn't contain entries
to describe the MS-DOS and Linux partitions. Right now you have:
# size offset fstype [fsize bsize cpg/sgs]
a: 829521 27744255 4.2BSD 1024 8192 87 # (Cyl. 27524*-
28346)
b: 1575504 28573776 swap # (Cyl. 28347 -
29909)
c: 50411970 27744255 unused 0 0 # (Cyl. 27524*-
77535*)
d: 78165360 0 unused 0 0 # (Cyl. 0 -
77544)
e: 48006945 30149280 4.2BSD 1024 8192 86 # (Cyl. 29910 -
77535*)
And new entries f,g,h would be useful:
# size offset fstype [fsize bsize cpg/sgs]
a: 829521 27744255 4.2BSD 1024 8192 87 # (Cyl. 27524*-
28346)
b: 1575504 28573776 swap # (Cyl. 28347 -
29909)
c: 50411970 27744255 unused 0 0 # (Cyl. 27524*-
77535*)
d: 78165360 0 unused 0 0 # (Cyl. 0 -
77544)
e: 48006945 30149280 4.2BSD 1024 8192 86 # (Cyl. 29910 -
77535*)
f: 16723602 63 MSDOS
g: 10490382 16723728 MSDOS
h: 530082 27214173 Linux Ext2
Look for the "size" and "offset" values I chose for f,g,h in the fdisk
output.
Play with disklabel in the interactive mode. If you don't write the label
there's no harm. The command for interactive mode is:
disklabel -i wd0
The prompt is "partition>". Commands are case sensitive. Try these:
partition> ?
? print this menu
C make partitions contiguous
E print disk label and current partition table
I change label information
N name the label
P print current partition table
Q quit
R rounding (c)ylinders (s)ectors
W write the current partition table
[a-p] define named partition
partition> P
16 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 829521 27744255 4.2BSD 1024 8192 87 # (Cyl. 27524*-
28346)
b: 1575504 28573776 swap # (Cyl. 28347 -
29909)
c: 50411970 27744255 unused 0 0 # (Cyl. 27524*-
77535*)
d: 78165360 0 unused 0 0 # (Cyl. 0 -
77544)
e: 48006945 30149280 4.2BSD 1024 8192 86 # (Cyl. 29910 -
77535*)
partition> f
Filesystem type [?] [unused]: MSDOS
Start offset [0c, 0s, 0M]: 63s
Partition size ('$' for all remaining) [0c, 0s, 0M]: 16723602s
f: 16723602 63 MSDOS # (Cyl. 0*- 0*)
partition> W
Label disk [n]? y
Label written
partition> Q
Then try:
mount_msdos /dev/wd0f /mnt/win
and if that works then add the g,h disklabel entries.
Conrad