Some time ago said to get the Linux from scratch, because of a number of reasons to drag and drop, with the passage of time, this desire more and more intense, today finally successfully completed the first step of Long March.
Linux from scratch the best tool is still LFSLIVECD, I adopted the official latest version lfslivecd-x86-6.3-r2145.iso, although compared with the current Linux is very old, but from the perspective of learning is enough. Besides, my computer is 10 years away, and the system is ready.
First, pre-preparation
Download Grub4dos, there are many online.
Download Lfslivecd-x86-6.3-r2145.iso,http://ftp.osuosl.org/pub/lfs-livecd/lfslivecd-x86-6.3-r2145.iso
Second, make USB boot disk
Install the grub4dos on the U-plate, refer to http://www.360doc.com/content/10/0821/13/2447514_47676642.shtml in detail. Need to refresh to open, there is no need to be so complicated, as long as it can be activated on the line.
2. Edit the Menu.lst file.
Title LFS LiveCD
Root (hd0,0)
Kernel/boot/isolinux/linux rw Root=iso:/dev/sda1:/boot/lfs/lfslivecd-x86-6.3-r2145.iso rootfstype=vfat maxcpus=0 Acpi=off rootdelay=20 Load=ide-generic
Initrd/boot/isolinux/initramfs_data_cpio. GZ
Description: The specific parameters should be set according to their own computer. The meaning is as follows
Title LFS LiveCD
Set the title to LFS LiveCD
Root (hd0,0)
Grub Startup Root location, unlike Linux, my U disk in the first, so is (hd0,0), other computers may also be (hd1,0) and so on.
Kernel/boot/isolinux/linux rw Root=iso:/dev/sda1:/boot/lfs/lfslivecd-x86-6.3-r2145.iso rootfstype=vfat maxcpus=0 Acpi=off rootdelay=20 Load=ide-generic
My U-disk is the first position, so/dev/sda1, other computers may be/dev/sdb1. The meanings of the other parameters are:
RW: Readable and writable
Partition of ROOTFSTYPE=VFAT:U disk is FAT32 or FAT partition
Number of MAXCPUS=0:CPU settings
Acpi=off: Turn off ACPI
ROOTDELAY=20: The time to read the ISO image is set to 20 seconds, which is the official recommendation, 10 seconds may also be OK.
Initrd/boot/isolinux/initramfs_data_cpio. GZ
You can refer to this post: http://m.blog.csdn.net/blog/handsomecheung/3588314
This article is from the "SFJ" blog, make sure to keep this source http://9489397.blog.51cto.com/9479397/1676864
U-Disk Start Lfslivecd-x86-6.3-r2145.iso