LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-16-2018, 07:25 AM   #16
Erdward
LQ Newbie
 
Registered: Oct 2018
Posts: 23

Original Poster
Rep: Reputation: Disabled

Code:
> du -h -x --max-depth=1 /

4.0K	/media
32G	/var
4.0K	/srv
16K	/Documents
4.0K	/opt
18G	/usr
341M	/root
8.0K	/mnt
33M	/etc
16K	/lost+found
50G	/
 
Old 10-16-2018, 08:27 AM   #17
bradvan
Member
 
Registered: Mar 2009
Posts: 324

Rep: Reputation: 59
/usr and /var look quite large. Can you give the output of:
Code:
cd /usr
du -h -s *
cd /var
du -h -s *
?
 
Old 10-16-2018, 08:29 AM   #18
Erdward
LQ Newbie
 
Registered: Oct 2018
Posts: 23

Original Poster
Rep: Reputation: Disabled
Code:
> cd /usr
> du -h -s *
4.0K	AUTHORS
457M	bin
4.0K	games
117M	include
1.6G	lib
3.3G	lib64
190M	libexec
4.0K	LICENSE.txt
7.4G	local
4.0K	README.rst
66M	sbin
4.7G	share
192K	src
0	tmp
4.0K	tox.ini

Code:
> cd /var
> du -h -s *
4.0K	account
4.0K	adm
24G	cache
4.0K	crash
12K	db
8.0K	empty
4.0K	ftp
4.0K	games
4.0K	gopher
12K	kerberos
4.6G	lib
4.0K	local
0	lock
2.5G	log
0	mail
4.0K	nis
4.0K	opt
4.0K	preserve
0	run
524K	spool
72K	tmp
12K	www
4.0K	yp

Last edited by Erdward; 10-16-2018 at 08:31 AM.
 
Old 10-16-2018, 08:33 AM   #19
bradvan
Member
 
Registered: Mar 2009
Posts: 324

Rep: Reputation: 59
Try running
Code:
yum clean all
 
Old 10-16-2018, 09:36 AM   #20
Erdward
LQ Newbie
 
Registered: Oct 2018
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bradvan View Post
Try running
Code:
yum clean all
My terminal just freezes up when I do this, probably because it doesn't have enough space to do it?
 
Old 10-16-2018, 09:49 AM   #21
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Posts: 3,093

Rep: Reputation: Disabled
Quote:
32G /var
This is unusually high for a normal use.
Quote:
2.5G log
Likely you can remove this without causing harm to the system, & that should give you room to play with.

Quote:
4.6G lib
Quote:
24G cache
Not sure why you have these in /var either(?).


My /var usage.
306M /var

Last edited by fatmac; 10-16-2018 at 09:54 AM.
 
Old 10-16-2018, 09:53 AM   #22
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth? I would say I hope so but I'm not so sure about that... I could just be a figment of your imagination too.
Distribution: Currently OpenMandriva. Previously openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 2,995

Rep: Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555
Quote:
Originally Posted by Erdward View Post
My terminal just freezes up when I do this, probably because it doesn't have enough space to do it?
While you could try the command below, you might be better off to start a live system, then manually delete the contents of your 'cache' folder as root.

Code:
dnf clean all

Last edited by jsbjsb001; 10-16-2018 at 09:57 AM.
 
Old 10-16-2018, 09:59 AM   #23
Erdward
LQ Newbie
 
Registered: Oct 2018
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by fatmac View Post
This is unusually high for a normal use.

Likely you can remove this without causing harm to the system, & that should give you room to play with.
I see a lot of .journal files in /var/log/journal/. I have no idea what these are. Can I just remove them?

Quote:
Not sure why you have these in /var either(?).


My /var usage.
306M /var
I'm not sure what this is...

Last edited by Erdward; 10-16-2018 at 10:05 AM.
 
Old 10-16-2018, 10:29 AM   #24
Erdward
LQ Newbie
 
Registered: Oct 2018
Posts: 23

Original Poster
Rep: Reputation: Disabled
After removing some files from /var/log/journal/, I seem to have created enough wiggle room to run
Code:
dnf clean all
Now I have 5G out of 50G available, but I'm still not sure what is taking up so much space (45G), or how I got into this situation.

Last edited by Erdward; 10-16-2018 at 10:34 AM.
 
Old 10-16-2018, 10:36 AM   #25
bradvan
Member
 
Registered: Mar 2009
Posts: 324

Rep: Reputation: 59
I suspect you have a lot more rpms installed than you really need. Your /usr usage is very high and so is /var. I would run
Code:
rpm -qa | sort > /var/tmp/rpms
and then start evaluating what you have installed. You can start removing packages you know you don't need. For example, if you aren't connected to windows active directory, you could start removing samba packages (although yum won't let you remove them all). Look through your list and see what jumps out to you.
 
Old 10-16-2018, 04:33 PM   #26
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,065

Rep: Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897
Gotta be PackageKit in /var/cache. Run the du command I gave earlier.
 
Old 10-16-2018, 06:59 PM   #27
Erdward
LQ Newbie
 
Registered: Oct 2018
Posts: 23

Original Poster
Rep: Reputation: Disabled
Code:
>sudo du / -xh | sort -hr | head

38G	/
23G	/usr
15G	/var
13G	/usr/local
9.8G	/var/cache
9.7G	/usr/local/Wolfram/Mathematica/11.3
9.7G	/usr/local/Wolfram/Mathematica
9.7G	/usr/local/Wolfram
9.3G	/var/cache/PackageKit
8.4G	/var/cache/PackageKit/metadata
 
Old 10-16-2018, 09:38 PM   #28
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth? I would say I hope so but I'm not so sure about that... I could just be a figment of your imagination too.
Distribution: Currently OpenMandriva. Previously openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 2,995

Rep: Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555
I told you in post #22 to delete the contents of /var/cache Just like I told you to run the "dnf clean all" command, which you say you have done and this has freed some space. Please re-read previous posts and act on the advice already given.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Allot free space from one partition to other omniok Linux - Newbie 9 02-12-2015 07:20 AM
External usb drive taking space on root fs? eMcJagger Linux - Hardware 1 06-20-2006 04:51 PM
Not enough space for root directory on a drive with 50g free space??? auoq Linux - Newbie 1 10-13-2004 12:44 PM
Allot space to a new user ArulPrabhuT Programming 3 08-14-2004 08:52 AM
Root out of space, and hard drive has none too :/ WH16 Linux - Newbie 14 01-20-2004 06:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration