modified | Thursday 7 March 2024 |
---|
/home
/
is too small and I don’t need the separationmkdir disk
and mkdir home
mount /dev/nvme0n1p2 disk
and mount /dev/nvme0n1p3 home
cp -r home/emad disk/home/
/home
desk line from disk/etc/fstab
. I commented mine just in case.umount home
cfdisk /dev/nvme0n1
. removed the /home
partition (p3) and resize (p2) to fill the rest of the space. cfdisk will default to the rest of the space. very helpfulumount disk
chown -R emad:emad /home/emad
df -h .
still shows the root size = 20G. that’s because we resized the partition but the filesystem still thinks it’s 20G.
sudo resize2fs /dev/nvme0n1p2