Reply
 
Thread Tools Display Modes
  #1  
Old 12-25-2009, 07:23 PM
Mahngiel Mahngiel is offline
Junior Member
 
Join Date: Dec 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default working with Grub2
I'm dual booting Ubuntu and PC-BSD, and grub didn't initially recognize BSD and auto loads Ubuntu.

Going through the knowledge base, i found a doc about working grub from inside linux.

Code:
title PCBSD 0.X (BETA)
root (hd0,1,a)
kernel /boot/loader
boot
However, this is for grub legacy, and not grub 2.

I need help filling this out. PC-BSD is in partition /sda4

Code:
menuentry "PC-BSD" {
        set root=(hd0,4)
	search --no-floppy --fs-uuid --set a24fece6-5e8e-4651-86bf-014295472794
	linux	need this
	initrd	and this
}
thanks.
Reply With Quote
  #2  
Old 12-27-2009, 03:17 PM
bsdaddict bsdaddict is offline
Senior Member
 
Join Date: Nov 2008
Posts: 207
Thanks: 0
Thanked 1 Time in 1 Post
Default Re: working with Grub2
Did you read this thread ? It could be of more help to you :
viewtopic.php?f=1&t=14722
Reply With Quote
  #3  
Old 02-01-2010, 10:01 PM
mechanic mechanic is offline
Member
 
Join Date: Jan 2010
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: working with Grub2
What I do with Grub2 is to chainlink OpenSolaris and PC-BSD systems with separate files in /etc/grub.d/, my PC-BSD file contains:
Code:
#!/bin/bash

echo "Adding Custom PC-BSD system" >&2
cat << EOF
menuentry "PC-BSD_Unix_KDE" {
        set root=(hd0,2)
	chainloader +1
	boot
			}

EOF
Running 'upgate-grub' on the host system (which happens to be Kubuntu!) loads this into the Grub boot menu.

In my case PC-BSD is on the second primary partition on the hard disk (hd0,2), this file (above) resides in the Kubuntu partition which happens to be a logical one but that's not really relevant. BCD was installed without boot loader.

Hope this helps.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
multi-boots with grub2 ? bsdaddict General Questions 6 08-13-2010 02:33 AM
Grub2...again [solved] gumpelino Startup Bug Reports 7 03-30-2010 07:14 PM
How do add pcbsd to grub2? jigglywiggly General Questions 4 12-04-2009 11:07 PM
vpn working? hvaya FreeBSD Help 0 07-14-2009 09:43 PM
pbi not working gorbgorb General Questions 1 12-09-2005 04:03 PM


All times are GMT. The time now is 03:11 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.