LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 09-20-2009, 08:54 AM   #1
bethanlowder
LQ Newbie
 
Registered: Sep 2009
Posts: 5

Rep: Reputation: 0
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!
 
Old 09-20-2009, 10:18 AM   #2
eth1
Member
 
Registered: May 2008
Posts: 97

Rep: Reputation: 20
What is the output of the following commands ?

Quote:
df -h

Quote:
cd / ; du -sch *
 
Old 09-21-2009, 03:29 AM   #3
bethanlowder
LQ Newbie
 
Registered: Sep 2009
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 09-21-2009, 03:30 AM   #4
bethanlowder
LQ Newbie
 
Registered: Sep 2009
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 09-21-2009, 05:20 AM   #5
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by bethanlowder View Post
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.
 
Old 09-22-2009, 06:09 AM   #6
bethanlowder
LQ Newbie
 
Registered: Sep 2009
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
Old 09-22-2009, 07:53 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,344

Rep: Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746Reputation: 2746
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
 
Old 09-25-2009, 07:17 AM   #8
bethanlowder
LQ Newbie
 
Registered: Sep 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks guys for all your suggestions, but nothing seems to be working.

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

Cheers
 
  


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
Had an error message that something couldn't start because the tmp file was full..... steve513 Mandriva 5 08-06-2009 12:08 PM
Full of '/tmp/6R96Sk' empty files guarriman Linux - General 2 08-14-2006 05:10 AM
/tmp directory is full? Moses420ca Linux - Newbie 13 01-21-2005 07:48 PM
Is it necessary to empty /tmp while booting? rsamurti Slackware - Installation 1 07-11-2004 10:21 AM
Create file using 'touch ./tmp.$$', file tmp.3941 is created, why? huangyanfeng Linux - General 1 04-13-2004 03:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 03:57 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
Open Source Consulting | Domain Registration