LinHES Forums
http://forum.linhes.org/

Warning :Unable to write to /tmp -- Help please......
http://forum.linhes.org/viewtopic.php?f=6&t=17439
Page 1 of 1

Author:  ajgoyt1 [ Tue Dec 18, 2007 4:37 pm ]
Post subject:  Warning :Unable to write to /tmp -- Help please......

Hello,

My knopmyth R5F27 install has been working great fro the last 2 months i shut it down last night and now it will not boot all the way to the x session or knoppmyth - it will give me a window with the following error.

xsession:warning:unable to write to /tmp;xsession may exit with an error and to the bottom left of the error it says ok. if i click ok it refreshes then comes back to the same error.

I have scoured/searched the help files and the wiki - The wiki suggests tapping the caplocks to get me to lilo and the it says to go to single user mode - it will not let me type anything at lilo - my only choices are reboot or linux. it appears my tmp file / hardrive is full? anyone else run into this problem?

Please help i have 80 movies i would like to save :)

AJ :)

Author:  Gibble [ Tue Dec 18, 2007 4:57 pm ]
Post subject: 

will it boot far enough that you can ssh into it?

Author:  ajgoyt1 [ Tue Dec 18, 2007 5:19 pm ]
Post subject: 

You mean tunnel from the same machine?

I had WEBMIN running from a Vista pc - I cannot log in from WEBMIN from the vista computer, also MYTHWEB says database error!

Author:  slowtolearn [ Tue Dec 18, 2007 5:56 pm ]
Post subject: 

Double-check your keyboard connection, you should be able to type at the LILO: prompt even if the disk is full.

Barring getting into single-user, see "System inaccessable:" here: http://www.knoppmythwiki.org/index.php? ... erRecovery You should be able to delete the offending file(s) with this approach (check /var/log first). Before you delete any files take a look at their contents to see if you can determine why this happened.

Author:  lostmyshape [ Tue Dec 18, 2007 6:52 pm ]
Post subject: 

don't panic... this has happened to me a couple times. you filled your root partition too full. no harm done. if you can't figure out how to get yourself to a prompt, or X keeps insisting on trying to start, use a live bootable CD like kanotix or good ol' knoppix and su into a term there (no password). the file browser in a live CD might come in handy, too -- let you poke around to look at file sizes quickly.

most likely your xsession-errors file (/home/mythtv/.xsession-errors) got waaaay too big (possibly many gigs). first look through it to see what program crashes filled it up, then delete xsession-errors (it will get recreated when x restarts). check to see if any other log files got too big, delete them. lastly, check what's in your /tmp directory. i know i sometimes use it as a dumping ground when i'm doing work or problem solving. last time i checked i had almost 2 gigs of junk in there.

once you clear out some room, X will start right up.

good luck!

Author:  ajgoyt1 [ Tue Dec 18, 2007 6:53 pm ]
Post subject: 

Sorry I didn't explain enough once I was at Lilo - The keyboard will let me type - but the commands from the WIKI were not effective, Sorry not at home right will be in the next couple of hours, What commands would you use to clear/ empty the offending folder/files.

AJ :)

Author:  lostmyshape [ Tue Dec 18, 2007 6:58 pm ]
Post subject: 

Code:
ls -a -l
to see file sizes (including hidden files).
Code:
rm /path/to/file
to remove (delete-be careful, this is permanent).

check /home/mythtv/.xsession-errors first.

Author:  slowtolearn [ Tue Dec 18, 2007 7:28 pm ]
Post subject: 

ajgoyt1 wrote:
Sorry I didn't explain enough once I was at Lilo - The keyboard will let me type - but the commands from the WIKI were not effective
What did you type? AFAIK, "linux single" (no quotes) should get you to single-user. See http://www.redhat.com/docs/manuals/linu ... ingle.html

ajgoyt1 wrote:
What commands would you use to clear/ empty the offending folder/files.
You need to find them first, that's why I suggested checking /var/log (and as lostmyshape mentioned, /home/mythtv/.xsession-errors). Using ls -laS | more will show you the largest files first in your current directory.

After you locate the file(s), check the contents with tail -300 filename | more so you can see the last 300 lines of the file, which will hopefully give you some idea of what has gone wrong so you can fix it. Then you can clear out the file with >filename (Obviously substitute "filename" with the actual name of the file in the above examples). I recommend using this method over deleting the file to avoid errors if the app is expecting the file to be there.

Author:  tjc [ Tue Dec 18, 2007 8:51 pm ]
Post subject: 

Definitely see the wiki pages indicated
http://www.knoppmythwiki.org/index.php?page=WillNotBoot
http://www.knoppmythwiki.org/index.php?page=DiskFullError
Because they'll also point you to other things you may need to take care of like this:
http://www.knoppmythwiki.org/index.php?page=RepairingMythConvergDB

Author:  ajgoyt1 [ Tue Dec 18, 2007 9:40 pm ]
Post subject: 

Jeez in lost + found there is 16384 - to me thats 16gig right?

Not a total newb with Linux but i need to be careful - i could see the file - the /tmp directory was at 4096 which is nothing.

I tried the command to empty the lost and found but was not successful - can you guys steer me in the right direction on how to empty the lost + found? Isn't that the recycle bin?

AJ

Author:  ajgoyt1 [ Wed Dec 19, 2007 1:32 am ]
Post subject: 

lostmyshape wrote:
Code:
ls -a -l
to see file sizes (including hidden files).
Code:
rm /path/to/file
to remove (delete-be careful, this is permanent).

check /home/mythtv/.xsession-errors first.


I can see the file sizes but when i try to go to /home/mythtv/.xsession-errors first it gives me a Acess Denied!!!!!!

Author:  slowtolearn [ Wed Dec 19, 2007 8:14 am ]
Post subject: 

ajgoyt1 wrote:
Jeez in lost + found there is 16384 - to me thats 16gig right?

Not a total newb with Linux but i need to be careful - i could see the file - the /tmp directory was at 4096 which is nothing.

I tried the command to empty the lost and found but was not successful - can you guys steer me in the right direction on how to empty the lost + found? Isn't that the recycle bin?

AJ
You need to be clearer in your explanations. What exactly does "I tried the command to empty the lost and found but was not successful" mean? What did you try? As lost+found is a directory you should be investigating the files within it, if there are any.

ajgoyt1 wrote:
I can see the file sizes but when i try to go to /home/mythtv/.xsession-errors first it gives me a Acess Denied!!!!!!
Again this is not very clear. What command resulted in "Access Denied"? As .xsession-errors is a file you need to look at it's contents (with tail or more), which will hopefully give you some clue as to what is going wrong.

The same applies to the files within /var/log - Check their contents with tail or more. For example:
Code:
cd /var/log
ls -laS | more  --> Sorts files by size
more large_file
     --OR--
tail -300 large_file | more
Then, to clear the large file of it's contents
Code:
>large_file
Rinse, repeat for each of the "big" files, but not before you examine their contents to determine why they have grown so large.

In addition to tjc's links also see http://www.knoppmythwiki.org/index.php?page=LinuxTips

Author:  tjc [ Wed Dec 19, 2007 7:55 pm ]
Post subject: 

Actually at least one of the ones I pointed him to tell you to BecomeRoot, but before too long _all_ of them will. ;-)

http://www.knoppmythwiki.org/index.php?page=BecomeRoot

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/