Subject: disklabel/fdisk confusion
To: None <port-hpcmips@netbsd.org>
From: Rasputin <rasputin@shikima.mine.nu>
List: port-hpcmips
Date: 04/17/2002 14:16:52
Argh, I know this is going to be something simple but I'm
stumped.
Again :)
I've been trying to format a 128CF card to run hpcmips on my MP800,
but every time I insert it, WinCE insists the DOS partition is 122Mb
instead of 5Mb (as I thought I'd set it).
I've got a nasty feeling I've got overlapping partitions here,
but can't see them.
I've been trying to follow
http://www.netbsd.org/Ports/hpcmips/install.txt
but my experience with disklabel is nonexistant
[ that's what sysinst is for :) ], which isn't helping.
I had a look at the guide though, and as far as I can make out the disklabel
letters mean the following:
d = entire physical disk
c = the BSD bit
(which is then subdivided into a = root, b =swap,etc)
and then e which has been bodged to point out the BSD zone at the 5Mb
DOS partition.
Can anyone tell me what's wrong with the picture below?
It's the df output that is scaring me, really - the DOS slice
should be 5Mb, but it shows as 100M+?
Do I need to somehow 'fix' the changes to convince wince to only use
the first partition ?
(I doublechecked and its the active partition).
Thanks a lot.
=FDISK==========================================
NetBSD disklabel disk geometry:
cylinders: 978 heads: 8 sectors/track: 32 (256 sectors/cylinder)
BIOS disk geometry:
cylinders: 978 heads: 8 sectors/track: 32 (256 sectors/cylinder)
Partition table:
0: sysid 6 (Primary 'big' DOS, 16-bit FAT (> 32MB))
start 32, size 12000 (5 MB), flag 0x80
beg: cylinder 0, head 1, sector 1
end: cylinder 46, head 7, sector 32
1: sysid 169 (NetBSD)
start 12033, size 250000 (122 MB), flag 0x0
beg: cylinder 47, head 0, sector 2
end: cylinder 977, head 7, sector 32
2: <UNUSED>
3: <UNUSED>
=DISKLABEL==========================================
# /dev/rwd1d:
type: ESDI
disk: TOSHIBA THNCF128
label: fictitious
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 8
sectors/cylinder: 256
cylinders: 978
total sectors: 250368
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
8 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 235520 47 4.2BSD 1024 8192 16 # (Cyl. 0*- 920*)
b: 14592 235776 swap # (Cyl. 921 - 977)
c: 235520 12033 unused 0 0 # (Cyl. 47*- 967*)
d: 250368 0 unused 0 0 # (Cyl. 0 - 977)
e: 12000 32 MSDOS # (Cyl. 0*- 46)
=DF-K==========================================
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/wd0a 528019 100357 401261 20% /
/dev/wd0e 10833217 751339 9540217 7% /usr
kernfs 1 1 0 100% /kern
# (these are the CF card)
/dev/wd1a 113103 70857 36590 65% /flash
/dev/wd1e 125028 5198 119830 4% /msdos
===========================================
--
Rasputin :: Jack of All Trades - Master of Nuns ::