如何在U盘安装Ubuntu同时支持bios和uefi启动
日期 2022年5月26日
如果您觉得方案管用请 留言 和 点赞. 谢谢!
此方法来自网站StackExchange
原网址:https://askubuntu.com/questions/1300454/easy-full-install-usb-that-boots-both-bios-and-uefi
我在百度上以及哔哩哔哩上找了很多在U盘中安装ubuntu的方法, 但都不是很管用.
出现的问题包括:
- 安装的ubuntu只是装机版的, 不能保存文件或软件.
- 无法用uefi启动
最后我使用了StackExchange上的这个方法成功将ubuntu安装在u盘上. 而且这个方法非常简单, 只需要大概7分钟左右.
方法如下:
原文以方便复制链接:
Install Ubuntu from a Pre-built Image File.
This is another version of sudodus answer in step by step format.
If working in Windows:
Download Image File: from mkusb Index of /isos/linux-tools/uefi-n-bios at https://phillw.net/isos/linux-tools/uefi-n-bios/?C=M;O=D Download Link: https://phillw.net/isos/linux-tools/uefi-n-bios/dd_unb_ubuntu-20.04_15GB_2020-06-26.img.xz Link to MD5SUM's: https://phillw.net/isos/linux-tools/uefi-n-bios/md5sum.txt.ascdd_unb_ubuntu-20.04_15GB_2020-06-26.img.xz
Download Rufus*: https://github.com/pbatard/rufus/releases/download/v3.11/rufus-3.11.exe
Etcher may also be used to flash the image: https://www.balena.io/etcher/
Double click Rufus .exe file.
Select USB drive as Target drive in Rufus.
Select above Image File in Rufus.
Click Rufus start button.
Wait for flashing to complete... Done.
Password is "changeme", change it
The USB drive should boot on almost any modern X86-64 computer.
enter image description here
Thanks to sudodus for the image file.
In Windows it may be necessary to install 7Zip before proceeding. Rufus and Etcher will use it when working with the .xz image: https://www.7-zip.org/a/7z1900-x64.exe
If working in Ubuntu: you can use mkusb, Disks or Etcher to flash the USB drive. If using mkusb, select option "c" Cloning iso file... for flashing the image to disk. P7zip may be needed to extract the .xz image with Disks or Etcher.