Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

[solved]file system check forced every time I boot

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
11 posts • Page 1 of 1
Author
Message
dgulotta
Tux's lil' helper
Tux's lil' helper
Posts: 88
Joined: Mon Jan 09, 2006 10:18 pm

[solved]file system check forced every time I boot

  • Quote

Post by dgulotta » Mon Feb 04, 2013 2:53 pm

Recently, my system crashed and I had to boot from a CD in order to repair the filesystem. It appeared that the filesystem was successfully repaired, but since then I always get "/dev/sda2 contains a filesystem with errors, check forced" every time I boot. The check never finds anything wrong, and the system boots successfully. How can I convince my system that it doesn't need to run the check on every boot?
Last edited by dgulotta on Wed Feb 06, 2013 4:58 pm, edited 1 time in total.
Top
lexflex
Guru
Guru
Posts: 363
Joined: Sun Mar 05, 2006 6:09 pm
Location: the Netherlands

  • Quote

Post by lexflex » Mon Feb 04, 2013 4:01 pm

Did you change your /etc/fstab when repairing your system?
Depending on the values of the last two numbers in the line for /dev/sda2 a fscheck is forced on startup I think.
(If the last value is set to zero there is no automatic check on boot)

Alex.
Top
dgulotta
Tux's lil' helper
Tux's lil' helper
Posts: 88
Joined: Mon Jan 09, 2006 10:18 pm

  • Quote

Post by dgulotta » Mon Feb 04, 2013 4:16 pm

No, I didn't change /etc/fstab. Even if it checks the filesystem every time, it shouldn't be claiming there are errors every time. Anyway, the fstab entry is:

Code: Select all

/dev/sda2               /               ext3            noatime         0 1
Top
darkphader
Veteran
Veteran
User avatar
Posts: 1225
Joined: Thu May 09, 2002 11:24 pm
Location: Motown
Contact:
Contact darkphader
Website

  • Quote

Post by darkphader » Mon Feb 04, 2013 7:39 pm

Think you may need to do an offline fsck. Boot from a sysrescuecd and check the filesystem.
WYSIWYG - What You See Is What You Grep
Top
lexflex
Guru
Guru
Posts: 363
Joined: Sun Mar 05, 2006 6:09 pm
Location: the Netherlands

  • Quote

Post by lexflex » Mon Feb 04, 2013 9:04 pm

dgulotta wrote:Even if it checks the filesystem every time, it shouldn't be claiming there are errors every time.
Mm yeah, you are right.

Next to trying an offline scan as suggested, you might also try to use smartctl
Use

Code: Select all

smartctl -h
to see all option, it can give more information about the disk itself and includes some test (smartctl --test /dev/sda) to check if your disk is alright.
Top
dgulotta
Tux's lil' helper
Tux's lil' helper
Posts: 88
Joined: Mon Jan 09, 2006 10:18 pm

  • Quote

Post by dgulotta » Tue Feb 05, 2013 4:24 am

darkphader wrote:Think you may need to do an offline fsck. Boot from a sysrescuecd and check the filesystem.
I did that once already when I repaired the file system, but I suppose it won't hurt to try again.
Top
dgulotta
Tux's lil' helper
Tux's lil' helper
Posts: 88
Joined: Mon Jan 09, 2006 10:18 pm

  • Quote

Post by dgulotta » Wed Feb 06, 2013 3:10 pm

I ran fsck from a live cd, and it reported that the filesystem was clean. But when I boot from disk, I still get "/dev/sda2 contains a filesystem with errors, check forced".
Top
dgulotta
Tux's lil' helper
Tux's lil' helper
Posts: 88
Joined: Mon Jan 09, 2006 10:18 pm

  • Quote

Post by dgulotta » Wed Feb 06, 2013 4:38 pm

I tried mounting and then unmounting the filesystem from the livecd. fsck reports the filesystem as clean beforehand and as having errors afterward. The dmesg contains:

Code: Select all

EXT3-fs (sda2): warning: ext3_clear_journal_err: Filesystem error recorded from previous mount: IO failure
EXT3-fs (sda2): warning: ext3_clear_journal_err: Marking fs in need of filesystem check.
EXT3-fs (sda2): warning: mounting fs with errors, running e2fsck is recommended
So it appears that there is something weird going on with the journal that fsck doesn't detect, but mount does.
Top
darkphader
Veteran
Veteran
User avatar
Posts: 1225
Joined: Thu May 09, 2002 11:24 pm
Location: Motown
Contact:
Contact darkphader
Website

  • Quote

Post by darkphader » Wed Feb 06, 2013 4:54 pm

Maybe your drive is going bad. Have you run smartctl (from smartmontools) against it?
WYSIWYG - What You See Is What You Grep
Top
limn
l33t
l33t
Posts: 997
Joined: Fri May 13, 2005 8:08 pm

  • Quote

Post by limn » Wed Feb 06, 2013 4:55 pm

You might try removing the journal and adding it back.
Top
dgulotta
Tux's lil' helper
Tux's lil' helper
Posts: 88
Joined: Mon Jan 09, 2006 10:18 pm

  • Quote

Post by dgulotta » Wed Feb 06, 2013 4:58 pm

limn wrote:You might try removing the journal and adding it back.
That fixed the problem, thanks.
Top
Post Reply

11 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic