Subject: Re: Is there a way to boot off of a second disk?
To: David Laight <david@l8s.co.uk>
From: Hisashi T Fujinaka <htodd@twofifty.com>
List: port-i386
Date: 08/19/2003 23:23:02
On Tue, 19 Aug 2003, David Laight wrote:

> > Aha! The behavior of fdisk has changed.
> >
> > Now I can boot into Windows, but not netbsd. I'm getting closer. Perhaps
> > if I find some old boot floppies and install the old booting first.
>
> Yep - all changed :-)
>
> If you've a new netbsd install CD, just hit ^C from teh first sysinst screen.
> You have fdisk, installboot and disklabel and the required boot files (some
> might be in / instead of /usr/mdec, can't remember).
>
> With the new sysinst, you can run through an install without installing
> any sets, and without zapping any filesystesm.  If you do that it will
> put the correct files in the correct places to make the system bootable.
>
> The versions of fdisk and installboot in sysinst are more friendly to
> naive users (non-gurus) than the standard ones!

OK, so I should ask where to get an iso of this disk. I've been using
boot floppies (from the latest snapshot available on ftp.netbsd.org) and
things are, well, odd. I tried to let things install without installing
(quit when fetching the install sets) but that didn't work. I edited the
disklabel and ran fdisk by hand and still I get:

Error 3

I can boot into Win98, but not netbsd. I'm attaching my disklabel and
fdisk info. Perhaps someone can point out where I'm screwing up?

-- 
Hisashi T Fujinaka - htodd@twofifty.com
BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte


Disk: /dev/rwd0d
    NetBSD disklabel disk geometry:
    cylinders: 16383, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
    total sectors: 40032696.
    BIOS disk geometry:
    cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
    total sectors: 40032696.
    Partition table:
    0: NetBSD (sysid 169)
        bootmenu: net 1.5
        start 4209030, size 8289540 (4048 MB, Cyls 262-778), Active
    1: Primary DOS with 32 bit FAT (sysid 11)
        bootmenu: win98
        start 63, size 4208967 (2055 MB, Cyls 0-262)
    2: NetBSD (sysid 169)
        bootmenu: current
        start 32515560, size 7517136 (3670 MB, Cyls 2024-2491/234/40)
    3: Ext. partition - LBA (sysid 15)
        start 12498570, size 20016990 (9774 MB, Cyls 778-2024)
    Extended partition table:
    E0: NetBSD (sysid 169)
        bootmenu: test
        start 12498633, size 12305727 (6009 MB, Cyls 778-1544)
    E1: Primary DOS with 32 bit FAT (sysid 11)
        start 24804423, size 4096512 (2000 MB, Cyls 1544-1799)
    E2: Primary DOS with 32 bit FAT (sysid 11)
        start 28900998, size 3614562 (1765 MB, Cyls 1799-2024)

# /dev/rwd0d:
type: unknown
disk: NetBSD
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 156301488
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:  16776017  10249471     4.2BSD   1024  8192    86  # (Cyl.  10168*-  26810)
 b:   2097648  27025488       swap                     # (Cyl.  26811 -  28891)
 c: 146052017  10249471     unused      0     0        # (Cyl.  10168*- 155060)
 d: 156301488         0     unused      0     0        # (Cyl.      0 - 155060)
 e: 127178352  29123136     4.2BSD   1024  8192    86  # (Cyl.  28892 - 155060)
 f:  10249407        63      MSDOS                     # (Cyl.      0*-  10168*)