Bash /usr/bin/who Input/output Error
Contents |
LINUX HOWTO | 2 Replies More Bad Disk This article I am trying to explain how to deal with " Input/output error " when you initiate any commands in Linux. I
Bash Usr Bin Git
have pointed some examples that reports similar error. # du -bash: /usr/bin/du: Input/output error usr bin bash bad interpreter no such file or directory #mkdir sampledir mkdir: cannot create directory `sampledir': Input/output error Input/output error while running the command mostly due to two reason. Either it could
Linux Input Output Error
be bad blocks on the disk or someone hacked your machine. 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 input/output error kali linux -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 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 -bash: /root/.bash_profile: input/output error 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 (vgcfgbackup & vgcfgrestore)Linux Crontab : How To Configure Cron With Best ExamplesHow To List Linux Pci Devices Using lspci CommandSet Date And Time In Linux And Sync With Hardware (CMOS)Linux Hdparm Command: Display Hard Disk Model and Serial NumberLinux: Manage Spaces And Special Characters In File NameUnderstand Linux Su Command Function With ExampleHow To Create / Remove Swap Partition In LinuxHow To Use Linux Grep Command To Find Strings Tags: bad block linux, bad blocks linux Category: H
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
Bashrc Input/output Error
posting ads with us Super User Questions Tags Users Badges Unanswered Ask Question _ Super User .bashrc input/output error is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute: Sign up Here's how it works:
Reading Directory Input Output Error Linux
Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top ubuntu input/output error up vote 5 down vote favorite 2 I'm having a problem with Ubuntu that I'm finding hard to troubleshoot http://linoxide.com/how-tos/inputoutput-error-bad-blocks-how-to-restart-linux/ 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 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 http://superuser.com/questions/225788/ubuntu-input-output-error 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 thing though is that when I was able to physically reboot the machine and did so, it came back on seemingly with no problems. I still have not found any problems, though I am taking this as a warning sign that the disk is not reliable and could go at some point. I do keep my all my important files in at least
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 http://unix.stackexchange.com/questions/124437/reboot-when-there-is-a-hardware-failure-without-physical-access-to-machine 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 output error 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, input output error 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 without syncing or unmounting your disks.) Unfortunately, I do not think there is a way to reboot without root privileges. share|improve this answer answered Apr 12 '14 at 20:07 dnt 1114 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign