LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 04-28-2020, 12:39 AM   #1
lambdrum
LQ Newbie
 
Registered: Apr 2020
Location: Orange County, CA
Distribution: Fedora 30
Posts: 19

Rep: Reputation: Disabled
Partition full and not sure why


Hello LinuxQuestions,

I am having a problem with one of my partitions being full and i have no idea why. It is the /dev/sda3 partition and has 13gb total and is 93.5% full. I am running Fedora 30 on VMWare workstation 15 player. The total hard disk size is 54 gb.
Filesystem Partition 1 - 524 MB
Swap Partition 2 - 4.3 GB
Filesystem Partition 3 - 13GB (93.5% full)
Extended Partition 4 27gb
Filesystem Partition 5 1.0GB
Partition 6 - 992 MB
Partition 7 - 999 MB
Filesystem Partition 8 - 2.1GB
Free Space - 22GB

I cannot seem to figure out how to see what is on Partition 3 to see what is taking up so much space, and then to figure out how to free it up. I am currently in a Linux class and so i am very new to Linux, and this has proved to be very difficult to grasp for me. Thank you for your assistance.
 
Old 04-28-2020, 12:53 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
The "du"command will show you what is allocated - "man du" will give you the manual; use q to quit the manpage.
Wer need more info - from a terminal run this and post the output - it is similar to what you posted. You can use copy-paste from a terminal session.
Code:
df -hT
 
Old 04-28-2020, 01:00 AM   #3
lambdrum
LQ Newbie
 
Registered: Apr 2020
Location: Orange County, CA
Distribution: Fedora 30
Posts: 19

Original Poster
Rep: Reputation: Disabled
I apologize, but i do not know how to copy-paste from a terminal. I did try to google how, but it all involved highlighting the output on the terminal using a mouse. As far as i know, i do not have a mouse to highlight anything in the terminal.
 
Old 04-28-2020, 01:34 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Should be pretty straight-forward - note I am talking about a terminal emulator, not a tty. Hit the "Windows" key and start typing terminal. Click on the icon - it will have an "Edit" menu selection, and yes the mouse highlighting will work. Copy from there, paste here.
 
Old 04-28-2020, 03:51 AM   #5
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,810
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
Has your class covered shell redirection yet? If not, you might need to look ahead. Redirect to a file, and use the file to get the df -hT output into your web browser.

You should find the ncdu utility run by the superuser very useful in identifying files that waste space. Some locations where space wasting stale files are often found are /var/log/journal/, /boot/ and /lib/modules/ (old kernels & initrds), and the cache used by your package manager, e.g. /var/cache/dnf/ or /var/lib/dnf/system-upgrade/.
 
Old 04-28-2020, 04:12 AM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453Reputation: 4453
It's also worth looking at the file /etc/fstab. You can list its contents with the cat command. It will show you where that particular partition gets mounted at boot. My guess is that it's your home partition as it's so large.

In Linux, partitions are made accessible to the system by mounting them on an empty directory which becomes, for the duration of the mount, a synonym for the root directory of the partition. All directories and files on the partition thus become part of that directory tree. All mounted partitions ultimately form a single tree descending from the root directory of the root partition. They are not, as in Windows, separate island universes.

Once you find out what part of the filesystem tree that partition represents, you can use any file manager to find out what's taking up all the room.
 
Old 04-28-2020, 05:19 AM   #7
agillator
Member
 
Registered: Aug 2016
Distribution: Mint 19.1
Posts: 419

Rep: Reputation: Disabled
Also run a directory with
Code:
 ls -a
in a terminal. Look for two things, a lost+found directory and a directory name some variation of .Trash (note the dot). The lost+found is contains things found by a check of the file system that could not be identified. Depending upon what you determine them to be you may be able to delete them. The .Trash contains files that were erased but not fully deleted so that they are easily recoverable. They take up space but are not normally listed in a directory listing. Things in there can probably be removed, again your call. To get rid of them actually force a removal don't just delete them or they will pop back up.The best way is to use the rm command.
 
Old 04-28-2020, 08:38 AM   #8
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
Originally Posted by lambdrum View Post
I apologize, but i do not know how to copy-paste from a terminal. I did try to google how, but it all involved highlighting the output on the terminal using a mouse. As far as i know, i do not have a mouse to highlight anything in the terminal.
You are running Fedora 30. Are you using the full terminal, or are konsole inside the GUI?

If you are running the GUI, just open a terminal/konsole and you can highlight the text on the screen and typically use the middle mouse button to paste it into the browser.

If you are not running a GUI, than follow the advice about >> foo.txt for the output.
 
Old 04-29-2020, 12:07 AM   #9
lambdrum
LQ Newbie
 
