0

Today, on my Centos server I tried to add a user but got the following error:

-bash: /usr/sbin/useradd: Input/output error

How do i fix it?

Thanks

UPDATE:

var/log/messages is blank

df -h also gives me a the same input/output error:

-bash: /usr/sbin/df: Input/output error

'free' also gives me the same error:

-bash: /usr/sbin/free: Input/output error

Also, I cannot even shutdown the server ie: shutdown -s, gives me the same error.

Any ideas what might be the issue?

DextrousDave
  • 315
  • 2
  • 3
  • 13

1 Answers1

1

Sorry to agree with Larsks, but FS Corruption seems the most likely culprit. I've seen this a couple of times, and its been disk corruption each time.

If you are able:

touch forcefsck
then to reboot, either
init 6

OR

echo 1 > /proc/sys/kernel/sysrq

Although avoid the "echo..." because its more akin to hitting the reset button! Good luck

GeoSword
  • 1,647
  • 12
  • 16
  • Thank you GeoSword, but I contacted my ISP to restart the server from their end since I could not restart it remotely...After the restart, the server is fine now again. But thanks for the tip... – DextrousDave Aug 16 '13 at 09:37