NetBSD: GRUB configuration for dual boot FreeBSD & NetBSD


Create a file /grub/menu.lst with this content:

default=1
timeout=5

title FreeBSD
root (hd0,0,a)      
chainloader +1

title NetBSD      
root (hd0,1,a)      
chainloader +1

In this example FreeBSD is installed in the first partition slice, and NetBSD in the second one. The default OS to boot is the second one, NetBSD. The timeout to boot is 5 seconds.

After this type in a terminal:

grub –no-floppy –no-curses

This will open a shell for grub commands. Simply type:

root (hd0,1,a)
setup (hd0)

‘root (hd0,1,a)’ means the grub root directory. In my case I installed Grub from NetBSD. NetBSD is installed in the second partition slice, and grub is inside it, so ‘root’ must be the second partition slice.

About jjjesss

I'm a guy interested in technology, bsd fan and concerned about the world around.
This entry was posted in NetBSD. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s