partition, example: Chainloader +1Bootstart the operating system. Before using this command, the system kernel or boot sector/boot file must be loaded into memory with kernel or chainloader. Example: Bootyou do not need to use this command in the configuration file. This is because grub automatically adds boot after all the commands for the menu item are executed. This command is typically used in the comm
cannot read the contents of a simulated floppy disk, it indicates that the read location is incorrect [the sector on another disk may be read], which indicates that writing a simulated floppy disk will cause a disaster. Therefore, we recommend that you use the -- Read-Only parameter to confirm when running Win98 to ensure security.
For version 0.2.x, if a problem only causes a "crash", this is not considered a security issue. Security issues are counted only when a disk sector is damaged.
There
:
Title: Defines the name of the Linux boot menu item
Root: Set grub root device (root) to the partition where the Linux kernel resides
Kernel: Load Linux kernel files with the Linux kernel file as parameters after using the kernel command
INITRD: Loading the image file with the INITRD command
4.4 Configuring the Startup menu item for WindowsInstead of booting directly from the kernel files of the Windows system, grub does so by invoking the boot loader of the Windows o
: Cd/boot/grubThen enter sudo gedit grub.cfg, open the Grub.cfg file, search to find windows, and then delete the following is the same as the original.[Plain]View Plaincopy print?
# # # Begin/etc/grub.d/25_custom # #
Menuentry "Efi/efi/boot/bootx64.efi" {
Search--fs-uuid--no-floppy--set=root d000ed6a-5303-40aa-a517-af50e807c0e9
Chainloader (${root})/efi/efi/boot/bootx64.efi
}
Menuentry "Efi/efi/ubuntu/mokmanager.efi" {
located in;/boot/grub. conf
# Grub. conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a/boot partition. This means that
# All kernel and initrd paths are relative to/, eg.
# Root (hd0, 0)
# Kernel/boot/vmlinuz-version ro root =/dev/hda1
# Initrd/boot/initrd-version.img
# Boot =/dev/hda
Default = 0
Timeout = 3
Splashimage = (hd0, 0)/boot/grub/splash.xpm.gz
Title Red Hat Linux (2.4.18-14)
Root (hd0, 0)
Kernel/boot/vm
folder in the root directory of the U disk, such as adding DM9.57 bilingual version, Diskgen disk Partitioning tool, Memtest memory detection tools and GHOST11.02 four tools. Also, after you add the tool, edit the configuration file to make it work. Deep WinPE v4.2 's Grub menu profile is stored in the MENU.DPE under the U disk root directory, and other PE is basically in the menu file, although the extension may be slightly different.
MENU.DPE file on the right, choose to open Notepad, you ca
folder in the root directory of the U disk, such as adding DM9.57 bilingual version, Diskgen disk Partitioning tool, Memtest memory detection tools and GHOST11.02 four tools. Also, after you add the tool, edit the configuration file to make it work. Deep WinPE v4.2 's Grub menu profile is stored in the MENU.DPE under the U disk root directory, and other PE is basically in the menu file, although the extension may be slightly different.
MENU.DPE file on the right, choose to open Notepad, you ca
General U disk boot under the root directory has a menu.lst file, this is to add or subtract the startup option of the configuration file, the following example, let us specifically understand:
Title Start the operating system on the first hard drive first primary partition (hd0,0)
Rootnoverify (hd0,0)
Makeactive
Chainloader +1
Title Start the operating system on the first hard drive secondary primary partition (hd0,1)
Rootnoverify (hd0,1)
Make
Using a USB flash drive as a startup disk is not just a choice for WinPE, it can also be used to launch systems and some common tools, such as ghost tools. So how do you edit the USB boot menu? Just modify the Menu.lst file.
The user can modify the following example according to their own needs.
Title Start the operating system on the first hard disk primary partition (hd0,0)
Rootnoverify (hd0,0)
Makeactive
Chainloader +1
Title Start the operati
folder in the root directory of the USB stick, such as adding DM9.57 bilingual version, Diskgen disk Partitioning tool, Memtest Memory Detection Tool and GHOST11.02 four tools. Similarly, when you have finished adding tools, you can edit the configuration file to make it work. The Grub menu profile for Deepin v4.2 is stored in the MENU.DPE in the root directory of the USB stick, and the other PE is also in the menu file, although the extension may be slightly different.
MENU.DPE file Right-cli
Install the system and run grub: "grubloading ...... Gruberror15 "-- general Linux technology-Linux technology and application information. For more information, see the following section. When only grub> appears on the screen, many people are overwhelmed, so they often reinstall linux or even windows. In fact, this problem is easy to solve. First, for beginners to see this article, enter the following characters after grub>:
Grub> root (hd0, 0)
Grub> rootnoverify (hd0, 0)
Grub>
. If the image is black, it is transparent.Set color_normal = black/blackSet color_highlight = magenta/black# The font color of the selected item, which is transparent when the black image is available.Set menu_color_normal = cyan/blackSet menu_color_highlight = black/black#===================================================== ====================================== ## Change the colors. You can Change the background color if you cannot see it clearly.Menuentry "Change the colors "{Set menu_color
single system, and do not use Grub_hidden_timeout_quiet when commented out=true# don't know Grub_timeout=0# countdown, less than equals zero infinite wait grub_distributor= ' Lsb_release-i-S2>/dev/NULL||echo Debian ' Grub_cmdline_linux_default="Quiet Splash"Grub_cmdline_linux="Acpi_backlight=vendor"All boot modules are commented out in/etc/grub.d/25_custom (important Ubuntu,ubuntu Advanced and Windows boot Manager are not defined here)#!/bin/shexec Tail-N +3$0#menuentry"Windows UEFI Bootmgfw.ef
Directory
1. Grub plaintext encryption;Ii. MD5 encryption method of grub;
1. Use the grub-md5-crypt to generate the MD5 password of grub;
2. Change/etc/grub. conf
Iii. About this articleIv. ReferencesV. Related Documents
++ ++Body++ ++
1. Grub plaintext encryption;
For example, before I set the password,/etc/GRUB looks like this:
default=1timeout=10splashimage=(hd0,7)/boot/grub/splash.xpm.gztitle Fedora Core (2.4.22-1.2061.nptl)root (hd0,7)kernel /boot/vmlinuz-2.4.22-1.2061.nptl ro root=L
grub. cfg file. :
Declare the following Windows 7 startup Item:
### BEGIN /etc/grub.d/30_os-prober ###menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-XXX' {insmod part_msdosinsmod ntfsset root='hd0,msdos1'chainloader +1}### END /etc/grub.d/30_os-prober ###
After ### END/etc/grub. d/00_header. XXX is the UUID of your Windows 7 system partition.
After the modification, after the restart, the
I. Modification of MENU.LST files
The user modifies the following example according to their own needs.
Title Start the operating system on the first hard drive first primary partition (hd0,0)
Rootnoverify (hd0,0)
Makeactive
Chainloader +1
Title Start the operating system on the first hard drive secondary primary partition (hd0,1)
Rootnoverify (hd0,1)
Makeactive
Chainloader +1
Title Start Windows
Use a U disk to do the startup disk generally not only winpe this option, but also can be used to start the system and some common tools, such as ghost tools. So how to edit the U disk boot menu? Just modify the Menu.lst file.
The user modifies the following example according to their own needs.
Title Start the operating system on the first hard drive first primary partition (hd0,0)
Rootnoverify (hd0,0)
Makeactive
Chainloader +1
Title Start the
Disk 1:ubuntu12.04 Win7
Disk 2:XP
sudo update-grub results only Win7 and Ubuntu, click win7 into the system, see Win7 and xp,win7 can start, but XP cannot. So I found a grub file with someone else's XP and Ubuntu in the web search.
Found my missing a word, drivemap-s (hd0) ${root}, so plus on the OK.
That is, add the following content to the/boot/grub/grub.cfg
Menuentry "Windows XP"--class Windows--class os {
Insmod NTFS
Set root= ' (hd0,1) '
Search--no-floppy--fs-uuid--set=root 4c844b34
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.