LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-15-2012, 12:47 AM   #1
kitek
Member
 
Registered: Apr 2005
Posts: 252

Rep: Reputation: 15
how to run fsck on CentOS 6.2


I am needing to do hard drive maint on my system. It is a raid 5 with 5 drives. I know you have to unmount the file system before you do this. But how do you boot up run it when the file system is unmounted?
 
Old 10-15-2012, 09:50 AM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
The easiest way is to create an empty file named "forcefsck" in the root directory. Just run "touch /forcefsck" as root. Then reboot, and all file systems will be checked except for those flagged as not to be checked in /etc/fstab ("0" in the 6th field).

If you don't want to check everything, an alternative is to boot into "emergency mode," in which the normal root partition is mounted read-only, and therefore checkable, and nothing else is mounted. Instructions for booting in emergency mode can be found at https://access.redhat.com/knowledge/...emergency.html. (That's for RHEL 5, but RHEL 6 is the same in that regard.)
 
  


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
How does one run fsck? jim_d Linux - Newbie 4 05-14-2012 08:44 PM
How to run fsck during a shutdown sequence, or how to run one-time init scripts? bgoodr Debian 5 11-28-2010 03:08 PM
fsck run? Decepticon22 Linux - Desktop 3 06-18-2010 12:28 PM
computer asks me to run a FSCK Manually, but won't : says can't run on mounted lightwave Linux - Newbie 12 04-02-2008 12:25 AM
How run fsck? lectraplayer Linux - Newbie 1 10-05-2003 08:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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