LinuxSir.Org  
| 网站首页 | 论坛帮助 |

欢迎来到LinuxSir.Org!
您还未登录,请登录后查看论坛,或者点击论坛上方的注册链接注册新账号。


发表新主题 回复
精华主题  
主题工具
旧 06-02-24, 23:25 第 16 帖
good02xaut
 
good02xaut 的头像
 
 
注册会员  
  注册日期: Feb 2006
  帖子: 339
  精华: 2
 

可我什么也没修改啊~
我保证!







__________________
=============================
我的blog:
http://blog.21ic.com/blog.asp?name=good02xaut
=============================
sound,video,or net,just all.
LFS-SVN20060123安装完成
LFS ID:17037
  good02xaut 当前离线   回复时引用此帖
旧 06-02-25, 20:53 第 17 帖
d00m3d
 
d00m3d 的头像
 
 
资深版主  
  注册日期: Nov 2004
  帖子: 14,541
  精华: 10
 

引用:
作者: youbest
我不太清楚写成hints的要求或者有什么条件,而且我英文非常的菜,如果有人愿意帮忙我不胜感激.谢谢.
幻想老大怎麽不出来说说?上次csfrank的中文版LFS手册也是他提交的嘛







__________________
nO ^^4+73R wH1<h d!5+R0z j00 42E U$1N9 7r% LpHZ 4+ l3457 oN(&
  d00m3d 当前离线   回复时引用此帖
旧 06-02-25, 20:58 第 18 帖
晨想 帅哥
 
晨想 的头像
 
 
资深版主  
  注册日期: Feb 2003
  我的住址: P.R.China
  帖子: 9,643
  精华: 9
 

我是在看谁出来先答应一下,如果没有的话,下个星期我就翻译。(这么一说,肯定就没人来了。嘿嘿。)。。

我来翻译,尽快给出结果。上次的那个,是我提交的。借花献佛。活活。







__________________
我的wiki: http://wiki.linuxgnu.org

马甲Show:终极幻想 黯然销魂 DawnFantasy FinalFantasy ArmageddonMa
  晨想 当前离线   回复时引用此帖
旧 06-03-04, 16:36 第 19 帖
d00m3d
 
d00m3d 的头像
 
 
资深版主  
  注册日期: Nov 2004
  帖子: 14,541
  精华: 10
 

译文如下,请覆核。
~~~~~~~~~~
(VMWare的部份散略了)

AUTHOR: youbest <youbest at sina.com>

DATE: 2006-02-16

LICENSE: ????

SYNOPSIS: The continuity and recovery of building environment in various LFS stages

DESCRIPTION: This hint will assist you to resume your building environment while you
are building your LFS system in various stages using LFS LiveCD as host system

PRIMARY URI: http://www.linuxsir.org/bbs/showthread.php?t=242880

PREREQUISITES: LFS LiveCD-6.1.1-3

HINT:

Foreword
========
For those who have built their own LFS system more than once, they must be very "impressed" with the extremely long building time. In particular, if the computer configuration is not powerful, it is quite scary to learn about such lengthy building time.

Sometimes, you may be forced to shutdown or reboot the computer, which you may have to resume the previous working conditions before continuing the job. However, it is often panic to those who are not very familiar with the principles of LFS and find difficulties in resuming their previous building environment. To avoid this from happening, they are often keep the computer running for several days until the whole LFS task is finished.

I have studied this problem and intended to share my works on how to keep the continuity of the building process based on my own experiences. Every steps are verified carefully and should be correct. Hope that this hint may assist those who are building their own LFS system and relief some of their "pains".

Throughout the article, sda is block device being used. sda1 is being used as swap and sda2 is the partition for building LFS.

The following procedures are based on sections in LFS6.1.1-3, if you use a different version of LFS-Book, the section number may be also different, please refer to the sub-heading of each section in such case.

From beginning to Section 4.4 Setting up the Environment
========================================================
There is nothing valuable, you may simply restart the process from the very beginning.

From section 4.5 About SBUs to section 5.33 Stripping
=====================================================
Below are the steps to resume the building environment during any steps from section 4.5 till the end of Chapter 5:
1. Restart computer and boot from LiveCD
2. Mount your lfs partition
  export LFS=/mnt/lfs
  mkdir -pv $LFS
  mount /dev/sda2 $LFS
3. Mount your swap partition (skip this step if you do not use any swap partitions)
  swapon /dev/sda1
4. Establish symbolic link for toolchain
  ln -sv $LFS/tools /
5. Create lfs account
  groupadd lfs
  useradd -s /bin/bash -g lfs -m -k /dev/null lfs
  passwd lfs
  chown -v lfs $LFS/tools
  chown -v lfs $LFS/sources
  su - lfs
6. Define the lfs user profile
  cat > ~/.bash_profile << "EOF"
  exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
  EOF

  cat > ~/.bashrc << "EOF"
  set +h
  umask 022
  LFS=/mnt/lfs
  LC_ALL=POSIX
  PATH=/tools/bin:/bin:/usr/bin
  export LFS LC_ALL PATH
  EOF

  source ~/.bash_profile
7. Verify the environment variables
  export //the export command should output the following:
  declare -x HOME="/home/lfs"
  declare -x LC_ALL="POSIX"
  declare -x LFS="/mnt/lfs"
  declare -x OLDPWD
  declare -x PATH="/tools/bin:/bin:/usr/bin"
  declare -x PS1="\\u:\\w\\\$ "
  declare -x PWD="/home/lfs"
  declare -x SHLVL="1"
  declare -x TERM="linux"
If you get these variables correct, then you have already resumed your building environment.

Section 6.1 Introduction
========================
At this point, you are probably tired and prefer to shutdown your computer for a rest. Steps to resume the building environment are:
1. Restart computer and boot from LiveCD
2. Mount your lfs partition
  export LFS=/mnt/lfs
  mkdir -pv $LFS
  mount /dev/sda2 $LFS
3. Mount your swap partition (skip this step if you do not use any swap partitions)
  swapon /dev/sda1
Remark:
At this point, the toolchain is already built up in the previous chapters, it is not
necessary to create the symbolic link for the /tools directory again.

From section 6.2. Mounting Virtual Kernel File Systems to section 6.8. Populating /dev
======================================================================================
At this point, if you reboot or shutdown your computer. Steps to resume the building environment are:
1. Restart computer and boot from LiveCD
2. Mount your lfs partition
  export LFS=/mnt/lfs
  mkdir -pv $LFS
  mount /dev/sda2 $LFS
3. Mount your swap partition (skip this step if you do not use any swap partitions)
  swapon /dev/sda1
4. Mount the virtual kernel filesystems
  mount -vt proc proc $LFS/proc
  mount -vt sysfs sysfs $LFS/sys
5. Entering the chroot environment
  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

From section 6.9. Linux-Libc-Headers-2.6.11.2 to section 6.37. Bash-3.0
=======================================================================
From this point to the end of Bash-3.0 (before File-4.13) in Chapter 6, at any moment if you reboot or shutdown your computer. Steps to resume the building environment are:
1. Restart computer and boot from LiveCD
2. Mount your lfs partition
  export LFS=/mnt/lfs
  mkdir -pv $LFS
  mount /dev/sda2 $LFS
3. Mount your swap partition (skip this step if you do not use any swap partitions)
  swapon /dev/sda1
4. Mount the virtual kernel filesystems
  mount -vt proc proc $LFS/proc
  mount -vt sysfs sysfs $LFS/sys
5. Entering the chroot environment
  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
6. Populating /dev
  mount -nvt tmpfs none /dev
  mknod -m 622 /dev/console c 5 1
  mknod -m 666 /dev/null c 1 3
  mknod -m 666 /dev/zero c 1 5
  mknod -m 666 /dev/ptmx c 5 2
  mknod -m 666 /dev/tty c 5 0
  mknod -m 444 /dev/random c 1 8
  mknod -m 444 /dev/urandom c 1 9
  chown -v root:tty /dev/{console,ptmx,tty}
  ln -sv /proc/self/fd /dev/fd
  ln -sv /proc/self/fd/0 /dev/stdin
  ln -sv /proc/self/fd/1 /dev/stdout
  ln -sv /proc/self/fd/2 /dev/stderr
  ln -sv /proc/kcore /dev/core
  mkdir -v /dev/pts
  mkdir -v /dev/shm
  mount -vt devpts -o gid=4,mode=620 none /dev/pts
  mount -vt tmpfs none /dev/shm
7. Entering your working directory
  cd /sources

From 6.38. File-4.13 to section 6.58. Udev-056
==============================================
From this point to Udev-056 in Chapter 6, at any moment if you reboot or shutdown your computer. Steps to resume the building environment are:
1. Restart computer and boot from LiveCD
2. Mount your lfs partition
  export LFS=/mnt/lfs
  mkdir -pv $LFS
  mount /dev/sda2 $LFS
3. Mount your swap partition (skip this step if you do not use any swap partitions)
  swapon /dev/sda1
4. Mount the virtual kernel filesystems
  mount -vt proc proc $LFS/proc
  mount -vt sysfs sysfs $LFS/sys
5. Entering the chroot environment
  chroot "$LFS" /tools/bin/env -i \
  HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
   PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
  /bin/bash --login +h
6. Populating /dev
  mount -nvt tmpfs none /dev
  mknod -m 622 /dev/console c 5 1
  mknod -m 666 /dev/null c 1 3
  mknod -m 666 /dev/zero c 1 5
  mknod -m 666 /dev/ptmx c 5 2
  mknod -m 666 /dev/tty c 5 0
  mknod -m 444 /dev/random c 1 8
  mknod -m 444 /dev/urandom c 1 9
  chown -v root:tty /dev/{console,ptmx,tty}
  ln -sv /proc/self/fd /dev/fd
  ln -sv /proc/self/fd/0 /dev/stdin
  ln -sv /proc/self/fd/1 /dev/stdout
  ln -sv /proc/self/fd/2 /dev/stderr
  ln -sv /proc/kcore /dev/core
  mkdir -v /dev/pts
  mkdir -v /dev/shm
  mount -vt devpts -o gid=4,mode=620 none /dev/pts
  mount -vt tmpfs none /dev/shm
7. Entering your working directory
  cd /sources

From section 6.59. Util-linux-2.12q to section 6.60. About Debugging Symbols
============================================================================
From this point to Stripping Again in Chapter 6, at any moment if you reboot or
shutdown your computer. Steps to resume the building environment are:
1. Restart computer and boot from LiveCD
2. Mount your lfs partition
  export LFS=/mnt/lfs
  mkdir -pv $LFS
  mount /dev/sda2 $LFS
3. Mount your swap partition (skip this step if you do not use any swap partitions)
  swapon /dev/sda1
4. Mount the virtual kernel filesystems
  mount -vt proc proc $LFS/proc
  mount -vt sysfs sysfs $LFS/sys
5. Entering the chroot environment
  chroot "$LFS" /tools/bin/env -i \
  HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
   PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
  /bin/bash --login +h
6. Populating /dev
  mount -nvt tmpfs none /dev
  /sbin/udevstart
  mkdir -v /dev/pts
  mkdir -v /dev/shm
  mount -vt devpts -o gid=4,mode=620 none /dev/pts
  mount -vt tmpfs none /dev/shm
7. Entering your working directory
  cd /sources

Section 6.61. Stripping Again
=============================
If you reboot your computer at this moment, steps to resume the building
environment are:
1. Restart computer and boot from LiveCD
2. Mount your lfs partition
  export LFS=/mnt/lfs
  mkdir -pv $LFS
  mount /dev/sda2 $LFS
3. Mount your swap partition (skip this step if you do not use any swap partitions)
  swapon /dev/sda1
4. Mount the virtual kernel filesystems
  mount -vt proc proc $LFS/proc
  mount -vt sysfs sysfs $LFS/sys
5. Entering the chroot environment
  chroot $LFS /tools/bin/env -i \
  HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
  PATH=/bin:/usr/bin:/sbin:/usr/sbin \
  /tools/bin/bash --login
6. Populating /dev
  mount -nvt tmpfs none /dev
  /sbin/udevstart
  mkdir -v /dev/pts
  mkdir -v /dev/shm
  mount -vt devpts -o gid=4,mode=620 none /dev/pts
  mount -vt tmpfs none /dev/shm
7. Entering your working directory
  cd /sources

From section 6.62. Cleaning Up to The End
=========================================
From this point till the end of the whole LFS build. Steps to resume the building
environment are:
1. Restart computer and boot from LiveCD
2. Mount your lfs partition
  export LFS=/mnt/lfs
  mkdir -pv $LFS
  mount /dev/sda2 $LFS
3. Mount your swap partition (skip this step if you do not use any swap partitions)
  swapon /dev/sda1
4. Mount the virtual kernel filesystems
  mount -vt proc proc $LFS/proc
  mount -vt sysfs sysfs $LFS/sys
5. Entering the chroot environment
  chroot "$LFS" /usr/bin/env -i \
  HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
   PATH=/bin:/usr/bin:/sbin:/usr/sbin \
  /bin/bash --login
6. Populating /dev
  mount -nvt tmpfs none /dev
  /sbin/udevstart
  mkdir -v /dev/pts
  mkdir -v /dev/shm
  mount -vt devpts -o gid=4,mode=620 none /dev/pts
  mount -vt tmpfs none /dev/shm
7. Entering your working directory
  cd /sources
  d00m3d 当前离线   回复时引用此帖
旧 06-03-04, 17:20 第 20 帖
晨想 帅哥
 
晨想 的头像
 
 
资深版主  
  注册日期: Feb 2003
  我的住址: P.R.China
  帖子: 9,643
  精华: 9
 

兄弟翻译的真快,费心了。稍微校对了一下。

AUTHOR: youbest <youbest at sina dot com>

TRANSLATOR: d00m3d <doom3d at sina dot com>

DATE: 2006-02-16

LICENSE: GPL

SYNOPSIS: How to resume from a break during different LFS stages.

DESCRIPTION: This hint helps you setting up your building environment at different stages. LFS LiveCD is used as the host system.

PRIMARY URI: http://www.linuxsir.org/bbs/showthread.php?t=242880

PREREQUISITES: LFS LiveCD-6.1.1-3

HINT:

Foreword
========
For those who have built their own LFS systems more than once, they must be very "impressed" with the extremely long building time. In particular, if the computer is not a powerful one. It is quite scary to learn about such lengthy building time.

Sometimes, you may be forced to shutdown or reboot the computer, which you have to resume your previous working conditions before continuing the job. However, this process would be quite confusing to those who are not familiar with the principles of LFS and they are likely to have difficulties in resuming their previous building environment. To avoid this from happening, they often keep the computer running for several days until the whole LFS is finished.

Thus it is very useful to know how to have a smooth connection after a reboot/shutdown. Based on my own experiences I did a research on this topic and would like to share my results. Every steps are carefully verified and should be correct. Hope this hint may assist those who are building their own LFS system and relief some of their "pains".

Throughout the article, sda is block device being used. sda1 is being used as swap and sda2 is the partition for building LFS.

The following procedures are based on LFS6.1.1-3. If a different book version is used, the section number may be different as well, please refer to the sub-heading of each section in such case.

From beginning to Section 4.4 Setting up the Environment
========================================================
You may simply restart the process from the very beginning.

From section 4.5 About SBUs to section 5.33 Stripping
=====================================================
Following are the steps for resuming the building environment from any stages starting from section 4.5 till the end of Chapter 5:
1. Restart computer and boot from LiveCD
2. Mount your lfs partition
  export LFS=/mnt/lfs
  mkdir -pv $LFS
  mount /dev/sda2 $LFS
3. Mount your swap partition (skip this step if you do not use any swap partitions)
  swapon /dev/sda1
4. Establish symbolic link for toolchain
  ln -sv $LFS/tools /
5. Create lfs account
  groupadd lfs
  useradd -s /bin/bash -g lfs -m -k /dev/null lfs
  passwd lfs
  chown -v lfs $LFS/tools
  chown -v lfs $LFS/sources
  su - lfs
6. Define the lfs user profile
  cat > ~/.bash_profile << "EOF"
  exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
  EOF

  cat > ~/.bashrc << "EOF"
  set +h
  umask 022
  LFS=/mnt/lfs
  LC_ALL=POSIX
  PATH=/tools/bin:/bin:/usr/bin
  export LFS LC_ALL PATH
  EOF

  source ~/.bash_profile
7. Verify the environment variables
  export //the export command should output the following:
  declare -x HOME="/home/lfs"
  declare -x LC_ALL="POSIX"
  declare -x LFS="/mnt/lfs"
  declare -x OLDPWD
  declare -x PATH="/tools/bin:/bin:/usr/bin"
  declare -x PS1="\\u:\\w\\\$ "
  declare -x PWD="/home/lfs"
  declare -x SHLVL="1"
  declare -x TERM="linux"
If you get these variables correct, then you have already resumed your building environment.

Section 6.1 Introduction
========================
At this point, you are probably tired and prefer to shutdown your computer for a rest. Steps to resume the building environment are:
1. Restart computer and boot from LiveCD
2. Mount your lfs partition
  export LFS=/mnt/lfs
  mkdir -pv $LFS
  mount /dev/sda2 $LFS
3. Mount your swap partition (skip this step if you do not use any swap partitions)
  swapon /dev/sda1
Remark:
At this point, the toolchain is already built up in the previous chapters, it is not
necessary to create the symbolic link for the /tools directory again.

From section 6.2. Mounting Virtual Kernel File Systems to section 6.8. Populating /dev
======================================================================================
At this point, if you reboot or shutdown your computer. Steps to resume the building environment are:
1. Restart computer and boot from LiveCD
2. Mount your lfs partition
  export LFS=/mnt/lfs
  mkdir -pv $LFS
  mount /dev/sda2 $LFS
3. Mount your swap partition (skip this step if you do not use any swap partitions)
  swapon /dev/sda1
4. Mount the virtual kernel filesystems
  mount -vt proc proc $LFS/proc
  mount -vt sysfs sysfs $LFS/sys
5. Entering the chroot environment
  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

From section 6.9. Linux-Libc-Headers-2.6.11.2 to section 6.37. Bash-3.0
=======================================================================
From this point to the end of Bash-3.0 (before File-4.13) in Chapter 6, at any moment if you reboot or shutdown your computer. Steps to resume the building environment are:
1. Restart computer and boot from LiveCD
2. Mount your lfs partition
  export LFS=/mnt/lfs
  mkdir -pv $LFS
  mount /dev/sda2 $LFS
3. Mount your swap partition (skip this step if you do not use any swap partitions)
  swapon /dev/sda1
4. Mount the virtual kernel filesystems
  mount -vt proc proc $LFS/proc
  mount -vt sysfs sysfs $LFS/sys
5. Entering the chroot environment
  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
6. Populating /dev
  mount -nvt tmpfs none /dev
  mknod -m 622 /dev/console c 5 1
  mknod -m 666 /dev/null c 1 3
  mknod -m 666 /dev/zero c 1 5
  mknod -m 666 /dev/ptmx c 5 2
  mknod -m 666 /dev/tty c 5 0
  mknod -m 444 /dev/random c 1 8
  mknod -m 444 /dev/urandom c 1 9
  chown -v root:tty /dev/{console,ptmx,tty}
  ln -sv /proc/self/fd /dev/fd
  ln -sv /proc/self/fd/0 /dev/stdin
  ln -sv /proc/self/fd/1 /dev/stdout
  ln -sv /proc/self/fd/2 /dev/stderr
  ln -sv /proc/kcore /dev/core
  mkdir -v /dev/pts
  mkdir -v /dev/shm
  mount -vt devpts -o gid=4,mode=620 none /dev/pts
  mount -vt tmpfs none /dev/shm
7. Entering your working directory
  cd /sources

From 6.38. File-4.13 to section 6.58. Udev-056
==============================================
From this point to Udev-056 in Chapter 6, at any moment if you reboot or shutdown your computer. Steps to resume the building environment are:
1. Restart computer and boot from LiveCD
2. Mount your lfs partition
  export LFS=/mnt/lfs
  mkdir -pv $LFS
  mount /dev/sda2 $LFS
3. Mount your swap partition (skip this step if you do not use any swap partitions)
  swapon /dev/sda1
4. Mount the virtual kernel filesystems
  mount -vt proc proc $LFS/proc
  mount -vt sysfs sysfs $LFS/sys
5. Entering the chroot environment
  chroot "$LFS" /tools/bin/env -i \
  HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
   PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
  /bin/bash --login +h
6. Populating /dev
  mount -nvt tmpfs none /dev
  mknod -m 622 /dev/console c 5 1
  mknod -m 666 /dev/null c 1 3
  mknod -m 666 /dev/zero c 1 5
  mknod -m 666 /dev/ptmx c 5 2
  mknod -m 666 /dev/tty c 5 0
  mknod -m 444 /dev/random c 1 8
  mknod -m 444 /dev/urandom c 1 9
  chown -v root:tty /dev/{console,ptmx,tty}
  ln -sv /proc/self/fd /dev/fd
  ln -sv /proc/self/fd/0 /dev/stdin
  ln -sv /proc/self/fd/1 /dev/stdout
  ln -sv /proc/self/fd/2 /dev/stderr
  ln -sv /proc/kcore /dev/core
  mkdir -v /dev/pts
  mkdir -v /dev/shm
  mount -vt devpts -o gid=4,mode=620 none /dev/pts
  mount -vt tmpfs none /dev/shm
7. Entering your working directory
  cd /sources

From section 6.59. Util-linux-2.12q to section 6.60. About Debugging Symbols
============================================================================
From this point to Stripping Again in Chapter 6, at any moment if you reboot or
shutdown your computer. Steps to resume the building environment are:
1. Restart computer and boot from LiveCD
2. Mount your lfs partition
  export LFS=/mnt/lfs
  mkdir -pv $LFS
  mount /dev/sda2 $LFS
3. Mount your swap partition (skip this step if you do not use any swap partitions)
  swapon /dev/sda1
4. Mount the virtual kernel filesystems
  mount -vt proc proc $LFS/proc
  mount -vt sysfs sysfs $LFS/sys
5. Entering the chroot environment
  chroot "$LFS" /tools/bin/env -i \
  HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
   PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
  /bin/bash --login +h
6. Populating /dev
  mount -nvt tmpfs none /dev
  /sbin/udevstart
  mkdir -v /dev/pts
  mkdir -v /dev/shm
  mount -vt devpts -o gid=4,mode=620 none /dev/pts
  mount -vt tmpfs none /dev/shm
7. Entering your working directory
  cd /sources

Section 6.61. Stripping Again
=============================
If you reboot your computer at this moment, steps to resume the building
environment are:
1. Restart computer and boot from LiveCD
2. Mount your lfs partition
  export LFS=/mnt/lfs
  mkdir -pv $LFS
  mount /dev/sda2 $LFS
3. Mount your swap partition (skip this step if you do not use any swap partitions)
  swapon /dev/sda1
4. Mount the virtual kernel filesystems
  mount -vt proc proc $LFS/proc
  mount -vt sysfs sysfs $LFS/sys
5. Entering the chroot environment
  chroot $LFS /tools/bin/env -i \
  HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
  PATH=/bin:/usr/bin:/sbin:/usr/sbin \
  /tools/bin/bash --login
6. Populating /dev
  mount -nvt tmpfs none /dev
  /sbin/udevstart
  mkdir -v /dev/pts
  mkdir -v /dev/shm
  mount -vt devpts -o gid=4,mode=620 none /dev/pts
  mount -vt tmpfs none /dev/shm
7. Entering your working directory
  cd /sources

From section 6.62. Cleaning Up to The End
=========================================
From this point till the end of the whole LFS build. Steps to resume the building
environment are:
1. Restart computer and boot from LiveCD
2. Mount your lfs partition
  export LFS=/mnt/lfs
  mkdir -pv $LFS
  mount /dev/sda2 $LFS
3. Mount your swap partition (skip this step if you do not use any swap partitions)
  swapon /dev/sda1
4. Mount the virtual kernel filesystems
  mount -vt proc proc $LFS/proc
  mount -vt sysfs sysfs $LFS/sys
5. Entering the chroot environment
  chroot "$LFS" /usr/bin/env -i \
  HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
   PATH=/bin:/usr/bin:/sbin:/usr/sbin \
  /bin/bash --login
6. Populating /dev
  mount -nvt tmpfs none /dev
  /sbin/udevstart
  mkdir -v /dev/pts
  mkdir -v /dev/shm
  mount -vt devpts -o gid=4,mode=620 none /dev/pts
  mount -vt tmpfs none /dev/shm
7. Entering your working directory
  cd /sources


Changelog:
1.0. Initial Version

此帖于 06-03-04 17:25 被 晨想 编辑.
  晨想 当前离线   回复时引用此帖
旧 06-03-04, 23:21 第 21 帖
youbest
 
youbest 的头像
 
 
版主  
  注册日期: Jan 2005
  帖子: 1,524
  精华: 20
 

感谢二位.
如果在翻译的过程中觉得哪个步骤有问题一定要告诉我啊,好及时改正。
(我自己觉得应该是没问题的,我自己测试过的)







__________________
我的第一本图书出版了!
http://blogold.chinaunix.net/u/13265/showart.php?id=2409099

青橄榄在入口的时候是苦的,过了一会你就可以长久的品味那淡淡而又清爽的甜味。

青橄榄 http://youbest.cublog.cn

青橄榄计划的第一步总算迈出来了,等待它的是万里长征.

做技术要有做技术的原则,决不拿技术做侵权的事情,更不能用来做违法的事情。工作丢了可以再找一个,原则丢了就找不回来了。

此帖于 06-03-05 01:03 被 youbest 编辑.
  youbest 当前在线   回复时引用此帖
旧 06-03-05, 13:12 第 22 帖
d00m3d
 
d00m3d 的头像
 
 
资深版主  
  注册日期: Nov 2004
  帖子: 14,541
  精华: 10
 

Thanks for your verifications.

更正:我的電郵是 d00m3d 在 sina 的 com

另外,我看 linuxfromscratch.org 上的 hints 都是用 GNU Free Documentation License Version 1.2,我對此不熟識,所以沒有填上,幻想老大請 study 一下
  d00m3d 当前离线   回复时引用此帖
旧 06-03-05, 15:06 第 23 帖
晨想 帅哥
 
晨想 的头像
 
 
资深版主  
  注册日期: Feb 2003
  我的住址: P.R.China
  帖子: 9,643
  精华: 9
 

sorry噢,你的email 打错了。

那个 license 我已经改了,不过这边没更新。。谢谢提醒。
  晨想 当前离线   回复时引用此帖
旧 06-04-21, 14:53 第 24 帖
晨想 帅哥
 
晨想 的头像
 
 
资深版主  
  注册日期: Feb 2003
  我的住址: P.R.China
  帖子: 9,643
  精华: 9
 

http://www.linuxfromscratch.org/hint...and-resume.txt
  晨想 当前离线   回复时引用此帖
旧 06-04-21, 15:34 第 25 帖
d00m3d
 
d00m3d 的头像
 
 
资深版主  
  注册日期: Nov 2004
  帖子: 14,541
  精华: 10
 

嘿嘿,大家的心血总算没有白费了,谢谢幻想老大把 Hint 提交,现在全世界的 LFS 爱好者都能阅读了

youbest,you made us proud!

中国人以你为傲!
  d00m3d 当前离线   回复时引用此帖
旧 06-04-21, 16:14 第 26 帖
youbest
 
youbest 的头像
 
 
版主  
  注册日期: Jan 2005
  帖子: 1,524
  精华: 20
 

引用:
作者: d00m3d
嘿嘿,大家的心血总算没有白费了,谢谢幻想老大把 Hint 提交,现在全世界的 LFS 爱好者都能阅读了

youbest,you made us proud!

中国人以你为傲!
看的我心潮澎湃的~~,谢谢!

这是大家一起努力的结果!

大家还要继续努力啊。
  youbest 当前在线   回复时引用此帖
旧 06-04-22, 03:02 第 27 帖
晨想 帅哥
 
晨想 的头像
 
 
资深版主  
  注册日期: Feb 2003
  我的住址: P.R.China
  帖子: 9,643
  精华: 9
 

我只是做了最简单的那部分,最主要都让youbest兄干完了,还有d00m3d兄的翻译。。

我们要加油。^_^。
  晨想 当前离线   回复时引用此帖
旧 06-04-27, 15:18 第 28 帖
sccdyuebo
 
sccdyuebo 的头像
 
 
注册会员  
  注册日期: Jan 2003
  我的住址: 成都
  帖子: 30
  精华: 0
 

谢谢lz的帖子!!!
这样我编译更有信心了。哈哈!!!







__________________
What you are you do not see ,what you see is your shadow.
  sccdyuebo 当前离线   回复时引用此帖
旧 06-05-06, 12:28 第 29 帖
6hzzz
 
 
 
注册会员  
  注册日期: May 2006
  帖子: 18
  精华: 0
 

如此强帖,不顶是罪过!!!!
  6hzzz 当前离线   回复时引用此帖
旧 06-06-11, 15:54 第 30 帖
xiaoma 帅哥
 
xiaoma 的头像
 
 
注册会员  
  注册日期: Apr 2003
  帖子: 332
  精华: 14
 

6.1的时候,还是要/tools的。
原文中是有/tools这个路径的。







__________________
改用Gentoo了…………
  xiaoma 当前离线   回复时引用此帖
发表新主题 回复


主题工具

发帖规则
您 [不可以] 发表新主题
您 [不可以] 回复主题
您 [不可以] 上传附件
您 [不可以] 编辑您的帖子

已 [启用] BB 代码
已 [启用] 表情符号
已 [启用] IMG 代码
已 [禁用] HTML 代码
[论坛跳转…]


所有时间均为[北京时间]。现在的时间是 18:55


Powered by vBulletin 版本 3.6.8
版权所有 ©2000 - 2012, Jelsoft Enterprises Ltd.
官方中文技术支持: vBulletin 中文
版权所有 ©2002 - 2011, LinuxSir.Org