Debian Shutdown 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 sbin shutdown input output error Linux. I have pointed some examples that reports similar error. # du -bash: /usr/bin/du: bash input output error Input/output error #mkdir sampledir mkdir: cannot create directory `sampledir': Input/output error Input/output error while running the command mostly due to two reason.
Input Output Error Linux
Either it could 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
Linux Input Output Error Deleting File
-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 backup of your system. Good if you already have it :-). If you have good backup its safe to reboot.If ls input output error linux 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 (vgcfgbackup & vgcfgrestore)Linux Crontab: How To Configure Cron With Best Examples?How 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 Use Linux Grep Command To Find StringsHow To Create / Remove S
not working (/sbin/reboot: Input/output error) - Reboot Linux in emergency using MagicSysRQ kernel sysctl variable I've been in a situation today, where one Linux server's hard drive SCSI driver or the physical drive
Cp Input Output Error Linux
is starting to break off where in dmesg kernel log, I can see a linux mount input output error lot of errors like: [178071.998440] sd 0:0:0:0: [sda] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK,SUGGEST_OK [178071.998440] end_request: I/O error, dev sda, sector 89615868 I tried a linux bash input/output error number of things to remount the hdd which was throwing out errors in read only mode, but almost all commands I typed on the server were either shown as missng or returning an error: Input/output error Just http://linoxide.com/how-tos/inputoutput-error-bad-blocks-how-to-restart-linux/ ot give you an idea what I mean, here is a paste from the shell: linux-server:/# vim /etc/fstab
-bash: vim: command not found
linux-server:/# vi /etc/fstab
-bash: vi: command not found
linux-server:/# mcedit /etc/fstab
-bash: /usr/bin/mcedit: Input/output error
linux-server:/# fdisk -l
-bash: /sbin/fdisk: Input/output error After I've tried all kind of things to try to diagnose the server and all seemed failing, I thought next a http://www.pc-freak.net/blog/how-to-reboot-remotely-linux-server-if-reboot-shutdown-and-init-commands-are-not-working-sbinreboot-inputoutput-error-reboot-linux-in-emergency-using-magicsysrq-kernel-sysctl-variable/ reboot might help as on server boot the filesystems will get checked with fsck and fsck might be able to fix (at least temporary) the mess. I went on and tried to restart the system, and guess what? I got: /sbin/reboot init Input/output error I hoped that at least /sbin/shutdown or /sbin/init commands might work out and since I couldn't use the reboot command I tried this two as well just to get once again: linux-server:/# shutdown -r now
bash: /sbin/shutdown: Input/output error
linux-server:/# init 6
bash: /sbin/init: Input/output error You see now the situation was not pinky, it seemed there was no way to reboot the system … Moreover the server is located in remote Data Center and I the tech support there is conducting assigned task with the speed of a turtle. The server had no remote reboot, web front end or anything and thefore I needed desperately a way to be able to restart the machine. A bit of research on the issue has led me to other people who experienced the /sbin/reboot init Input/output error error mostly caused by servers with failing hard drives as well as due to HDD control driver bugs in the Linux kernel. As I was looking for another alternative way to reboot my Linux m
reboot bash: /sbin/reboot: Input/output error $ shutdown -r now bash: /sbin/shutdown: Input/output error 记得之前在sina的时候测试机也出现过类似的问题,当时是直接给运维同事电话重启了。。。 If the above reboot commands http://iallex.com/inputoutput-error-bad-blocks-how-to-restart-linux/ 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 see also for details Save To: Delicious Facebook Twitter Weibo WebIM QZone This entry was posted in linux and tagged centos on output error Aug 23rd, 2013 by Allex Wang. Post navigation ← osx (mac) 下面在 /home/新建目录或ln -sf 目录问题 libpcre.so.1: cannont open shared object file: No such file or directory. → Recent Posts Git Basics: branch cleanup Bash array tutorial Nodejs memory leak detector Add cron jobs to delete logs periodically Avoid Getting Redirected to Country-Specific Versions input output error of Google VIM skills Git get back some commit from (no branch) Fix nginx ssi unsafe URI was detected error GitLab Installation on CentOS with nginx integration Running compass watch in the background Tagsandroid apache bash centos chrome compass cron DBA f2e git grub howto html5 issues javascript linux maven mobile mysql nginx nodejs offline optimization osx performance php project proxy readhat rpm sass server-security shell snippet ssh svn sysadmin tips tricks ubuntu vbox vim vps www yum Categories develop android java javascript mysql nodejs php web english howto linux osx programming server technical video vim virtualization Latest DeliciousData Loading, please wait... Hi, I'm Allex. since 2011, by Allex Wang Except where otherwise noted, content on this page is licensed under the Creative Commons Attribution 3.0 License, and code samples are licensed under the Apache 2.0 License. Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer’s view in any way.