LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

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

Rep: Reputation: 0
Question chroot won't work


Hi,

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 :
Code:
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
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
Nathanael
Member
 
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
w3bd3vil
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
oudoubah
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!
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 07:18 AM.

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