The Linux boot bootloader installs the Linux operating system and installs the boot boot to the hard drive to boot the operating system from the hard disk read mode. The bootstrapper is divided into 2 types: Lilo: The function is relatively simple, the use of more trouble, the subsequent release of the use of grub. The boot loader is saved in the hard disk sector and is responsible for booting the operating system that is specified in the hard disk partition to boot the program code. Windows has an operating system boot launcher for Windows, and Linux has a boot launcher for Linux operating systems. Linux is used by grub or Lilo,widows and Macs to have their own. The bootstrapper is integrated into the operating system installer. The installer of the operating system installs the bootloader into the first sector of the hard disk, and the operating system loads the bootloader in the boot process, booting the operating system through the boot loader. GRUB's 3 functions:1. Provides a true command-line interface, which, like the Linux shell interface, can be directly logged into the Grub command line. With grub, the OS must be restarted and the Grub interface can be accessed during the restart wait.
2supports the use of configuration files to define information about system startup. For example, the installation of 2 operating systems on the hard disk, the configuration of the Grub menu can be launched at the start of the choice of which operating system, not configured, then there is no switch menu, can never start an operating system. Grub configuration file One in the boot partition, but also under the main configuration directory of etc, these 2 files are the same. HTTPS://jingyan.baidu.com/article/f71d60379e16021ab641d1ab.html[email protected]:/etc/default# vim Grubgrub_default=0Grub_hidden_timeout=0Grub_hidden_timeout_quiet=trueGrub_timeout=10Grub_distributor= ' Lsb_release-i-S 2>/dev/NULL||echo Debian ' Grub_cmdline_linux_default= "quiet"Grub_cmdline_linux= "Find_preseed=/preseed.cfg auto noprompt priority=critical Locale=en_us"the primary partition of the winsows is Ntfs,linux is the ext3 primary partition. 3. Provide multi-system support mode. Grub can not only boot the Linux operating system but also boot dos,windows.
Single-user mode: When the Linux system error is going to go into single-user mode to repair, the equivalent of Windows security mode, you can repair the Linux system. Sometimes the root password is forgotten (unlike the Windows Administrate account can be cracked) will be re-installed, single-user mode can enter the single-user system to reset the administrator root password.
Press C to enter the command line, press E to edit the command startup option, to enter single user mode you must modify the kernel parameters. Single-user mode is not supported for network functions (only multi-user mode is supported by the network) and can only be operated locally. Linux FIX: If one day the Linux system does not come up, use the boot CD to repair the system. Linux systems are relatively stable and few systems fail to boot.
Linux boot loader grub, single-user mode: