LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 01-24-2018, 09:56 AM   #1
borgward
Member
 
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 513

Rep: Reputation: 21
Low Root Diskspace


I just got notification that I am running out of root diskspace.

LinuxMint Cinnamon 18.0, fully updated as of a few minutes ago.
750GB HDD
/30 GB - 91.2% full
Swap 4 GB
Home 716 GB - 28.5% full

Why is there so much stuff in / ?

I created a large / because K3b would not find tmp and reported it had run out of diskspace in / when it was normal size. (I had originally created a separate large tmp so that I could copy and burn 8.5 GB DVD's.

$ ls -fal
total 2432
drwxr-xr-x 5 tom root 4096 Dec 7 2016 home
drwxr-xr-x 23 root root 4096 Jan 23 14:42 .
drwx------ 9 root root 4096 Nov 25 13:16 root
drwxr-xr-x 3 root root 12288 Jan 23 17:17 boot
drwxr-xr-x 10 root root 4096 Jun 28 2016 usr
drwxr-xr-x 23 root root 4096 Jan 23 14:42 ..
drwxr-xr-x 3 root root 4096 Oct 26 2016 media
lrwxrwxrwx 1 root root 30 Jan 10 11:58 vmlinuz.old -> boot/vmlinuz-4.4.0-109-generic
drwxr-xr-x 2 root root 12288 Jan 17 08:30 bin
drwxr-xr-x 20 root root 4220 Jan 24 09:00 dev
lrwxrwxrwx 1 root root 30 Jan 23 14:42 vmlinuz -> boot/vmlinuz-4.4.0-112-generic
drwxrwxrwt 18 root root 4096 Jan 24 09:39 tmp
drwxr-xr-x 11 root root 4096 Jun 28 2016 var
drwxr-xr-x 2 root root 4096 Jun 28 2016 mnt
lrwxrwxrwx 1 root root 33 Jan 23 14:42 initrd.img -> boot/initrd.img-4.4.0-112-generic
drwxr-xr-x 149 root root 12288 Jan 24 09:10 etc
drwxr-xr-x 2 root root 12288 Jan 17 08:30 sbin
drwxr-xr-x 2 root root 4096 Oct 18 2016 cdrom
drwxr-xr-x 2 root root 4096 Jan 17 06:29 lib64
drwxr-xr-x 3 root root 4096 Nov 4 2016 opt
dr-xr-xr-x 200 root root 0 Jan 19 17:52 proc
drwx------ 2 root root 16384 Oct 18 2016 lost+found
drwxr-xr-x 2 root root 4096 Jun 28 2016 srv
-rw------- 1 root root 19480576 Aug 2 21:30 core
drwxr-xr-x 26 root root 4096 Jan 17 06:29 lib
dr-xr-xr-x 13 root root 0 Jan 19 17:52 sys
lrwxrwxrwx 1 root root 33 Jan 10 11:58 initrd.img.old -> boot/initrd.img-4.4.0-109-generic
drwxr-xr-x 33 root root 1120 Jan 24 09:10 run

What does not belong in / ?


What to do?
 
Old 01-24-2018, 10:21 AM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
I suggest you give us some more information about your system. Run the following command from a terminal:

Code:
lsblk -f
From the information you have provided, your talking a 30gb 'root' partition.

4gb SWAP partition and a 716gb 'home' partition.

Have you installed a lot of software, that was not installed by default?

Last edited by jsbjsb001; 01-24-2018 at 11:31 PM. Reason: corrected CODE tag.
 
1 members found this post helpful.
Old 01-24-2018, 10:58 AM   #3
borgward
Member
 
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 513

Original Poster
Rep: Reputation: 21
$ lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1
├─sda5 ext4 a10e215d-00f5-4218-956b-ecc8ed6fba1f /
├─sda6 swap 093409f7-f0af-4c8f-a22c-5a3b3816a364 [SWAP]
└─sda7 ext4 9983149b-3a05-462b-96a6-939625e6c7b6 /home
sr0
 
Old 01-24-2018, 03:47 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,149

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
Run this to see what are biggest consumers. Use [code] tags when posting output
Code:
sudo du / -xh | sort -hr | head -n 15
 
Old 01-24-2018, 03:56 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,777

Rep: Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935
Quote:
-rw------- 1 root root 19480576 Aug 2 21:30 core
This is a core dump file and can be safely deleted. Does your computer crash often?

Last edited by michaelk; 01-24-2018 at 05:22 PM.
 
Old 01-24-2018, 05:16 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,149

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
Note the use of "-x" ...
 
Old 01-24-2018, 05:21 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,777

Rep: Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935Reputation: 5935
Ouch... completely missed the -x, previous post corrected.
 
Old 01-24-2018, 06:14 PM   #8
borgward
Member
 
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 513

Original Poster
Rep: Reputation: 21
Quote:
Originally Posted by syg00 View Post
Run this to see what are biggest consumers. Use [code] tags when posting output
Code:
sudo du / -xh | sort -hr | head -n 15
$ sudo du / -xh | sort -hr | head -n 15
25G /
8.9G /usr
7.7G /lib
7.4G /lib/modules
6.5G /var
5.8G /var/cache
5.7G /var/cache/apt
5.6G /var/cache/apt/archives
4.3G /usr/src
2.6G /usr/lib
1.9G /usr/share
1.8G /boot
1.1G /usr/lib/x86_64-linux-gnu
545M /var/lib
374M /usr/share/icons
 
Old 01-24-2018, 06:31 PM   #9
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by borgward View Post
$ sudo du / -xh | sort -hr | head -n 15
25G /
8.9G /usr
7.7G /lib
7.4G /lib/modules
6.5G /var
5.8G /var/cache
5.7G /var/cache/apt
5.6G /var/cache/apt/archives
4.3G /usr/src
2.6G /usr/lib
1.9G /usr/share
1.8G /boot
1.1G /usr/lib/x86_64-linux-gnu
545M /var/lib
374M /usr/share/icons
Run the following command to reclaim all the space in bold above:

Code:
sudo apt-get clean
You're still using more space than would be expected however so also look elsewhere e.g. "core" mentioned earlier.
 
Old 01-24-2018, 06:44 PM   #10
borgward
Member
 
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 513

Original Poster
Rep: Reputation: 21
/ $ sudo apt-get clean
/ $ clean
No command 'clean' found, did you mean:
Command 'pclean' from package 'pbuilder-scripts' (universe)
Command 'clear' from package 'ncurses-bin' (main)
Command 'uclean' from package 'svn-buildpackage' (universe)
clean: command not found
 
Old 01-24-2018, 06:48 PM   #11
borgward
Member
 
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 513

Original Poster
Rep: Reputation: 21
Quote:
Originally Posted by michaelk View Post
This is a core dump file and can be safely deleted. Does your computer crash often?
No it does not.

Can I comment that out?
 
Old 01-24-2018, 06:51 PM   #12
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by borgward View Post
/ $ sudo apt-get clean
/ $ clean
No command 'clean' found, did you mean:
Command 'pclean' from package 'pbuilder-scripts' (universe)
Command 'clear' from package 'ncurses-bin' (main)
Command 'uclean' from package 'svn-buildpackage' (universe)
clean: command not found
Out of interest, why did you try and run a second command called clean? The first command sudo apt-get clean should have worked.

Run the following to check that it has worked:

Code:
ls -la /var/cache/apt/archives
 
Old 01-24-2018, 07:05 PM   #13
borgward
Member
 
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 513

Original Poster
Rep: Reputation: 21
Because I did not get any feedback from running / $ sudo apt-get clean. I was expecting to see a download of a program "clean" like I usually do when I run apt-get.

man clean
No manual entry for clean

What is clean? Should I have expected to see any output after running sudo apt-get clean?

Last edited by borgward; 01-24-2018 at 07:07 PM.
 
Old 01-24-2018, 07:15 PM   #14
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by borgward View Post
Because I did not get any feedback from running / $ sudo apt-get clean. I was expecting to see a download of a program "clean" like I usually do when I run apt-get.

man clean
No manual entry for clean

What is clean? Should I have expected to see any output after running sudo apt-get clean?
If all goes well, sudo apt-get clean does not provide any output. It removes the original deb packages which were downloaded during package installs. These are no longer needed. It is explained in man apt-get. Why were you expecting to see a program downloaded and installed when the apt-get command didn't include the word install? There is no package called "clean", or at least not relevant to this issue, as you have found out, it is a parameter used by apt-get.
 
Old 01-24-2018, 09:07 PM   #15
borgward
Member
 
Registered: Apr 2005
Location: Austin, Texas
Distribution: Feather, Darn Small Linux
Posts: 513

Original Poster
Rep: Reputation: 21
OK, I ran the Disk Analyzer again. Looks like apt-get clean reduced it from 26.7 GB to 20.7 GB. Still need to loose more fat but thats a start. Will man apt-get while I am at it.
 
  


Reply



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
[SOLVED] Diskspace issue in the root directory gilbertmc Linux - Newbie 1 04-30-2016 11:14 AM
[SOLVED] low diskspace on filesystem /root jwsmith Linux - Software 8 05-21-2013 08:04 PM
Ideas for a low cost, low power, low noise web server/torrent box alecjtaylor Linux - Hardware 13 01-10-2012 05:26 AM
how do I clean my root dir out? i have no diskspace in it and i cant log in. ethereal27 Ubuntu 3 07-14-2006 10:48 PM
Running low on diskspace cheetahman SUSE / openSUSE 1 06-13-2005 07:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 05:28 AM.

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
Open Source Consulting | Domain Registration