LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Grub2 and freebsd problems. (http://www.linuxquestions.org/questions/slackware-14/grub2-and-freebsd-problems-4175449557/)

humid 02-10-2013 10:58 AM

Grub2 and freebsd problems.
 
Hi all, I'm trying to get grub2 from slackbuilds to boot FreeBSD with Slackware 14 and Windows XP. It picks up both Windows and Slackware fine, I've been following Dive's slackwiki but I just can't figure it out to get FreeBSD working with grub2. My Partition table looks like this.

/dev/sda1 Windows
/dev/sda2 swap
/dev/sda3 Slackware
/dev/sda4 FreeBSD

Any help, will be much appreciated.

hitest 02-10-2013 11:23 AM

Quote:

Originally Posted by humid (Post 4888516)
Hi all, I'm trying to get grub2 from slackbuilds to boot FreeBSD with Slackware 14 and Windows XP. It picks up both Windows and Slackware fine, I've been following Dive's slackwiki but I just can't figure it out to get FreeBSD working with grub2. My Partition table looks like this.

/dev/sda1 Windows
/dev/sda2 swap
/dev/sda3 Slackware
/dev/sda4 FreeBSD

Any help, will be much appreciated.

Perhaps this wiki will be of some help to you.

http://slackwiki.com/Dual_Booting_With_FreeBSD_9

humid 02-10-2013 11:30 AM

That's the slackwiki I've been looking at hitest, I've added the rule to /etc/grub.d/40_custom but it doesn't seem to pick up FreeBSD, even on the grub menu on boot.

spiky0011 02-10-2013 11:42 AM

Hi

I have just been doing the same thing try
Code:

menuentry "FREEBSD 9.0" {
set root=(hd0,2)
chainloader +1
}

Add that to the /etc/grub.d/40_custom file then update-grub

of course set the hd0,2 to where you have put bsd
Did you put bsd on a primary partition as well?

humid 02-10-2013 11:51 AM

yeah, I put it on a primary partition, is that a problem?
Another question 'set root=(hd0,2) ....does that mean the second partition?
I'm beginning to question myself now.

spiky0011 02-10-2013 11:57 AM

Hi

No it has to go on a primary partition
Where did you install it to?? Do you have more than 1 drive? What partition did you install to?

hd0 is the 1st hdd
the 2 is the 2nd partition
hope this helps

BTW freebsd is cli only I am using PCBSD which has a gui

humid 02-10-2013 12:05 PM

Thanks for the help spiky0011, it's all on one drive /dev/sda on linux ...my partitions are posted with my first post. Do you need to run a command after you edit grub? I can't even see anything on the grub menu about FreeBSD.

spiky0011 02-10-2013 12:10 PM

The file is in /etc/grub.d
Open 40_custom as root then make the entry close file.
Code:

sudo update-grub

humid 02-10-2013 12:15 PM

I have no 'update-grub' command? ...I've added everything to /etc/grub.d/40_custom

spiky0011 02-10-2013 12:21 PM

Hi

I dont use slackware so not much help with that I use Ubuntu with grub2 and I,m sure you should have the same commands, If I,m wrong I hope a slckware user can point you in the right direction

spiky0011 02-10-2013 12:51 PM

You did run update-grub as root, or with root privilages

humid 02-10-2013 08:22 PM

Yes, I have have no command called 'update-grub'

harryhaller 02-10-2013 09:22 PM

Try the following:
Code:

su
[root password]
update-grub

update-grub is probably in directory /sbin

harryhaller 02-10-2013 09:24 PM

don't forget to type "exit" to stop being root

humid 02-10-2013 09:31 PM

I've exploded the package into a separate directory, and I still can't find the command. I installed grub2 from slackbuilds with sbopkg.


All times are GMT -5. The time now is 09:21 AM.