-   Red Hat (
-   -   Session lasted less than 10 seconds. Your HDD maybe full (

pnh73 09-01-2003 02:07 PM

Session lasted less than 10 seconds. Your HDD maybe full

When I try and login to my computer using a normal user i get a message about the session having lasted less than 10 seconds and that my HDD may be full. I have checked and it seems that / is full. I have no idea why. Any body have any idea how I can find what has eaten my / partition (i have separate partitions for /var /home etc etc)?



david_ross 09-01-2003 02:13 PM

What size is the partition? What does the output of this show:
cd /
du -hs `ls`
df -h

pnh73 09-01-2003 02:26 PM

Here is the info you requested:


# du -hs `ls`
6.7M    bin
9.6M    boot
338K    dev
9.7M    etc
419M    home
1.0K    initrd
75M    lib
12K    lost+found
1.0K    misc
3.0K    mnt
1.0K    opt
du: `proc/28607/fd/3': No such file or directory
129M    proc
6.5M    root
12M    sbin
370M    tmp
939M    usr
65M    var


# df -h
Filesystem            Size    Used  Avail  Use%  Mounted on
/dev/hda5            494M  487M    0    100%  /
/dev/hda1            99M    14M    80M    15%  /boot
/dev/hda3            7.1G    451M  6.2G      7%  /home
none                    62M        0      61M      0%  /dev/shm
/dev/hda2            19G    971M  17G      6%  /usr
/dev/hda6            1004M  81M  871M    9%  /var

david_ross 09-01-2003 02:36 PM

you have a very small / partition and tmp is using up most of the free space:
370M tmp

tmp files should be safe to delete so try this then reboot:
rm -rf /tmp/*

pnh73 09-01-2003 02:46 PM

I used what RH8 recommended for my 30GB HDD. I will try removing the tmp files. I think i know why this is. I store my ISO files that are used to backup my files onto CD

david_ross 09-02-2003 12:07 PM

Maybe you should create a seperate directory for doing your own temp opperations like:

r00tnuke 09-02-2003 07:48 PM

You may also consider checking your /etc/cron.daily/tmpwatch and edit to shorten the scan time to clean files out of your /tmp or whatever directory.

In my tmpwatch cron it's a 3 digit number that is a mult of 24 (hours). If you wanted it to check every 2 day's as opposed to 7 day's you would reduce it from 168 to 48

Just an automated idea to keep temp clean.

All times are GMT -5. The time now is 09:44 AM.