LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 08-18-2011, 02:58 PM   #1
2007fld
Member
 
Registered: Mar 2007
Distribution: FD4,6
Posts: 52

Rep: Reputation: 15
A filesystem question


Below is the output when I run df -h:
Quote:
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 996M 780M 165M 83% /
/dev/sda8 116G 197M 109G 1% /data.local
/dev/sda7 494M 11M 458M 3% /home
/dev/sda3 3.9G 1.1G 2.6G 30% /usr
/dev/sda2 3.9G 260M 3.5G 7% /var
/dev/sda1 122M 7.6M 108M 7% /boot
Below is the output when I run ls -l at root home dir:
Quote:
bin dev home lib64 lost+found mnt proc sbin srv tmp var
boot data.local etc lib license.txt media opt root selinux sys usr
So can I assume /tmp, or /etc, or /lib64 are using the storgae that is 83% full? How to decide which sub directory under / will have its own file system? like, why /var has its own file system? Is it true that one partition will hold one and only one file system?

Thanks!
 
Old 08-18-2011, 03:14 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
no, they are not using that, as the clearly have their own partition. This is decided by you or the installer. /var gets filled with logs and such, so you keep it seperate to, amongst other reasons, stop logs making your main disks run out of space. A partition can do loads of things. For example, sda4 on your disk will be an extended partition holding other logical partitions. an LVM partition can also hold an thousand separate filesystems if so desired.
 
Old 08-18-2011, 03:20 PM   #3
2007fld
Member
 
Registered: Mar 2007
Distribution: FD4,6
Posts: 52

Original Poster
Rep: Reputation: 15
Thanks. So if / is 83% full, what directories need to be looked at in order to clean some space?

I have listed all the partitions on the server above. If /tmp or /etc is not using the partition that is at 83%, then which partion it is using?

Last edited by 2007fld; 08-18-2011 at 03:23 PM.
 
Old 08-18-2011, 03:26 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
all the other directories that DON'T have their own partition

Personally I do this...

cd /
du -h --max-depth=1
[find large directory in output]
cd [that directory]
du -h --max-depth=1
[find large directory in output]
etc...

simple way to narrow things down.

HOWEVER. your / partition is *TINY* I wouldn't bother looking, that's about right. You need a bigger partition really.
 
Old 08-18-2011, 03:37 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852
Quote:
Originally Posted by 2007fld View Post
So can I assume /tmp, or /etc, or /lib64 are using the storgae that is 83% full?
Yes, you can. The output of df shows clearly that they don't have an associated partition, so they are using the / partition. I don't know why acid_kewpie comes to a different conclusion.

Quote:
Is it true that one partition will hold one and only one file system?
Yes.
 
Old 08-18-2011, 04:08 PM   #6
2007fld
Member
 
Registered: Mar 2007
Distribution: FD4,6
Posts: 52

Original Poster
Rep: Reputation: 15
Thanks a lot for the clarification!
 
  


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
Question about definition of 'filesystem' Fionnbharr Linux - Newbie 4 01-09-2009 10:05 PM
question regarding the linux filesystem anguyendapooh Programming 3 03-06-2007 11:20 PM
filesystem question ygloo Linux - General 15 08-21-2006 04:47 PM
Filesystem Question Ryan450 Linux - Newbie 8 08-09-2005 02:19 AM
Filesystem question log Linux - General 5 06-13-2003 03:13 AM

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

All times are GMT -5. The time now is 11:11 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration