Subject: removing mbr_bootsel
To: None <netbsd-users@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-users
Date: 11/20/2000 11:09:34
I have one drive which has four partitions (because at one time, I planned
to try booting four different OS's). It was installed with a boot selector
that defaulted to the third partition (partition number 2) -- NetBSD. This
has been working since installed in February. At first, all I used was the
NetBSD partition; but over time I needed more space, so I used disklabel
and started using the other partitions.

I had never used the first partition. Last week, I added a new slice from
the first partition and did a newfs -- this worked great and added a lot
of needed space.

Today, the first time I rebooted, it would just hang at the boot menu. I
am able to boot with the install floppy: "boot wd0a:netbsd".

Some things I have tried include:
 fdisk -i
 /usr/mdec/installboot -v /usr/mdec/biosboot.sym /dev/rwd0a

I was able to get rid of the menu, but I am not sure what to do to get it
to automatically boot from wd0a:netbsd (like it previously did).

I also tried creating a new menu -- which I was able to do with:
 fdisk -i -c /usr/mdec/mbr_bootsel
 fdisk -B
But I couldn't get it to automatically boot from my wd0a slice.

Can anyone share some advice or point me to some documentation on properly
removing my boot selector and to just boot from my /dev/wd0a slice?

I am using 1.5_BETA2 on a i386. Following is some fdisk, disklabel and
fstab information:

NetBSD disklabel disk geometry:
cylinders: 12592 heads: 16 sectors/track: 63 (1008 sectors/cylinder)

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

Partition table:
0: sysid 169 (NetBSD)
    start 63, size 3164049 (1544 MB), flag 0x0
        beg: cylinder    0, head   1, sector  1
        end: cylinder  196, head 243, sector 63
1: sysid 169 (NetBSD)
    start 3164805, size 3164805 (1545 MB), flag 0x0
        beg: cylinder  197, head   0, sector  1
        end: cylinder  393, head 254, sector 63
2: sysid 169 (NetBSD)
    start 6331248, size 3167136 (1546 MB), flag 0x80
        beg: cylinder  394, head  26, sector  1
        end: cylinder  591, head  63, sector  1
3: sysid 169 (NetBSD)
    start 9501408, size 3173877 (1549 MB), flag 0x0
        beg: cylinder  591, head 111, sector  1
        end: cylinder  788, head 254, sector 63


#        size   offset     fstype   [fsize bsize   cpg]
  a:   238896  6331248     4.2BSD     1024  8192    16   # (Cyl. 6281 - 6517)
  b:   395136  6570144       swap                        # (Cyl. 6518 - 6909)
  c:  3167136  6331248     unused        0     0         # (Cyl. 6281 - 9422)
  d: 12692736        0     unused        0     0         # (Cyl.    0 - 12591)
  e:  2533104  6965280     4.2BSD     1024  8192    16   # (Cyl. 6910 - 9422)
  f:  3164049       63     4.2BSD     1024  8192    16   # (Cyl.    0*- 3138)
  g:  3173877  9501408     4.2BSD     1024  8192    16   # (Cyl. 9426 - 12574*)
  h:  3164805  3164805     4.2BSD     1024  8192    16   # (Cyl. 3139*- 6279

/dev/wd0a / ffs rw 1 1
/dev/wd0b none swap sw 0 0
/dev/wd0e /usr ffs rw 1 2
/dev/wd0f /usr/src ffs rw 1 2
/dev/wd0g /home ffs rw 1 2
/dev/wd0h /usr/pkg ffs rw 1 2

Thanks,

   Jeremy C. Reed
   http://www.reedmedia.net/