Use part of a disk for inatallation

jojopara

New Member

Reaction score: 1
Messages: 16

Hello,

Can I delete and merge the Linux partitions into one and let FreeBSD take care of only the partition thus created? I mean, will the right-most storage partition be kept intact during the automation partitioning by the installer? I am frightened by the "use entire disk" or something like that.

Thank you.
 

Attachments

  • Screenshot from 2021-09-05 17-15-53.png
    Screenshot from 2021-09-05 17-15-53.png
    32.7 KB · Views: 32

Alain De Vos

Daemon

Reaction score: 649
Messages: 2,173

With linux gparted you can do alot of stuff and tricks.
But for freebsd you need a ufs or zfs partition.
 

monwarez

Active Member

Reaction score: 60
Messages: 149

The use entire disk means what it means (ie it will destroy everything)
You will need to do the manual partition (If I recall correctly)
 

scottro

Daemon

Reaction score: 903
Messages: 2,051

It's fairly easy to do a UFS install on a shared disk, a bit harder to do with ZFS, but it can be done. There are tutorials on the forum, (I use the one by patovm04) to do an install on ZFS. Basically, when you get to the disk partition section, you choose drop to a shell and issue commands, for ZFS. For UFS, it's easiest if you have a partition set in advance (if using MBR, it needs a primary partition) and choose it during installation. When done, you then have to set up grub. The tutorial I mentioned above has suggestions that have worked for me for EFI (and ZFS), there are several threads on the forum. If using EFI then a UFS install wil set up an EFI partition and you can use the machine's EFI boot menu to boot it, (e.g, on Thinkpads, hit F12 when it boots), use rEFInd or grub.
 

Alain De Vos

Daemon

Reaction score: 649
Messages: 2,173

For instance I boot with linux-grub towards a ufs bootpartition which loads a zfs root filesystem. This can be done,but it is not easy when it is your first setup.
 

monwarez

Active Member

Reaction score: 60
Messages: 149

Since I see that there is an EFI partition, I am not sure if the installer will do the correct things: ie. installing /boot/loader.efi in EFI/freebsd/BOOTX64.efi . Also we don't know which RELEASE it will be, I am pretty sure that 13-RELEASE should not just dump an image of the efi filesystem into the efi partition, but I don't know if it will use the correct namespace (ie. the freebsd folder), or use /EFI/BOOT/BOOTX64.efi .
Anyways, before proceeding further, backup your current install and make sure that you can recover from the backup. You can try that with another drive to test that backing up will give you a working system.
 

scottro

Daemon

Reaction score: 903
Messages: 2,051

Ah ok. So, my experience was something like this. (Going from memory, but basic details are right). On a laptop with some Linux installs, I created say, a 100G partition for FreeBSD. During installation and disk partitioning, even though there was a Linux EFI partition, I got a message this needs a partition for UEFI or it won't boot, should I create it for you? I chose yes. When done, I think the FreeBSD install was on partition 7 and its UEFI partition was on partition 6. This was in addition to the partition one UEFI partition. I then directed Grub to that partition and it worked. As I mentioned earlier, you can probably hit a key on boot up for boot device, and FreeBSD will be availabe, or you can use rEFInd.k

When doing an install on ZFS, however, I followed the instructions on this forum and created everything manually, including copying over necessary files to the Linux UEFI partition already created on partition one.

This is the tutorial I used for a ZFS partition.
 
Top