Bash /sbin/reboot 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 unable to execute /sbin/reboot input/output error /sbin/reboot and /sbin/shutdown binaries from the disk so that it can execute them. A fsck sudo unable to execute /sbin/reboot input/output error on the next boot might be able to correct whatever is wrong with the disk, but first you need to get the system shutdown 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 to linux bash input/output error 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 the
Input/output Error Centos
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 - 07:18.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
Input/output Error Kali Linux
pointed some examples that reports similar error. # du -bash: /usr/bin/du: Input/output error #mkdir sampledir input/output error ubuntu mkdir: cannot create directory `sampledir': Input/output error Input/output error while running the command mostly due to two reason. Either it could be bad input/output error linux 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 -n 100 /var/log/messages tail -f /var/log/messages If http://www.linuxjournal.com/content/rebooting-magic-way 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 your system was hacked there are chances they might messed http://linoxide.com/how-tos/inputoutput-error-bad-blocks-how-to-restart-linux/ 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 ExamplesHow 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 Create / Remove Swap Partition In LinuxHow To Use Linux Grep Command To Find Strings Tags: bad block linux, bad blocks linux Category: HARDWARE, HOWTOS, LINUX HOWTO Share This : Free Lin
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct Ubuntu https://ubuntuforums.org/showthread.php?t=930991 Wiki Community Wiki Other Support Launchpad Answers Ubuntu IRC Support AskUbuntu Official http://www.webhostingtalk.com/showthread.php?t=1315431 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 Dell Ubuntu Support (CLOSED) input/output error [ubuntu] Bash: Input/Output Error on every command Hello Unregistered, Dell Support Forum has closed. Please take a moment to read the details in the sticky, which you can find by clicking here Having an Issue With Posting ? Do you want to help us debug the posting issues ? < is the place to report it, thanks ! /sbin/reboot input/output error Results 1 to 6 of 6 Thread: Bash: Input/Output Error on every command Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode September 27th, 2008 #1 manish_jain View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Jul 2006 Beans 8 Bash: Input/Output Error on every command Hi I have a very old Dell Inspiron on which Ubuntu 7.04 is installed. The kernel version is 2.6.24-19-generic. Sometimes, suddenly something happens and then every command from bash gives the same error: ~$ autoconf -V -bash: /usr/bin/autoconf: Input/output error ~$ ad -bash: /usr/bin/python: Input/output error The file system becomes read-only and no files can even be 'touch'ed. However, uname -r (and possibly other commands) still keep working. If you press Tab-Tab at the terminal, it hangs and then there is no way other than hard-boot to get stuff to work again. Can anyone suggest something to repair this annoying recurrence. Last edited by manish_jain; September 27th, 2008 at 12:48 AM. Adv Re
Forums Hosting Security and Technology how resolve -bash: /sbin/reboot: Input/output error?? If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 9 of 9 Thread: how resolve -bash: /sbin/reboot: Input/output error?? Tweet Thread Tools Show Printable Version Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 10-22-2013,10:46 PM #1 benqing View Profile View Forum Posts View Forum Threads Newbie Join Date Oct 2013 Posts 5 how resolve -bash: /sbin/reboot: Input/output error?? hello, i have buy 4 servers from budgetvm.com with the following configuration: E3 1270 v3 32GB RAM 4 * 1TB Raid0 these is problem with all the server. when start servers and some times ago, the system go " file system read only!" Budgetvm said that is Firmware problem , still cannot resolve it. does anybody konw how to resolve this problem? its 10 days ago, i am really need these servers URGENT! please help! thanks for your reading, hope you can help me ! thank you again. Reply With Quote 0 10-22-2013,10:56 PM #2 DeltaAnime View Profile View Forum Posts View Forum Threads Visit Homepage Poooooonnyyy :* Join Date Jan 2003 Location Canada Posts 4,834 You have bad harddrives or a screwed up RAID card. Francisco BuyVM - OpenVZ & KVM Based VPS Servers - Chat with us - All popular VPN methods supported - Affordable offloaded MySQL & DDoS protection - 5GB backup space, unmetered private LAN bandwidth & native IPv6 included. All with a strong serving of pony Reply With Quote 0 10-22-2013,10:58 PM #3 Technolojesus View Profile View Forum Posts View Forum Threads Visit Homepage Virtualizin' Join Date Nov 2002 Location Portland, Oregon P