Registered: Apr 2020
Location: Orange County, CA
Distribution: Fedora 30
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
Should be pretty straight-forward - note I am talking about a terminal emulator, not a tty. Hit the "Windows" key and start typing terminal. Click on the icon - it will have an "Edit" menu selection, and yes the mouse highlighting will work. Copy from there, paste here.
MAGIC! Thank you syg00!!
df- hT result:

[user1@localhost ~]$ df -hT
Filesystem Type Size Used Avail Use% Mounted on
devtmpfs devtmpfs 3.7G 0 3.7G 0% /dev
tmpfs tmpfs 3.7G 0 3.7G 0% /dev/shm
tmpfs tmpfs 3.7G 1.9M 3.7G 1% /run
tmpfs tmpfs 3.7G 0 3.7G 0% /sys/fs/cgroup
/dev/sda3 ext4 12G 12G 137M 99% /
tmpfs tmpfs 3.7G 156K 3.7G 1% /tmp
/dev/mapper/vg00-newdata ext4 1.8G 2.8M 1.7G 1% /newdata
/dev/sda5 ext4 923M 2.4M 857M 1% /newmount
/dev/sda1 ext4 477M 147M 301M 33% /boot
/dev/sda8 xfs 2.0G 35M 2.0G 2% /xfsmount
tmpfs tmpfs 745M 0 745M 0% /run/user/0
tmpfs tmpfs 745M 6.9M 738M 1% /run/user/1000
/dev/sr0 iso9660 1.9G 1.9G 0 100% /run/media/user1/Fedora-WS-Live-30-1-2


Results of cat /etc/fstab:

[user1@localhost ~]$ cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Tue Feb 11 20:58:54 2020
#
# Accessible filesystems, by reference, are maintained under '/dev/disk/'.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run 'systemctl daemon-reload' to update systemd
# units generated from this file.
#
UUID=f927dc2b-10ac-4aaa-a58a-fb1b92748aab / ext4 defaults 1 1
UUID=f8a80453-0538-472e-b076-c620cae8c60c /boot ext4 defaults 1 2
UUID=c6a7fa3a-b32e-452d-aa58-0cdb6c6319f3 none swap defaults 0 0
/dev/sda5 /newmount ext4 defaults,usrquota,grpquota 0 0
/dev/vg00/newdata /newdata ext4 defaults 0 0
UUID=4de9cb8a-5b60-4a20-accd-a0e1034ca189 /xfsmount xfs defaults 0 0

Results of ls -a:
[user1@localhost ~]$ ls -a
. .bash_history .bash_profile .cache Desktop Downloads .esd_auth .gtkrc-2.0-kde4 .kde .mozilla Pictures specialfile Videos
.. .bash_logout .bashrc .config Documents .emacs.d .gtkrc-2.0 .ICEauthority .local Music Public Templates
 
Old 04-29-2020, 12:37 AM   #10
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,810
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
Quote:
Originally Posted by lambdrum View Post
Code:
Filesystem               Type      Size  Used Avail Use% Mounted on
...
/dev/sda3                ext4       12G   12G  137M  99% /
...
This is your root filesystem, 99% full. Comment #5 suggests places to inspect for excess space consumers. If you have added much additional software since installing, such as for programming development, 12G for / may have been an under-allocation that only repartitioning and most likely reinstalling can rightly solve. For a 54G HD, you really have too many partitions for effective space allocation. With that little total space, you should have either only swap, / and at most one other partition (/home), or swap, /boot, and LVM, unless you are an expert in space utilization and management.

