Reboot Bash /sbin/reboot Input/output Error
Contents |
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 linux bash input/output error us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange input/output error ubuntu 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 /proc/sysrq-trigger 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
Echo B > /proc/sysrq-trigger
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 /proc/sys/kernel/sysrq permission denied 374k696801129 asked Apr 12 '14 at 19:55 Mohsen 5972723 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 service. Not the answer you're looking for? Browse other questions tagged linux command-line reboot or ask your own q
LINUX HOWTO | 2 Replies More Bad Disk This article I am trying to explain how to deal with " Input/output error " when you sudo input/output error initiate any commands in Linux. I have pointed some examples that reports similar
Echo C > /proc/sysrq-trigger
error. # du -bash: /usr/bin/du: Input/output error #mkdir sampledir mkdir: cannot create directory `sampledir': Input/output error Input/output error while running the
Linux Hard Reboot
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 /var/log/messages for any disk related http://unix.stackexchange.com/questions/124437/reboot-when-there-is-a-hardware-failure-without-physical-access-to-machine 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 backup of your system. Good if you already http://linoxide.com/how-tos/inputoutput-error-bad-blocks-how-to-restart-linux/ 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 Examples Linux Dmidecode Command - Display Hardware Details In BIOSHow To Backup LVM Configuration On Linux (vgc
How to reboot remotely Linux server if reboot, shutdown and init commands are not working (/sbin/reboot: Input/output error) - 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/?cid=54908 Reboot Linux in emergency using MagicSysRQ kernel sysctl variable by deep. Hi, http://iallex.com/inputoutput-error-bad-blocks-how-to-restart-linux/ I usually work on a SLES machine connected through ssh. I wanted to know, is there any command or procedure to know, when the pc got last rebooted and from which IP. generally using the commands last reboot (or) ps -fp 1 only gives us the info input/output error regarding the last time of reboot. But I wanted to know from which IP the reboot command was given. Share this on
Tweet If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting! Previoust Post: « How to convert .CRT SSL Certificate to .PFX format (with openssl Linux command) and Import reboot bash /sbin/reboot newly generated .PFX to Windows IIS Webserver Next Post: This entry was posted on Wednesday, October 26th, 2016 at 12:52 pm and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed. Comments are closed. Search for: Daily Bible quote And the LORD spake unto Moses, saying, -- Exodus 30:11 GET ARTICLE UPDATES Enter your email address: Useful blog? Help it: More helpful ArticlesCheck and log routinely multiple servers load avarage for Linux / UNIX server overloadsTop AIX UNIX Performance tracking commands every Linux admin / user should knowWeblogic - How to change / remove IP/hostname quick and dirty howtoCommand to get CPU server load in % percentage using bash and /proc/stat on LinuxWindows add / delete services command sc.exe create/delete - Create or Delete servicesHow to View Mail (Full Headers) in Outlook 97 / 98 / 2003 / 2007 / 2010 and Outlook 2013 Mail client on Windows and Mac OSMicrosoft Windows most secure OS for 2014 ? - Short OS and Applireboot bash: /sbin/reboot: Input/output error $ shutdown -r now bash: /sbin/shutdown: Input/output error 记得之前在sina的时候测试机也出现过类似的问题,当时是直接给运维同事电话重启了。。。 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 see also for details Save To: Delicious Facebook Twitter Weibo WebIM QZone This entry was posted in linux and tagged centos on 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 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.