Results 1 to 3 of 3
Thread: Input/output error
-
06-12-2003, 08:12 AM #1Web Hosting Evangelist
- Join Date
- Jun 2001
- Posts
- 480
Input/output error
Hi
Guys. I got an odd issue here. My server seems to crash every couple of days. Now, it has just crashed again. I still managed to ssh into the server which i normally dont. But i noticed just about all command doesnt work, including trying to reboot the server. I check out the /bin directory. I see following error. I think once I do a power cycle. Everything would be back to normal. Does anyone has any idea whats the issue?
[root@cp bin]# ls
ls: dnsdomainname: Input/output error
ls: ping: Input/output error
ls: mail: Input/output error
ls: mt: Input/output error
ls: nisdomainname: Input/output error
ls: domainname: Input/output error
ls: netstat: Input/output error
ls: cpio: Input/output error
ls: ypdomainname: Input/output error
ls: setserial: Input/output error
ls: bash2: Input/output error
ls: ed: Input/output error
ls: red: Input/output error
ls: cp: Input/output error
ls: ln: Input/output error
ls: mkdir: Input/output error
ls: mknod: Input/output error
ls: rmdir: Input/output error
-
06-12-2003, 09:43 AM #2Junior Guru Wannabe
- Join Date
- Sep 2000
- Location
- Maine
- Posts
- 33
Sounds like you have a corrupt file system. You could try to run e2fsck.
[root@cp bin]# init 1 (this will drop your system into single user mode.)
[root@cp bin]# mount -o remount,ro / (this will un mount root, making it read only.)
[root@cp bin]# e2fsck -c / (this will check your system and look for bad blocks)
[root@cp bin]# mount -o remount,rw / (this will remount / and make it read/wrtite again)
[root@cp bin]# init 2 (this will take you back to multi user mode)
Note, I have not tested this but it should work on a linux system.Knowledge is Pure.
-
06-12-2003, 12:03 PM #3Web Hosting Master
- Join Date
- Apr 2003
- Location
- UK
- Posts
- 2,569
tip: dont try and do this remotely !
although i dont have the exact syntax, theres either a mount flag you can put in the mtab/fstab, or you can edit something on the disk to make your machine run an fsck on bootup (you bring the number of days between individual fsck's down) and then reboot