Subject: Re: Can't install MBR after 2.0.2 ftp install from floppies
To: Brian A. Seklecki <lavalamp@spiritual-machines.org>
From: Paul Newhouse <newhouse@rockhead.com>
List: netbsd-help
Date: 09/19/2005 18:52:42
> On Sun, 2005-09-18 at 19:04, Paul Newhouse wrote:
> > Sorry should have mentioned machine information on previous question:
> > 
> 
> The output of:
> 
> # sudo fdisk
> ...and
> # sudo disklabel -r /dev/r{w,s}d1 
> 
> ...might be useful in obtaining help.  They are both on the install
> floppy.  Perhaps a serial console or 3rd floppy to extract?
> 
> ~BAS
> 
> 
> > # uname -a
> > NetBSD pimin.wan.vpn.hsd1.ca.comcast.net. 2.0.2 NetBSD 2.0.2 (GENERIC) #0: Wed Mar 23 08:53:42 UTC 2005  jmc@faith.netbsd.org:/home/builds/ab/netbsd-2-0-2-RELEASE/i386/200503220140Z-obj/home/builds/ab/netbsd-2-0-2-RELEASE/src/sys/arch/i386/compile/GENERIC i386

I had previously installed NetBSD 1.6 from CD to this system.
I gave up trying to upgrade to 2.0.2 via building sources.
I created boot floppy's and installed 2.0.2 via ftp.  I did not reformat 
the disk and used the partitioning that was created with the 1.6 install.

# df -k
Filesystem  1K-blocks     Used     Avail Capacity  Mounted on
/dev/wd0a     1000463    65504    884935     6%    /
/dev/wd0g    64497304     5904  61266534     0%    /var
/dev/wd0e    99228614  2920284  91346898     3%    /usr
/dev/wd0f    40507608        1  38482226     0%    /tmp
/dev/wd0h    32975747       84  31326875     0%    /usr/pkg
kernfs              1        1         0   100%    /kern



# fdisk
Disk: /dev/rwd0d
NetBSD disklabel disk geometry:
cylinders: 484521, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 488397168

BIOS disk geometry:
cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 268435455

Partition table:
0: NetBSD (sysid 169)
    start 63, size 488397105 (238475 MB, Cyls 0-30401/81/1), Active
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
Bootselector disabled.
# fdisk -B

Installed bootfile doesn't support required options.
Update the bootcode from /usr/mdec/mbr_bootsel? [n] y

Boot selector configuration:
Timeout value (0 to 3600 seconds, -1 => never): [-1..3600 default: 10] 
Select the default boot option. Options are:

0: The first active partition
1: Harddisk 0
Default boot option: [0..1 default: 1] 0

We haven't written the MBR back to disk yet.  This is your last chance.
Should we write new partition table? [n] y
pimin# 
pimin# 
pimin# fdisk
Disk: /dev/rwd0d
NetBSD disklabel disk geometry:
cylinders: 484521, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 488397168

BIOS disk geometry:
cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 268435455

Partition table:
0: NetBSD (sysid 169)
    start 63, size 488397105 (238475 MB, Cyls 0-30401/81/1), Active
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
Bootselector enabled, timeout 10 seconds.

Rebooting produces "Error ?" where I expect the kernel to load.

After rebooting from the install floppy and interrupting the boot
and selecting the hard disk it comes up.

Paul