Bash /bin/su Input/output Error
Contents |
LINUX HOWTO | 2 Replies More Bad Disk This article I am trying to explain how to deal
Bash Sbin Reboot Input Output Error
with " Input/output error " when you initiate any commands in Linux. linux input output error I have pointed some examples that reports similar error. # du -bash: /usr/bin/du: Input/output error #mkdir sampledir mkdir: cannot input/output error kali linux create directory `sampledir': Input/output error Input/output error while running the command mostly due to two reason. Either it could be bad blocks on the disk or someone hacked your machine.
-bash: /root/.bash_profile: Input/output Error
In this situation first suggestion would be to check /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
Bashrc Input/output Error
you can take the advantage of that. Next immediate action would be take 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 LinuxHow To Backup LVM Configuration On Linux (vgcfgbac
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 centos input/output error Stack Overflow the company Business Learn more about hiring developers or posting ads with us
.bashrc Input/output Error
Super User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts reading directory input output error linux and power users. 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 ubuntu http://linoxide.com/how-tos/inputoutput-error-bad-blocks-how-to-restart-linux/ input/output error up vote 5 down vote favorite 2 I'm having a problem with Ubuntu that I'm finding hard to troubleshoot for reasons that will become clear: reboot -bash: /sbin/reboot: Input/output error dmesg -bash: /bin/dmesg: Input/output error ps -e ps: error while loading shared libraries: /lib/libproc-3.2.8.so: cannot read file data: Input/output error lsof -bash: /usr/bin/lsof: Input/output error fsck -bash: /sbin/fsck: Input/output error badblocks -bash: /sbin/badblocks: Input/output error So I can't see http://superuser.com/questions/225788/ubuntu-input-output-error what is going on, and I can't remotely reboot. What can I do to get to the bottom of this? Interestingly: init 0 Segmentation fault I can cat /var/syslog but not /var/log/messages or several other important files. less and more don't work, neither do tail or head, etc. linux ubuntu share|improve this question edited Dec 26 '10 at 7:52 asked Dec 26 '10 at 7:23 rplevy 147116 1 Sounds pretty similar to what you get after running sudo rm -rf /. (I did it on purpose, just to see what actually happens.) –AJMansfield Sep 12 '13 at 19:27 add a comment| 1 Answer 1 active oldest votes up vote 6 down vote accepted The system is having severe trouble reading off of your hard disk. It's likely that the disk is dead (almost certain), but it could be something as simple as a loose/disconnected cable (don't count on it). There isn't anything you can do to troubleshoot it from here. Just power it off. Check for loose connections on your hard disk. If everything is fine there boot from a rescue disk and run fsck or badblocks from there. I hope you have a back up. share|improve this answer answered Dec 26 '10 at 8:29 bahamat 4,17011323 1 The weird th
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 http://askubuntu.com/questions/181972/what-does-intermittent-input-output-error-suggest 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 http://unix.stackexchange.com/questions/124437/reboot-when-there-is-a-hardware-failure-without-physical-access-to-machine 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 output error 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 input output error 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 97021831 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 "Disk utility", it will tell you more about the "health" of your hard drive. –Cumulus007 Aug 29 '12 at 21:44 add a comment| 1 Answer 1 active oldest votes up vote 3 down vote Backup your data NOW. Then investigate further, or just head to a computer store to get a new hard drive :) share|improve this answer answered Aug 29 '12 at 21:40 Sergey 29.6k47385 OK I wi
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 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 how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Reboot when there is a hardware failure without physical access to machine? up vote 3 down vote favorite I'm getting this error message whathever I do: $ sudo reboot bash: /usr/bin/sudo: Input/output error $ reboot bash: /sbin/reboot: Input/output error It's a hardware failure according to this question. Is there anyway that I can reboot the machine without physically pull the the plug. The machine is not close to me. I can SSH into the machine. ls, pwd, echo, cat and some other apps are working. Things like ps, vim and killall are not working. linux command-line reboot share|improve this question edited Apr 12 '14 at 23:45 Gilles 369k666681119 asked Apr 12 '14 at 19:55 Mohsen 5772722 What commands can you use? Can you become root? All solutions will require root access so if you can't run sudo, can you at least su? Can you run shutdown? How about init? –terdon♦ Apr 12 '14 at 20:04 No, I can't be root. I didn't set Ubuntu's root password! :( –Mohsen Apr 12 '14 at 20:12 @Mohsen Setting a root password would not make any difference. You'd have to run su instead of sudo, but you'd run into the same problem. If you have no way to gain root access, you cannot reboot. –Gilles Apr 12 '14 at 23:45 add a comment| 1 Answer 1 active oldest votes up vote 4 down vote If you have root access, you can try to do this: # echo b > /proc/sysrq-trigger (that will immediately reboot the system