LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-20-2004, 02:26 PM   #1
aig
LQ Newbie
 
Registered: Jun 2004
Location: Watertown, NY
Distribution: Gentoo Linux (Stage 1)
Posts: 5

Rep: Reputation: 0
Recovering Filesystem


Hi,

I apolgize for my first posting being a troubleshooting question...

Anyway, today I was doing a little work in KDE 3.2 on Mandrake 10 and it all of a sudden froze. I couldn't get to a terminal, and the system would not respond to connection attempts via SSH. So I just hit the reset button hoping nothing would go wrong.

Upon boot up, it said there was a failure mounting /proc, which really concerned me. It then went into a forced filesystem check and found a lot of problems, resetting a lot of stuff back to 0 and then did an autoreboot.

The next time around it still said /proc failed, so fired up Disc 1 and tried the rescue options. I can't seem to be able to mount my ext3 volumes to run fsck on them. I even took a look at the drive with partition magic *cringe* and it said my volumes were corrupt when I "checked for errors".

Any suggestions on how to fix this problem? Or at least get reinstall the OS without having to reinstall and configure all of my software/settings? For the future, whould you recommend another filesystem besides ext3?

Thanks and Happy Fathers Day out there to all you dads!

~AIG
 
Old 06-20-2004, 02:57 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
One possibility is that there was a hardware problem which caused the initial freeze-up. You may want to power down and re-seat the cables.

Are the drives excessively warm. They may be shutting down if over heated.

You run fsck on unmounted partitions.

/proc is a psuedo-file system, but it is mounted on root. Initially during bootup, the root drive is actually in memory. This is what the initrd file is. If the error occurred before the root directory is chrooted to your root drive, this doesn't sound good at all (like maybe memory problem).

The rescue mode has an lsparts command to list the partitions. Run that and see if the partitions show up.

Select the rescue menu option to mount the partitions on /mnt. If it is successful, cd to /mnt and look around to see if you are still in business.

You can change the root with the 'chroot /mnt' command after that.
Setting up the root $PATH variable and other variables can now be done by rerunning bash as a login shell. '/bin/bash -l'.

After that, if the /bin and /sbin and /usr/sbin directories exist, you should be able to run administrative commands normally. For example, you can run 'vim' and don't need to run 'vim-minimal' instead.

Load in the /etc/lilo.conf file. Make sure it looks ok.
Check the /etc/fstab file.

You can now try mounting the rest of the partitions with the 'mount -a' command.

Re-running lilo at this point might be a good idea. If it fails, you will need to correct the /etc/lilo.conf file or resolve the problem with the partition.

Good Luck! Someone may respond with a more particular answer about the particular error message you received.
 
Old 06-20-2004, 02:59 PM   #3
bdp
Member
 
Registered: Apr 2002
Distribution: RH 9
Posts: 230

Rep: Reputation: 30
although i've never tried it, i hear mounting a drive before fsck can trash it. just do a 'fsck /dev/sda1' or similar.

i know a few people that have trashed their drives with partition magic and would personally avoid it.

as for ext3 it's a good filesystem in my experience (have many drives happily spinning with ext3 for long times).
 
Old 06-21-2004, 11:41 PM   #4
aig
LQ Newbie
 
Registered: Jun 2004
Location: Watertown, NY
Distribution: Gentoo Linux (Stage 1)
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the responses. I was able to recover the rest of my data and fix the filesystem, but mouting /proc was still a problem. I did an in-place upgrade to see if that would help. There were enough little things wrong that I decided to just do a reinstall, which I didn't mind.

Thanks for the help.

~AIG
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Recovering tar files burnt to cd without a filesystem?? mazinoz DamnSmallLinux 2 11-22-2005 05:47 PM
Recovering Files From Another Filesystem eklitzke Linux - General 3 03-14-2005 11:39 AM
Frontend for recovering deleted files from ext3 filesystem jayakrishnan Linux - General 3 12-16-2004 02:21 PM
Recovering file on Ext3 filesystem. the_rydster Slackware 1 07-17-2004 01:04 PM
recovering bad xfs filesystem? ss59 Linux - Newbie 0 05-04-2004 01:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:46 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