Subject: port-i386/21022: NetBSD can not boot from my hard disk
To: None <gnats-bugs@gnats.netbsd.org>
From: Martin Husemann <martin@duskware.de>
List: netbsd-bugs
Date: 04/05/2003 11:50:06
>Number: 21022
>Category: port-i386
>Synopsis: NetBSD can not boot from my hard disk
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: port-i386-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Apr 05 01:51:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Martin Husemann
>Release: NetBSD 1.6Q
>Organization:
>Environment:
System: NetBSD night-porter.duskware.de 1.6Q NetBSD 1.6Q (PORTER) #4: Fri Apr 4 14:17:30 MEST 2003 martin@night-porter.duskware.de:/usr/src/sys/arch/i386/compile/PORTER i386
Architecture: i386
Machine: i386
>Description:
I had a 40GB disk and ran out of space. So I replaced it with a 120GB one
and copied the content of the 40GB one over, added some more paritions and
resized some other (all changes beyound the NetBSD partition).
Since I wanted to try UFS2 I kompletely nuked the contents of the NetBSD
partition, newfsd it and reinstalled.
Then I did "fdisk -i -c /usr/mdec/mbr wd0" and
"installboot -v /usr/mdec/biosboot.sym /dev/rwd0a".
Now I can't get it to boot from hard disk. It says "No operating system."
Loading biosboot from floppy and doing "boot hd0a:netbsd" works fine.
Here is the output of disklabel and fdisk:
# /dev/rwd0d:
type: unknown
disk: boot
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 240121728
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 8200332 12298608 4.2BSD 1024 8192 46448 # (Cyl. 12201 - 20336*)
b: 2097333 10201275 swap # (Cyl. 10120*- 12200)
c: 10297665 10201275 unused 0 0 # (Cyl. 10120*- 20336*)
d: 240121728 0 unused 0 0 # (Cyl. 0 - 238215)
e: 10201212 63 MSDOS # (Cyl. 0*- 10120*)
f: 10297665 10201275 unused 0 0 # (Cyl. 10120*- 20336*)
g: 219608550 20498940 unused 0 0 # (Cyl. 20336*- 238201*)
h: 33575787 20499003 MSDOS # (Cyl. 20336*- 53645*)
i: 33575787 54074853 MSDOS # (Cyl. 53645*- 86954)
j: 32884992 87650703 MSDOS # (Cyl. 86955*- 119579*)
k: 78622047 120535758 NTFS # (Cyl. 119579*- 197577*)
l: 40949622 199157868 NTFS # (Cyl. 197577*- 238201*)
Disk: /dev/rwd0d
NetBSD disklabel disk geometry:
cylinders: 16383 heads: 16 sectors/track: 63 (1008 sectors/cylinder)
BIOS disk geometry:
cylinders: 1024 heads: 255 sectors/track: 63 (16065 sectors/cylinder)
Partition table:
0: sysid 11 (Primary DOS with 32 bit FAT)
start 63, size 10201212 (4981 MB), flag 0x80
beg: cylinder 0, head 1, sector 1
end: cylinder 634, head 254, sector 63
1: sysid 169 (NetBSD)
start 10201275, size 10297665 (5028 MB), flag 0x0
beg: cylinder 635, head 0, sector 1
end: cylinder 1023, head 254, sector 63
2: sysid 15 (Ext. partition - LBA)
start 20498940, size 219608550 (107230 MB), flag 0x0
beg: cylinder 1023, head 254, sector 63
end: cylinder 1023, head 254, sector 63
Extended partition table:
0: sysid 11 (Primary DOS with 32 bit FAT)
start 20499003, size 33575787 (16394 MB), flag 0x0
beg: cylinder 1023, head 1, sector 1
end: cylinder 1023, head 254, sector 63
1: sysid 5 (Extended partition)
start 54074790, size 33575850 (16394 MB), flag 0x0
beg: cylinder 1023, head 0, sector 1
end: cylinder 1023, head 254, sector 63
Extended partition table:
0: sysid 11 (Primary DOS with 32 bit FAT)
start 54074853, size 33575787 (16394 MB), flag 0x0
beg: cylinder 1023, head 1, sector 1
end: cylinder 1023, head 254, sector 63
1: sysid 5 (Extended partition)
start 87650640, size 32885055 (16057 MB), flag 0x0
beg: cylinder 1023, head 0, sector 1
end: cylinder 1023, head 254, sector 63
Extended partition table:
0: sysid 11 (Primary DOS with 32 bit FAT)
start 87650703, size 32884992 (16057 MB), flag 0x0
beg: cylinder 1023, head 1, sector 1
end: cylinder 1023, head 254, sector 63
1: sysid 5 (Extended partition)
start 120535695, size 78622110 (38389 MB), flag 0x0
beg: cylinder 1023, head 0, sector 1
end: cylinder 1023, head 254, sector 63
Extended partition table:
0: sysid 7 (OS/2 HPFS or NTFS or QNX2 or Advanced UNIX)
start 120535758, size 78622047 (38389 MB), flag 0x0
beg: cylinder 1023, head 1, sector 1
end: cylinder 1023, head 254, sector 63
1: sysid 5 (Extended partition)
start 199157805, size 40949685 (19994 MB), flag 0x0
beg: cylinder 1023, head 0, sector 1
end: cylinder 1023, head 254, sector 63
Extended partition table:
0: sysid 7 (OS/2 HPFS or NTFS or QNX2 or Advanced UNIX)
start 199157868, size 40949622 (19994 MB), flag 0x0
beg: cylinder 1023, head 1, sector 1
end: cylinder 1023, head 254, sector 63
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
2: <UNUSED>
3: <UNUSED>
2: <UNUSED>
3: <UNUSED>
2: <UNUSED>
3: <UNUSED>
2: <UNUSED>
3: <UNUSED>
3: <UNUSED>
>How-To-Repeat:
s/a
>Fix:
n/a
>Release-Note:
>Audit-Trail:
>Unformatted: