Differences between revisions 1 and 2
Revision 1 as of 2021-02-28 10:03:28
Size: 684
Editor: PieterSmit
Comment:
Revision 2 as of 2022-03-03 04:46:36
Size: 683
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Linux/Btrfs/UbuntuExt4ToBtrfs =  = Linux/Btrfs/UbuntuExt4ToBtrfs =

Linux/Btrfs/UbuntuExt4ToBtrfs

  • 2021-02 Ubuntu install cant setup root btrfs.
    1. Install ubuntu from usb, on single /dev/sda2 ext4. (sda1 is efi partition)
    2. Once bootable, boot again from live usb, and convert ext4 to btrfs
      • btrfs-convert /dev/sda2
    3. Setup fstab, grub, initram-fs for boot into btrfs

      mount /dev/sda2 /mnt
      mount -t proc /proc /mnt/proc
      mount --rbind /dev /mnt/dev
      mount --make-rslave /mnt/dev
      mount --rbind /sys /mnt/sys
      mount --make-rslave /mnt/ys
      
      chroot /mnt /bin/bash
      
      mount /boot/efi
      grub-install /dev/sda
      update-initramfs -u
      # err fix uuid for / in /etc/fstab
      apt install btrfs-tools
      update-initramfs -u

Linux/Btrfs/UbuntuExt4ToBtrfs (last edited 2022-03-03 04:46:36 by PieterSmit)