Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 07-21-2011, 10:53 AM   #1
Registered: Nov 2008
Posts: 486

Rep: Reputation: 36
How to fsck ext4?

How to fsck ext4?

As you can see at photo, I got "fsck.ext4 not found".
My box is centos 5.6 x64 and could not boot for fsck error message.

Any helpful comment would much appreciated.

Thanks in advance.
Attached Thumbnails
Click image for larger version

Name:	20110721_fsck.jpg
Views:	255
Size:	66.3 KB
ID:	7629  
Old 07-21-2011, 11:06 AM   #2
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
You have to install the packages e4fsprogs:
# yum info e4fsprogs
Name       : e4fsprogs
Arch       : x86_64
Version    : 1.41.12
Release    : 2.el5
Size       : 1.1 M
Repo       : base
Summary    : Utilities for managing the fourth extended (ext4) filesystem
URL        :
License    : GPLv2
Description: The e4fsprogs package contains a number of utilities for creating,
           : checking, modifying, and correcting any inconsistencies in the
           : fourth extended (ext4) filesystem. E4fsprogs contains
           : e4fsck (used to repair filesystem inconsistencies after an unclean
           : shutdown), mke4fs (used to initialize a partition to contain an
           : empty ext4 filesystem), debugfs (used to examine the internal
           : structure of a filesystem, to manually repair a corrupted
           : filesystem, or to create test cases for e4fsck), tune4fs (used to
           : modify filesystem parameters), and most of the other core ext4fs
           : filesystem utilities.
           : Please note that "e4fsprogs" simply contains renamed static binaries
           : from the equivalent upstream e2fsprogs release; it is packaged this
           : way for Red Hat Enterprise Linux 5 to ensure that the many changes
           : included for ext4 do not destabilize the core e2fsprogs in RHEL5.
           : You should install the e4fsprogs package if you need to manage the
           : performance of an ext4 filesystem.
Old 07-21-2011, 11:16 AM   #3
Senior Member
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
You also shouldn't run the check on a mounted filesystem:

e2fsck is used to check the ext2/ext3/ext4 family of file systems. For ext3 and ext4 filesystems that use a journal, if the
system has been shut down uncleanly without any errors, normally, after replaying the committed transactions in the journal,
the file system should be marked as clean. Hence, for filesystems that use journalling, e2fsck will normally replay the jour-
nal and exit, unless its superblock indicates that further checking is required.

device is the device file where the filesystem is stored (e.g. /dev/hdc1).

Note that in general it is not safe to run e2fsck on mounted filesystems. The only exception is if the -n option is specified,
and -c, -l, or -L options are not specified. However, even if it is safe to do so, the results printed by e2fsck are not valid
if the filesystem is mounted. If e2fsck asks whether or not you should check a filesystem which is mounted, the only correct
answer is ``no''. Only experts who really know what they are doing should consider answering this question in any other way.
Old 07-26-2011, 08:40 PM   #4
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 103Reputation: 103
Check out the man pages for tune2fs. It can set the frequency of fsck durring boot. The other option is to unmount then run.

tune2fs -c 5 /dev/sda1 ---> run every 5 boots.

Hope this helps.


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
Corrupted Volume: fsck shows thousands of group descriptor errors on ext4 volume. abejarano Linux - General 2 04-21-2011 07:49 AM
fsck shows thousands of group descriptor errors on ext4 volume. abejarano Linux - General 0 04-21-2011 02:42 AM
ext4 needs a fsck every other boot con Linux - Hardware 4 08-21-2009 03:29 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:29 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration