LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-30-2016, 09:02 AM   #1
gilbertmc
LQ Newbie
 
Registered: Apr 2016
Posts: 5

Rep: Reputation: Disabled
Diskspace issue in the root directory


Hello everyone,

I have a diskspace issue.

doing df -H I get this:

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_root-lv_root
69G 68G 0 100% /

I tried to find some files to compress/delete but I could not find anything.

I would like to know if there is a way to know what directories are inside the /

I used already ls but this just provides the whole structure and I need something more precise.

Can I get some help please?

Thank you so much.
 
Old 04-30-2016, 11:14 AM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,271

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Run
Code:
du --max-depth=1 -x /
to see where the space is being used, then work your way down into whichever directory appears overly large, e.g.,
Code:
du --max-depth=1 -x /var
If it turns out that du does not see any excessive space being used, then you probably have some process that has a large deleted file held open and using up space on the disk. You can find those by running
Code:
lsof | grep '(deleted)' | sort -k7nr | less
The sort will put the largest files at the top of the list.

All of that will need to be done as root.

Last edited by rknichols; 04-30-2016 at 11:16 AM. Reason: add code tags
 
2 members found this post helpful.
  


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
[SOLVED] Invoke root directory owner/group while moving file/directory yogesh_attarde Linux - Security 5 04-14-2014 11:36 PM
[SOLVED] low diskspace on filesystem /root jwsmith Linux - Software 8 05-21-2013 08:04 PM
chroot:cannot change root directory to: No such file directory janakiramulu Linux From Scratch 5 04-23-2011 01:00 AM
restoring desktop directory in /root (or any home directory) mel_lai Linux - Newbie 3 02-04-2008 03:13 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

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

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