Chroot Input Output Error
Contents |
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and chroot failed to run command /bin/bash' no such file or directory policies of this site About Us Learn more about Stack Overflow the
"-bash: /usr/bin/sudo: Input/output Error"
company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered bash input/output error Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can fsck ask a question Anybody can answer The best answers are voted up and rise to the top During a chroot attempt, I got this error: “chroot: failed to run command '/bin/bash': Exec format error” up vote 14 down vote favorite 1 I was following the instructions of this tutorial HOWTO: Purge and Reinstall Grub 2 from the Live CD, when I encountered an error at step 1, as I launched the command sudo chroot /mnt/temp The error was the following: chroot: failed to run command `/bin/bash': Exec format error Where does that come from? How do I get through? bash chroot share|improve this question edited Nov 21 '10 at 11:34 Agmenor 5,96484089 asked Nov 21 '10 at 11:29 Grand Oxymore 3491510 add a comment| 5 Answers 5 active oldest votes up vote 17 down vote Verify that you are using the right Live CD. For example, verify you are not using a 32bit CD instead of a 64bit CD. You need a 64bit kernel to run 64bit code, so check your architecture. Assuming you mounted your system to be chrooted in /media/sda1, to determine the architecture you can: ls /media/sda1/* if you see lib64 in the output, it's probably a 64bit system share|improve this answer edited Jul 11 '11 at 9:36 4levels 1135 answered Nov 21 '10 at 11:30 Grand Oxymore 3491510 It is but still cannot chroot –Starx Mar 29 '12 at 10:03 add a comment| up vote 1 down vote The error means that your jail (/mnt/t
TS-110 NAS Applications Windows Android Chrome OS Storage HOWTOs Projects Software Hardware Photography How to chroot Ubuntu using Live CD to fix GRUB rescue prompt Posted on June 2, 2010 by Black God Recently I messed up GRUB boot loader in my laptop installed with Ubuntu which resulted in grub rescue prompt. So I had to boot Ubuntu Live CD to get it fixed. Thought of blogging it, may be useful for some one. This fix involves two steps. First one is to chroot into Ubuntu installation partition. Second one is to install http://askubuntu.com/questions/14280/during-a-chroot-attempt-i-got-this-error-chroot-failed-to-run-command-bin the grub MBR (Master Boot Record). I am using Ubuntu Lucid 10.04 and Live CD also of same. Step-1: Boot your machine with Ubuntu Live CD and select Trying Ubuntu without installation option when it is prompted (Live CD mode) Step-2: Be patient till you get complete desktop ready. Step-3: Ubuntu main menu -> Places -> Home Folder -> Look for other partitions listed http://karuppuswamy.com/wordpress/2010/06/02/how-to-chroot-to-ubuntu-using-live-cd-to-fix-grub-rescue-prompt/comment-page-1/ on left hand side pane. Mount one by one and identify your Ubuntu root partition. When you are in your root partition, press Ctrl+L to view the complete mount path. Press Ctrl+C to copy this path. This path is normally /media/xx..xx kind of long path, where xx..xx denotes your hard disk partition unique id. If you know your Ubuntu root partition you can replace the above GUI step-3 with simple mount command like this (Applications -> Accessories -> Terminal): $ sudo mount /dev/sdax /mnt/myroot (where sdax is your root partition) Let's say you have mounted root partition at /media/xx..xx. Step-4: $ Run the terminal through Applications -> Accessories -> Terminal. Step-5: Run the following commands to export the pesudo file system of Live CD to your would be root file system soon. $ sudo mount ‐‐bind /dev /media/xx..xx/dev $ sudo mount ‐‐bind /proc /media/xx..xx/proc $ sudo mount ‐‐bind /sys /media/xx..xx/sys Step-6: Changing the root file system of live system to your hard disk installed root file system. $ sudo chroot /media/xx..xx Step-7: Installing GRUB Boot record in Master Boot record of your hard disk. My hard disk is sda. Replace your hard di
Support Search GitHub This repository Watch 356 Star 4,744 Fork 624 dnschneid/crouton Code Issues 675 Pull requests 21 https://github.com/dnschneid/crouton/issues/1502 Projects 1 Wiki Pulse Graphs New issue Input/Output error when starting http://wl500g.info/showthread.php?2241-chroot-problem unity? #1502 Closed CyndaQuillian opened this Issue Mar 15, 2015 · 2 comments Projects None yet Labels bug Milestone No milestone Assignees No one assigned 3 participants CyndaQuillian commented Mar 15, 2015 After the recent update to chromeos, I proceeded to update the chroot by output error running the command: sudo sh ~/Downloads/crouton -n trusty -u Afterwards, when I tried to enter the chroot, my Acer C720p just rebooted itself. After some searching, I found this thread and followed the instructions: #1474 When I ran startunity again, this pops up: Entering /mnt/stateful_partition/crouton/chroots/trusty... /usr/local/bin/enter-chroot: 490: cannot create /run/crouton/mnt/stateful_partition/crouton/chroots/trusty/etc/timezone: Input/output error Unmounting /mnt/stateful_partition/crouton/chroots/trusty... Can anyone chroot input output help? I couldn't find this anywhere. Thanks :D drinkcat added the bug label Mar 22, 2015 Owner dnschneid commented Mar 26, 2015 Could you please update with the latest version of crouton and try again? CyndaQuillian commented Mar 29, 2015 No luck. I decided to make a backup and try a fresh install of Ubuntu. While it seems to work perfectly fine, I am unable to retrieve any of my old files. Luckily, I didn't have anything of importance stored there. CyndaQuillian closed this Mar 29, 2015 CyndaQuillian reopened this Mar 29, 2015 drinkcat closed this Jun 30, 2015 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. Terms Privacy Security Status Help You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
chroot problem...:-/ 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 7 of 7 Thread: chroot problem...:-/ Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Rate This Thread Current Rating Excellent Good Average Bad Terrible Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 26-04-2005,19:52 #1 macsat View Profile View Forum Posts View Blog Entries View Articles Senior Member Join Date Apr 2005 Posts 182 chroot problem...:-/ Hi guys I am playing around with my WL500gx - great toy, but I seem to have a small issue with chroot. I am running Oleg's 1.9.2.7-4 firmware, and get this everything I try to use chroot : Code: [root@utopia /]$ chroot /tmp/harddisk/debian /bin/bash chroot: cannot execute /bin/bash: Input/output error But as you can see, the dir DOES exits, and it is even a complete linux structure :-) Code: [root@utopia /]$ cd /tmp/harddisk/debian/ [root@utopia debian]$ ls bin boot dev etc home lib mnt proc root sbin sys tmp usr var macsat http://www.macsat.com - Tutorials and information on using ASUS WL-500G and family. Reply With Quote 27-04-2005,09:33 #2 hugo View Profile View Forum Posts View Blog Entries View Articles Senior Member Join Date Oct 2004 Posts 344 devfs and proc is not monted when you chroot. i suggest to chroot without shell, then mont proc and devfs then run bash Reply With Quote 27-04-2005,13:32 #3 macsat View Profile View Forum Posts View Blog Entries View Articles Senior Member Join Date Apr 2005 Posts 182 Hmm....how ? I must admit, I dont get it :-) What do you mean "without shell" ? ...could be do a fast step4step ? macsat http://www.macsat.com - Tutorials and information on using ASUS WL-500G and family. Reply With Quote 27-04-2005,16:33 #4 hugo View Profile View Forum Posts View Blog Entries View Articles Senior Member Join Date Oct 2004 Posts 344 Your command work on my wlhdd. It might be something with your install. As for my steps, I would try a simple Code: chroot /tmp/harddisk/debian then a mount -t proc none /proc and mount -t devfs devfs /dev then a /bin/bash If you still get an errot, try removing the package and re add it. Reply With Quote 27-04-2005,19:02 #5 macsat View Profile View Forum Posts View Blog Entries View Articles Senior Member Join Date Apr 2005 Posts 182 remove which package? Which package do you mean I should remove? I believe chroot is part of busybox, so