I’m about to install FreeBSD 15.1 on a new laptop that already runs Gentoo, and I’d like some advice from people who have done this on a dual-boot machine.
This won't be a daily driver. It’s a test system to make sure my personal C projects build and run on FreeBSD, and just to keep up with what’s happening with FreeBSD in general. I realize I can do this with a VM, but I prefer a bare-metal system that I can use to explore and learn with. I'd prefer relatively-low maintenance, so I’ll be using pkg rather than ports. I’m planning on installing a lightweight LXQt desktop and a standard C/C++ toolchain.
The laptop is a Lenovo ThinkPad E16 Gen 3, Intel Core Ultra 5 (Arrow Lake), 32GB RAM, 2TB NVMe. Wifi is Intel iwlwifi (Bz-generation firmware under Linux). The disk has about 1TB of unpartitioned free space, and Gentoo already has an ESP that I want to reuse.
Question 1: Keeping the ESP safe.
I want to share the existing ESP rather than create a second one. On an older laptop I ended up overwriting the ESP twice with bsdinstall before I got it right, and had to rescue GRUB from a Gentoo live disk. What’s the recommended way to keep bsdinstall away from the existing ESP? My plan is:
Question 2: UFS vs ZFS.
I’m leaning towards a single UFS partition mounted on /, with no separate /usr or /home, mainly for simplicity and because Linux can mount UFS read-only for rescue. I have a bit of familiarity with UFS, but have never used ZFS. I know ZFS offers boot environments, but the guided installer wants a whole disk and I’d have to build the pool by hand on a shared disk. For a test machine with 32GB of RAM and little personal data, would you still choose ZFS? If so, what’s the cleanest way to install it into a single partition on a disk shared with another OS?
Thanks!
This won't be a daily driver. It’s a test system to make sure my personal C projects build and run on FreeBSD, and just to keep up with what’s happening with FreeBSD in general. I realize I can do this with a VM, but I prefer a bare-metal system that I can use to explore and learn with. I'd prefer relatively-low maintenance, so I’ll be using pkg rather than ports. I’m planning on installing a lightweight LXQt desktop and a standard C/C++ toolchain.
The laptop is a Lenovo ThinkPad E16 Gen 3, Intel Core Ultra 5 (Arrow Lake), 32GB RAM, 2TB NVMe. Wifi is Intel iwlwifi (Bz-generation firmware under Linux). The disk has about 1TB of unpartitioned free space, and Gentoo already has an ESP that I want to reuse.
Question 1: Keeping the ESP safe.
I want to share the existing ESP rather than create a second one. On an older laptop I ended up overwriting the ESP twice with bsdinstall before I got it right, and had to rescue GRUB from a Gentoo live disk. What’s the recommended way to keep bsdinstall away from the existing ESP? My plan is:
- Choose the Shell option at the partitioning step.
- Create the root and swap partitions manually with gpart in the free space.
- Install, then copy loader.efi to EFI/freebsd/ on the ESP myself.
- Chainload it from GRUB (this worked well for me before).
Question 2: UFS vs ZFS.
I’m leaning towards a single UFS partition mounted on /, with no separate /usr or /home, mainly for simplicity and because Linux can mount UFS read-only for rescue. I have a bit of familiarity with UFS, but have never used ZFS. I know ZFS offers boot environments, but the guided installer wants a whole disk and I’d have to build the pool by hand on a shared disk. For a test machine with 32GB of RAM and little personal data, would you still choose ZFS? If so, what’s the cleanest way to install it into a single partition on a disk shared with another OS?
Thanks!