- Set GRUB's root device to the same drive as GNU/Linux's. The command
search --file --set /vmlinuz
or similar may help you. - Load the kernel using the commandlinux:
grub> linux /vmlinuz root=/dev/sda1
If you need to specify some kernel parameters, just append them to the command. For example, to setacpito ‘off’, do this:
grub> linux /vmlinuz root=/dev/sda1 acpi=off
See the documentation in the Linux source tree for complete information on the available options.
WithlinuxGRUB uses 32-bit protocol. Some BIOS services like APM or EDD aren't available with this protocol. In this case you need to uselinux16
grub> linux16 /vmlinuz root=/dev/sda1 acpi=off
Note:
linux /vmlinuz root=/dev/sda1 , the root stand for the "/" partition's position. When use command:set root=(hdx,y), this root stand for the "/boot" partition. This we must remember ! It's very important.
- If you use an initrd, execute the commandinitrdafterlinux:
grub> initrd /initrd
If you usedlinux16you need to useinitrd16:
grub> initrd16 /initrd
- Finally, run the commandboot.
Use GRUB2 to Boot Linux(from grub manual)
最新推荐文章于 2023-04-20 12:02:57 发布