Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOVLED] Chroot return to livecd during install (updated*)
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
sk8harddiefast
Guru
Guru


Joined: 15 Feb 2009
Posts: 335
Location: athens

PostPosted: Tue Feb 11, 2014 1:05 pm    Post subject: [SOVLED] Chroot return to livecd during install (updated*) Reply with quote

Hi. I have a problem and I really need your help. During installation, when I go to emerge-sources, my install crashes and returns me back to livecd from chroot. Also /mnt/gentoo folder is disappeared.
What can cause this? I made 3 tries and crashed all of them. Tried to burn to another cd. Same too. Always crash here: http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=6 on this command
Code:
# env-update && source /etc/profile

In the past I was a Gentoo user. After I went to FreeBSD for 3 years and now I am back to Gentoo probably to stay here for ever. I can not imagine myself to install any other Linux except this so any help could be very welcome
_________________
Compile The Universe


Last edited by sk8harddiefast on Wed Feb 12, 2014 1:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6313
Location: /usr/lib64/lv2

PostPosted: Tue Feb 11, 2014 3:14 pm    Post subject: Reply with quote

Try using SystemRescueCD as your boot medium.
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
moisespedro
n00b
n00b


Joined: 01 Jan 2014
Posts: 71

PostPosted: Tue Feb 11, 2014 3:15 pm    Post subject: Reply with quote

I am a gentoo noob but I think posting the error output would help
Back to top
View user's profile Send private message
sk8harddiefast
Guru
Guru


Joined: 15 Feb 2009
Posts: 335
Location: athens

PostPosted: Tue Feb 11, 2014 3:36 pm    Post subject: Reply with quote

Has no error. Says something like ld-something end returns to livecd :(
How to use System rescue cd. I have almost nothing setup on HDD. I go step by step everything that says the documentation. I have not download gentoo-sources, didn't install grub, didn't fix fstab etc.
Also all youtube videos install system without chroot. Just from livecd. Why I must go to chroot. And why returns from chroot to livecd /mnt/gentoo folder just disappear?
_________________
Compile The Universe
Back to top
View user's profile Send private message
ExecutorElassus
Veteran
Veteran


Joined: 11 Mar 2004
Posts: 1181
Location: Stuttgart, Germany

PostPosted: Tue Feb 11, 2014 4:06 pm    Post subject: Reply with quote

you have to chroot into the installed environment before you run 'env-update' and 'source /etc/profile'; otherwise you're telling the liveCD to run those commands on a read-only liveCD system. They won't work.

gentoo does not work like other distros, and it's a bit less forgiving in the install phase. I have a laptop that has *never* worked under gentoo. But if it works at all, the best route is to follow the guide, and that includes chrooting.

Cheer,

EE
Back to top
View user's profile Send private message
sk8harddiefast
Guru
Guru


Joined: 15 Feb 2009
Posts: 335
Location: athens

PostPosted: Tue Feb 11, 2014 4:25 pm    Post subject: Reply with quote

But I do that. I run this commands as the documentation says:

Code:
chroot /mnt/gentoo /bin/bash
source /etc/profile
export PS1="(chroot) $PS1"


Code:
emerge-webrsync
works

But when I change the locales and go to run
Code:
env-update && source /etc/profile
then brings me back to livecd.
Is necessary to run the last command?
Where I do the mistake?
_________________
Compile The Universe
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7552
Location: Goose Creek SC

PostPosted: Tue Feb 11, 2014 8:14 pm    Post subject: Reply with quote

boot the cd, preferably sysresccd, make sure you perform each step; /dev/sda1 and /dev/sda3 are nominal values:
Code:
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
cp -L /etc/resolv.conf /mnt/gentoo/etc/
mount -t proc none /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
source /etc/profile
export PS1="(chroot) $PS1"


graceful exit:

Code:
exit
cd
umount -l /mnt/gentoo/dev{/shm,/pts,}
umount -l /mnt/gentoo{/boot,/proc,}
reboot

_________________
Defund the FCC.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43186
Location: 56N 3W

PostPosted: Tue Feb 11, 2014 11:25 pm    Post subject: Reply with quote

sk8harddiefast,

Split
Code:
env-update && source /etc/profile
into two.

After env-update what does
Code:
eselect profile list
show?

I get
Code:
$ eselect profile list
Available profile symlink targets:
  [1]   default/linux/amd64/13.0
  [2]   default/linux/amd64/13.0/selinux
  [3]   default/linux/amd64/13.0/desktop
  [4]   default/linux/amd64/13.0/desktop/gnome
  [5]   default/linux/amd64/13.0/desktop/gnome/systemd
  [6]   default/linux/amd64/13.0/desktop/kde
  [7]   default/linux/amd64/13.0/desktop/kde/systemd
  [8]   default/linux/amd64/13.0/developer
  [9]   default/linux/amd64/13.0/no-multilib *
  [10]  default/linux/amd64/13.0/x32
  [11]  hardened/linux/amd64
  [12]  hardened/linux/amd64/selinux
  [13]  hardened/linux/amd64/no-multilib
  [14]  hardened/linux/amd64/no-multilib/selinux
  [15]  hardened/linux/amd64/x32
  [16]  hardened/linux/uclibc/amd64
where
Code:
[9]   default/linux/amd64/13.0/no-multilib *
is the active profile.
If your selected profile was corrupt, anything could happen.
If no profile was selected, the command would correctly do nothing.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
nativemad
Developer
Developer


Joined: 30 Aug 2004
Posts: 903
Location: Switzerland

PostPosted: Wed Feb 12, 2014 6:02 am    Post subject: Reply with quote

sk8harddiefast,
Be aware that this command resets your prompt!
Code:
env-update && source /etc/profile
.
I guess you're still chrooted and therefore don't see the mounted drive!
Everything is fine, just issue another PS1 export and move on! :wink:

HTH
_________________
Power to the people!
Back to top
View user's profile Send private message
sk8harddiefast
Guru
Guru


Joined: 15 Feb 2009
Posts: 335
Location: athens

PostPosted: Wed Feb 12, 2014 11:44 am    Post subject: Reply with quote

Hi again. I installed the system just fine. Just I didn't exec this 2 commands and all the other installed as it should be. Excellent handbook :)
For now I use the generic kernel and a very default network config just to set the system up :)
_________________
Compile The Universe
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