This is the current state of my disk at present , how can I use the unused space or move stuff to free up space , without formatting or loosing data
Filesystem Size Used Avail Use% Mounted on devtmpfs 7.6G 0 7.6G 0% /dev tmpfs 7.7G 121M 7.5G 2% /dev/shm tmpfs 7.7G 2.0M 7.7G 1% /run tmpfs 7.7G 0 7.7G 0% /sys/fs/cgroup /dev/mapper/Root 50G 50G 336M 100% / /dev/nvme0n1p2 3.0G 467M 2.6G 16% /boot /dev/nvme0n1p1 200M 17M 184M 9% /boot/efi /dev/mapper/Home 100G 30G 71G 30% /home tmpfs 1.6G 52K 1.6G 1% /run/user/119637
Output of lvmdiskscan
/dev/mapper/luks-e66c5c74-2af5-4500-9e5f-011c23ab17aa [ 235.26 GiB] LVM physical volume /dev/nvme0n1p1 [ 200.00 MiB] /dev/nvme0n1p2 [ 3.00 GiB] /dev/nvme0n1p3 [ <235.28 GiB] 0 disks 3 partitions 1 LVM physical volume whole disk 0 LVM physical volumes
Can I merge home partition or add a partition for root from home as it has more space ? Are below steps logical ?
- Make another partition of home
- Merge that to root ( No idea on commands how to do)
- Say if I provide 10G from home to root it will resolve storage issue for my machine and all data will be intact .
As workaround for now , just moved the most heavy files
# find . -type f -size +1G ./VirtualBox VMs/origin-1.3.0/box-disk1.vmdk ./VirtualBox VMs/virtualBox-related_default_1654693896122_36201/centos-7-1-1.x86_64.vmdk ./.vagrant.d/boxes/thesteve0-VAGRANTSLASH-openshift-origin/1.2.0/virtualbox/box-disk1.vmdk # mv "./VirtualBox VMs/origin-1.3.0/box-disk1.vmdk" /home/ # df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 7.6G 0 7.6G 0% /dev tmpfs 7.7G 155M 7.5G 2% /dev/shm tmpfs 7.7G 2.0M 7.7G 1% /run tmpfs 7.7G 0 7.7G 0% /sys/fs/cgroup /dev/mapper/Root 50G 40G 11G 79% / /dev/nvme0n1p2 3.0G 467M 2.6G 16% /boot /dev/nvme0n1p1 200M 17M 184M 9% /boot/efi /dev/mapper/Home 100G 40G 61G 40% /home tmpfs 1.6G 48K 1.6G 1% /run/user/119637
Not sure how this will impact using virtualbox :)