![]() ![]() ![]() ![]() 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. 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.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 I also create a dedicated subvolume for snapshots. 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). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |