Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-31-2014, 08:12 PM   #1
Registered: Oct 2005
Posts: 327

Rep: Reputation: 32
fsck root file system

I have two identical servers. Then the 1st server got an issue. Last action done was it was fsck. My suspect is that / file system has been fsck while it was mounted. I'm not sure but at least we know the last action done. Now, it is experiencing kernel panic. I already boot to rescue cd and was able to mount the /boot and / of the server but still experiencing the same issue.

Has anyone could provide advise how to restore? I'm thinking to copy /boot from the replicated server via rsync but I'm not sure if this is the correct strategy. I have already fsck / and /boot and has no issue.
Old 10-31-2014, 09:13 PM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
First thing is make sure that the disk is physically healthy ... I'd suggest running the short and long online self tests via smartctl (e.g. "smartctl -t short /dev/sda" -- the smartctl man page has more information). If SMART reports errors then probably the disk is on its way out and needs to be replaced. Note that fsck will generally refuse to run on a mounted filesystem (unless it's mounted read only). Why do you suspect the fsck was run while the root filesystem was mounted?

In principle you could use dd or similar to do a bitwise copy of the second server's hard drive onto the first server's disk (you'd have to have them both in the same machine and be very careful not to reverse the if and of arguments to dd). If these are production servers, though, why on earth don't you have back-ups already that you can just restore from?

It doesn't sound like you're particularly confident about the source of the problem, though, so for me step 1 would be getting a bit more certainty about that before trying to fix it.
Old 11-01-2014, 12:36 AM   #3
Registered: Oct 2005
Posts: 327

Original Poster
Rep: Reputation: 32
I am just booted on rescue cd. It could not load the root disk. It always in kernel panic. I could not restore from backup.
Old 11-01-2014, 01:48 AM   #4
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,253

Rep: Reputation: 3395Reputation: 3395Reputation: 3395Reputation: 3395Reputation: 3395Reputation: 3395Reputation: 3395Reputation: 3395Reputation: 3395Reputation: 3395Reputation: 3395
If you want help you'll have to provide enough detail as to what you did and what failed. All of the following are useless
- It could not load the root disk.
- It always in kernel panic.
- I could not restore from backup.


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
"unexpected inconsistency" (fsck) of the root file system failed artoebe Linux - Newbie 8 03-23-2013 12:40 AM
fsck and root file system xj25vm Slackware 4 10-20-2011 02:11 PM
[SOLVED] Problem fixing ext3 root file system using fsck on CentOS 5 prl77 Linux - Server 2 05-17-2011 06:24 PM
fsck not checking non-root file system at boot time... robertjinx Slackware 2 04-21-2011 04:28 PM
Running fsck (or e2fsck) on root file system... xbill311x Linux - Newbie 2 01-02-2006 11:54 PM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration