Bash /sbin/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 are failing because the kernel is unable to load the
Linux Bash Input/output Error
/sbin/reboot and /sbin/shutdown binaries from the disk so that it can execute them. A fsck input/output error ubuntu on the next boot might be able to correct whatever is wrong with the disk, but first you need to get the system mkdir cannot create directory input output error to reboot. If your machine is located at a managed hosting provider then you could submit a reboot ticket, but you'll have to wait for someone to take responsibility. Wouldn't it be nice if there was a way
Input/output Error Centos
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 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
Input/output Error Linux
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 firstDate - oldest first 10 comments per page30 comments per page50 comments per page70 comments per page90 comments per page150 comments per page200 comments per page250 comments per page300 comments per page Select your preferred way to display the comments and click "Save settings" to activate your changes. echo 1 > Submitted by asr (not verified) on Fri, 01/08/2010 -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 input/output error kali linux the company Business Learn more about hiring developers or posting ads with us Unix &
/proc/sys/kernel/sysrq Permission Denied
Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users reading directory input output error linux 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 http://www.linuxjournal.com/content/rebooting-magic-way 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 without physically pull the the plug. The machine is not close to me. I can SSH http://unix.stackexchange.com/questions/124437/reboot-when-there-is-a-hardware-failure-without-physical-access-to-machine 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 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| Y
Product Reviews Geeky Stuff Do It Yourself Technology DD-WRT Linux Windows Mac iPhone Home Theater & Automation Reference Posts Awesome Stuff BBQ Cars Fitness Guns Karate Sea Doo Personal Stuff http://www.stevejenkins.com/blog/2012/02/how-to-reboot-with-a-bash-inputoutput-error/ Personal Rants and Raves Philosophy About Me My Bio Find Me On… Facebook Twitter YouTube LinkedIn Google+ About.me GitHub Fedora Project Press Clippings Contact Me Home » Technology » Linux » How to https://ubuntuforums.org/showthread.php?t=1493619 Reboot with a Bash Input/Output Error How to Reboot with a Bash Input/Output ErrorThis entry was posted in Linux Reference Technology and tagged bash error Input/Output Linux reboot on February 14, 2012 output error by Steve Jenkins (updated 1692 days ago) Man - this post saved my bacon today: http://www.linuxjournal.com/content/rebooting-magic-way Was able to reboot a CentOS box with what appears to be a failing (failed?) file system. We had backups, but we're evacuating the server now. 🙂 More from this site:How to Fix Error: Could not open command file ‘/usr/local/nagios/var/rw/nagios.cmd’ for update!How To Automatically Power Cycle Your Modem directory input output and Router on DisconnectHow to Manually Update Bash to Patch Shellshock Bug on Older Fedora-Based Linux SystemsIs DD-WRT Vulnerable to the Shellshock Bash Bug?How to set up two NICs on different subnets with static routes and separate default gateways that remain after a rebootFixing "Public key for mod_cloudflare-*.rpm is not installed" ErrorAutomated Script for UniFi Controller Upgrade on Linux/Unix Systems Search for: From My YouTube ChannelRuger Precision Rifle Bolt Handle Knobs from Titanium Gun Parts / Anarchy Outdoors Most Popular Posts DIY: Gas Fireplace Won't Light? How to Clean your Thermopile and Thermocouple How to Fix Rotten Egg Smell in your Water TPMS Warning Light? Replace your TPMS Sensors for Cheap Choosing the Right LED Bulbs Testing and Replacing a Hot Water Expansion Tank Fix Your Furnace If It's Not Blowing Warm Air How to Install a Ubiquiti UniFi Access Point Pro (UAP-PRO) How to Install an ecobee3 Smart Thermostat Getting Rid of Moles: What Works, and What Doesn't How to Get HDTV Local Channels "Off Air" with DirecTV Categories BBQ Cars DIY Fitness Guns Home Theater & Automation iPhone Karate Knives Linux Mac Personal Philosophy Product Reviews Rants and Raves Reci
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct Ubuntu Wiki Community Wiki Other Support Launchpad Answers Ubuntu IRC Support AskUbuntu Official Documentation User Documentation Social Media Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu Web Upd8: Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [xubuntu] -bash: /sbin/fdisk: Input/output error Having an Issue With Posting ? Do you want to help us debug the posting issues ? < is the place to report it, thanks ! Results 1 to 4 of 4 Thread: -bash: /sbin/fdisk: Input/output error Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode May 26th, 2010 #1 pravindra.kumar View Profile View Forum Posts Private Message Just Give Me the Beans! Join Date Jul 2008 Beans 65 -bash: /sbin/fdisk: Input/output error Dear All, I have a LTSP server on Xubuntu9.04, till yesterday it was working fine but today morning it is giving some Input/output errors, some examples are following:- -bash: /sbin/fdisk: Input/output error -bash: /etc/profile: Input/output error -bash: /root/.profile: Input/output error even i am unable to open DHCP.conf file. How can we fix this problem. Thanks Adv Reply May 26th, 2010 #2 dino99 View Profile View Forum Posts Ubuntu addict and loving it Join Date Jun 2006 Location Nux Jam BeansHidden! DistroUbuntu Development Release Re: -bash: /sbin/fdisk: Input/output error profile is complaining, have you installed some custom bash files ? sudo dpkg --configure -a will force a fsck on next boot: sudo shutdown -F -r now UbuntuGuide Help Ubuntu Xenial Upgrades Adv Reply May 26th, 2010 #3 pravindra.kumar View Profile View Forum Posts Private Message Just Give Me the Beans! Join Date Jul 2008 Beans 65 Re: -bash: /s