Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-12-2007, 07:40 AM   #1
LQ Newbie
Registered: Oct 2005
Location: France
Distribution: Arch
Posts: 23

Rep: Reputation: 0
Question chroot won't work


I backed up a server. I restored the backup on an other machine (which is not exactly the same). When i boot, i've a kernel panic : "exec of init(/bin/sh) failed!!!"

I boot with sysresccd. All seems OK.
I mount my partitions under /mnt/temp1. All seems OK.

But the chroot fails :
root@sysresccd / # mount | grep temp1
/dev/sda1 on /mnt/temp1 type ext3 (rw)
/proc on /mnt/temp1/proc type none (rw,bind)
/dev on /mnt/temp1/dev type none (rw,bind)
/sys on /mnt/temp1/sys type none (rw,bind)
root@sysresccd / # ls /mnt/temp1/bin | grep -o bash
root@sysresccd / # chroot /mnt/temp1 /bin/bash
chroot: cannot run command `/bin/bash': No such file or directory
root@sysresccd / #
I think that the problem with chroot or the kernel panic has the same source. But i don't have any idea
Old 01-12-2007, 09:21 AM   #2
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 32
/bin/bash is executable?
Old 01-12-2007, 09:28 AM   #3
Senior Member
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,189

Rep: Reputation: 49
rpm -q bash
Old 01-12-2007, 11:24 AM   #4
LQ Newbie
Registered: Oct 2005
Location: France
Distribution: Arch
Posts: 23

Original Poster
Rep: Reputation: 0
The size of my backup file seems OK, but a part of my /lib was not restored. I have to search why, but it solve the chroot problem.

Thanks for your answer!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chroot and ProFTP does not work Suinatsa Linux - Server 2 10-19-2006 09:31 AM
Joystick doesn't work inside 32-bit chroot Zoombie Linux - Hardware 2 05-10-2006 05:25 PM
Chroot doesn't work? xdentan Linux - Software 4 05-06-2006 11:23 PM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
AMD64 - 3d accel in a 32bit chroot don't work ssobeht Debian 2 12-22-2005 10:11 AM

All times are GMT -5. The time now is 03:46 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration