S
S
SVolkov2011-06-26 18:14:39
linux
SVolkov, 2011-06-26 18:14:39

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

8 answer(s)
A
adminimus, 2011-06-26
@SVolkov

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.

Z
Zigmar, 2011-06-26
@Zigmar

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.

A
antivir, 2011-06-26
@antivir

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.

D
Dmitry, 2011-06-26
@plin2s

delete cache apt-a
/var/cache/apt/archive/*.deb

A
Alexander Borzunov, 2011-06-26
@hx0

If you have physical access to the machine, use a LiveCD.

S
SVolkov, 2011-06-26
@SVolkov

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?

V
VBart, 2011-06-26
@VBart

Why everyone is so attached to livecd, you can easily do without it.

T
thebestzorro, 2011-06-27
@thebestzorro

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 question

Ask a Question

731 491 924 answers to any question