LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Low Disk Space (https://www.linuxquestions.org/questions/linux-newbie-8/low-disk-space-743109/)

Peacefrog10 07-27-2009 10:36 AM

Low Disk Space
 
Hello,

Newb here, I have Linux Red Hat Enterprise 4.0 running as my mail server and I am getting errors that I am out of disk space. For example if I try and drop a file on the desktop I get an error that there is no enough space available. I recently deleted some old RPM packages from the Update folder and uninstalled openoffice as this server is not used for anything but my mail server, and I still get this error. If I open the file system it says 0 bytes available. I'm not sure how to tell how much space is available on the partition or if its configured somehow as to only allow a certain amount of available space for certain folder. Any help would be greatly appreciated

Peacefrog10 07-27-2009 11:06 AM

After doing a # df I can see that Dev00 is completely full.

onebuck 07-27-2009 11:07 AM

Hi,

Welcome to LQ!

You could use 'df -h' from the cli which will identify the space on the disks in human readable format. You could then see where space can be recovered by deletion of files that are no longer necessary.

Peacefrog10 07-27-2009 11:18 AM

thanks, entering that command from terminal shows me that I have 63 of 65 gigs used, but how can i see what is taking up what as far as space is concerned.

ncsuapex 07-27-2009 11:28 AM

There are several methods you can use to determine what is taking up space.

If you have root access you can run this command:

Quote:

du -m / | sort -n -r | head -n 10
That will sort the directories starting at the / directory and list the top 10. Also the "find" command with various flags and options can be useful.

onebuck 07-27-2009 11:42 AM

Hi,

Quote:

Originally Posted by Peacefrog10 (Post 3621836)
thanks, entering that command from terminal shows me that I have 63 of 65 gigs used, but how can i see what is taking up what as far as space is concerned.

Quote:


~#df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 94G 5.1G 85G 6% /
/dev/sda1 30G 9.4G 20G 33% /mnt/winxp
/dev/sdb1 39G 4.3G 34G 12% /mnt/winxp2
tmpfs 876M 0 876M 0% /dev/shm
/dev/sda6 9.4G 746M 8.2G 9% /mnt/gws
/dev/sdb2 38G 32G 3.7G 90% /mnt/Linux_Archive
/dev/sdg1 3.8G 332M 3.5G 9% /media/STORE N GO
The above output shows that '/' used 5.1GB with avail 85GB. Now if you want to get specific within '/' then you could use 'ncsuapex' method or even 'find'.

But 'YOU' will need to decide what can be safely removed. As a user then '/home/user' would be a good place to start.

Peacefrog10 07-27-2009 11:48 AM

Thanks.

This is the drive in question

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00 65G 62G 0 100% /


I'm not sure what I can safely delete. :)

oshibravo 07-27-2009 12:14 PM

Linux ID
 
Dear all,

I went to register for my Linux Level 1 exam today but they require me to submit a Linux ID. How can i obtain one, colleagues please help me as i need to go sit for my exams.

Kind regards
Fritz

Peacefrog10 07-27-2009 12:20 PM

Hey..dont bogart my thread! :)

Peacefrog10 07-27-2009 12:23 PM

I figured out what was eating the disk space....an old archive folder. Thanks All!


All times are GMT -5. The time now is 03:12 AM.