Answer the question
In order to leave comments, you need to log in
Increasing Linux root directory?
Hello!
Installed debian about three months ago. I allocated not much space, but specifically to the root directory of 9GB. Since at that time I didn’t really understand, I did partition formatting by default ... I don’t remember exactly, it seems, the division into root, swap, home. At the moment, all programs are stored on the root partition. But there wasn't enough space. Is it possible to enlarge the root partition using gparted? If yes, can you describe how this is possible?
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
do apt-get clean and don't look for extra hemorrhoids.
If you really need to install tons of software, move /var or /usr to a separate partition, it's much easier and safer than expanding a live file system.
And what's the problem? Format a new partition, boot into some liveCD, transfer all the contents, say / usr to a new partition, save the old one under a different name just in case, add automatic mounting of the new partition to / urs in automount
This can be done with any directory, except for virtual filesystems like /proc. That's the beauty of the unified file system in *nix. Any branch can be mounted anywhere, even to a loopback file, even to a network drive. Moreover, this can be easily changed and configured, and it is completely transparent for users of the FS. By the way, some file systems, it seems zfs is one of them, allows you to add new physical devices and partitions on the fly to an existing file system, increasing its volume.
What exactly took up space in your root directory? Maybe it makes sense to create new partitions and store data there? Or make directory links from the root partition to a directory on /home, for example. The last option will be the safest and least labor-intensive.
The usr directory occupies the largest volume. There are 15GB of unallocated space on the disk, how is it possible to transfer this directory there?
With a fresh installation, you can use LVM, then the partitions can be resized without losing data.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question