LFS 6.5 jhalfs-参考
终于上传了 http://imghch.com/lfslivecd-update.iso ,LFS-6.5 的 livecd 大家可以下载了。
准备分区
进入后可以看看 /root/bin/partitioning,里面是大致的分区任务 : 
代码:
#/bin/sh [ ! $1 ] && { echo 'Disk parameter please!'; exit; } cd / fdisk /dev/$1 << EOF n p 1 +500M n p 2 w EOF cd - mkswap /dev/$11 swapon /dev/$11 mkfs -t ext3 /dev/$12 mount /dev/$12 $LFS
请小心运行
jhalfs
分区准备好后:
代码:
chown jhalfs:jhalfs $LFS -R su - jhalfs cd jhalfs-2.3.2 make
退出回答 yes (不用改任何设置,都是配置好的),静候 n 小时,LFS 6.5 就 OK 了。
grub
jhalfs 2.3.2 没有安装 grub 包,所以 jhalfs 完成后需要参照 LFS book 的以下部分安装 grub:
http://www.linuxfromscratch.org/lfs/...06/kernfs.html
代码:
mount -v --bind /dev $LFS/dev mount -vt devpts devpts $LFS/dev/pts mount -vt tmpfs shm $LFS/dev/shm mount -vt proc proc $LFS/proc mount -vt sysfs sysfs $LFS/sys
http://www.linuxfromscratch.org/lfs/...06/chroot.html
代码:
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
http://www.linuxfromscratch.org/lfs/...er08/grub.html
代码:
cd /sources tar xf grub-0.97.tar.gz cd grub-0.97 patch -Np1 -i ../grub-0.97-disk_geometry-1.patch patch -Np1 -i ../grub-0.97-256byte_inode-1.patch ./configure --prefix=/usr make CFLAGS="-march=i486 -mtune=native -Os" make check make install mkdir -v /boot/grub cp -v /usr/lib/grub/i386-pc/stage{1,2} /boot/grub grub root (hd0,1) setup (hd0) quit cat > /boot/grub/menu.lst << "EOF" # Begin /boot/grub/menu.lst # By default boot the first menu entry. default 0 # Allow 30 seconds before booting the default. timeout 30 # Use prettier colors. color green/black light-green/black # The first entry is for LFS. title LFS 6.5 root (hd0,1) kernel /boot/lfskernel-2.6.30.2 root=/dev/hda2 EOF mkdir -v /etc/grub ln -sv /boot/grub/menu.lst /etc/grub logout umount -v $LFS/dev/pts umount -v $LFS/dev/shm umount -v $LFS/dev umount -v $LFS/proc umount -v $LFS/sys umount -v $LFS
grub 安装部分请酌情修改 root, setup 参数
menu.lst 部分请酌情修改 root(), root= 部分
其它
上传了安装视频,但不是很清楚:
http://v.youku.com/v_show/id_XMTI0ODg5MDgw.html
这里是清晰录像下载(1.5M):
http://imghch.com/lfslivecd-install.avi
如何升级 livecd 请参照 http://www.linuxsir.org/bbs/thread355823.html
或者 http://imghch.com/doc/lfs_r2160_livecd.html
这个 iso 我大概会保留2个月左右
                    
                
                
            
        
浙公网安备 33010602011771号