/var/log/XFree86.0.log gone!!!
This morning my system wouldn't boot into Slackware. Actually I went into the partition from Mandrake and configured it to boot to console instead of X and it will do that but it won't run X. The reason /var/log/XFree86.0.log is gone, along with other files from that directory. Now I didn't delete them so I don't know what happened. My footing with Linux isn't that great yet. The solution as I see it is a reinstall but is there a command something like DOS's undelete that I can run from console to try to dig the files up from their graves? I'd prefer to figure out what went wrong and why so I can learn from this instead of doing a straight reinstall but I'm not sure where to start.
|
To undelete file you can try "debugfs" command. It works fine with ext2 file system, but it won't work with ext3 file system.
|
All the files in /var/log are gone? Is you /var on a separate partition? Maybe it wasn't mounted properly.
Post your /etc/fstab here and the output of 'df -h'. |
BTW, X won't fail to start just because the log file is missing - it creates a new one every time you start it up. The log file will tell you why it won't start, however.
|
Ok, I'm not using ext2 so I can't use debugfs.
Here's what "ls" -ing from the /var/log directory give me as output: Quote:
Here's fstab: Quote:
And finally, the result of df -h: Quote:
|
OK, so it's not a partition problem. Those errore are strange. Try doing a
ls -al /var/log when logged in as root and post the output here. |
Ok, here's the results, in two parts:
Part 1: I get the same errors (Permission denied) regarding the same things and in the same order. Part 2: Quote:
I don't have any reason to suspect my attempts to fix my bad Mandrake install are the cause of the problem, there's too much time between the last "tweak" i attempted and the first appearance of this problem, but I'm going to try to undo the last few things I did just in case. In the mean time if anyone else has any idea's I'm listening. |
...and no go. Undoing the last few things I did to try to get Mandrake up and running 100% had no effect on my Slackware problem.
|
Quote:
When you pipe the output of a program it only sends the parts that are written to STDOUT (standard out) to the pipe; if you're seeing things onscreen that aren't being sent to the pipe then they are most likely being sent to STDERR (standard error). Both STDOUT and STDERR are printed to the screen when you run commands at the command line. So one question (at least) is, what would give your errors like Quote:
Are you using any command aliases? Have you changed the standard path? |
Just in case it is a wierd permissions problem, try this:
Code:
chmod u+rw /var/log/* |
All of the specific files listed in the errors above give me another error:
chmod: failed to get attributes of 'var/log/(whatever)': Permission denied I'd almost think it was my hard drive going on me but 98 performs rock solid and Mandrake is just as good as ever (which isn't saying much but at least the specific problems I've been having with Drake have remained consistent) |
I just had a thought...
Does Mandrake know how to handle reiserfs format? Could booting to Drake and then doing something as simple as reading the directory (which is reiserfs) from Mandrake (which I installed on an ext3 format partition) cack something up? Mandrake only gave me the option of ext2 or ext3 when I installed, if reiserfs wasn't on the list then it seems possible it was because the version of Mandrake I have (9.2) wasn't 100% compatible with it. If so could something as simple as listing the directory contents from console (or Konqueror in X) damage the system? ^Ok I was going to post that, but then I booted to Drake and ran diskdrake and it can tell the difference between ext3 and reiserfs, so I'm assuming that Mandrake knows the difference, but I'm not sure if Mandrake is 100% compatible so I figured I should post it just incase I'm on to something. I'm taking shots in the dark at this point. Still gonna keep trying though.... |
It sounds like you have something corrupted in the filesystem.
Try this: Code:
shutdown -Fr |
Forcing fsck didn't change anything. Got a link to a detailed explanation of the steps I'll need to go through to rebuild /var/log? I know how to change the runlevel, but I'd like to look at all of the stages I'd need to go through and why.
|
All times are GMT -5. The time now is 07:49 PM. |