LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   Can't login, says tmp directory full but tmp file is empty! Could be linked to MySQL? (http://www.linuxquestions.org/questions/fedora-35/cant-login-says-tmp-directory-full-but-tmp-file-is-empty-could-be-linked-to-mysql-756559/)

bethanlowder 09-20-2009 08:54 AM

Can't login, says tmp directory full but tmp file is empty! Could be linked to MySQL?
 
Hi,

I hope someone can help - been struggling with this for days. I'm kind of a newbie!

My workstation shut down when I was away from my desk (power failure I think) and when I came back it wouldn't let me logon, except for onto a different session (Gnome) which has its limitations for my work.

It says that the tmp directory is full, so I went in and cleared this, plus generally cut down a load of files so no directories are full (or even close). I noticed that when you look at the properties for tmp it says that there are no files, but also no free space!

Don't know if it's relevant but I wonder if it has anything to do with MySQL... when starting up my computer it stops for ages on the MySQL bit and eventually displays an error before continuing on.

Thanks in advance for any suggestions!

eth1 09-20-2009 10:18 AM

What is the output of the following commands ?

Quote:

df -h

Quote:

cd / ; du -sch *

bethanlowder 09-21-2009 03:29 AM

Hi,

Thanks for replying to my post! Ok so here is the output:

[root@lbep ~]# df -h

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
143G 138G 0 100% /
/dev/sda1 99M 15M 80M 16% /boot
tmpfs 505M 0 505M 0% /dev/shm
/dev/sda2 99M 5.7M 89M 6% /home

[root@lbep ~]# cd / ; du -sch *

7.7M bin
8.9M boot
812K Cold_Again_3200x1200_Skybase.jpg

I presume the first of these checks to see whether various drives are full? What about the second?

Thanks

bethanlowder 09-21-2009 03:30 AM

Sorry missed some of the reply to the second command:

[root@lbep ~]# cd / ; du -sch *
7.7M bin
8.9M boot
812K Cold_Again_3200x1200_Skybase.jpg
49G data
128K dev
121M etc
696K export
150K home
125M lib
16K lost+found
1.4M media
8.0K misc
8.0K mnt
0 net
440M opt
du: `proc/32274': No such file or directory
0 proc

lutusp 09-21-2009 05:20 AM

Quote:

Originally Posted by bethanlowder (Post 3691354)
Sorry missed some of the reply to the second command:

[root@lbep ~]# cd / ; du -sch *
7.7M bin
8.9M boot
812K Cold_Again_3200x1200_Skybase.jpg
49G data
128K dev
121M etc
696K export
150K home
125M lib
16K lost+found
1.4M media
8.0K misc
8.0K mnt
0 net
440M opt
du: `proc/32274': No such file or directory
0 proc

You didn't let this command run long enough. The point was to see whether the /tmp directory was in an abnormal state. So, to save time, do this:

Code:

# du -sch /tmp
Also, check the permissions on / and /tmp. Sometimes these permissions get changed (by someone who spends too much time as root) and the error you report can be one result.

BTW, / should have root.root ownership and drwxr-xr-x permissions,
while /tmp should have root.root ownership and drwxrwxrwt permissions.

Both permissions are required to have these values for normal access to /tmp, and /tmp access is essential for normal application functioning.

bethanlowder 09-22-2009 06:09 AM

Thanks for the suggestions. I've checked the file permissions and they're ok - as you suggested.

Running the command on tmp returns the following:

[root@lbep ~]# du -sch /tmp
144K /tmp
144K total

Does 'total' refer to available space? Therefore suggesting that tmp is full? Because I've been in and deleted all files and it still returns the same value for both '/tmp' and 'total'.

Thanks again for your time.

chrism01 09-22-2009 07:53 PM

One thing to remember is that if a file is held open by a process, deleting the file does NOT remove it, just marks it ready to go. Unix only actually removes a file after all procs have let go of the file.
This is is often used to create 'secure' temp files.
A reboot will clear those files if that is the case.

Try a reboot, then

df -h

bethanlowder 09-25-2009 07:17 AM

Thanks guys for all your suggestions, but nothing seems to be working.

I'll keep looking into it and hopefully figure something out.

Cheers


All times are GMT -5. The time now is 07:25 PM.