LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-05-2012, 06:37 PM   #1
it-secret
LQ Newbie
 
Registered: Jun 2012
Posts: 14

Rep: Reputation: Disabled
chroot command


hello
im access to live cd to solve problem i delet my kernel
my problem if i type chroot /mnt
give me message : chroot:cannot run command '/bin/sh No such file or directory
what should i do ..
my destro : fedora
thx
 
Old 12-05-2012, 10:16 PM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
chroot is owned by root and is located in /usr/sbin/. So invoke it as root, not as another user.
Code:
which chroot
/usr/sbin/chroot
 
1 members found this post helpful.
Old 12-05-2012, 10:45 PM   #3
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
http://karuppuswamy.com/wordpress/20...rescue-prompt/
 
1 members found this post helpful.
Old 12-06-2012, 07:37 AM   #4
it-secret
LQ Newbie
 
Registered: Jun 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by EDDY1 View Post
its work with ubuntu , but dosen't work with fedora
 
Old 12-06-2012, 08:56 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by it-secret View Post
im access to live cd to solve problem i delet my kernel
my problem if i type chroot /mnt
give me message : chroot:cannot run command '/bin/sh No such file or directory
When you boot a Fedora installer CD in rescue mode it asks you if it should search for partitions to mount. If it finds any it'll displays a message where it mounts them. As http://docs.fedoraproject.org/en-US/...mode-boot.html says it'll be under /mnt/sysimage/ and you execute
Code:
chroot /mnt/sysimage
 
1 members found this post helpful.
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is It Possible To Use The cd Command in chroot? x24804 Linux - Software 1 07-20-2010 01:57 PM
chroot: expect: command not found dbbolton Linux From Scratch 11 12-06-2009 07:33 PM
Problems with chroot command in Slax white-crow Linux - Newbie 11 11-07-2009 02:24 AM
Must Be Wrong chroot or CD command browser Linux - Newbie 4 02-10-2008 07:45 AM
mount command not working in chroot. and now chroot not working mohit.jain Linux From Scratch 5 07-14-2006 03:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:56 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration