I've got an old server that will be re-purposed. Part of this means rearranging the partitions. The current layout is:
$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 558.7G 0 disk ├─sda1 8:1 0 243.5M 0 part /boot ├─sda2 8:2 0 1K 0 part └─sda5 8:5 0 558.5G 0 part ├─root 254:0 0 9.3G 0 lvm / ├─swap_1 254:1 0 21.8G 0 lvm [SWAP] └─home 254:2 0 527.4G 0 lvm /opt sr0 11:0 1 1024M 0 rom
The root partition is very small, and I need to merge it with home to make one single partition. Is it possible to merge these without losing data? I'm concerned that if data is lost in either partition, I might not be able to log in again - I only have ssh access. The machine is in a data centre that I can't get physical access to should something go wrong. I can't just pop in a Live CD and repartition from there.
I know there are many GUI tools that can manage partitions, I need a CLI solution.
/usr
a symlink pointing to/home/usr
for example?