Linux Shutdown Command 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 have pointed some examples that
Linux Bash Input/output Error
reports similar error. # du -bash: /usr/bin/du: Input/output error #mkdir sampledir mkdir: cannot create directory `sampledir': input/output error centos 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
Input/output Error Linux
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 -f /var/log/messages If you notice any disk issues , try any input/output error ubuntu 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 chances they might messed up your file and system would not work after reboot. You can input/output error kali linux 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 Examples Linux Dmidecode Command - Display Hardware Details In BIOSHow 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) Tags: Bad Blocks, Hardware Category: HARDWARE, HOWTOS, LINUX HOWTO Share This : Free Linux Ebook to Download Previous Article Understand Each Entries Of Linux Shadow (/etc/shadow) File Next Article How To Fix / Repair Bad Blocks In Linux Comments (2) Trackbac
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
Reading Directory Input Output Error Linux
posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix cannot open directory . input/output error & 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
Input/output Error Redhat
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 http://linoxide.com/how-tos/inputoutput-error-bad-blocks-how-to-restart-linux/ 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 http://unix.stackexchange.com/questions/124437/reboot-when-there-is-a-hardware-failure-without-physical-access-to-machine this question edited Apr 12 '14 at 23:45 Gilles 372k696761127 asked Apr 12 '14 at 19:55 Mohsen 5872722 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 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 servi
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 https://www.experts-exchange.com/questions/23032948/Input-output-error-cannot-issue-shutdown-command.html 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.
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > Input/output error - cannot issue shutdown command Want to Advertise Here? Solved Input/output error - cannot issue shutdown command Posted on 2007-12-19 Linux 2 Verified Solutions 9 Comments 2,094 Views Last Modified: 2012-08-13 One of our nameservers is not functioning propertly anymore (dns requests fail). I login to this server using SSH (putty). This works fine. A lot of command don't work anymore, all giving input-output errors. For example the shutdown command: ns2:~# shutdown -r now -bash: /sbin/shutdown: Input/output error Does anybody now what's wrong and how I can maybe restart the server in an alternative way? The server is not in the same location as me. 0 Question by:javelinict Facebook Twitter LinkedIn Google LVL 39 Active 2 days ago Best Solution byevilrix You'll need to check the error logs really. If could have been anything. Check /var/logs/* (usually 'messages'). Go to Solution 7 Comments LVL 39 Overall: Level 39 Linux 6 Message Active 2 days ago Expert Comment by:evilrix2007-12-19 Try sync init 0 0 Message Author Comment by:javelinict2007-12-19 Hi Evilrix, that doesn't work. No error but also no output, and no restart or shutdown. ns2:/usr/bin# ns2:/usr/bin# whois -bash: /usr/bin/whois: Input/output error ns2:/usr/bin# sync ns2:/usr/bin# init 0 ns2:/usr/bin# 0 LVL 39 Overall: Level 39 Linux 6 Message Active 2 days ago Expert Comment by:evilrix2007-12-19 What about telinit 0 ? Ultimately, if once you've run sync you could just power off the box. As long as you have ext3 journaling file system it's unlikely to cause any real problems. Even if you don't it'll almost certainly recover without any real issue. Sometimes, as a last resort, this is all you can do! 0 LVL 39 Overall: Level 39 Linux 6 Message Active 2 days ago Expert Comment by:evilrix2007-12-19 You can also try 'halt' 0 Message Author Comment by:javelinict2007-12-19 Thanks eviltrix, I tried above s