6. Recompile the kernel to identify the Ext4 file system
7. Second Test start
8. Simulate init with the bash program
9. Third Test start
6. Recompile the kernel to identify the Ext4 file system
[[email protected] ~]# Cd/usr/src/linux[[email protected] linux]# make menuconfig//select Ext4 file to drive files systems---><*& Gt The Extended 4 (EXT4) filesystem[*] Ext4 POSIX Access Control Lists executable file formats/emulations--->[*] Ker Nel support for ELF binaries supported executables formats <*> Kernel supports for scripts starting with #! [[email protected] linux]# make bzimage//overwrite the original kernel file [[email protected] linux]# CP Arch/x86/boot/bzimage/mnt/boot/vmlinuz Cp:overwrite '/mnt/boot/vmlinuz '? Y
7. Second Test start
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/8B/60/wKioL1hL3tvjsHkjAABS1c9mW3Y238.png-wh_500x0-wm_3 -wmp_4-s_850800155.png "title=" 1.png "alt=" Wkiol1hl3tvjshkjaabs1c9mw3y238.png-wh_50 "/>
8. Simulate init with the bash program
[[email protected] ~]#./copycmd.sh//Command Replicator (copy command and corresponding library file we copy here/bin/bash test) [[email protected] ~]# vim/mnt/boot/grub/gr Ub.confdefault=0timeout=5hiddenmenutitle sxj minu root (hd0,0) kernel/vmlinuz root=/dev/sda2 Init=/bin/bash
9. Third Test start
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/8B/64/wKiom1hL3yKwvmptAAArz8y9wZQ299.png-wh_500x0-wm_3 -wmp_4-s_3731122473.png "title=" 2.png "alt=" Wkiom1hl3ykwvmptaaarz8y9wzq299.png-wh_50 "/>
This article is from the "Homecoming" blog, make sure to keep this source http://sixijie123.blog.51cto.com/11880770/1881531
Build a mini Linux from scratch (2)