CentOs-6.4 boot error on power failure

Issues related to hardware problems
Post Reply
jaynarayan
Posts: 3
Joined: 2015/05/25 06:52:55

CentOs-6.4 boot error on power failure

Post by jaynarayan » 2015/05/25 07:40:41

Dear,

CentOS-6.4 is hanging on booting. This problem came after the power failure. I have been trying out diferent suggestions from online groups however no hope. Following is the error message while booting:

--------------
Eanabling local filesystem quotas
/etc/rc.d/rc.sysinint: line 602: /bin/find: Input/output error
/etc/rc.d/rc.sysinint: line 609 :/var/run/utmp: readonly file system
-
-
- there other lines with "readonly and Input/output error"
-
-
Enabling /etc/fstab swaps: /etc/inint.d/functinos: line 571 /sbin/swapon Input/output error
awk: cmd. line:1: fatal: error reading input files .....
-----------
Also I am getting a pop-up message on while opening terminal:
/dev/sda not readable

I have tried to boot with runlevel 1,
tried to run mkswap,
also tried to disable the fstab entry for swap partition
but I none worked.

I have also dual boot fedora and I am able to boot the fedora and also am able to mount all the LVM partition of my CentOS. I ran fsck for all the LVM except the swap and the volumes are fine.

Now I am clueless about the problem. Please suggest it is urgent. I am not willing to re-install.

Regards
Jaynarayan

jaynarayan
Posts: 3
Joined: 2015/05/25 06:52:55

Re: sda errors, is my hard drive about to die?

Post by jaynarayan » 2015/05/25 09:18:26

Dear all,

Me also facing same problem looks like.

Following is a warning message poping up on my terminal:
---
WARNING: Your hard drive is failing
Device: /dev/sda [SAT], 370 Offline uncorrectable sectors
---
Kindly suggest what to do?
Regards
Jay

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: CentOs-6.4 boot error on power failure

Post by avij » 2015/05/25 11:58:32

I moved your 2nd post from a different topic to this topic.

Your hard disk is failing, no doubt about it. Get a new one.

If you are unwilling to reinstall, you can try dd if=/dev/sda of=/dev/sdb bs=4096 conv=noerror,sync to copy the blocks that are working to the new one. In this example, sda is the input (broken) hard disk, sdb is the output (new) hard disk. Make sure you get the device names correct, otherwise disastrous data loss may occur. Obviously the new hard disk must be at least as big as the old one. Note that this process may take a very long time, depending on how broken the old hard disk is. After this is done, run fsck on the new hard disk and hope for the best. Note also that this process may lead to missing/corrupt data. For mission critical stuff, restoring from backups might be wisest.

jaynarayan
Posts: 3
Joined: 2015/05/25 06:52:55

Re: CentOs-6.4 boot error on power failure

Post by jaynarayan » 2015/05/30 04:46:06

The error was due to hard disk failure due to a few blocks in /dev/sda1.

Post Reply