1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Installation of FreeBSD onto a Logical Partition

Discussion in 'Installing and Upgrading FreeBSD' started by Panarchy, Apr 3, 2009.

  1. jessa_jr

    jessa_jr New Member

    Messages:
    12
    Thanks Received:
    0
    try this tomorrow

    @Panarchy

    I will try this tomorrow and I'll give you feedback if I can boo it using easybcd.

    Thanks.
     
  2. Panarchy

    Panarchy New Member

    Messages:
    74
    Thanks Received:
    1
    I know it's different to the usual setup, but no need to scare your system!

    x(
     
  3. Djn

    Djn New Member

    Messages:
    392
    Thanks Received:
    62
    Lovely. I just tried Asus' BIOS update tool in vista 64, which it supposedly supports: In short, it doesn't, and I need to rescue or replace my MB. This might cause some delays.
     
  4. Panarchy

    Panarchy New Member

    Messages:
    74
    Thanks Received:
    1
    *beep**beep**beep**beep*, I mean damn!

    That's terrible!!!

    Whenever I do BIOS upgrades I always put it on a USB then reboot and do it that way. You may still be able to recover with that method. I think press F2.

    Good luck!
     
  5. Djn

    Djn New Member

    Messages:
    392
    Thanks Received:
    62
    It is a bit annoying, yeah - good thing I also have a laptop.
    I've tried the most obvious recovery things - but it doesn't seem too keen on working. Will try a few things today, or it's downtown to buy a new MB.

    (I'll RMA this one if I do, then use it to build a server or something when I get it back.)
     
  6. Panarchy

    Panarchy New Member

    Messages:
    74
    Thanks Received:
    1
    RMA? Is that warranty?

    Excellent :p

    Keep us informed!
     
  7. Djn

    Djn New Member

    Messages:
    392
    Thanks Received:
    62
    RMA. Essentially, I send it in and will most likely get it back after they fix it - if that's not possible, they usually send a new identical one. So yes, warranty. (2 years and 2 months into a 3 year warranty, if I'm not mistaken.)

    Anyway, I bought another MB - a P5Q-E. Time will show how it works with FreeBSD (some people have had problems with the sata controllers; some claim it works fine); for now I'm just happy I didn't have to reinstall vista. :)

    This means I have a working 64-bit OS for my VMs again, so I'll try to finish tomorrow. An annoying segfault bug in grub2 just got fixed in SVN as well, which is a bonus.
     
  8. jessa_jr

    jessa_jr New Member

    Messages:
    12
    Thanks Received:
    0
    @neogrub still dont work after a x times of boot kernel panic

    @Panarchy

    I still dont get it when I install the neogrub in the easybcd and It keep installing in the xp partition not in the root partition of the freebsd? How will I do it?

    After a couple times of reboot I experience kernel panic I cant boot in any os. This is the second times it happen to me after installing the freebsd in the logical drive. I cant use also gparted it will just shutdown. The solution I did in the first is doing a master-slave hd in my other pc box and format using symantec partition manager. I will try this again because I run out of time yesterday.

    Hope you can help me.

    Thanks.
     
  9. Djn

    Djn New Member

    Messages:
    392
    Thanks Received:
    62
    One issue: If FreeBSD is indeed in a logical partition, it isn't enough to chainload it. You actually have to make grub load and start the FreeBSD kernel for you - so you need a grub that understands BSD-style partitions, UFS, and FreeBSD kernels. I know GRUB2 does (that's why I use it), but I can't talk for neoGRUB.
     
  10. jessa_jr

    jessa_jr New Member

    Messages:
    12
    Thanks Received:
    0
    grub2 installation

    So that means I cannot use the easybcd to load it, if I will install grub2 to the root partition and call the partition using easybcd do you think I can load it.

    How will Im going to install grub2 to load it.
     
  11. Djn

    Djn New Member

    Messages:
    392
    Thanks Received:
    62
    If you can install grub2 onto any partition, then yes; that should work.
    One option would be to create a small ext3 partition with a linux boot CD, and install grub2 onto that from there - slightly messy, but I would expect it to work.

    Alternatively, if you have a linux isntalled already you can do it from there, and to that partition.
    There's also the possibility that grub2 might compile and work on freeBSD with an UFS partition, but I honestly don't know. I've been way busy, so I can't promise looking at it very soon ...
     
  12. jessa_jr

    jessa_jr New Member

    Messages:
    12
    Thanks Received:
    0
    ubuntu and fedora installed

    @DJN

    I have fedora kde and ubuntu installed on my pc but I dont know what to do, If you can just put me to the right direction maybe you can help me out.

    Thanks.
     
  13. Panarchy

    Panarchy New Member

    Messages:
    74
    Thanks Received:
    1
    Oh, you already have the Linux's installed?

    Well that makes things much simpler. In fact, I have the same Linux's as you installed.

    Simply PATCH the latest GRUB2 with the FreeBSD 64-bit patch, (which I requested, thanks again Bean), then install it within the BootSector of your Linux partition(s).
     
  14. fbsduser

    fbsduser New Member

    Messages:
    48
    Thanks Received:
    1
    Neogrub is based on vanilla grub 0.9x hence it won't work for BSD on a logical partition.
     
  15. Panarchy

    Panarchy New Member

    Messages:
    74
    Thanks Received:
    1
    NeoGRUB

    I thought that NeoGRUB was based off of Grub4DOS?

    Also, Djn, do you have a working computer now?

    I'd really like to see the finished tutorial :stud

    Thanks,

    Panarchy
     
  16. Djn

    Djn New Member

    Messages:
    392
    Thanks Received:
    62
    I do, yes - what I've been lacking lately is time and energy. I'll see what I can do. ;)
     
  17. jessa_jr

    jessa_jr New Member

    Messages:
    12
    Thanks Received:
    0
    Still cant do it

    @panarchy,

    I still cant do it instead I just install it in the primary partition and I have a quad boot machine xp, vista, opensolaris and freebsd using easybcd. I will install ubuntu, fedora, opensure, windows seven and macos this weekend and hope dont messed it.

    But if sir DJN can make a good tutorial for us I will try it again to have a running freebsd in the logical partition.

    @fbsduser

    Thats why I cant make it run using easybcd. Thanks for the comment.
     
  18. Panarchy

    Panarchy New Member

    Messages:
    74
    Thanks Received:
    1
    Can't GRUB2 -> with FreeBSD 64-bit patches -> be installed onto the FreeBSD Logical Partition?

    In which case it could be chainloaded through the BCD [EasyBCD], GRUB4DOS, GRUB1, GRUB2 or NeoGRUB, right?

    Thanks Djn, really looking forward to a complete tutorial.

    Panarchy
     
  19. Djn

    Djn New Member

    Messages:
    392
    Thanks Received:
    62
    I'll have to dig up the relevant virtualboxes and finish this soon. x)
    First, though - I think I'll see if I can build and install grub2 from FreeBSD; that would make things a touch cleaner.
     
  20. Panarchy

    Panarchy New Member

    Messages:
    74
    Thanks Received:
    1
    Okay, looking forward to it's completion!

    Thanks!
     
  21. xelalien

    xelalien New Member

    Messages:
    1
    Thanks Received:
    0
    How about implementing the steps used in this guide?

    First, installing FreeBSD on a primary, then backing up the disk first (for other OS installations), then restore the BSD disk image into a logical drive, then editing the PT (using ptedit), and setting up the bootloader (GRUB4DOS)...

    What do you think?
     
  22. Panarchy

    Panarchy New Member

    Messages:
    74
    Thanks Received:
    1
    Well for one the GRUB4DOS Bootloader doesn't support ZFS partitions or calling the FreeBSD bootloader.

    However, now that a module has been written for GRUB, one can use that instead of the FreeBSD bootloader, which can be easily chainloaded and booted from logical partitions, through your method or Djn's.

    On that note, Djn, did you finish the guide?

    Regards,

    Panarchy
     
  23. allanjude@

    allanjude@ New Member Developer

    Messages:
    28
    Thanks Received:
    0

    You'll want to do
    Code:
    newfs -U /dev/ad0s1s3d
    to enable soft-updates, -S is to specify sector size, and will give you an error if you do not provide it the expected size parameter.
     
  24. nox@

    nox@ New Member Developer

    Messages:
    75
    Thanks Received:
    38
    Btw I just found that grub2 won't boot FreeBSD/amd64 9.1 nor head kernels and got a patch for grub 2.00 (or bzr) by one of the grub developers:
    http://paste.debian.net/180121/
    [Edit: paste expired so I mirrored the patch here: http://people.freebsd.org/~nox/tmp/grub2-paste_180121.patch. This (or a similar) patch meanwhile also has been committed to grub2 bzr.]

    Mailing list thread is here: http://lists.freebsd.org/pipermail/freebsd-stable/2012-July/068924.html

    (The sysutils/grub2 port will hopefully be updated soon.)

    HTH, :)
    Juergen