硬盘上启动lfs livecd
c-aries@babyaries:~/software/lfs$ pwd
/home/c-aries/software/lfs
c-aries@babyaries:~/software/lfs$ ls
initramfs_data.cpio.gz lfs-sources
LFS-BOOK-6.3-HTML.tar.bz2 linux
lfslivecd-x86-6.3-r2160.iso Linuxsir手把手.tar.bz2
lfslivecd-x86-6.3-r2160-min.iso note
lfslivecd-x86-6.3-r2160-nosrc.iso
c-aries@babyaries:~/software/lfs$ sudo gedit /boot/grub/menu.lst
c-aries@babyaries:~/software/lfs$ tail /boot/grub/menu.lst
root (hd0,0)
kernel /vmlinuz-2.6.18-6-686 root=/dev/sda7 ro single
initrd /initrd.img-2.6.18-6-686
title LFS LiveCD
root (hd0,0)
kernel /livecd/lfs/linux root=iso:/dev/sda5:/c-aries/software/lfs/lfslivecd-x86-6.3-r2160.iso rw
initrd /livecd/lfs/initramfs_data.cpio.gz
### END DEBIAN AUTOMAGIC KERNELS LIST
c-aries@babyaries:~/software/lfs$
我的分区情况如下:
/dev/sda1 /boot
/dev/sda5 /home
/dev/sda6 swap
/dev/sda7 / Debian的根目录
/dev/sda8 / 用来装LFS及其它linux的实验分区
/home/c-aries/software/lfs
c-aries@babyaries:~/software/lfs$ ls
initramfs_data.cpio.gz lfs-sources
LFS-BOOK-6.3-HTML.tar.bz2 linux
lfslivecd-x86-6.3-r2160.iso Linuxsir手把手.tar.bz2
lfslivecd-x86-6.3-r2160-min.iso note
lfslivecd-x86-6.3-r2160-nosrc.iso
c-aries@babyaries:~/software/lfs$ sudo gedit /boot/grub/menu.lst
c-aries@babyaries:~/software/lfs$ tail /boot/grub/menu.lst
root (hd0,0)
kernel /vmlinuz-2.6.18-6-686 root=/dev/sda7 ro single
initrd /initrd.img-2.6.18-6-686
title LFS LiveCD
root (hd0,0)
kernel /livecd/lfs/linux root=iso:/dev/sda5:/c-aries/software/lfs/lfslivecd-x86-6.3-r2160.iso rw
initrd /livecd/lfs/initramfs_data.cpio.gz
### END DEBIAN AUTOMAGIC KERNELS LIST
c-aries@babyaries:~/software/lfs$
我的分区情况如下:
/dev/sda1 /boot
/dev/sda5 /home
/dev/sda6 swap
/dev/sda7 / Debian的根目录
/dev/sda8 / 用来装LFS及其它linux的实验分区