Subject: mounting FreeBSD-current slices
To: None <port-i386@netbsd.org>
From: George Michaelson <ggm@dstc.edu.au>
List: port-i386
Date: 11/18/1999 22:22:51
Can't get this to work. I get:
bash-2.03# mount -r /dev/wd0d /mnt
mount_ffs: /dev/wd0d on /mnt: incorrect super block
bash-2.03#
Appended are disklabels and fdisk for each O/S view.
Interestingly, FreeBSD can mount the NetBSD disk fine..
I notice that FreeBSD did really dumb geometry calcs. But the offsets into
the 512-byte sector count seem to add up ok to me.
I've amazed myself by almost wishing NetBSD had slice-notation!
Any clues greatfully received.
-George
In order, FreeBSD disklabel, NetBSD disklabel, FreeBSD fdisk, NetBSD fdisk.
bash-2.03# cat /var/tmp/disklabel.freebsd
# /dev/rwd0c:
type: ESDI
disk: wd0s3
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 254
sectors/unit: 4080510
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 3481600 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 216*)
b: 598910 3481600 swap # (Cyl. 216*- 253*)
c: 4080510 0 unused 0 0 # (Cyl. 0 - 253)
bash-2.03#
bash-2.03# disklabel -r wd0
# /dev/rwd0d:
type: unknown
disk: mydisk
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 15
sectors/cylinder: 945
cylinders: 13328
total sectors: 12594960
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
8 partitions:
# size offset fstype [fsize bsize cpg]
a: 1850310 10217340 4.2BSD 1024 8192 16 # (Cyl. 10812 - 12769)
b: 527310 12067650 swap # (Cyl. 12770 - 13327)
c: 2377620 10217340 unused 0 0 # (Cyl. 10812 - 13327)
d: 3481600 6136830 4.2BSD 1024 8192 16 # (Cyl. 6494 - 10178*)
bash-2.03#
bash-2.03# cat /var/tmp/fdisk.freebsd
******* Working on device /dev/rwd0 *******
parameters extracted from in-core disklabel are:
cylinders=12594960 heads=1 sectors/track=1 (1 blks/cyl)
Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=12594960 heads=1 sectors/track=1 (1 blks/cyl)
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 6,(Primary 'big' DOS (> 32MB))
start 63, size 2040192 (996 Meg), flag 0
beg: cyl 0/ sector 1/ head 1;
end: cyl 127/ sector 1/ head 0
The data for partition 2 is:
sysid 5,(Extended DOS)
start 2040255, size 4096575 (2000 Meg), flag 0
beg: cyl 127/ sector 1/ head 0;
end: cyl 382/ sector 1/ head 0
The data for partition 3 is:
sysid 165,(FreeBSD/NetBSD/386BSD)
start 6136830, size 4080510 (1992 Meg), flag 80 (active)
beg: cyl 382/ sector 1/ head 0;
end: cyl 636/ sector 1/ head 0
The data for partition 4 is:
sysid 169,(NetBSD)
start 10217340, size 2377620 (1160 Meg), flag 0
beg: cyl 636/ sector 1/ head 0;
end: cyl 784/ sector 1/ head 0
bash-2.03#
bash-2.03# fdisk wd0
NetBSD disklabel disk geometry:
cylinders: 13328 heads: 15 sectors/track: 63 (945 sectors/cylinder)
BIOS disk geometry:
cylinders: 784 heads: 255 sectors/track: 63 (16065 sectors/cylinder)
Partition table:
0: sysid 6 (Primary 'big' DOS, 16-bit FAT (> 32MB))
start 63, size 2040192 (996 MB), flag 0x0
beg: cylinder 0, head 1, sector 1
end: cylinder 127, head 0, sector 1
1: sysid 5 (Extended partition)
start 2040255, size 4096575 (2000 MB), flag 0x0
beg: cylinder 127, head 0, sector 1
end: cylinder 382, head 0, sector 1
2: sysid 165 (FreeBSD or 386BSD or old NetBSD)
start 6136830, size 4080510 (1992 MB), flag 0x0
beg: cylinder 382, head 0, sector 1
end: cylinder 636, head 0, sector 1
3: sysid 169 (NetBSD)
start 10217340, size 2377620 (1160 MB), flag 0x80
beg: cylinder 636, head 0, sector 1
end: cylinder 784, head 0, sector 1
bash-2.03#