UEFI,dd烧录windows早期的iso到usb,启动不了。dd,Ubuntu19的iso到usb可以启动,但是需要在bios中开启CMS的支持。fdisk查看分区信息:
Disk /dev/sde: 115.6 GiB, 124117843968 bytes, 242417664 sectors
Disk model: DataTraveler 3.0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x6132549e
Device Boot Start End Sectors Size Id Type
/dev/sde1 * 0 4812191 4812192 2.3G 0 Empty
/dev/sde2 4073124 4081059 7936 3.9M ef EFI (FAT-12/16/32)
/dev/sde3 4812800 242417663 237604864 113.3G 83 Linux
但是Gparted,显示是iso9660 filesytem type。
ubuntu安装完毕后,可以关闭CMS的支持,能够正常启动,df查看
/dev/sda1,挂载到了/boot/efi,安装了grub efi。
dd win 10的iso到usb,启动不了,不管是不是开启CMS。Gparted查看是udf文件系统。
$ sudo fdisk /dev/sde
Welcome to fdisk (util-linux 2.33.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
The old udf signature will be removed by a write command.
Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0x110f2e36.
根据网上的文章,直接讲U盘,格式化为gpt分区表,创建FAT32分区,将iso里面的东西拷贝到FAT32分区即可。但是拷贝的时候,发现有大于4G的文件,于是尝试使用NTFS分区,但是发现在笔记本上启动不了。笔记本比较老,可能不支持NTFS。于是搜索到了参考中的文章。创建FAT32分区和NTFS两个分区。FAT32分区放sources/以外的所有文件,加上sources/boot.vim文件。NTFS分区放sources下面的所有文件。这样成功的在笔记本上启动了windows安装界面。
先安装的Ubuntu,然后在另外一个分区安装了windows。安装ubuntu和windows的时候,都创建了efi boot分区。由于windows后安装,所以windows修改启动,现在只能从windows启动。
找到参考中的一篇文章,
bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi
cmd以管理员运行,执行上述命令,重启,进入了grub菜单。可以进入ubuntu。
参考:
https://techbit.ca/2019/02/creating-a-bootable-windows-10-uefi-usb-drive-using-linux/
https://itsfoss.com/no-grub-windows-linux/