geekbion.blogg.se

64 bit os for raspberry pi
64 bit os for raspberry pi











  1. #64 bit os for raspberry pi install#
  2. #64 bit os for raspberry pi update#
  3. #64 bit os for raspberry pi full#

#64 bit os for raspberry pi update#

  • you need to update the initramfs image to reflect these changes ! We will need to chroot in the filesystem (make it like it was your main system, do run this without chrooting first).
  • add initramfs btrfs module (at startup) echo "btrfs" > btrfs/etc/initramfs-tools/modules.
  • remove quiet if you wish (more logs provided).
  • fsck.repair should be equal to no, it doesn’t work with btrfs (btrfs as its own repair mechanism).
  • You can use label or /dev/… if you prefer, as in the fstab file.
  • change root=PARTUUID=SomeShortUUID to the right UUID.
  • Change rootfstype=ext4 to rootfstype=btrfs.
  • mount the boot partition in boot/: sudo mount /dev/sda1 boot/.
  • In order to boot (it won’t work straight away with btrfs), we need to change the kernel parameters in /boot/firmware/cmdline.txt: Only the subvol= option is mandatory, the rest are settings to enable compression (with a pretty balanced compression vs CPU overhead setting) and speed/writing optimisation for SSDs. PARTUUID=SomeVeryLongUUID /home btrfs 0 2 PARTUUID=SomeShortUUID /boot vfat defaults 0 2
  • get the btrfs new partition UUID : ls -l /dev/disk/by-uuid/ (can be done graphically in gparted too).
  • change the /etc/fstab to boot with the new setup:.
  • sudo umount ext4 : it’s no longer needed.
  • sudo sync & sync to make sure everything is written to disk.
  • sudo cp -a migrate home content to subvolume (making a copy just in case).
  • sudo rsync -avhP ext4/ to copy everything from root (in ext4) to (root) subvolume.
  • mount ext4 partition (let’s say in ext4/, a directory that you create first) : sudo mount /dev/sda2 ext4/.
  • sudo btrfs subvolume create sudo btrfs subvolume create sudo btrfs subvolume create - optional.
  • In my case it’s was partition /dev/sda3 (it should be the third one, but on a different sdX or whatever depending on what kind of device interface you use).
  • mount btrfs partition (let’s say in btrfs/, a directory that you create first) : sudo mount /dev/sda3 btrfs/.
  • in the additional space, create a btrfs partition.Īlternativement, use btrfs-convert and then move folder in appropriate subvolumes (created later ↓).
  • Not needed if you don’t use it) and zstd package if you want zstd compression.

    #64 bit os for raspberry pi install#

    Install btrfs-progs (unless it won’t boot with btrfs. The partition setup is boot + / (ext4 filesystem). flash this 64bit Yunohost image to the Raspberry Pi Installer YunoHost | Yunohost Documentation.

    64 bit os for raspberry pi

    backup some config files ( bash_aliases, /root/.config/htop, list of installed packaged…).NB: dumping here the list of operations, not sourced not explained correctly, at least as a beginning, mainly to remember it for next time and in the hope it will help someone else… don’t trust me 100% and don’t trust this not to be outdated

    64 bit os for raspberry pi 64 bit os for raspberry pi

    I also create a dedicated subvolume for snapshots.

    #64 bit os for raspberry pi full#

    Ok, so I found no way to convert it, and decided to do a full resinstall (as painful as it can be) because I needed to convert it to a proper and btrfs (filesystem) setup to use timeshift (goal : have very regular instant automated “backups” of the whole system).













    64 bit os for raspberry pi