LinuxQuestions.org
Help answer threads with 0 replies.
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 12-05-2003, 01:28 PM   #1
Brother Michael
Member
 
Registered: Aug 2003
Location: Columbus, Ohio
Distribution: Debian
Posts: 284

Rep: Reputation: 30
I seem to be missing disk space...


Hello again...
I have a problem, I am missing about just about all of my disk space, lol. Seriously here, I had Redhat 9 installed, Full version. EVERYTHING on a 20 gig hard drive.

about 90 meg = /boot
1024 = swap
17 gig = /

So almost 5 gig in an install plus that fact that I put everything I download, papers a i write, etc, in my home directory. That totals 1 gig. I also have a 1 gig Neverwinter Nights folder. The rest is just missing. = 7 gig. and the computer tells me I have only 4 left. I should still have about 9 or 10 according to my rough calculation...

Now about 2 weeks ago I installed Fedora Core. I did an update from my old system. Is it possible that Fedora Core dd not installe dover the files just installed new ones in addition to the old files?

mike
 
Old 12-05-2003, 01:39 PM   #2
moonloader
Member
 
Registered: Nov 2003
Location: linuxquestions.org
Distribution: Linux and BSD
Posts: 229

Rep: Reputation: 30
how about to check your tmp files
 
Old 12-05-2003, 03:25 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
How about hunting the culprit down
with
du -s /* | sort -rn | head -10


Cheers,
Tink
 
Old 12-05-2003, 03:27 PM   #4
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
Re: I seem to be missing disk space...

Quote:
Originally posted by Brother Michael

Now about 2 weeks ago I installed Fedora Core. I did an update from my old system. Is it possible that Fedora Core dd not installe dover the files just installed new ones in addition to the old files?

mike
I guess it is possible, but I think that the install process would have overwritten anything that had an identical name. Did you blow away your partition when you did the install, or did you just throw in the CD and run through the prompts?

Here's a thought. Did you DL the .iso files for Fedora? Perhaps they are still on your HD somewhere and you forgot to include them in your calculation?

Can you print the output of df, just for reference?

slight
 
Old 12-07-2003, 04:18 PM   #5
Brother Michael
Member
 
Registered: Aug 2003
Location: Columbus, Ohio
Distribution: Debian
Posts: 284

Original Poster
Rep: Reputation: 30
I just clicked the update tab, and the installer did the rest.

[root@micmill /]# du -s /* | sort -rn | head -10
6206840 /usr
6042788 /tmp
525598 /proc
211448 /var
135252 /home
57476 /lib
39264 /etc
16620 /sbin
5624 /bin
5300 /root

What is df?

Mike

Last edited by Brother Michael; 12-07-2003 at 04:19 PM.
 
Old 12-07-2003, 04:30 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
man df

df = disk free

So you've used six gigs in /usr and /tmp :}

You could now further investigate ;)


du -s /usr/* | sort -rn | head -10
du -s /tmp/* | sort -rn | head -10


You get the idea ...



Cheers,
Tink
 
Old 12-07-2003, 05:56 PM   #7
Brother Michael
Member
 
Registered: Aug 2003
Location: Columbus, Ohio
Distribution: Debian
Posts: 284

Original Poster
Rep: Reputation: 30
[root@micmill /]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 18105524 12766580 4419224 75% /
/dev/hda1 101089 6357 89513 7% /boot
none 257044 0 257044 0% /dev/shm
[root@micmill /]# du -s /usr/* | sort -rn | head -10
2435648 /usr/share
1675908 /usr/lib
1189020 /usr/games
297448 /usr/bin
225068 /usr/X11R6
206628 /usr/src
94700 /usr/include
61420 /usr/sbin
18972 /usr/libexec
1928 /usr/kerberos
[root@micmill /]# du -s /tmp/* | sort -rn | head -10
1973312 /tmp/file-roller.26766.3
1973312 /tmp/file-roller.26766.1
1797420 /tmp/file-roller.26766.6
204460 /tmp/o94ki4qk.gz
39816 /tmp/file-roller.26766.4
20424 /tmp/file-roller.26766.7
13700 /tmp/file-roller.26828.3
13700 /tmp/file-roller.26828.1
1848 /tmp/file-roller.26828.0
1512 /tmp/file-roller.26766.5

so what can I delete? what is safe to delete? is the tmp directory something that needs to be cleaned every now and then?

Mike
 
Old 12-07-2003, 06:08 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally posted by Brother Michael
[root@micmill /]# du -s /usr/* | sort -rn | head -10
2435648 /usr/share
1675908 /usr/lib
1189020 /usr/games

[root@micmill /]# du -s /tmp/* | sort -rn | head -10
1973312 /tmp/file-roller.26766.3
1973312 /tmp/file-roller.26766.1
1797420 /tmp/file-roller.26766.6
204460 /tmp/o94ki4qk.gz
39816 /tmp/file-roller.26766.4
20424 /tmp/file-roller.26766.7
13700 /tmp/file-roller.26828.3
13700 /tmp/file-roller.26828.1
1848 /tmp/file-roller.26828.0
1512 /tmp/file-roller.26766.5

so what can I delete? what is safe to delete? is the tmp directory something that needs to be cleaned every now and then?
Absolutely, yes ... you have three files (their
name means nothing to me, never seen it
before) that hog almost 6GB in /tmp .... unless
you have the bad habbit of storing downloads
there ... clean it (/tmp) up.

As for the usage of the command-line I
posted .... it will always return the biggest
hogs (listed by directories) ... in other words,
if you want to know what the hell you're
sharing in /usr/share that takes up 2GB,
dive deeper ...

du -s /usr/share/* | sort -rn | head -10
du -s /usr/lib/* | sort -rn | head -10

These are just HINTS for you, I don't
mean to dive through every single directory
with you :}


Cheers,
Tink
 
Old 12-07-2003, 06:11 PM   #9
Brother Michael
Member
 
Registered: Aug 2003
Location: Columbus, Ohio
Distribution: Debian
Posts: 284

Original Poster
Rep: Reputation: 30
Oh I understand, I just haven't been in the Linux biz that long and am kinda confused about what is what, and what is safe to delete and what will cause a system crash...
 
Old 12-07-2003, 06:20 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Cool :) ... better safe than sorry is a very
good approach. If you really go through
/usr/share and /usr/lib and find the big
beasts you can always query rpm to
see which program/package a file belongs
to, and then decide whether you beleive it's
required or not. As a rule of thumb you
shouldn't be deleting anything in /usr,
/bin, /sbin, /opt or /var without good reason,
and in an rpm based distro pretty much never
manually, either. Use rpm to erase it, that will
warn you about dependencies you might break
by removing stuff.


man rpm
for details.


Cheers,
Tink
 
Old 12-07-2003, 06:31 PM   #11
Brother Michael
Member
 
Registered: Aug 2003
Location: Columbus, Ohio
Distribution: Debian
Posts: 284

Original Poster
Rep: Reputation: 30
So should I just switch users to root and delete the files in the /tmp directory?

Mike
 
Old 12-07-2003, 06:34 PM   #12
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
While X is running you won't be able to kill a
few, or if you succeed, X might crash ... just
delete stuff that has obviously not been touched
in ages ( yesterday) ;) ...


Cheers,
Tink
 
Old 12-07-2003, 06:43 PM   #13
Brother Michael
Member
 
Registered: Aug 2003
Location: Columbus, Ohio
Distribution: Debian
Posts: 284

Original Poster
Rep: Reputation: 30
lol, ok. Umm yea, I'm sorry this is a real trivial one but, how do I go about deleting in the command line?

Mike
 
Old 12-07-2003, 07:49 PM   #14
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
man rm

for the long version.

In brief
rm <filename>
wildcards (* and ?) work as in DOS.
For a directory you will most
likely need to use
rm -rf <directory name>


Cheers,
Tink
 
  


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
Lots of disk space missing Tsuroerusu *BSD 7 11-25-2005 08:29 AM
missing disk space Ayman.mashal Linux - Software 4 06-16-2005 03:41 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 04:58 PM
25% of my disk space appears to be missing ealpert1 Linux - General 3 11-25-2003 01:04 PM
Disk space wastage 73 GB Hard disk rajgopalhg Linux - Hardware 2 10-18-2002 04:41 PM


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