Find the answer to your Linux question:
Results 1 to 7 of 7
Hello all and merry christmas, I just installed PC-BSD 1.5.1 (FreeBSD 6.3) and i havent been able to boot into it at all. I opted not to use the pcbsd ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2008
    Posts
    34

    Question [SOLVED] Booting freebsd with grub


    Hello all and merry christmas,

    I just installed PC-BSD 1.5.1 (FreeBSD 6.3) and i havent been able to boot into it at all. I opted not to use the pcbsd bootloader, instead hoping to setup grub to work with it. however, i have yet to be able to get it to boot; I consistantly get
    Code:
     Error 17 - Cannot mount selected partition
    The partition in question is formatted in UFS, and grub recognizes that as it tags the partition as 0xa5(freebsd).

    My grub entry looks like this:
    Code:
    title		PC-BSD 1.5.1
    root 		(hd0,3,a)
    kernel		/boot/loader
    makeactive
    chainloader	+1
    I have tried with and without those last 2 lines. Any ideas?

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    Are you sure you have setup the correct parttions for your FreeBSD entry? What is the output of running "fdisk -l" whilst logged into Linux?

  3. #3
    Just Joined!
    Join Date
    Feb 2008
    Posts
    34
    Code:
    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x0003afb6
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1           19076       19457     3068415   83  Linux
    /dev/sda2               1        3454    27744223+   5  Extended
    /dev/sda3            4730       19075   115234245   83  Linux
    /dev/sda4            3455        4729    10241217   a5  FreeBSD
    Partition 4 does not end on cylinder boundary.
    /dev/sda5               1        1301    10450219+  83  Linux
    /dev/sda6            1302        2304     8056566   83  Linux
    
    Partition table entries are not in disk order
    
    Disk /dev/sdb: 80.0 GB, 80000000000 bytes
    255 heads, 63 sectors/track, 9726 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x000b8a3b
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1   *           1        4844    38909398+   7  HPFS/NTFS
    /dev/sdb2            4845        9725    39206632+   7  HPFS/NTFS
    sdb is my windows hard drive. sda2 is my logical partition containing my linux root directories. sda3 is my /home partition. sda4 is my Freebsd partition. sda1 is a storage partition.

    what exactly does it take to setup a partition correctly? I freed up some space on my disk, and created an unformatted 10GB primary partition on which i installed freebsd.

  4. #4
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    Try the GRUB entry below
    Code:
    title PCBSD
    root   (hd0,3,a)
    kernel /boot/loader

  5. #5
    Just Joined!
    Join Date
    Feb 2008
    Posts
    34
    That doesn't work. I still get an Error 17. Could there be something wrong with my install of grub?

  6. #6
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    Try this
    Code:
    title PC-BSD
    rootnoverify (hd0,3)
    makeactive
    chainloader +1

  7. #7
    Just Joined!
    Join Date
    Feb 2008
    Posts
    34
    Thanks! that did it. Now i have a problem with a kernel panic of some sort. well at least i will be able to fix it now that i can boot into it!

    Thanks for everything

Posting Permissions

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