LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 06-05-2006, 12:56 AM   #1
beosmr.x
LQ Newbie
 
Registered: Jan 2005
Posts: 18

Rep: Reputation: 0
possible file system corruption


I use mandriva 2006. Since it doesnt shutdown properly after the background goes blue with the x cursor I just turn off the power and that's that. Then I restart the next day and all is good. Have been doing this for a year now. But today, something else happend. First message was in the console, mandriva didnt start as normal. I did the most obvious thing, 'startx' but I got cannot read the /tmp/.Xauthority . I did chmod 1777 /tmp but I got 'cannot do this, read-only filesystem' but obviosly my filesystem is NOT readonly. I also read that when you get the 'read only' 'cannot do this' is because of file system corruption, well I ran fsck and the result was:
/dev/volgroup00/logvol00: clean, 165780/14974976 files, 5773411/2992536 blocks

I searched web on this said deleted TEMP dir, but the temp dir is still there. This is the most closest thing I could find on the net that macthes ALL the symptoms I am having.

http://www.freelists.org/archives/ju.../msg00013.html
EXCEPT has nothing to do with PHP, as you can see.

So, what can I do. I can't start the xserver because /tmp/.Xauthority is read only which it wasnt before. My technical aptitude with linux is zero/10 so if I have to type something in make sure to spell it out completely.
Thanks, and this matter is of extreme urgency!!!
 
Old 06-05-2006, 01:52 AM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,893

Rep: Reputation: 68
Could you post at least the message in the console? (maybe after another reboot) Looks like yourfile system wasn't mounted correctly and so is mounted in read-only mode.
 
Old 06-05-2006, 09:31 AM   #3
beosmr.x
LQ Newbie
 
Registered: Jan 2005
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by raskin
Could you post at least the message in the console? (maybe after another reboot) Looks like yourfile system wasn't mounted correctly and so is mounted in read-only mode.
How do I 'post the message' ? Its not like I can copy, the console output and then paste it into these forums.
 
Old 06-05-2006, 09:51 AM   #4
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,893

