Reply
 
Thread Tools Display Modes
  #1  
Old 11-07-2009, 01:01 PM
bsdaddict bsdaddict is offline
Senior Member
 
Join Date: Nov 2008
Posts: 252
Thanks: 4
Thanked 1 Time in 1 Post
Default multi-boots with grub2 ?
Hi,

I just had a look at the new Ubuntu 9.10. It comes with the grub2 bootloader. But it does not seem to find the (pc)bsd partition on my pc. It did find its own Ubuntu/linux and the Windows XP partitions without any problem. But no entry for bsd...
Google turns up very little about this too (just one interesting : http://forums.freebsd.org/showthread.php?t=5918).
Has anybody some workarounds on multibooting bsd with grub2 please or do i have to wait it out ? I know, grub still works fine but grub2 seems to have some nice features too :-)
Thanks !
Reply With Quote
  #2  
Old 11-07-2009, 03:09 PM
TerryP TerryP is offline
Senior Member
 
Join Date: Nov 2005
Location: Ga. USofA
Posts: 7,906
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to TerryP Send a message via AIM to TerryP Send a message via Yahoo to TerryP
Default Re: multi-boots with grub2 ?
Aside from adding linux, freebsd, and netbsd commands and scripting support, I'm not aware of any pertinent changes in GRUB 2. That forum post seems to provide all the information you require.


Have you read the guide, particularly the reference to FreeBSD F.A.Q. ? If it doesn't work, try chain loading /boot/loader out of the partition. Annotations for GRUB 2 may find their way into the page.
Reply With Quote
  #3  
Old 11-07-2009, 07:47 PM
mxgeek mxgeek is offline
Junior Member
 
Join Date: Nov 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: multi-boots with grub2 ?
I ran into the same problem, it took some fiddling with the new grub configuration files (in /etc/grub.d/ now instead of menu.lst). I have PCBSD installed in a second drive in my system. Following the pointers in https://wiki.ubuntu.com/Grub2, I created the file 50_pcbsd in the directory /etc/grub.d/ and ran update-grub. The contents of the file are:

cat << EOF
menuentry "PC-BSD 7.1" {
set root=(hd1,1)
chainloader +1
boot
}
EOF



where (hd1,1) means the *second disk*, *first partition*.

YMMV - good luck
Reply With Quote
  #4  
Old 07-22-2010, 08:30 PM
msnthrp msnthrp is offline
Junior Member
 
Join Date: Jan 2009
Location: Texas, USA
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Booting PC-BSD from Linux Grub2
I am using Sabayon Linux on sda [=(hd0)] and PC-BSD on sdb [=(hd1)] in the first primary partition. I was (finally) successful in booting PC-BSD by modifying (as root) the Sabayon /etc/grub.d/40_custom by adding

menuentry "PC-BSD 8.0" {
set root=(hd1,1,a)
chainloader +1
}

Since Sabayon did not put in the alias "grub-update", I had to run the full command of

grub-mkconfig -o /boot/grub/grub.cfg

to get the command transferred to the Grub2 menu. If the command is forgotten, it can be found at the top of the Linux page /etc/default/grub.

Not sure if this posting is in the right place so administrator feel free to move it where ever it is most appropriate.

Best
Reply With Quote
  #5  
Old 07-22-2010, 08:33 PM
msnthrp msnthrp is offline
Junior Member
 
Join Date: Jan 2009
Location: Texas, USA
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up Booting PC-BSD from Linux Grub2 (added)
BTW, I am triple booting from Grub2

Sabayon Linux 5.3
Puppy Linux 5.0
PC-BSD 8.0

Probably could add more but don't need them.

Best
Reply With Quote
  #6  
Old 07-22-2010, 08:42 PM
Sander M Sander M is offline
Junior Member
 
Join Date: Jun 2010
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default
I am running Windows 7, Ubuntu 10.04 and PC-BSD 8.1 at the moment.
The booting is done by the Ubuntu Grub2.
I have 4 partitions. 1st, Windows. 2nd, NTFS DATA. 3rd, Extended for Ubuntu(ext4, swap and an other data in ext4). 4th, PC-BSD.

In Ubuntu I used this command to edit Grub.
Code:
sudo nautilus /etc/grub.d/
then open the 40_custom file and add this:
Code:
menuentry "PC-BSD" {
set root='(hd0,4)'
chainloader +1
}
since partition 4 is where my PC-BSD install is.
After that
Code:
sudo update-grub
reboot and voila, triple boot
Reply With Quote
  #7  
Old 08-13-2010, 02:33 AM
makan makan is offline
Junior Member
 
Join Date: Aug 2010
Location: jakarta, indonesia
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to makan Send a message via AIM to makan Send a message via MSN to makan Send a message via Yahoo to makan Send a message via Skype™ to makan
Thumbs up thank you
@Sander M

wow... thank you for your post.... it save my day
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
Grub2...again [solved] gumpelino Startup Bug Reports (read-only) 7 03-30-2010 07:14 PM
working with Grub2 Mahngiel General Questions 2 02-01-2010 10:01 PM
How do add pcbsd to grub2? jigglywiggly General Questions 4 12-04-2009 11:07 PM
Boots straight to a prompt. sharpie General Questions 3 11-07-2007 05:12 PM
Windows XP boots on a Macbook Pro! antik The Lounge 1 03-08-2006 09:48 PM


All times are GMT. The time now is 06:55 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, 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.