admin管理员组

文章数量:1545778

目标

在windows下把一个8GB的u盘制作为grub2引导的多启动U盘(可启动wepe,安装centos7,debian10等)

同时支持bios主板和uefi主板

 

工具准备

a.一个windows 10电脑

b.windows 10电脑安装好virtualbox,安装了一个linux虚拟机

c.一个U盘,这里的容量是8GB

d.一些软件

 

分区软件diskgenius https://www.diskgenius/download.php

grub-2.04-for-windows https://ftp.gnu/gnu/grub/grub-2.04-for-windows.zip

grub4dos http://dl.grub4dos.chenall/grub4dos-0.4.6a-2021-05-16.7z

 

系统镜像

centos7 http://isoredirect.centos/centos/7/isos/x86_64/

debian10 https://cdimage.debian/debian-cd/current/amd64/iso-cd/

debian10 安装需要的vmlinuz和initrd.gz两个文件

http://http.us.debian/debian/dists/Debian10.9/main/installer-amd64/current/images/hd-media/vmlinuz

http://http.us.debian/debian/dists/Debian10.9/main/installer-amd64/current/images/hd-media/initrd.gz

ubuntu 16.04 desktop https://releases.ubuntu/16.04/

微PE工具箱  http://www.wepe/download.html

Gparted https://gparted/download.php

 

步骤简述

给u盘分区和格式化->安装grub2到u盘->放置文件,配置grub2.cfg->测试u盘启动效果

 

详细步骤

1.u盘分区和格式化

使用分区软件diskgenius将U盘分出来一个区,类型为GPT或者MBR,文件系统选择fat32格式。因为UEFI支持在fat32格式引导,

UEFI不支持ntfs格式的引导。 这里为了保证兼容BIOS和UEFI固件,选择了fat32格式的文件系统。

分区有风险,新手必须谨慎!U盘有数据,必须先备份。分清硬盘和U盘的区别,选择U盘操作,千万不要操作电脑的硬盘。

 

官方分区帮助网页 

本文标签: WindowsWePE