View previous topic :: View next topic |
Author |
Message |
Guidster n00b
Joined: 19 Mar 2008 Posts: 3
|
Posted: Wed Mar 19, 2008 2:50 pm Post subject: Chroot |
|
|
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 |
|
|
NathanZachary Moderator
Joined: 30 Jan 2007 Posts: 2605
|
Posted: Wed Mar 19, 2008 3:06 pm Post subject: |
|
|
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 |
|
|
hitachi Guru
Joined: 20 Feb 2006 Posts: 478 Location: Freiburg / Deutschland
|
Posted: Thu Mar 20, 2008 9:29 pm Post subject: |
|
|
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 |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Fri Mar 21, 2008 1:51 am Post subject: |
|
|
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 :
The sync command with write all the changes on your HDD, so you don't need to umount all your partitions. |
|
Back to top |
|
|
golding Apprentice
Joined: 07 Jun 2005 Posts: 232 Location: Adelaide / South Australia
|
Posted: Mon Mar 24, 2008 4:16 pm Post subject: Re: Chroot |
|
|
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 |
|
|
|