LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-02-2007, 02:02 AM   #1
shirishag75
LQ Newbie
 
Registered: Jun 2005
Posts: 18

Rep: Reputation: 0
Unhappy fsck dies with error code 1


Hi all,
I have been trying to find some mailing list where fsck is discussed. I browsed through http://lists.debian.org/completeindex.html as well as http://lists.gnu.org/mailman/listinfo/ but couldn't find anything. Even looked up the wiki at ubuntu.com but unable to find any relevant thread on this. I'm much of a newbie when it comes to using fsck or any of the e2fsprogs. I also searched for documentation on debian as well with google with 'fsck howto' but there isn't any formative guide to this. Atleast I haven't been able to find

Kernel used : 2.6.15-generic
filesystem used :- ext3
HDD :- 80 GB IDE Samsung 4500 rpm
OS :- Ubuntu Feisty 7.04

I have 2 partitions a / & /home (both are primary partitions) , after checking the file-system every time it says fsck died with error status 1. This is fsck 1.49 version. I wouldn't want my filesytem to fail at any point in time. Don't know whether its a bug or is my system has some issue which needs to be fixed?

Now I heard that one could use the live CD to boot & then fix it. But no clear idea how to move forward on that. I tried looking at the man page & frankly they are too technical for me. I know that the info. provided is very much incomplete but if you can guide me through the process or can point me to some resource where I can get some more info. on the same would be very much appreciative.

this is the message thrown out by fsck and fsck exited with error status 1 afaik this means fs errors fixed.but why does it shows 49710 days ?


please ensure baby steps if you do give me directions as I'm new to this world. Something like :-

<command> - flags (if any)
the kind of output that should be or logic behind it.

This would enable me to understand what I am doing and give as much complete information as I can in order to resolve this issue. Looking forward to comments, suggestions, flames on this.
Keep up the good work. Cheers!

Last edited by shirishag75; 05-02-2007 at 02:05 AM.
 
Old 05-02-2007, 08:06 AM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
I can atleast explain the 49710 days thing to some degree..
The filesystems store a counter somewhere, somehow, which keeps track of how long it has been since a given filesystem was checked for errors. Now, let's say you have a bad shutdown or some such thing, and then reboot; when the time comes during boot, the system will begin to fsck the filesystem before it mounts it. fsck is done when the filesystem is not mounted. When it finishes checking/fixing the filesystem, the system wants to save the new counter setting, as well as perhaps the system time to the hardware-clock, before rebooting. But it can't, because as mentioned, the filesystem is not mounted. SO, we now have a fresh clean filesystem, but the counter wasn't reset and saved. On reboot, the system sees that the filesystem has apparently gone 49710 days since being checked, and checks it again; finding no errors, it then mounts the filesystem read-write and the system progresses as normal. Now, when the machine shuts down, the counter has been updated properly, and the system-time gets saved properly, and no problems happen.
I guess the maximum time that a system can possibly keep track of as far as filesystem-checks, is 49710 days, which is what gets reported by default if the filesystem has been cleaned and has no counter entry at all.
As for why fsck is exiting with an error-1, I don't know.. But running fsck -v might give some more information. the -v is for 'verbose' which makes fsck more talkative, hopefully giving you more information.
I use an older version of fsck than you do, so I can't say update your version... Perhaps googling 'linux fsck error 1' would provide more information?
 
Old 05-02-2007, 08:15 AM   #3
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
http://www.go2linux.org/node/108

UPDATE: According to this link and several others, when fsck exits with an error 1, it means filesystem errors were corrected. In other words, if this is the case, it's nothing to worry about.
However, if you are constantly needing to fsck on many reboots, something else is in need of attention.
 
Old 05-02-2007, 08:54 AM   #4
shirishag75
LQ Newbie
 
Registered: Jun 2005
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by GrapefruiTgirl
http://www.go2linux.org/node/108

UPDATE: According to this link and several others, when fsck exits with an error 1, it means filesystem errors were corrected. In other words, if this is the case, it's nothing to worry about.
However, if you are constantly needing to fsck on many reboots, something else is in need of attention.
Thank you for your kind words & guidance GrapefruiTgirl , while I also gathered l8ter on that error 1 means file system errors were corrected it doesn't still explain why does it die each time. This happens each time when I make sure that fsck runs on next boot. Looking forward to comments, suggestions, additions to this.
 
  


Reply

Tags
fsckerror


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
fsck fails. Code: Bad EIP value. Segmentation fault. MOHCTP Debian 4 09-07-2005 08:35 PM
kppp dies - exit code 10 joshy Mandriva 26 08-24-2004 03:36 PM
pppd dies once and a while error 16 heinola Slackware 1 08-24-2004 12:21 PM
pppd dies with error code 10 shinkou Linux - Networking 1 05-27-2004 08:05 AM
PPPD Daemon dies error code 16 Kirmonkey Linux - Hardware 2 02-04-2004 05:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:41 PM.

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