Rep: Reputation: 68
Well, you can go to /var/log and find there some file (sys.log or messages or something) so you can post their contents (check for something private in logs, though it's not surely there). Also you can run 'dmesg > ~/log' and so ~/log will contain kernel messages. And explore /vsr/log/* , you can find there some files with fresh messages (modification time today) and post them.
 
Old 06-05-2006, 06:21 PM   #5
beosmr.x
LQ Newbie
 
Registered: Jan 2005
Posts: 18

Original Poster
Rep: Reputation: 0
That would be nice to do except that I cant do anything to get the log files out of the hdd and have these on the forums can I?
Reasons:
The hdd is acting as 'read only' so the log files wont write in the first place. It would help a lot if people actually read and understand my question in the first place and someone who is an expert with linux find the answer to my question.
 
Old 06-06-2006, 02:07 AM   #6
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
You can copy and paste from the konsole just like any text file.

In fact it's a good way to log your own stuff, like addresses to config files and such.

It takes time to get good answers. You may try a search of this site for similar threads,

and remember the wiki and the tutes too.

Also, Google is your friend.
 
Old 06-06-2006, 02:24 AM   #7
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,604

Rep: Reputation: 47
Quote:
It would help a lot if people actually read and understand my question in the first place and someone who is an expert with linux find the answer to my question.
It would help if you were patient with anybody helping you out of their free time.
It is not a helpdesk

Quote:
Thanks, and this matter is of extreme urgency!!!
See LQ rules

You can use lynx to access the internet in txt mode.
You can use a live distro to access the syslog
 
Old 06-06-2006, 02:49 AM   #8
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,893

Rep: Reputation: 68
log files will contain last activity BEFORE crash. It may contain something, if a write-intensive process was running when you switched power off. And dmesg will almost certainly contain some information about reasons to mount read-only. Well, sorry for misleading >~/log, mount anything not corrupted (like flash). Also if you have gpm running (mouse in text mode) you can mount flash, cd to it, "cat >log" , scroll up with Shift-PgUp, select messages with mouse and then press right button - it will feed them to cat; press Ctrl-D afterwise. Also, try "mount / -o remount,rw" and post the output (preferably, again, "log" after "mount / -o remount,rw &>log" on writable media)
 
Old 06-06-2006, 07:16 PM   #9
beosmr.x
LQ Newbie
 
Registered: Jan 2005
Posts: 18

Original Poster
Rep: Reputation: 0
delete this post

Last edited by beosmr.x; 06-06-2006 at 07:32 PM.
 
Old 06-06-2006, 07:31 PM   #10
beosmr.x
LQ Newbie
 
Registered: Jan 2005
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by GlennsPref
You can copy and paste from the konsole just like any text file.

In fact it's a good way to log your own stuff, like addresses to config files and such.
That would be very nice to do EXCEPT I CANT start X

Please if you don't have anything constructive to contribute don't even bother replying. I need serious support and if some members here don't know how to read my original post they shouldn't be answering in this thread!

Quote:
Originally Posted by raskin
log files will contain last activity BEFORE crash. It may contain something, if a write-intensive process was running when you switched power off. And dmesg will almost certainly contain some information about reasons to mount read-only. Well, sorry for misleading >~/log, mount anything not corrupted (like flash). Also if you have gpm running (mouse in text mode) you can mount flash, cd to it, "cat >log" , scroll up with Shift-PgUp, select messages with mouse and then press right button - it will feed them to cat; press Ctrl-D afterwise. Also, try "mount / -o remount,rw" and post the output (preferably, again, "log" after "mount / -o remount,rw &>log" on writable media)
Quote:
Originally Posted by beosmr.x
My technical aptitude with linux is zero/10 so if I have to type something in make sure to spell it out completely.
Quote:
Originally Posted by Emmanuel_uk
You can use a live distro to access the syslog
'syslog' , except I don't know where the 'syslog' in my mandriva 2006, and isnt syslog fairly generic, it could mean many many files that actually get logged. I took your suggestion and Im running from a live distro except now I need the instructions on how to get my 'syslog' .

Last edited by beosmr.x; 06-06-2006 at 07:34 PM.
 
Old 06-06-2006, 07:32 PM   #11
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
raskin pointed out what was most likely the last thing to happen - something went wrong during boot (maybe even the previous shutdown, especially if you have to just power off sometimes). He also pointed out a way to get the information without typing it, by plugging in a flash drive and using the command line instead of the gui to get the info.

If you don't understand what he's saying, tell us that - don't complain how only an expert can help you. Only a psychic can help you until we see whether the logs contain information about why the file system is being mounted read only. It's been 2 days since this happened, even writing it out and typing it manually would have the info by now.

Please keep in mind that the people here aren't paid and support is provided while trying to deal with our own problems, lives, etc.

The syslog is usually in /var/log/syslog and/or /var/log/messages - if you've mounted your hard disk at /mnt/harddisk, look in /mnt/harddisk/var/log/syslog

Last edited by gilead; 06-06-2006 at 07:34 PM.
 
Old 06-06-2006, 07:52 PM   #12
beosmr.x
LQ Newbie
 
Registered: Jan 2005
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Emmanuel_uk
You can use a live distro to access the syslog
Okay, I went to mount hdb3 (which contains mandriva partition) to edit up the fstab file (unrelated other problem) from the kwikdisk applet from within MEPIS live CD and the task failed and came up with this error message dialog.
Code:
Called: mount /dev/hdb3
mount: I could not determine the filesystem type, and none was specified
While hdb1 and hdb2 were mounted trouble-free.
 
Old 06-06-2006, 08:08 PM   #13
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
It may be that the file system needs checking. If you can't mount it with a command like the following (depending on what the file system is), it may need to have fsck run over it:
Code:
mount -t ext3 /dev/hdb3 /mnt/hdb3
mount -t ext2 /dev/hdb3 /mnt/hdb3
mount -t reiserfs /dev/hdb3 /mnt/hdb3
etc
The command to check the file system will be:
Code:
e2fsck /dev/hdb3
or
reiserfsck /dev/hdb3
 
Old 06-06-2006, 08:39 PM   #14
beosmr.x
LQ Newbie
 
Registered: Jan 2005
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by gilead
It may be that the file system needs checking. If you can't mount it with a command like the following (depending on what the file system is), it may need to have fsck run over it:
Code:
mount -t ext3 /dev/hdb3 /mnt/hdb3
mount -t ext2 /dev/hdb3 /mnt/hdb3
mount -t reiserfs /dev/hdb3 /mnt/hdb3
etc
The command to check the file system will be:
Code:
e2fsck /dev/hdb3
or
reiserfsck /dev/hdb3
Code:
mount -t ext3 /dev/hdb3 /mnt/hdb3
mount: wrong fs type, bad option, bad superblock on /dev/hdb3,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
Code:
e2fsck /dev/hdb3
e2fsck 1.39-WIP (31-Dec-2005)
Couldn't find ext2 superblock, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/hdb3

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
thanks for the fast reply. keep them up.
 
Old 06-06-2006, 09:17 PM   #15
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
At this point, I'd recommend running e2fsck -b 8193 /dev/hdb3 unless you don't think the partition was ext2 or ext3 (I don't use Mandriva so I don't know what the default partition type is).

Knowing which superblock to use is the difficult part. If the value 8193 doesn't work (it's the default for 1k blocksizes), please try it with 16384 (2k blocksizes) or 32768 (4k blocksizes).
 
  


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
file corruption!! vishamr2000 Linux - General 5 05-12-2006 01:45 AM
Best file system for corruption protection? Wyk3d Mandriva 3 12-24-2004 06:17 PM
File Corruption in Red Hat 7.3 File Server dmurph2k2 Red Hat 3 10-09-2003 02:30 PM
File Corruption on Red Hat 7.3 File Server dmurph2k2 Linux - General 2 10-09-2003 12:38 PM
recover from grub/system corruption cray Linux - Newbie 1 09-03-2003 10:07 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration