Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-07-2018, 02:47 PM   #1
Registered: Dec 2016
Posts: 221

Rep: Reputation: Disabled
[ubuntu] File partitions and memory management

Ok so running the command

$df -h

returns the following

udev 32G 0 32G 0% /dev
tmpfs 6.3G 2.4M 6.3G 1% /run
/dev/sdc2 40G 36G 1.4G 97% /
tmpfs 32G 187M 32G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 32G 0 32G 0% /sys/fs/cgroup
/dev/sdc1 549M 5.8M 544M 2% /boot/efi
/dev/sdc3 630G 94G 505G 16% /home
tmpfs 6.3G 56K 6.3G 1% /run/user/1000
How do I free up space in /dev/sdc2? ie How to determine exactly which files are taking up the most space?
Old 08-07-2018, 03:23 PM   #2
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec, CANADA
Distribution: Arch
Posts: 1,113

Rep: Reputation: 421Reputation: 421Reputation: 421Reputation: 421Reputation: 421
Originally Posted by eco_bach View Post
Ok so running the command

$df -h

returns the following

How do I free up space in /dev/sdc2? ie How to determine exactly which files are taking up the most space?
Hi eco_bach,

Your /dev/sdc2 is your main system (root) directory (notice that it is mounted as "/"). You have allocated 40GB to it, which should normally be sufficient.

A useful GUI program for illustrating disk usage is Disk Usage Analyzer (formerly baobab) - available on a wide variety of distros and I believe included standard with Gnome. I suggest you install the package provided in your distro's repositories (if not already installed) and run it to identify directories and files taking up the most space.


Last edited by Rickkkk; 08-07-2018 at 03:29 PM.
Old 08-07-2018, 05:32 PM   #3
Registered: Jul 2018
Distribution: Slackware,x86_64,current
Posts: 262

Rep: Reputation: 94
You could first check if some blocks are reserved for root :
tune2fs -l /dev/sdc2 | grep "Reserved block count"
And try to see which files are the biggest (10 biggest here) :
find / -xdev -printf '%s %p\n'| sort -nr | head -10
1 members found this post helpful.
Old 08-08-2018, 03:06 AM   #4
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
Another command to find gigabytes large files and directories is
$ du -m -h | grep G
1 members found this post helpful.


memory management, partitionssize, ubuntu 18.04

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
Kernel - Memory Management - Copy Virtual Memory Area shankur90 Programming 1 06-07-2016 11:07 PM
Linux memory management: Real memory or Cached buffers? gubbu Linux - Server 2 10-01-2010 01:58 AM
Partitions on a Ubuntu based file Server brantkings Linux - Server 4 08-09-2010 03:49 PM
Memory Page Scanning and Reclaim/Memory Management ilfantomas Linux - Kernel 1 03-02-2010 08:31 PM
Resizing ext3 partitions (/usr) [file system management] xxx_anuj_xxx Red Hat 5 11-29-2005 03:35 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:02 PM.

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