Reboot Unable To Execute Shutdown Input/output Error
Contents |
# reboot bash: /sbin/reboot: Input/output error # shutdown -r now bash: /sbin/shutdown: Input/output error Obviously, there is a problem with your drive. These commands linux bash: input/output error are failing because the kernel is unable to load the /sbin/reboot and /sbin/shutdown
Input/output Error Centos
binaries from the disk so that it can execute them. A fsck on the next boot might be able to
Mkdir Cannot Create Directory Input Output Error
correct whatever is wrong with the disk, but first you need to get the system to reboot. If your machine is located at a managed hosting provider then you could submit a reboot
Reading Directory Input Output Error Linux
ticket, but you'll have to wait for someone to take responsibility. Wouldn't it be nice if there was a way to ask the kernel to reboot without needing to access the failing drive? Well, there is a way, and it is remarkably simple. The "magic SysRq key" provides a way to send commands directly to the kernel through the /proc filesystem. It is enabled via a kernel input/output error ubuntu compile time option, CONFIG_MAGIC_SYSRQ, which seems to be standard on most distributions. First you must activate the magic SysRq option: echo 1 > /proc/sys/kernel/sysrq When you are ready to reboot the machine simply run the following: echo b > /proc/sysrq-trigger This does not attempt to unmount or sync filesystems, so it should only be used when absolutely necessary, but if your drive is already failing then that may not be a concern. In addition to rebooting the system the sysrq trick can be used to dump memory information to the console, sync all filesystems, remount all filesystems in read-only mode, send SIGTERM or SIGKILL to all processes except init, or power off the machine entirely, among other things. Also, instead of echoing into /proc/sys/kernel/sysrq each time you can activate the magic SysRq key at system boot time using sysctl, where supported: echo "kernel.sysrq = 1" >> /etc/sysctl.conf If you would like to learn more about magic SysRq you can read the sysrq.txt file in the kernel documentation. ______________________ Cory Wright https://www.corywright.org/
Login to save this as favorite Comments Comment viewing options Flat list - collapsedFlat list - expandedThreaded list - collapsedThreaded list - expanded Date - newest firstDahere 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 input/output error kali linux Learn more about Stack Overflow the company Business Learn more about hiring developers or input/output error nfs posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is .bashrc input/output error 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 http://www.linuxjournal.com/content/rebooting-magic-way 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 http://unix.stackexchange.com/questions/124437/reboot-when-there-is-a-hardware-failure-without-physical-access-to-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 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 u
Tutorials/Articles Search HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie http://www.linuxquestions.org/questions/linux-newbie-8/input-output-error-222152/ Input/output error User Name Remember Me? Password Linux - Newbie This Linux forum is for members that are new to Linux. Just starting out and have a question? If it is not in the man pages or the how-to's this is the place! Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing LQ as output error a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new directory input output to LinuxQuestions.org? Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here. Having a problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this