Find the answer to your Linux question:
Results 1 to 3 of 3
I have Fedora 16 on /dev/sda1 and installed FreeBSD 8.2 on /dev/sda2, with a BSD swap partition on /dev/sda3. I chose not to install the FreeBSD boot manager, thinking I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! evilducky's Avatar
    Join Date
    Jan 2012
    Location
    Chicago, Illinois, USA
    Posts
    7

    Issues encountered while trying to dual-boot Linux and FreeBSD


    I have Fedora 16 on /dev/sda1 and installed FreeBSD 8.2 on /dev/sda2, with a BSD swap partition on /dev/sda3. I chose not to install the FreeBSD boot manager, thinking I can just run 'update-grub2' on Fedora 16 and Grub (on MBR) will recognize BSD. Well, I was wrong.

    In the past, I've tried installing the FreeBSD boot manager to the MBR, because the installer prompt said that if I have other operating systems on my hard drive then I should choose to install the interactive boot manager. I had done so, and when the interactive FreeBSD boot manager loaded, it listed my Linux partition but failed to boot into it. I was, however, able to boot FreeBSD with no problem.

    I have done Google searches on this issue, and read the BSD documentation for dual-booting, but couldn't find anything that solves the problem. However, I think this is a pretty common issue, so hopefully someone here will have some kind of advice or direct solution.

  2. #2
    Just Joined!
    Join Date
    Nov 2011
    Location
    New Zealand
    Posts
    79

  3. #3
    Linux Newbie SL6-A1000's Avatar
    Join Date
    May 2011
    Location
    Australia
    Posts
    120
    I would recommend you read the following guide on GRUB2 and edit GRUB manually. It will save time and you will probs feel accomplished

    GRUB 2 bootloader - Full tutorial

    It is very useful and gives alot of information, i often refer to it for both GRUB2 and legacy GRUB if i forget something. If your game edit the custom menu entry script file for GRUB2 (i've provided the location of the file and an example below), instead of trying to reload/ recover GRUB (which has nothing wrong with it) and potentially having an unbootable system if something goes wrong.

    However, i also highly recommend you don't edit anything other than the custom file unless your sure you know what your doing.

    The custom script file for GRUB is located in:
    Code:
    /etc/grub.d
    Once you've added FreeBSD, it should at the end look similar to this:
    Code:
    menuentry "Debian GNU/kFreeBSD" {
    insmod ufs2
    set root=(hd2,2)
    kfreebsd /boot/kfreebsd-8.1-1-amd64.gz
    set kFreeBSD.vfs.root.mountfrom=ufs:/dev/ad8s2
    set kFreeBSD.vfs.root.mountfrom.options=rw
    }
    But obviously not the same, as yours is just FreeBSD and not Debian GNU/kFreeBSD

    *Remember though to update grub afterwards*
    Last edited by SL6-A1000; 02-07-2012 at 11:29 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •