Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi there!
I am having trouble finding answers to this question for I get quite a large ammount of results...
Thing is I get a disk full in Debian, and when I try -from root directory- something like:
Code:
du -shx . | sort -rh | head
I get this:
Code:
58G .
Previously I tried:
Code:
du -h --max-depth=1
Results:
Code:
8.0K ./media
1.4G ./lib
182M ./boot
4.0K ./mnt
4.0K ./lib64
16K ./opt
0 ./dev
15G ./usr
176K ./root
du: cannot access './proc/2225/task/2225/fd/4': No such file or directory
du: cannot access './proc/2225/task/2225/fdinfo/4': No such file or directory
du: cannot access './proc/2225/fd/3': No such file or directory
du: cannot access './proc/2225/fdinfo/3': No such file or directory
0 ./proc
40K ./tmp
0 ./sys
13M ./etc
8.3M ./bin
89M ./run
4.0K ./srv
5.4M ./sbin
959M ./home
53G ./var
16K ./lost+found
70G .
In any case, let us hope that your system uses LVM = Logical Volume Management, in which case the solution to your problem should be very easy and straightforward to solve.
You are not using LVM and just one partition. You need to find what directory is the largest.
Oh, that's what I'm up to, that's how I got to those command lines related to 'du' and when saw the 70G with the dot, I got confused... Does it mean that the root directory weights 70G? And, do you have a suggestion on how to get to the directory or directories that are the most occupied?
Post 1 shows /var as 53 GB.
Post 5 shows /var/lib/docker with many containers and overlays.
Since you cannot run sort because it requires space in /tmp to write, why not investigate the extreme amount of data in /var and begin by deleting something there that is not needed
Post 1 shows /var as 53 GB.
Post 5 shows /var/lib/docker with many containers and overlays.
Since you cannot run sort because it requires space in /tmp to write, why not investigate the extreme amount of data in /var and begin by deleting something there that is not needed
Great Indeed! Thanks, I'll see to it. I did no quite understand the results, I guess.
For what I see, there is no a straight method to get to the point, but you have to scrutinize along the disk.
May want to look into running it with the -a option too.
Evo2.
Great, I'll speak with the 'owner' of the server. I work in a team on the 'server' side, while this guy is on development. I just create vms on a proxmox and they use them. But have never got with this problem before.
Hey! I'm alive, apologize for not writing back since last time.
Thing is I got nothing to say. Still am, but wanted to give some feedback, and of course, thank you all for the time invested in helping me with my noobiness and teaching me how to auscultate the disk!
Guys in charge of the machine we've been talking about are scratching their heads. Apparently there is a thing with the /var growing so much and the overlays and such.
I would say you've had enough from me for the time being. Dunno if you 'close' the thread, or if we can call it 'solved', but as far as I reckon, I'm more than thankful and plenty of new disk-space-knowledge.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.