stuck on chroot

Lewi ichtus at mbone.petra.ac.id
Fri Mar 15 21:09:36 PST 2002


on my redhat :

sorry if my email too long, I'm desperate :)

[root at mbone /root]# export
declare -x BASH_ENV="/root/.bashrc"
declare -x DISPLAY="localhost:11.0"
declare -x HISTSIZE="1000"
declare -x HOME="/root"
declare -x HOSTNAME="mbone.petra.ac.id"
declare -x HOSTTYPE="i386"
declare -x INPUTRC="/etc/inputrc"
declare -x KDEDIR="/usr"
declare -x LANG="en_US"
declare -x LESSOPEN="|/usr/bin/lesspipe.sh %s"
declare -x LFS="/lfs"
declare -x LOGNAME="root"
declare -x LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:"
declare -x MACHTYPE="i386-redhat-linux-gnu"
declare -x MAIL="/var/spool/mail/root"
declare -x OSTYPE="linux-gnu"
declare -x PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/kerberos/sbin:/usr/kerberos/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/usr/java/jdk1.3.1/bin:/usr/bin:/usr/java/jdk1.3.1/bin:/u01/app/oracle/product/8.1.6/bin:/root/bin"
declare -x PWD="/root"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x TERM="xterm"
declare -x USER="root"
declare -x USERNAME="root"

[root at mbone /root]# cd /lfs/proc/

[root at mbone proc]# ls
1      10508  14737  18911  23842  6    853   acpi         iomem    mtrr
10385  10516  14738  18913  24240  646  855   bus          ioports  net
10428  10517  14739  19009  2850   661  856   cmdline      irq      partitions
10433  10519  14740  19121  3      675  868   cpuinfo      kcore    pci
10434  10520  14741  19142  30436  7    897   devices      kmsg     self
10438  10780  14742  19149  30437  718  9361  dma          ksyms    slabinfo
10484  10783  14743  19152  30473  720  941   driver       loadavg  stat
10486  10873  14744  19169  30474  721  965   execdomains  locks    swaps
10488  13983  16850  19171  30475  738  984   fb           mdstat   sys
10495  13986  17177  19214  30521  74   985   filesystems  meminfo  sysvipc
10503  13987  17602  2      30965  8    986   fs           misc     tty
10505  13988  17606  23836  4      820  987   ide          modules  uptime
10506  13989  18910  23837  5      841  995   interrupts   mounts   version
[root at mbone proc]# cd

[root at mbone /root]# cd $LFS &&
> chroot $LFS /usr/bin/env -i HOME=/root \
> TERM=$TERM /bin/bash --login.

[root at mbone /lfs]# cd $LFS &&
> chroot $LFS /usr/bin/env -i HOME=/root \
>   TERM=$TERM /bin/bash --login

[root at mbone /lfs]# export
declare -x BASH_ENV="/root/.bashrc"
declare -x DISPLAY="localhost:11.0"
declare -x HISTSIZE="1000"
declare -x HOME="/root"
declare -x HOSTNAME="mbone.petra.ac.id"
declare -x HOSTTYPE="i386"
declare -x INPUTRC="/etc/inputrc"
declare -x KDEDIR="/usr"
declare -x LANG="en_US"
declare -x LESSOPEN="|/usr/bin/lesspipe.sh %s"
declare -x LFS="/lfs"
declare -x LOGNAME="root"
declare -x LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:"
declare -x MACHTYPE="i386-redhat-linux-gnu"
declare -x MAIL="/var/spool/mail/root"
declare -x OLDPWD="/lfs"
declare -x OSTYPE="linux-gnu"
declare -x PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/kerberos/sbin:/usr/kerberos/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/usr/java/jdk1.3.1/bin:/usr/bin:/usr/java/jdk1.3.1/bin:/u01/app/oracle/product/8.1.6/bin:/root/bin"
declare -x PWD="/lfs"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x TERM="xterm"
declare -x USER="root"
declare -x USERNAME="root"

---------------------------------
I ran it again :)

[root at mbone /root]# echo $LFS
/lfs

[root at mbone /root]# cd $LFS &&
> chroot $LFS /usr/bin/env -i HOME=/root TERM=$TERM /bin/bash --login
[root at mbone /lfs]# export
declare -x BASH_ENV="/root/.bashrc"
declare -x DISPLAY="localhost:11.0"
declare -x HISTSIZE="1000"
declare -x HOME="/root"
declare -x HOSTNAME="mbone.petra.ac.id"
declare -x HOSTTYPE="i386"
declare -x INPUTRC="/etc/inputrc"
declare -x KDEDIR="/usr"
declare -x LANG="en_US"
declare -x LESSOPEN="|/usr/bin/lesspipe.sh %s"
declare -x LFS="/lfs"
declare -x LOGNAME="root"
declare -x LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;0
1:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.c
om=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:
*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*
.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;3
5:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:"
declare -x MACHTYPE="i386-redhat-linux-gnu"
declare -x MAIL="/var/spool/mail/root"
declare -x OLDPWD="/root"
declare -x OSTYPE="linux-gnu"
declare -x PATH="/usr/local/sbin:/usr/sbin:/sbin:/usr/kerberos/sbin:/usr/kerbero
s/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:
/usr/X11R6/bin:/usr/java/jdk1.3.1/bin:/usr/bin:/usr/java/jdk1.3.1/bin:/u01/app/o
racle/product/8.1.6/bin:/root/bin"
declare -x PWD="/lfs"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x TERM="xterm"
declare -x USER="root"
declare -x USERNAME="root"


On Fri, Mar 15, 2002 at 12:01:09PM -0500, Gerard Beekmans wrote:
> On Fri, Mar 15, 2002 at 10:25:22PM -0500, Lewi wrote:
> > what I must do to look why chroot didn't work?
> 
> copy&paste exactly from your terminal what you type in the terminal, and
> what the output is. Immediately after you run the chroot command run this:
> 	export
> 
> again, copy&paste the exact output you see. Don't type it manually, there's
> too much chance for mistakes then.
> 
> -- 
> Gerard Beekmans
> www.linuxfromscratch.org
> 
> -*- If Linux doesn't have the solution, you have the wrong problem -*-
> -- 
> Unsubscribe: send email to listar at linuxfromscratch.org
> and put 'unsubscribe lfs-support' in the subject header of the message

-- 
ichtus
------
Lewi Supranata .K
ICQ: 50643061
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20020316/40f90056/attachment.sig>


More information about the lfs-support mailing list