Please, when you paste in output from running commands, always wrap your paste in code tags ( [ # ] above the input composition window).
 
1 members found this post helpful.
Old 04-29-2020, 01:05 AM   #11
lambdrum
LQ Newbie
 
Registered: Apr 2020
Location: Orange County, CA
Distribution: Fedora 30
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mrmazda View Post
This is your root filesystem, 99% full. Comment #5 suggests places to inspect for excess space consumers. If you have added much additional software since installing, such as for programming development, 12G for / may have been an under-allocation that only repartitioning and most likely reinstalling can rightly solve. For a 54G HD, you really have too many partitions for effective space allocation. With that little total space, you should have either only swap, / and at most one other partition (/home), or swap, /boot, and LVM, unless you are an expert in space utilization and management.

Please, when you paste in output from running commands, always wrap your paste in code tags ( [ # ] above the input composition window).
Mr. Mazda, thank you for your reply. I did not know how to use the code tags, but will do so moving forward. I read comment #5 and you were correct. It looks like /var/log/journal/ is the culprit at 12288MB. I have hardly added any additional software, and i honestly dont really know how or what i would install at this point.
Code:
[user1@localhost journal]$ ls -l /var/log/journal/
total 16
drwxr-sr-x+ 2 root systemd-journal 12288 Apr 28 21:32 244803c1edc3486684b7c223941773f8
I checked the disk usage within the journal directory, but that only came back at 496.3M, so i am not sure where all the extra is. I also tried limiting the journal size to 3GB, but that didnt seem to do anything.

Code:
[user1@localhost journal]$ journalctl --disk-usage
Archived and active journals take up 496.3M in the file system.
[user1@localhost journal]$ sudo journalctl --vacuum-size=3G
Vacuuming done, freed 0B of archived journals from /var/log/journal/244803c1edc3486684b7c223941773f8.
[user1@localhost journal]$ sudo nano /etc/systemd/journald.conf
[user1@localhost journal]$ ls -l /var/log/journal/
total 16
drwxr-sr-x+ 2 root systemd-journal 12288 Apr 28 21:32 244803c1edc3486684b7c223941773f8
 
Old 04-29-2020, 01:17 AM   #12
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Try this from a terminal - it will show the prime consumers.
Code:
sudo du -xh / | sort -hr | head -n 20

Last edited by syg00; 04-29-2020 at 01:18 AM. Reason: sudo
 
Old 04-29-2020, 01:27 AM   #13
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
you can also try ncdu (it was already suggested) if you find that easier (probably need to install first, and probably that won't work).
but the suggestion in post #12 should work anyway.
 
Old 04-29-2020, 01:42 AM   #14
lambdrum
LQ Newbie
 
Registered: Apr 2020
Location: Orange County, CA
Distribution: Fedora 30
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
Try this from a terminal - it will show the prime consumers.
Code:
sudo du -xh / | sort -hr | head -n 20
here is the output of sudo du -xh / | sort -hr | head -n 20

Code:
[user1@localhost journal]$ sudo du -xh / | sort -hr | head -n 20
 
11G	/
7.3G	/usr
3.6G	/var
3.0G	/usr/share
2.7G	/usr/lib64
2.5G	/var/cache
2.2G	/var/cache/PackageKit
2.0G	/var/cache/PackageKit/30
1.9G	/var/cache/PackageKit/30/metadata
1.8G	/var/cache/PackageKit/30/metadata/updates-30-x86_64/packages
1.8G	/var/cache/PackageKit/30/metadata/updates-30-x86_64
823M	/usr/lib
755M	/usr/share/locale
534M	/var/log
510M	/var/spool/abrt
510M	/var/spool
497M	/var/log/journal/244803c1edc3486684b7c223941773f8
497M	/var/log/journal
448M	/usr/bin
416M	/usr/lib64/libreoffice
I checked the /usr file and there was a bit of weirdness:

Code:
[user1@localhost journal]$ cd /usr
[user1@localhost usr]$ ls -l
total 280
dr-xr-xr-x.   2 root root  69632 Apr 26 19:12 bin
drwxr-xr-x.   2 root root   4096 Feb 11  2019 games
drwxr-xr-x.  40 root root   4096 Feb 15 16:15 include
dr-xr-xr-x.  51 root root   4096 Feb 12 21:03 lib
dr-xr-xr-x. 173 root root 135168 Apr 26 19:12 lib64
drwxr-xr-x.  55 root root  16384 Feb 15 16:00 libexec
drwxr-xr-x.  12 root root   4096 Apr 25  2019 local
dr-xr-xr-x.   2 root root  24576 Feb 12 21:05 sbin
drwxr-xr-x. 389 root root  12288 Apr 26 19:12 share
drwxr-xr-x.   4 root root   4096 Apr 25  2019 src
lrwxrwxrwx.   1 root root     10 Feb 11  2019 tmp -> ../var/tmp
[user1@localhost usr]$ ls -a
.  ..  bin  games  include  lib  lib64  libexec  local  sbin  share  src  tmp
It kinda looks like lib64 is about 135 GB on a 12GB partition.
 
Old 04-29-2020, 01:59 AM   #15
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Don't worry about /usr - there is very little you can do about that. More importantly, you really don't want to be meandering around there deleting stuff. Not at your current level of knowledge, not later when you think you know all about it.

PackageKit on the other hand is just a PITA - seems more so on Fedora. I just delete the lot. The situation is that your partition is way too small. What does this return.
Code:
sudo parted /dev/sda "print free"
 
  


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] full screen not really a full screen - why is that? linux-man Linux - Newbie 6 05-20-2018 08:21 AM
I'm not sure how this happened but I'm sure there is a lesson in there somewhere mreff555 Linux - Newbie 6 09-24-2012 02:09 AM
just lost an HFS+ partition during rm, not sure why ta0kira Slackware 3 07-15-2011 03:51 PM
root partition full, not sure how; where are my files? lefty.crupps MEPIS 10 01-31-2006 05:21 PM
/ full need to repartition not sure what to do dibblethewrecke Linux - General 9 01-13-2004 03:56 AM

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

All times are GMT -5. The time now is 08:36 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
Open Source Consulting | Domain Registration