Author

Topic: Need help with centOS repair (Read 516 times)

legendary
Activity: 1050
Merit: 1000
May 30, 2014, 09:13:54 AM
#6
ok, thanks everyone for being helpful. turned out i messed up all major libraries like glibc and libstdc++ but luckily the script i used did some backups so i was able to fix it. you can all visit my dice sites to grab some free satoshi tips Wink
hero member
Activity: 576
Merit: 514
May 30, 2014, 08:17:47 AM
#5
Paste the error messages you are seeing if you boot normally

Without any information, it's just guessing.

When you boot into single user, you can look into /var/log/messages or dmesg to see what's going on.

Also, what did you do? A normal yum update should not break anything like that
legendary
Activity: 4494
Merit: 3178
Vile Vixen and Miss Bitcointalk 2021-2023
May 30, 2014, 07:24:45 AM
#4
I read I can repair system files with fsck but don't know how.
You read wrong. fsck is for repairing filesystems, not system files, and thus will not help you. If you insist on running it anyway, the correct invocation is:
Code:
fsck /
since VPS users aren't (or at least, shouldn't be!) able to access raw partitions.

It won't help, though, since it's extremely unlikely your problem is due to a corrupt filesystem. More likely, the upgraded libraries simply don't work. What you really need to do is determine which libraries are broken and why (error messages are very helpful here). You may be able to fix the issue by downgrading to an older version of the libraries in question. That's all I can suggest without knowing what the problem specifically is.
sr. member
Activity: 457
Merit: 251
May 30, 2014, 06:19:30 AM
#3
What is exactly your problem?

You can't boot normally, but boot in rescue mode..
Okay, but that doesn't mean that your files are corupt.

So I think a fsck is unnecessary.
legendary
Activity: 1050
Merit: 1000
May 30, 2014, 05:35:21 AM
#2
Try

fsck -yvf /dev/sda1

Should solve your issues

i am getting:

#fsck -yvf /dev/sda1

fsck from util-linux 2.20.1
e2fsck 1.42.5 (29-Jul-2012)
fsck.ext2: No such file or directory while trying to open /dev/sda1
Possibly non-existent device?
legendary
Activity: 1050
Merit: 1000
May 30, 2014, 05:02:54 AM
#1
Hello

My VPS crashed after updating some libraries and I need help repairing the files. I am able to boot as root in rescue mode but I am not an experienced user. I am offering a small bounty of 0.01 for help restoring my centOS. I read I can repair system files with fsck but don't know how. Any help would be much appreciated. Thank you
Jump to: