首页 > 代码库 > grub2 windows版安装

grub2 windows版安装

查看磁盘情况

E:\grub-2.02-for-windows>wmic diskdrive list brief
Caption                   DeviceID            Model                     Partitions  Size
INTEL SSDSCKKF256H6L      \\.\PHYSICALDRIVE0  INTEL SSDSCKKF256H6L      3           256052966400
SanDisk Ultra USB Device  \\.\PHYSICALDRIVE1  SanDisk Ultra USB Device  2           30746096640

 

grub2 mbr安装

E:\grub-2.02-for-windows>grub-install.exe --target=i386-pc \\.\PHYSICALDRIVE1
Installing for i386-pc platform.
Installation finished. No error reported.

 

grub2 UEFI安装

给Sandisk Ultra U盘在末段分一个少于 1G 的FAT16 格式的分区,并且改变分区类型为:

0xEF Partition with an EFI file system  【可能需要】

 

grub-install --target=x86_64-efi  --modules="part_gpt fat normal" --efi-directory=盘符: --boot-directory=盘符:   --bootloader-id=boot 

grub2 windows版安装