Today to understand the Linux boot process, as well as the composition of the kernel, let us build a small Linux.
Startup process:
POST-----Bootloader (divided into two segments 1, the first 446 bytes of the disk, 2,/boot/grub)------Kernerl--------mount the root filesystem as read-only--------/sbin/ init------Inittab Set Default Level
-------/etc/init/rcs.conf--------/etc/rc.d/rc.sysinit Execute the System initialization script, start and close the default level of service, re-mount the root filesystem for read-write, boot terminal, etc.
If/To use a logical volume, the boot must be partitioned separately because GRUB cannot access the logical volume.
Next try to reload Grub:
At the grub prompt, enter root (hd0,0) to specify the installation location.
650) this.width=650; "title=" c1h2]p{ei4sf80pxwp21l7v.jpg "src=" http://s3.51cto.com/wyfs02/M00/27/63/ Wkiol1nynysxjshuaafequskt18697.jpg "alt=" Wkiol1nynysxjshuaafequskt18697.jpg "/>
grub> Setup (hd0,0)
650) this.width=650; "Title=" X5@p[}g115y27 (i$0aodn86.jpg "src=" http://s3.51cto.com/wyfs02/M01/27/63/ Wkiom1nynutziolkaafi2xzmtt8631.jpg "alt=" Wkiom1nynutziolkaafi2xzmtt8631.jpg "/>
This will make the GRUB installation complete!
Method 2, how to install grub on another hard disk, can help damage the GRUB system disk to repair the boot.
First ensure that the boot directory under the partition, the program will automatically detect the boot directory installation.
# Grub-install--root-directory=/mnt/boot/dev/sdb
650) this.width=650; "title=" a92tf1z4}esag~84u ' 5h87m.jpg "src=" http://s3.51cto.com/wyfs02/M01/27/63/ Wkiom1nyrchqtwmfaafeuyfwn_y041.jpg "alt=" Wkiom1nyrchqtwmfaafeuyfwn_y041.jpg "/>
Installation is complete!
This article from the "Look for the Meaning of Life" blog, reproduced please contact the author!