Input Output Error Centos
Contents |
LINUX HOWTO | 2 Replies More Bad Disk This article I am trying to explain how to deal with " Input/output error linux bash: input/output error " when you initiate any commands in Linux. I have pointed some examples
Mkdir Cannot Create Directory Input Output Error
that reports similar error. # du -bash: /usr/bin/du: Input/output error #mkdir sampledir mkdir: cannot create directory `sampledir': Input/output error Input/output
Reading Directory Input Output Error Linux
error while running the command mostly due to two reason. Either it could be bad blocks on the disk or someone hacked your machine. In this situation first suggestion would be to check
Input/output Error Ubuntu
/var/log/messages for any disk related alerts (might see some sense key alerts). tail -n 100 /var/log/messages tail -f /var/log/messages If you notice any disk issues , try any disk utility to confirm this. One option would be use smarttools. You can check smartool option to fix bad blocks. If you already installed it you can take the advantage of that. Next immediate action would be take input/output error kali linux backup of your system. Good if you already have it :-). If you have good backup its safe to reboot.If your system was hacked there are chances they might messed up your file and system would not work after reboot. You can also try fsck but it really dont fix most time if it bad block issue. Fsck can fix only if it related to any filesystem related issues. Usually fsck will fail in between as when it try to read the file at bad block. Now if try to reboot , it can also give the same output. You can try init 6. # reboot bash: /sbin/reboot: Input/output error # shutdown -r now bash: /sbin/shutdown: Input/output error If the above reboot commands doesnot work try either forced reboot or shutdown . Forced Reboot echo 1 > /proc/sys/kernel/sysrq echo b > /proc/sysrq-trigger Forced Shutdown echo 1 > /proc/sys/kernel/sysrq echo o > /proc/sysrq-trigger You might also likeHow To Fix / Repair Bad Blocks In LinuxLinux Hdparm Command: Display Hard Disk Model and Serial NumberFew Tips Check Hard Disk Error and Health using smartctl6 Examples To Get Linux Hardware Details / InformationError: modprobe: Can't locate module block-major-227 Exampl
Wiki Search Tutorials/Articles Search HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie Input/output error User -bash: /root/.bash_profile: input/output error Name Remember Me? Password Linux - Newbie This Linux forum is for members input/output error nfs that are new to Linux. Just starting out and have a question? If it is not in the man .bashrc input/output error pages or the how-to's this is the place! Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing LQ as a guest. By joining our community you http://linoxide.com/how-tos/inputoutput-error-bad-blocks-how-to-restart-linux/ will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the following links: Site Howto | Site http://www.linuxquestions.org/questions/linux-newbie-8/input-output-error-222152/ FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here. Having a problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free. Search this Thread 08-25-2004, 06:19 AM #1 rob19 Member Registered: Mar 2003 Location: New Zealand Distribut
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with http://unix.stackexchange.com/questions/86363/bash-usr-sbin-useradd-input-output-error-what-does-this-mean us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's http://askubuntu.com/questions/181972/what-does-intermittent-input-output-error-suggest how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top -bash: /usr/sbin/useradd: Input/output error — What does this mean? up vote 2 down vote favorite 1 Today, on my Centos server output error I tried to add a user but got the following error: -bash: /usr/sbin/useradd: Input/output error How do I fix it? io storage share|improve this question edited Apr 27 at 15:43 Anthon 47.5k1462125 asked Aug 11 '13 at 19:52 DextrousDave 1941414 add a comment| 1 Answer 1 active oldest votes up vote 8 down vote accepted “Input/output error” indicates something that shouldn't happen somewhere in the input/output stack. The intended meaning is a hardware failure: your hard disk is failing. Often this error turns up in cases where input output error the problem is a software bug or a misuse of a special-purpose filesystem. But here, you're reading from a system directory, so a hardware failure is the most likely explanation. RAM also tends to fail, so when you see an inexplicable error, do test your RAM. share|improve this answer answered Aug 11 '13 at 19:56 Gilles 372k696751127 OK I see...What I maybe forgot to mention is that the Server is a VPS... So I guess a restart might fix it? –DextrousDave Aug 12 '13 at 4:03 @DextrousDave A restart might make the symptom go away, but it can't fix the problem. On a VPS, there's also a chance of a bug in the virtualization layer. Investigate a little more (for example, is this fully deterministic?) and contact your hosting provider's support. –Gilles Aug 12 '13 at 7:35 I contacted my Service Provider and they restarted the server from their end. The problem is now resolved, they also cannot give me a definitive answer, so I will have to monitor the OS closely. Thanks for the help –DextrousDave Aug 16 '13 at 9:43 how to test RAM? –Jim Thio Oct 5 '13 at 2:35 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of s
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top What does intermittent “Input/output error” suggest? up vote 3 down vote favorite Lately my Ubuntu 12 system has started acting very strange. Sometimes the computer freezes and then unfreezes 2 minutes later, and other times when I try a basic command like less I get the error bash: /usr/bin/less: Input/output error. But this is intermittent too. Any suggestions? Also if I try sudo reboot and enter my password, I get sudo: unable to open /var/lib/sudo/plato/7: Read-only file system Before I used to be able to do sudo reboot fine. If I tail /var/log/syslog I do see these curious lines: .... ata1: softreset failed (device not ready) .... ata1: hard resettting link .... ata1: link is slow to respond, please be patient (ready=0) What can I do to fix this? 12.04 share|improve this question edited Aug 29 '12 at 21:38 asked Aug 29 '12 at 21:31 dan 97521831 I suggest you have a look at /var/log/syslog, and I have a hunch you'll see a lot of disk-related errors. Input/output error indicates that the system is having trouble reading or writing information, and this is most likely due to damaged storage devices. –roadmr Aug 29 '12 at 21:36 2 Go to "D