Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Aug 2000 16:13:27 -0700
From:      Steve Sizemore <steve@cmpharm.ucsf.edu>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Multiboot linux + freebsd on two drives
Message-ID:  <20000808161327.A11083@cmpharm.ucsf.edu>
In-Reply-To: <20000801173350.CFFA7200A@nil.science-factory.com>; from marc.vanwoerkom@science-factory.com on Tue, Aug 01, 2000 at 07:33:50PM %2B0200
References:  <20000727134824.C39397@cmpharm.ucsf.edu> <Pine.BSF.4.21.0007281125230.258-100000@bagabeedaboo.security.at12.de> <20000801093235.C87514@cmpharm.ucsf.edu> <20000801173350.CFFA7200A@nil.science-factory.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks, Marc -

I'm now a grub convert. Even grub wasn't entirely straightforward, but
I now have three systems which can dual boot either FreeBSD or linux.

On Tue, Aug 01, 2000 at 07:33:50PM +0200, Marc van Woerkom wrote:
> > Does anyone know how to make FreeBSD on /dev/da1s1 actually bootable?
> 
> I use this together with the grub boot loader - I gave up on LILO..
> First partition is Windows 2000, second FreeBSD, third Linux (Reiser FS),
> fourth FAT32 partition for file sharing.

Just in case anyone else ever faces this, I'll document what I had to
do, for the mailing list archives.

Linux is installed on the first SCSI disk, and FreeBSD on the second.
While running FreeBSD (of course!),

    1. Install the grub port, and copy the appropriate files from
	/usr/local/share/grub/i386-freebsd to /boot/grub.

    2. Put the following menu (edited from Marc's) into /boot/grub/menu.lst:

	    timeout 10
	    color white/green blue/green
	    default 0
	     
	    title FreeBSD
	    root (hd1,a)
	    kernel /boot/loader
	     
	    title Linux
	    kernel (hd0,0)/boot/vmlinuz root=/dev/sda1 
	     
	    title <boot floppy>
	    root (fd0)
	    chainloader +1

    3. Run grub (If you run grub from FreeBSD, as opposed to a floppy
	boot disk, the Enter key doesn't work. You need to press ^J
	instead.)

	grub> root (hd1,a)
	grub> find /boot/grub/stage1
	grub> setup (hd0)
	grub> quit

    4. Reboot, and it WORKS!

Thanks again, Marc, for the pointer to grub, and thanks to others who
tried to help with BootEasy and Lilo.

Steve
-- 
----------------------------------------------#-----#--#####---------------
                                              #     # #     #
 Steve Sizemore                               #     # #
 Dept. of Cellular and Molecular Pharmacology #     # #      
 Box 0450, Room HSE-1285                      #     # #     
 University of California Medical Center      #     # #     # 
 513 Parnassus Avenue                          #####   ##### #####  #######
 San Francisco CA 94143-0450                                #     # #
                                                            #       #
 steve@cmpharm.ucsf.edu                                      #####  #####
 (415) 476-6987  FAX: (415) 476-6515                              # #
                                                            #     # #
-------------------------------------------------------------#####--#------


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000808161327.A11083>