*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have recently tried FreeBSD in VirtualBox, where one whole virtual disk was provided for its installation. It is working very well there with XFCE4 desktop. Now I want to make a real install on my hard disk which has following partitioning scheme:
However, on my desktop hard disk, I have a total of 4 partitions. I have one partition with Windows and another with Linux installed on it. I have grub installed in MBR from Linux and I can boot to either OS from its menu at startup.
I have 2 more partitions which are free, one is primary (P3 in above figure) and other is extended (P4 in above figure). Is it possible to install FreeBSD to one of these free partitions only, without the need to use whole disk? For booting, I can update grub from Linux partition and I think it will find FreeBSD partition and put it in its menu. I tried to check on the internet but could not find simple instructions for this process. Also, FreeBSD instructions talk about 'slice' also and its relation with partition is not clear to me. Thanks for your help.
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,478
Rep:
Not sure if you can add it to your disk, but, a partition is a slice in BSD talk, & partitions are segments of that slice - kind of like your extended partition that can hold more than one more 'partition'.
If you can install it into your waiting partition, you should indeed be able to chain load it from grub.
(I think you will need its boot loader installed into its 'slice' for it to work.)
Might be worth looking through the FreeBSD documentation for confirmation, it's very good.
A traditional Master Boot Record (MBR) holds a partition table defining up to four primary partitions. For historical reasons, FreeBSD calls these primary partition slices.
ada0s1a - The first partition (a) on the first slice (s1) on the first SATA disk (ada0).
Its also another possibility your FreeBSD boot manager will overwrite any other boot manager you have installed.
You can reconfigure the boot manager by using the following command
Code:
boot0cfg -B ada0
Replacing ada0 with your actual hard drive as listed under /dev/
Otherwise to boot FreeBSD using GRUB, add the following to either /boot/grub/menu.lst or /boot/grub/grub.conf, depending upon which is used by the Linux distribution.
But yes I agree, its best to consult the official documentation and ensure you have a verified backup
Otherwise to boot FreeBSD using GRUB, add the following to either /boot/grub/menu.lst or /boot/grub/grub.conf, depending upon which is used by the Linux distribution.
But yes I agree, its best to consult the official documentation and ensure you have a verified backup
I think you forgot to write what needs to be added to menu.lst or grub.cfg file!
The correct way to do this, for "peaceful coexistence", is to configure the grub bootloader from the Linux installation to boot using either the kFreeBSD stanzas or by chainloading. I suggest that you search the FreeBSD forums for this and you will likely find hundreds, if not thousands, of hits.
Quote:
Originally Posted by Gad
A traditional Master Boot Record (MBR) holds a partition table defining up to four primary partitions. For historical reasons, FreeBSD calls these primary partition slices. [1]
ada0s1a - The first partition (a) on the first slice (s1) on the first SATA disk (ada0).
Its also another possibility your FreeBSD boot manager will overwrite any other boot manager you have installed.
You can reconfigure the boot manager by using the following command
Code:
boot0cfg -B ada0
Replacing ada0 with your actual hard drive as listed under /dev/
Otherwise to boot FreeBSD using GRUB, add the following to either /boot/grub/menu.lst or /boot/grub/grub.conf, depending upon which is used by the Linux distribution. [2]
But yes I agree, its best to consult the official documentation and ensure you have a verified backup
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.