Subject: Re: need a multiboot with FreeBSD
To: None <netbsd-help@netbsd.org>
From: Zafer Aydogan <zafer@gmx.org>
List: netbsd-help
Date: 10/12/2005 07:10:23
Hello Jeremy,
there are options to use a bootloader during installation of NetBSD in
sysinst. (at least in current)
I think it was in the fdisk part or disklabel part, where you could set
names for the bootloader and activate the bootloader.
I recently used it for the same purpose (for the first time).
It's a tiny bootloader, but works fine.
The only thing I was confused of was, that the bootloader prints:
Fn Name
1: NetBSD
2: FreeBSD
So I thought "Fn" means Function Keys. But F1/F2 does not respond, but "1 or
2".
Greets, Z.
> --- Ursprüngliche Nachricht ---
> Von: "Jeremy C. Reed" <reed@reedmedia.net>
> An: netbsd-help@netbsd.org
> Betreff: need a multiboot with FreeBSD
> Datum: Tue, 11 Oct 2005 18:40:18 -0700 (PDT)
>
> >From NetBSD-daily I installed latest NetBSD 3-BETA using sysinst.
>
> I didn't see any option to create a boot selector. I did install NetBSD to
> my first slice on wd0.
>
> When I rebooted, FreeBSD came up. I have FreeBSD on its ad0s3 -- which is
> my third slice on same (and only harddisk).
>
> I attempted to create boot loader in FreeBSD with its:
>
> fdisk -B -b ad0
>
> But rebooting said "Invalid partition table".
>
> So I reboot again to sysinst and from the shell I run:
>
> fdisk -c /usr/mdec/mbr_bootsel /dev/wd0
>
> Then after reboot it gives me a prompt:
>
> Fn:
>
> But no choices and says error whatever I press except Enter.
>
> And it takes me back to FreeBSD.
>
> >From NetBSD, I also tried:
>
> installboot -v /dev/rwd0e /usr/mdec/bootxx_ffsv2
>
> I tried several different things rebooting back and forth between FreeBSD
> and NetBSD. But it is a slow process.
>
> Any ideas for NetBSD on how to get my boot menu? (Or FreeBSD ideas?)
>
> I want a choice at menu to boot: NetBSD first fdisk partition or FreeBSD
> at third fdisk partition.
>
> FreeBSD tells me:
>
> glacier# fdisk ad0
> ******* Working on device /dev/ad0 *******
> parameters extracted from in-core disklabel are:
> cylinders=77520 heads=16 sectors/track=63 (1008 blks/cyl)
>
> Figures below won't work with BIOS for partitions not in cyl 1
> parameters to be used for BIOS calculations are:
> cylinders=77520 heads=16 sectors/track=63 (1008 blks/cyl)
>
> Media sector size is 512
> Warning: BIOS sector numbering starts with sector 1
> Information from DOS bootblock is:
> The data for partition 1 is:
> sysid 169 (0xa9),(NetBSD)
> start 63, size 10233342 (4996 Meg), flag 80 (active)
> beg: cyl 0/ head 1/ sector 1;
> end: cyl 636/ head 254/ sector 63
> The data for partition 2 is:
> sysid 130 (0x82),(Linux swap or Solaris x86)
> start 10233405, size 610470 (298 Meg), flag 80 (active)
> beg: cyl 637/ head 0/ sector 1;
> end: cyl 674/ head 254/ sector 63
> The data for partition 3 is:
> sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
> start 10843875, size 10233405 (4996 Meg), flag 80 (active)
> beg: cyl 675/ head 0/ sector 1;
> end: cyl 1023/ head 254/ sector 63
> The data for partition 4 is:
> <UNUSED>
>
> And:
>
> glacier# disklabel ad0s1
> disklabel: /dev/ad0s1: no valid label found
> glacier# disklabel ad0s3
> # /dev/ad0s3:
> 8 partitions:
> # size offset fstype [fsize bsize bps/cpg]
> a: 1048576 0 4.2BSD 0 0 0
> b: 341600 1048576 swap
> c: 10233405 0 unused 0 0 # "raw" part,
> don't edit
> d: 8843229 1390176 4.2BSD 0 0 0
>
>
> Thanks,
>
>
> Jeremy C. Reed
>