New install on partition just used

Hi all this is my situation:
Code:
❄  marco  ~   16:16 
 zpool list -v
NAME                                               SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
ipool                                              928G   283G   645G        -         -     0%    30%  1.00x    ONLINE  -
  mirror-0                                         928G   283G   645G        -         -     0%  30.5%      -    ONLINE
    nvme-Sabrent_0385079B115D00656692_1-part2      953G      -      -        -         -      -      -      -    ONLINE
    nvme-WDS100T1X0E-00AFY0_2140JY447104_1-part1   930G      -      -        -         -      -      -      -    ONLINE

Code:
❄  marco  ~   16:16 
 zfs list -t filesystem
NAME                USED  AVAIL  REFER  MOUNTPOINT
ipool               283G   616G    96K  none
ipool/arch         38.9G   616G    96K  none
ipool/arch/home    17.5G   616G  17.1G  legacy
ipool/arch/root    21.4G   616G  19.2G  /
ipool/condivise     124G   616G   124G  legacy
ipool/gentoo       83.4G   616G    96K  none
ipool/gentoo/home  59.7G   616G  57.5G  legacy
ipool/gentoo/root  23.7G   616G  23.1G  /
ipool/nixos        11.3G   616G    96K  none
ipool/nixos/home   2.10G   616G  1.83G  legacy
ipool/nixos/root   9.19G   616G  9.14G  /
ipool/void         25.0G   616G    96K  none
ipool/void/home    8.60G   616G  8.56G  legacy
ipool/void/root    16.4G   616G  12.1G  /

If i create freebsd datasets, can I install without erase preesistent distro? If yes, How?
 
… can I install without erase preesistent distro?

Yes. Key phrase:

root on ZFS

We're directed (maybe misdirected) to the FreeBSD Handbook, which has no such phrase, so maybe try the second of the pictured wiki pages.
 

Attachments

  • 1715049276662.png
    1715049276662.png
    168.3 KB · Views: 267
Thanks, so if I follow the guide without creating zpool (because I've already zpool) and only create dataset for freebsd into zpool that already contain Linux too, I can't lose data right? Another little question, how EFI partition can I use partition on fat32?
 
Another little question, how EFI partition can I use partition on fat32?
You don't appear to UEFI boot this machine. But if you do, you can use the existing efi partition. Just don't let the installer create it, or else you will end up with two efi partitions.

To use an existing efi partition, all you need to do is copy /boot/loader.efi to EFI/FreeBSD/loader.efi and use efibootmgr(8) to add it to the efivars.
 
Ok, I've installed freebsd on pre-existing pool. So, now I can boot freebsd but Linux distros go on kernel panic because can't found zpool
 
Hi all, now I reopen this thread because I've question.
Currently I've freebsd on external disk, but I would to move this on other pool but with openzfs encryption

This is my situation:
Code:
marco@tsaroo ~ $ zpool list
NAME      SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT
bsdpool   476G  2.09G   474G        -         -     0%     0%  1.00x    ONLINE  /home/marco/media
rpool    1.80T   456G  1.35T        -         -     6%    24%  1.00x    ONLINE  -
zroot     952G  2.57G   949G        -         -     0%     0%  1.00x    ONLINE  /mnt

where rpool is linux pool (where I boot in this moment), bsdpool is freebsd pool and zroot is pool where I want bsd.
zroot is create with native encryption
This are datasets situation:
Code:
marco@tsaroo ~ $ zfs list
NAME                   USED  AVAIL  REFER  MOUNTPOINT
bsdpool               2.09G   459G    96K  /home/marco/media/bsdpool
bsdpool/ROOT          1.27G   459G    96K  none
bsdpool/ROOT/default  1.27G   459G  1.27G  /home/marco/media
bsdpool/home           224K   459G    96K  /home/marco/media/home
bsdpool/home/marco     128K   459G   128K  /home/marco/media/home/marco
bsdpool/tmp            168K   459G   104K  /home/marco/media/tmp
bsdpool/usr            837M   459G    96K  /home/marco/media/usr
bsdpool/usr/ports      837M   459G   837M  /home/marco/media/usr/ports
bsdpool/usr/src         96K   459G    96K  /home/marco/media/usr/src
bsdpool/var            756K   459G    96K  /home/marco/media/var
bsdpool/var/audit       96K   459G    96K  /home/marco/media/var/audit
bsdpool/var/crash       96K   459G    96K  /home/marco/media/var/crash
bsdpool/var/log        276K   459G   188K  /home/marco/media/var/log
bsdpool/var/mail        96K   459G    96K  /home/marco/media/var/mail
bsdpool/var/tmp         96K   459G    96K  /home/marco/media/var/tmp
rpool                  456G  1.30T   192K  none
rpool/condivise        192G  1.30T   189G  legacy
rpool/home            98.3G  1.30T   192K  none
rpool/home/arch       41.9G  1.30T  24.7G  legacy
rpool/home/artix       335M  1.30T   317M  legacy
rpool/home/debian      719M  1.30T   719M  none
rpool/home/gentoo     55.4G  1.30T  49.9G  legacy
rpool/root             166G  1.30T   192K  none
rpool/root/arch       52.3G  1.30T  46.7G  /
rpool/root/artix      7.29G  1.30T  6.83G  /
rpool/root/debian     5.17G  1.30T  5.17G  none
rpool/root/gentoo      101G  1.30T  41.1G  /
zroot                 2.57G   920G   200K  none
zroot/ROOT            1.14G   920G   192K  none
zroot/ROOT/default    1.14G   920G  1.12G  /mnt
zroot/home             532K   920G   192K  /mnt/mnt/home
zroot/home/marco       340K   920G   228K  /mnt/home/marco
zroot/usr             1.43G   920G   192K  none
zroot/usr/ports       1.43G   920G  1.23G  /mnt/usr/ports
zroot/usr/src          312K   920G   200K  /mnt/usr/src
zroot/var             1.23M   920G   192K  none
zroot/var/audit        192K   920G   192K  none
zroot/var/crash        180K   920G   180K  none
zroot/var/log          332K   920G   332K  none
zroot/var/mail         176K   920G   176K  none
zroot/var/tmp          184K   920G   184K  none

I migrate dataset of freebsd with zfs send, but at reboot didn't boot bootloader.
Have you some advices for my situation?
 
Back
Top