d2c2 entry for FreeBSD for grub2 - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > Installing & Upgrading

Installing & Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1  
Old August 17th, 2010, 06:52
jalu
Guest
 
Posts: n/a
Default entry for FreeBSD for grub2

I installed FreeBSD on the third partition of the second internal hard-disk (in linux-speak /dev/sdb3 from fdisk -l, i seem to remember it was ad6 during FreeBSD installation).
My entry for grub2 looks like this:

Code:
menuentry "FreeBSD" {
insmod ufs2
set root=(hd1,3)
chainloader +1
}
But when i choose FreeBSD from grubs menu it just hangs, no error message.
Version is FreeBSD-8.1.
Thanks

In case it helps: The installation CD says its ad6s3

Last edited by jalu; August 18th, 2010 at 08:13.
Reply With Quote
  #2  
Old August 22nd, 2010, 11:28
oed oed is offline
Junior Member
 
Join Date: Aug 2010
Location: Ă…lesund, Norway
Posts: 12
Thanks: 2
Thanked 6 Times in 4 Posts
Default

This is what I added to /etc/grub.d/40_custom in order to boot FreeBSD on what is known to linux as /dev/sda4.

Code:
menuentry "FreeBSD" {
	set root=(hd0,4,a)
	chainloader +1
}
Then I ran "update-grub" and rebooted into FreeBSD.
Reply With Quote
  #3  
Old August 22nd, 2010, 15:37
jalu
Guest
 
Posts: n/a
Default

Thanks for your answer.
My entries seem to be correct, i tried different ones. The problem seems to be more serious.
I am not able to boot from my second internal hard-disk nor from my external hard-disk anymore
(the OS doesn't matter, so its not a problem with FreeBSD)

I am at the problem, but don't seem to get it solved.
If i will find the solution i will sure post it here.

I will try to put FreeBSD on a USB-stick and boot it that way from my main PC.
a) will the speed be ok? (if not i might as well go on to use it from my second PC)
b) is there a good how-to put it on a stick?

Another option would be to resize the 20GB-linux- / partition on my first hard-disk...
I really would like to run FreeBSD with a bit more of horse-power.

Thanks again.
Reply With Quote
  #4  
Old August 23rd, 2010, 09:27
mechanic mechanic is offline
Junior Member
 
Join Date: Jan 2010
Location: UK
Posts: 35
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Don't forget to put FreeBSD on a primary partition, it doesn't like logical ones.
Reply With Quote
  #5  
Old August 23rd, 2010, 10:11
jalu
Guest
 
Posts: n/a
Default

It is on a primary one.

btw, did you read that?:
Quote:
I am not able to boot from my second internal hard-disk nor from my external hard-disk anymore
(the OS doesn't matter, so its not a problem with FreeBSD)
Reply With Quote
  #6  
Old August 23rd, 2010, 12:37
mechanic mechanic is offline
Junior Member
 
Join Date: Jan 2010
Location: UK
Posts: 35
Thanks: 1
Thanked 0 Times in 0 Posts
Default

But that just seems to be a Grub2 problem, it may need reinstalling to the right place (which I'd have to lookup but a safe bet would be the first HD MBR).
Reply With Quote
  #7  
Old August 23rd, 2010, 13:22
jalu
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by mechanic View Post
But that just seems to be a Grub2 problem, it may need reinstalling to the right place (which I'd have to lookup but a safe bet would be the first HD MBR).
Grub2 is on the first hard-disks-MBR.
I also put grub-legacy (grub1, so to speak) on a stick and tried that.

Seems like the BIOS and the boot-loader see the hard-disks just the other way around.
(at least that is the result of my tests with grub-legacy from USB-stick)
What i don't get is why i am able to boot all OSes on hard-disk1 (/dev/sda). And with the usual syntax.
I also tried "super grub" and it can't boot an OS from hard-disk2 neither.

I also tried my external hard-disk: same problem.
I yet have to try the USB-stick, but assume i will run into the same problem.

In general i got enough space on /dev/sda1 for as much OSes i want. The only reason i used hard-disk2 (/dev/sdb2) at all is that BSD needs a primary partition.

Quote:
But that just seems to be a Grub2 problem
Seems so to me too.
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
FreeBSD accessed via grub2 b7j0c General 31 December 10th, 2010 12:53
grub2 can't find freebsd on second drive blwizard Installing & Upgrading 1 May 14th, 2010 18:49
Dualboot Freebsd and Ubuntu 9.10 with Grub2 skido Installing & Upgrading 4 April 22nd, 2010 07:38
[Solved] dual boot FreeBSD with linux using grub2 favor Installing & Upgrading 22 January 20th, 2010 14:26
FreeBSD 7.2 LiveCD, FreeBSD 7.2 embedded & GRUB2 for FreeBSD [logical partitions also Panarchy General 24 August 9th, 2009 19:06


All times are GMT +1. The time now is 17:26.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0