Linux system boot process, grub reload.

Source: Internet
Author: User

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.