You are not logged in.
Pages: 1
Hello! I'm sorry if this question is really stupid...
Here's the problem: the internal drive (dm-0) is full. I set it to 30Gb and recently I found out that I need much more space. How do I change the size of it?
Offline
The gist of it is to shrink whichever other partition to make space for your root partition, then extend root partition to fill free space.
These are very rough instructions, but without knowing your disk's partition layout we can't really give exact instructions. You need to shrink the filesystem on a partition before you can shrink the partition itself, and it's possible you may need to move the shrinked partition to the right so the root partition has space to expand, which is a risky operation and is prone to errors.
You can use gparted and it should handle resizing the filesystem alongside the partition, and make it easier to visualize what you need to do with your partitions, what needs to be moved where and how. You might need to do that from a live usb too because I'm not sure if you can make operations on mounted partitions.
Either way, backup your important data first. You'll be glad you did if something goes wrong when resizing/moving partitions.
Last edited by Ammako (2021-10-09 16:11:58)
Offline
Here's the results of `df -h` command:
Filesystem Size Used Avail Use% Mounted on
dev 3.9G 0 3.9G 0% /dev
run 3.9G 1.9M 3.9G 1% /run
/dev/mapper/volgroup0-lv_root 30G 27G 886M 97% /
tmpfs 3.9G 146M 3.7G 4% /dev/shm
tmpfs 3.9G 18M 3.8G 1% /tmp
/dev/mapper/volgroup0-lv_home 886G 16G 826G 2% /home
/dev/loop1 128K 128K 0 100% /var/lib/snapd/snap/bare/5
/dev/loop4 165M 165M 0 100% /var/lib/snapd/snap/gnome-3-28-1804/161
/dev/loop3 62M 62M 0 100% /var/lib/snapd/snap/core20/1169
/dev/loop5 66M 66M 0 100% /var/lib/snapd/snap/gtk-common-themes/1519
/dev/loop6 261M 261M 0 100% /var/lib/snapd/snap/kde-frameworks-5-core18/32
/dev/loop0 209M 209M 0 100% /var/lib/snapd/snap/code/75
/dev/loop7 701M 701M 0 100% /var/lib/snapd/snap/libreoffice/229
/dev/loop8 169M 169M 0 100% /var/lib/snapd/snap/postman/148
/dev/loop2 100M 100M 0 100% /var/lib/snapd/snap/core/11606
/dev/loop10 420M 420M 0 100% /var/lib/snapd/snap/webstorm/221
/dev/loop11 603M 603M 0 100% /var/lib/snapd/snap/libreoffice/235
/dev/loop9 420M 420M 0 100% /var/lib/snapd/snap/webstorm/219
/dev/loop12 62M 62M 0 100% /var/lib/snapd/snap/core20/1081
/dev/loop13 831M 831M 0 100% /var/lib/snapd/snap/intellij-idea-ultimate/316
/dev/loop14 309M 309M 0 100% /var/lib/snapd/snap/telegram-desktop/3239
/dev/loop15 56M 56M 0 100% /var/lib/snapd/snap/core18/2128
/dev/loop16 455M 455M 0 100% /var/lib/snapd/snap/phpstorm/232
/dev/loop17 831M 831M 0 100% /var/lib/snapd/snap/intellij-idea-ultimate/319
/dev/loop18 169M 169M 0 100% /var/lib/snapd/snap/postman/147
/dev/loop20 2.8M 2.8M 0 100% /var/lib/snapd/snap/ksnip/340
/dev/loop19 243M 243M 0 100% /var/lib/snapd/snap/gnome-3-38-2004/76
/dev/loop21 242M 242M 0 100% /var/lib/snapd/snap/gnome-3-38-2004/70
/dev/loop22 217M 217M 0 100% /var/lib/snapd/snap/code/76
/dev/loop23 100M 100M 0 100% /var/lib/snapd/snap/core/11743
/dev/loop24 3.0M 3.0M 0 100% /var/lib/snapd/snap/ksnip/386
/dev/loop25 308M 308M 0 100% /var/lib/snapd/snap/telegram-desktop/3149
/dev/loop26 66M 66M 0 100% /var/lib/snapd/snap/gtk-common-themes/1515
tmpfs 782M 80K 782M 1% /run/user/1000
And here's the GParted screen:
The questions is, why my
/dev/sda2
isn't divided into
/dev/mapper/volgroup0-lv_root
and
/dev/mapper/volgroup0-lv_home
How do I resize it then? Thank you in advance.
Offline
Well, there we go lvm would have been useful information to know
You won't see this in gparted, because gparted doesn't handle lvm stuff. What you're looking to do is to shrink your home volume so you can extend your root volume afterwards.
Offline
Hey! So, um, I decided to re-install Arch in the end. I couldn't do resizing right
But I got the idea, next time I'll be aware!
All you said is right, I bet someone will find it useful too.
Thank you!
Offline
Pages: 1