LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 08-05-2009, 05:34 PM   #1
McPriMa
LQ Newbie
 
Registered: Aug 2009
Posts: 8

Rep: Reputation: 0
what is chroot?


what is chroot?
 
Old 08-05-2009, 05:36 PM   #2
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
Okay, dude, stop that. Look into the command `man` - if you really want to know, you need to learn to do your own research and learn things independently.
 
Old 08-05-2009, 08:25 PM   #3
scottro11
Member
 
Registered: Jun 2009
Location: NYC
Posts: 260

Rep: Reputation: 58
In this case, I think the Linux man page is rather lacking.

One tip---many Linux man pages are really horrible. Often going to www.freebsd.org or www.openbsd.org will enable you to find better man pages.


Hrrm, looking at the BSD man pages for root, though they're quite clear if you're experienced, I could see them being confusing too.


When you log in, your root directory, that is, the base directory of the system, is / (root.)

Doing chroot makes it a different directory. This is sometimes used, for example, if you have Fedora on one partition and Ubuntu on the other, but need to run some commands from inside the Ubuntu system.
So, first you mount the Ubuntu partition, say on /mnt. Then you also mount, with the bind option, /proc and /dev.

Now, you can do

chroot /mnt /bin/bash

You will now be working as if you had booted up into the Ubuntu system.
 
Old 08-06-2009, 12:36 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
http://www.linuxtopia.org/online_boo...p29sec296.html
 
  


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
chroot help Smokey Slackware 15 02-25-2013 12:32 AM
chroot to run hd-installed distro's programs from chroot in live distro? silencestone Linux - Software 0 10-12-2007 07:29 AM
sudo /usr/bin/chroot /home/chroot /bin/su - xxx| /bin/su: user xxx does not exist saavik Linux - General 3 07-04-2007 11:30 AM
mount command not working in chroot. and now chroot not working mohit.jain Linux From Scratch 5 07-14-2006 04:57 AM
chRoot SpaceCadet Linux - Networking 3 08-14-2003 06:29 AM


All times are GMT -5. The time now is 06:42 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration