CentOs disk repair

Posted on 2013-11-17
Last Modified: 2013-12-02
My CentOS server was acting odd so I rebooted it.  During the boot it said

contains a file system with errors.  Check forced.  Then is says an error occurred during the file system check.  Dropping to a shell:  Give the root password for maintenance.

After putting in my root password I typed ‘fsck -a’ and hit enter.  A few lines cam up saying ‘Inode XXXXXXX was part of the orphaned in ode list. FIXED..  It seems to be running still.. Do I let it run and eventually it will ask me to reboot?

What do I do next?
Question by:gopher_49
LVL 19

Accepted Solution

bevhost earned 500 total points
ID: 39655658
Yes, let it finish running.  It may complete ok, it may find problems that need you to do something.  Depending on the size of the disk / number of files etc it may take a while.

Author Comment

ID: 39655666
It finished and everything seems okay... I went ahead and restored my VM files to a temp drive.. And.. Got a few app level backups ready just in case something bad happens.  I have the VM on an iSCSI volume to the datacenter let me use temporarily.  I'm wondering if their iSCSI taget has issues for I've been running this VM for 2 years and never had an issue until moved it to their iSCSI target.  I'll keep an eye on it and update the ticket tomorrow.
LVL 62

Expert Comment

ID: 39656396
You can always have log for iscsi volume on better volume if in doubt about iscsi's quality. Then it will be log replay and no lengthy fsck in case network disappears.
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.


Expert Comment

ID: 39658430
When ctrl+ D option show enter root password if it's not taking password then insert bootable cd of your os..and go to rescue mode...


You can troubleshoot it in SINGLE USER MODE ...when you login in single user mode then
Go to
#vi /etc/fstab

Go to / line & change 0 0 last number in this line... {it show you like- 1 2 or 2 1 or 2 2 then change it to 0 0}
(change all mounting device )
save the file and restart your system..

Author Comment

ID: 39689083
I don't think it finished last time it ran.. I rebooted thinking it was hanging.  What are the correct steps to run 'fsck -a' and/or the process to detect and repair.  Don't I have to unmount the disk first?  I have a feeling if I reboot the server it will do what it did in the past...  This being to run 'fsck -a'..  But.. How do I manually run it?
LVL 62

Expert Comment

ID: 39689238
You add boot parameter "single" near the end of kernel line

Usually you get to boot parameter editor by pressing up/dpwn when it tries to boot even if you have timeout 0
Then automatic fsck processes / filesystem and you an manually check the rest...

Author Comment

ID: 39690214
So.. I press up/down during the boot process.  Then...  What's the next step?

Author Comment

ID: 39690417
Please see attached screenshot.  Is this normal?  Do I just wait?

Author Comment

ID: 39690471
nevermind.. I ran it with the -y switch and everything is good now.  I just had to wait longer.

Author Closing Comment

ID: 39690777
The -y switch is the one to use.. Just be patient and let it finish.

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
linux redhat 7.2 10 90
error log using ftp 7 56
PHP error function not working on AWS 10 76
HOw To Install Docker on VMware Workstation 19 187
This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension ( This reminded me of questions tha…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question