Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Chroot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Guidster
n00b
n00b


Joined: 19 Mar 2008
Posts: 3

PostPosted: Wed Mar 19, 2008 2:50 pm    Post subject: Chroot Reply with quote

During install using the guidebook of Gentoo x86 the computer shutdown during emerge of syslog-ng. I was able to restart the system with bootup from the CD to the system prompt. I am however unable to return to CHROOT when as when I enter "chroot /mnt/gentoo /bin/bash" I get a "invalid command error".

Could someone tell me how to return CHROOT?

Also, if I were to plan on installing GNOME should I emerge before configuring the bootloader or after?

I apologize for what I would guess are easy questions but I am very new to this.
Back to top
View user's profile Send private message
NathanZachary
Moderator
Moderator


Joined: 30 Jan 2007
Posts: 2605

PostPosted: Wed Mar 19, 2008 3:06 pm    Post subject: Reply with quote

To re-chroot, you need to boot up the live disc, and follow these commands:

Code:

mount -t FSTYPE /dev/ROOT /mnt/gentoo
mount -t FSTYPE /dev/BOOT /mnt/gentoo/boot
swapon /dev/SWAP
mount -t proc /proc /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update && source /etc/profile
export PS1="(chroot) $PS1"


You replace the items in CAPS with your actual information. Therefore, FSTYPE would be either ext2, ext3, et cetera based on your system, and BOOT & ROOT would be /dev/whatever_partition.
_________________
“Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---
Back to top
View user's profile Send private message
hitachi
Guru
Guru


Joined: 20 Feb 2006
Posts: 478
Location: Freiburg / Deutschland

PostPosted: Thu Mar 20, 2008 9:29 pm    Post subject: Reply with quote

don't forget to creat /mnt and /mnt/gentoo first.
Code:
mkdir /mnt
mkdir /mnt/gentoo

Normaly you would want to have a running system first. Then you install gnome and other software second.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Fri Mar 21, 2008 1:51 am    Post subject: Reply with quote

Yeah, because this directory will be present only with a Gentoo minimal CD, LiveCD and SystemRescueCD.

If you don't want to mess up your /boot partition if it is separated, you can mount your /boot only when you have chrooted your box.

And when you are finish, you can even run this command :

Code:

# sync
# reboot


The sync command with write all the changes on your HDD, so you don't need to umount all your partitions.
Back to top
View user's profile Send private message
golding
Apprentice
Apprentice


Joined: 07 Jun 2005
Posts: 232
Location: Adelaide / South Australia

PostPosted: Mon Mar 24, 2008 4:16 pm    Post subject: Re: Chroot Reply with quote

Guidster wrote:
During install using the guidebook of Gentoo x86 the computer shutdown during emerge of syslog-ng. I was able to restart the system with bootup from the CD to the system prompt. I am however unable to return to CHROOT when as when I enter "chroot /mnt/gentoo /bin/bash" I get a "invalid command error".

Could someone tell me how to return CHROOT?

Also, if I were to plan on installing GNOME should I emerge before configuring the bootloader or after?

I apologize for what I would guess are easy questions but I am very new to this.


If you had done a search you would have found this little item (note the search terms after 'highlight')
https://forums.gentoo.org/viewtopic-t-564785-highlight-chroot+bin+bash+exec+format+error.html

Which basically says "Make sure your minimal boot CD is the same as the environment you are trying to chroot into, i.e AMD64 cd for AMD64 install, etc
_________________
Regards, Robert

..... Some people can tell what time it is by looking at the sun, but I have never been able to make out the numbers.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum