This question already has an answer here:
df -h gives me the following:
Filesystem Size Used Avail Use% Mounted on /dev/mapper/centos-root 50G 49G 1.3G 98% / devtmpfs 7.8G 0 7.8G 0% /dev tmpfs 7.8G 0 7.8G 0% /dev/shm tmpfs 7.8G 769M 7.1G 10% /run tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup /dev/mapper/centos-home 78G 182M 78G 1% /home /dev/sda1 497M 338M 160M 68% /boot tmpfs 1.6G 0 1.6G 0% /run/user/0
I want to allocate more spare to
/dev/mapper/centos-root, by reducing the allocation for
How would I remove 50GB from home and give it to root?
mount tells me the following:
/dev/mapper/centos-home on /home type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
Does this mean it's the XFS filesystem? When I run
resize2fs I get the following error:
resize2fs: Bad magic number in super-block while trying to open /dev/centos/home Couldn't find valid filesystem superblock.