Article 6H0Z0 how to properly move the contents of /home on an ext4 to a btrfs home subvolume ?

how to properly move the contents of /home on an ext4 to a btrfs home subvolume ?

by
marozsas
from LinuxQuestions.org on (#6H0Z0)
Hi there !

I've installed opensuse TW years ago on my laptop. At that time it had a 120G SSD and a 1T HDD, with dual boot. As one can expect, there was no much room for user files for 2 systems in 120GB, so I split the installation between the 2 disks, telling to the installer to put home and swap on the slower HDD:

Code:lsblk -e 7 -o +PARTLABEL -o +FSTYPE
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS FSTYPE
sda 8:0 0 931.5G 0 disk
sda1 8:1 0 427.7G 0 part /var btrfs
/usr/local
/tmp
/srv
/root
/boot/grub2/i386-pc
/opt
/mnt/btrfs
/boot/grub2/x86_64-efi
/
sda3 8:3 0 72.7G 0 part ntfs
sdb 8:16 0 698.6G 0 disk
sdb1 8:17 0 39.2M 0 part vfat
sdb3 8:19 0 343.4G 0 part ntfs
sdb4 8:20 0 1K 0 part
sdb5 8:21 0 341.3G 0 part /home ext4
sdb6 8:22 0 13.7G 0 part [SWAP] swapNow, I got a new 1T SDD, and used dd to move the whole 120G disk content to the new 1T SSD disk. After that, I resized the root partition on new SSD and everything is working as intended. I fact, I am posting this from the laptop with the new disk already. There is around 400G unallocated space on sda.

The question is: How to create/move the /home ext4 from sdb5 to sda as btrfs ? The unknown for me is what is the proper way to create a home folder/subvolume in btrfs and get the UUID to add it to fstab.

thanks in advance,
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments