How to recover after rebooting the LFS procession
来源:互联网 发布:apache ab源码下载 编辑:程序博客网 时间:2024/06/10 04:32
1. Reboot the PC -> Boot from the LFS LiveCD.
2. Mount the Partition:
export LFS=/mnt/lfs mkdir -pv $LFS mount /dev/hda2 $LFS
3. Moun the Swap (You can skip this step if you don't wan't to use the Swap or you haven't the Swap):
swapon /dev/hda1
4. Build the Toolchain:
ln -sv $LFS/tools /
5. Creat the user lfs:
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. Create the Environment of user lfs:
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. Using the command "export" to take a check, the result should be:
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"
8. Enter the compile directory, and the recover work is finished.
cd $LFS/sources
- How to recover after rebooting the LFS procession
- How to download the LFS tarballs via eDonkey
- How to recover when the SAP spool is full
- How to do the trade after new updates?
- [HttpClient]: How to find the final URI after redirects
- How To Change The Asm Rebalancing Power After Starting The Rebalancing Process
- How to recover a SQL Server Database
- How To Recover From Corrupted OCR Disk
- [游泳] How to Quickly Recover from Swimming
- How to recover deleted files on Linux
- How to recover from USB pipe errors
- Tips: How to resolve the issue of MySQL about abnormal login after system launched.
- WF-How to purge e-mail notifications from the Workflow queue - after clone
- How to Restore the Database Using AMDU after Diskgroup Corruption (Doc ID 1597581.1)
- how to remain a TObject after the corresponding TFile is closed
- flex/in the datagrid,how to get the new value of cell in the datagrid after edit
- Stop Windows from rebooting after automatic updates
- How to construct/destruct before/after main()
- 《30天精通iPhone手机编程》-Day28-触屏移动
- 医院营销 民营医院企划的内涵及形式与内容
- 创业 股份比例与合伙人
- c++操作符重载
- 13 个应该记住的最不寻常的搜索引擎
- How to recover after rebooting the LFS procession
- 休みの日本語二課
- 剖析Shapefile
- MyEclipse8.6生成注册码
- #pragma pack()与__declspec(align())
- POJ 1236 Network of Schools
- winform datagridview增加合计行
- 创业团队 不要均分股份
- ACM培养的是能力