LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 07-22-2011, 08:17 AM   #1
adi_30stm
Member
 
Registered: Jul 2011
Posts: 38

Rep: Reputation: Disabled
Help changing back to root after chapter 6.8!!!!


Hi can anyone tell me how can i change back to root environment (root:/#) I created during chapter 6.4 to 6.7. I by mistake exit out of that environment and now am the root which i was at starting LFS (root [/]#)..

If it helps this one is in red text and other is gray text.

I hope i don't have to start over!
 
Old 07-22-2011, 08:28 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Hi,

Just re-enter the chrooted environment, as mentioned in chapter 6.4:
Code:
chroot "$LFS" /tools/bin/env -i \
    HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
    PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
    /tools/bin/bash --login +h
The above command does not create a permanent environment, you enter the environment you created in chapter 5.

BTW: If you rebooted, you also need to do the parts mentioned in the NOTE at the bottom of the page.

Hope this helps.
 
1 members found this post helpful.
Old 07-22-2011, 08:57 AM   #3
adi_30stm
Member
 
Registered: Jul 2011
Posts: 38

Original Poster
Rep: Reputation: Disabled
Hey thanks i got around just awhile back ...i guess i overlooked it foolish of me thanks anyways
 
  


Reply

Tags
chroot, lfs


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
[SOLVED] Changing $CHOST variable after tools are built (Chapter 10 CLFS guide) manwithaplan Linux From Scratch 1 11-12-2010 10:48 AM
lfs chapter 6 changing enviroment 'i have no name' sunny keshav Linux From Scratch 3 08-21-2010 04:50 AM
Changing /tmp from it's own partition back to root partition branisd Suse/Novell 3 06-10-2010 02:20 AM
Can't log back in after changing runlevels from init 3 to 1 back to 3 manwichmakesameal Slackware 5 06-29-2009 11:36 AM
Before Chapter 6 : have to log in root ... but how ? bonobo Linux From Scratch 1 01-21-2007 11:26 AM


All times are GMT -5. The time now is 07:21 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration