Subject: Wrong disk partition info
To: None <netbsd-help@netbsd.org>
From: Simon Truss <simon@bigblue.demon.co.uk>
List: netbsd-help
Date: 04/15/2000 23:34:07
Hi,

I'm currently only able to boot my laptop from a 1.4 CD I made some time ago.
The machine boots fine using 'boot wd0a:netbsd' but fails with all mbr's I've
tried and boot selectors. I've only just noticed that the info produced by
fdisk looks wrong. The output from disklabel looks ok. So from the following
info can anyone suggest what I need to do to fix this?
The first partition is Win2K, the second is 1.4 and will be 1.4.2 when I
can find the disk space on my other machine to build the new userland etc.


disklabel:

# /dev/wd0d:
type: unknown
disk: FREYA
label: 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 15
sectors/cylinder: 945
cylinders: 8944
total sectors: 8452080
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:   261765  6136830     4.2BSD     1024  8192    16   # (Cyl. 6494 - 6770)
  b:   261765  6398595       swap                        # (Cyl. 6771 - 7047)
  c:  2313360  6136830     unused        0     0         # (Cyl. 6494 - 8941)
  d:  8452080        0     unused        0     0         # (Cyl.    0 - 8943)
  e:  1789830  6660360     4.2BSD     1024  8192    16   # (Cyl. 7048 - 8941)


and fdisk:

NetBSD disklabel disk geometry:
cylinders: 8944 heads: 15 sectors/track: 63 (945 sectors/cylinder)

BIOS disk geometry:
cylinders: 525 heads: 255 sectors/track: 63 (16065 sectors/cylinder)

Partition table:
0: sysid 7 (OS/2 HPFS or NTFS or QNX2 or Advanced UNIX)
    start 63, size 6136767 (2996 MB), flag 0x80
	beg: cylinder    0, head   1, sector  1
	end: cylinder 1023, head 255, sector 63
1: sysid 169 (NetBSD)
    start 6136830, size 2313360 (1129 MB), flag 0x0
	beg: cylinder 1023, head 255, sector 63
	end: cylinder 1023, head 255, sector 63
2: <UNUSED>
3: <UNUSED>


Simon
-- 
mailto:simon@bigblue.....
http://www.bigblue.demon.co.uk/VNC.html
... Old age is better than the alternative.