LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 07-21-2011, 09:53 AM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 489

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:	431
Size:	66.3 KB
ID:	7629  
 
Old 07-21-2011, 10:06 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
You have to install the packages e4fsprogs:
Code:
# yum info e4fsprogs
<omitted>
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        : http://e2fsprogs.sourceforge.net/
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, 10:16 AM   #3
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

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


Quote:
DESCRIPTION
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, 07:40 PM   #4
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 106Reputation: 106
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:28 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
Open Source Consulting | Domain Registration