LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-14-2010, 03:59 PM   #1
jbcoats
LQ Newbie
 
Registered: Jun 2009
Location: Seattle
Distribution: Ubuntu
Posts: 1

Rep: Reputation: 0
Space available on ext4 partition


I have an ext4 partition with 120 MB total space. Command df shows that the partition is %91 utilized. I am only able to see about 19 MB of files on the partition using ls -a. Any ideas on where the space is used?
 
Old 05-14-2010, 04:21 PM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Have you looked at fdisk -l /dev/sda? (If the partition is on your first hard drive, sdb for second, etc.)

When you state that you "only see" ~19Mb of files, how were you "looking?" If, for example, the ext4 fs is your root file system, it would contain a lot of file owned by "root" to which you would not, normally, have access. Thus they would not be displayed in, for example, a ls of your home directory.

You could, perhaps, do a sudo find / -size 2G to list all files of size 2Gb or more (or 2M for 2 Mb or more, etc.) to see if you have some exceptionally large files on your drive.

You might want to look at the output of mount. Perhaps you've linked space on that partition to some other location so it doesn't show up when you look.
 
Old 05-15-2010, 04:27 AM   #3
chadwick
Member
 
Registered: Apr 2005
Location: At the 100th Meridian where the great plains begin
Distribution: Debian Testing on T60 laptop
Posts: 105

Rep: Reputation: 17
Quote:
Originally Posted by jbcoats View Post
I have an ext4 partition with 120 MB total space. Command df shows that the partition is %91 utilized. I am only able to see about 19 MB of files on the partition using ls -a. Any ideas on where the space is used?
Try using the du command. For example, to see the amount of space occupied by each subdirectory one level below the directory that the partition is mounted on, you could do:

Code:
du /mount-point --max-depth=1 -h
If it's not clear what that means let us know. It might be better to be root if you don't otherwise have permission to see all of the files on the partition.

Last edited by chadwick; 05-16-2010 at 05:05 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot execute files on ext4 partition Arancaytar Linux - Software 11 03-11-2013 11:46 AM
ext4 and / partition Pedroski Linux - Hardware 7 11-04-2009 08:44 PM
ext4 vs ntfs partition space used jithin1987 Linux - Newbie 1 11-04-2009 08:37 PM
Moving /home partition to ext4 Yalla-One Slackware 5 09-04-2009 02:20 PM
Ext4 partition corrupted by resized NTFS Vista C:\ partition? graviton-boson Linux - Newbie 2 03-16-2009 02:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:37 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