LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-17-2007, 01:57 PM   #1
wjn
Member
 
Registered: Sep 2003
Location: midwest
Distribution: RH8, RH9, Fedora
Posts: 54

Rep: Reputation: 15
I think I killed my fc4-64 installation


It all started with a reboot that I did due to some wakky performance problems. Yeah, I know, rebooting is a Windows thing, but I thought I'd try it anyway.

Well, the system got to the Automount part of the boot and hung. I've had problems with the two SATA drives on my box so I thought, brilliantly, I'll just run fsck on it and everything will be great.

I read through some threads here and found somebody's opinion on how to do this (no names will be mentioned because I don't remember what thread this was) and as I attempted to follow those instructions the system asked me if I REALLY wanted to do this since the drives were mounted. "Severe file damage", I believe, was the warning. Well, I came back here and found instruction on how to unmount the drive. When I tried to do that, the system told me it couldn't unmount the drive because it was already unmounted.

So, I tried to run fsck again, this time ignoring the dire warning. Yeah, it fscked, all right. Now the computer boots up to a "kernal panic".

I have downloaded and burned a Kanotix bootable CD to see if there's any hope. It mounts the /boot drive, but there's nothing showing up in the folder except a grub file and a locked lost+found file. I unmounted the drive and tried to run fsck on it; it gave me the following message:

Quote:
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>
I realize this is probably my own fault for not reading the entire thread, because as I went back to it there was some further discussion about this procedure that indicated that people with good intentions vehemently disagreed on what to do about this.

So... does anybody has any suggestions as to how to proceed with this or is it a lost cause? I didn't have a whole lot of data on there but there are a couple of files I would like to recover if possible.

Thanks in advance,
Bill
 
Old 03-17-2007, 03:40 PM   #2
Valkyrie_of_valhalla
Member
 
Registered: Jan 2006
Location: Romania
Distribution: Suse 12.0, Slackware 12.1, Debian, Ubuntu, Gentoo
Posts: 301

Rep: Reputation: 30
A few questions to start with:
1. how did you reboot? normally (reboot command or with the GUI), or from the button? Anyway, most distros run fsck during the boot process, I think..
2. did you run fsck from the OS on the partition you fsck-ed? (just to see if I understood correctly)
3. what type of partition is it? (ext2?)

Generally, it's a bad idea to run fsck with the partition mounted, as it can really mess it up... But, I'm not an expert...
It is possible you have to format and reinstall everything... As for the files, you might be able to recover some with some apps, but I'll have to google that one...
 
Old 03-17-2007, 05:10 PM   #3
wjn
Member
 
Registered: Sep 2003
Location: midwest
Distribution: RH8, RH9, Fedora
Posts: 54

Original Poster
Rep: Reputation: 15
Hi, thanks for responding...

Originally I rebooted by shutting down from the GUI... KDE.

When it came back up it never got back to the GUI (meaning the log in screen).


I don't remember what kind of filesystem it is (was). I think I used whatever the default filesystem is for Fedora Core 4.
 
Old 03-17-2007, 07:49 PM   #4
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
So did you run the e2fsck or not, that's not entirely clear to me?
 
Old 03-18-2007, 10:12 AM   #5
wjn
Member
 
Registered: Sep 2003
Location: midwest
Distribution: RH8, RH9, Fedora
Posts: 54

Original Poster
Rep: Reputation: 15
I have to apologize for not being more clear.

I also should apologize for not writing all of this stuff down while it was happening.

I believe that the only command I ran was fsck -A.

I can't exactly remember why I ran it with that switch.

On a hopefully related topic... should I try to run the FC4 rescue disc?

Thanks for trying to help me.
 
Old 03-18-2007, 02:16 PM   #6
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
fsck -A will check the integrity of all your filesystems; if these are damaged, it will fail. I think that you should at least try to do what the system suggested by running, preferably from a floppy of a LiveCD:

e2fsck -f -b 8193 /dev/[partition]

or if you have ext3:

e3fsck -f -b 8193 /dev/[partition]

What makes these commands more powerful than plain fsck is that they will use a backup copy of the superblock instead of the superblock itself (which may be damaged).

The superblock, in case you wonder, is a location that stores vital information about the filesystem; if it gets hurt, the system may fail to mount. In order to minimize the risk, ext 2/3 filesystems create backup copies of this block at intervals on the filesystem, usually one per every 8192 blocks. So by issueing these emergency commands, you're going straight to the first superblock copy on you filesystem. If that fails, you may want to try the next one, which is at
8192 x 2 +1 = 16385:

e2fsck (or e3fsck) -f -b 16385 /dev/[partition]

You would have to do that for each FC4 partition, of course.
 
  


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
FC5 upgrade to one FC4 on multi-boot system killed the others PTrenholme Fedora 0 03-21-2006 10:15 PM
FC4 yum update killed video - dell laptop xlancealotx Linux - Laptop and Netbook 3 09-28-2005 11:04 PM
FC4 update or gxmame killed my graphics Sm1ler Linux - Laptop and Netbook 2 09-21-2005 03:30 AM
FC3 to FC4 killed my nvidia GL1800 Linux - Software 1 06-22-2005 07:44 AM
Mandrake installation - 'killed my Win XP!! ecology447 Linux - General 1 06-10-2004 06:48 PM


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