LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 05-13-2014, 10:56 PM   #1
vienswuer
Member
 
Registered: May 2014
Posts: 40

Rep: Reputation: Disabled
/dev/sda3: unexpected inconsistency; execute fsck manually.


I have three distros on three different partitions. I can perfectly boot and use Antergos and Manjaro, but not Sabayon. Whenever I try to start it I get this error. I am not sure what could have caused this, since I did only install several apps and then upgraded, nothing else. In fact, the system worked fine for a couple of days. Then for a month I booted Manjaro, and now when I go for Sabayon, this! http://imgur.com/mtlO5U5
Sabayon is hosted on sda5 but the problem seems to be in sda3 where I have /home. I do not want to lose data on /home, is fsck safe enough?
There are a few lines in Spanish that read as follows: /dev/sda3: contains a file system with errors...
/dev/sda3: unexpected inconsistency; execute fsck manually.
And so on.
I know there are several threads regarding this topic, but I am not sure about which command I should use.
Is this going to work??
umount /dev/sda3
e2fsck -fy /dev/sda3
Another friend suggested
e2fsck -v -y /dev/sda3

Last edited by vienswuer; 05-14-2014 at 08:06 AM.
 
Old 05-14-2014, 01:29 AM   #2
ondoho
Senior Member
 
Registered: Dec 2013
Posts: 4,658

Rep: Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987
open a terminal, type
Code:
man fsck
now read carefully what the options supplied by your friends mean.
check the file system first, without attempting any repairs.
i'm pretty sure it has to be unmounted for that. you might have to boot into recovery mode first.
if fsck (pretty much the same as e2fsck) finds errors, you can still consider repairing.
 
1 members found this post helpful.
Old 05-14-2014, 02:11 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,056

Rep: Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915
fsck is a filesystem tool. Not a file validation tool.
After you run it you will likely have a valid filesystem - but no guarantee on all the files. If you have no backup, you probably have no option but to run it and hope.

Do you use this /home partition on all distros ?.
 
1 members found this post helpful.
Old 05-14-2014, 07:56 AM   #4
vienswuer
Member
 
Registered: May 2014
Posts: 40

Original Poster
Rep: Reputation: Disabled
Thanks for replying, so I assume you suggest making a back up "just in case" right? What I still cannot understand is in which way that e2fsck command could break my data, if I am not giving format to anything.
 
Old 05-14-2014, 08:03 AM   #5
vienswuer
Member
 
Registered: May 2014
Posts: 40

Original Poster
Rep: Reputation: Disabled
[QUOTE=syg00;5170470]fsck is a filesystem tool. Not a file validation tool.
After you run it you will likely have a valid filesystem - but no guarantee on all the files. If you have no backup, you probably have no option but to run it and hope.

Do you use this /home partition on all distros ?.[/QUOTE

Yes, I share /home between the three of them, with different users.
 
Old 05-14-2014, 10:54 AM   #6
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 3,145

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Quote:
Originally Posted by vienswuer View Post
What I still cannot understand is in which way that e2fsck command could break my data, if I am not giving format to anything.
e2fsck, especially if run with the fairly dangerous "-y" option, will do whatever it needs to do to make the filesystem structure consistent. That can include putting all of the files into the lost+found directory with the original names lost and replaced by numbers. Recovering from that can be virtually impossible.

Most errors would not provoke an action that drastic, but without knowing just what the "unexpected inconsistency" was, no one can say. Running e2fsck with the "-n" option to assess the damage can be useful. With the filesystem damaged, it's too late to do any sort of structured backup, but if your data is important you should save an exact image of the whole filesystem before attempting repair.
 
1 members found this post helpful.
Old 05-14-2014, 03:46 PM   #7
vienswuer
Member
 
Registered: May 2014
Posts: 40

Original Poster
Rep: Reputation: Disabled
The system (sda3=/home) is "damaged" for Sabayon, not for Manjaro nor for Antergos. That partition is working perfectly for those two distros, so I am not sure whether to perform an e2fsck check or not. I read http://aplawrence.com/Unixart/fear-of-fsck.html and now I am reeeeally afraid of screwing everything up. I was able to backup everything in /home, but as I previously stated, I am not sure if I want to take the risk of messing things up just because of Sabayon, when the other distros are still working out of the box. The HD is brand new, and so are my installed distros.
 
Old 05-14-2014, 03:51 PM   #8
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 3,145

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
It is certainly safe to run e2fsck with the "-n" option to see what it is complaining about but not let it try to fix anything.
 
1 members found this post helpful.
Old 05-14-2014, 04:05 PM   #9
vienswuer
Member
 
Registered: May 2014
Posts: 40

Original Poster
Rep: Reputation: Disabled
I was digging a little more on the reason why I am getting this error message, and I came across the answer: I badly switched off my system many times. I had to, firefox kept freezing and freezing for a whole week. Now it doesn't anymore. At the moment, I am considering installing a distro (to replace Sabayon) that won't care if I shut down improperly (like Manjaro and Antergos). I want a linux system similar to those two I mention that will just boot, for God's sake! haha. I am not asking for an impossible fact!
 
Old 05-14-2014, 04:06 PM   #10
vienswuer
Member
 
Registered: May 2014
Posts: 40

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rknichols View Post
It is certainly safe to run e2fsck with the "-n" option to see what it is complaining about but not let it try to fix anything.
Ok, I am going to try that in a couple of hours.
 
Old 05-14-2014, 08:59 PM   #11
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 3,145

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
You probably will need "-f" also, else fsck will just report that the filesystem appears to have been cleanly unmounted. Hopefully, you knew that.
 
1 members found this post helpful.
Old 05-16-2014, 02:02 PM   #12
vienswuer
Member
 
Registered: May 2014
Posts: 40

Original Poster
Rep: Reputation: Disabled
Thanks to all of you who showed some interest on my thread. Finally, I did an "e2fsck -f -n /dev/sda3" but wasn't really helpful since I didn't understand a thing So, I tried "e2fsck -fy /dev/sda3" Everything went just fine, after a minute or so I was booting Sabayon without any trouble as well as the other two distros. No data loss at all.

Just in case smbdy reads this, take a look at http://linux.101hacks.com/unix/e2fsck/ where all variables for e2fsck command are explained (-n -f -v -y etc...) I learned a lot from there.

Last edited by vienswuer; 05-16-2014 at 02:07 PM.
 
  


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
/dev/sda3: recovery journal ,/dev/sda3: clean,170684/516096,1197311/2061568 blocks parvaz_hj Linux - General 3 11-02-2013 07:44 PM
"unexpected inconsistency" (fsck) of the root file system failed artoebe Linux - Newbie 8 03-23-2013 12:40 AM
/dev/VolGroup01/u04: UNEXPECTED INCONSISTENCY Run fsck Manually juan_f_vidal Linux - General 4 06-09-2011 12:31 PM
Unexpected inconsistency, run fsck manually twangchuk Linux - Newbie 2 06-12-2009 10:51 AM
Error in partition. Unexpected Inconsistency, won't let me run fsck! mlsbraves Slackware 2 04-15-2005 10:03 PM


All times are GMT -5. The time now is 02:09 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration