Merge pull request #21810 from lujun9972/add-MjAyMTA1MDQgS2VlcCBtdWx0aXBsZSBMaW51eCBkaXN0cm9zIG9uIGEgVVNCIHdpdGggdGhpcyBvcGVuIHNvdXJjZSB0b29sLm1kCg==

自动选题[tech]: 20210504 Keep multiple Linux distros on a USB with this open source tool
This commit is contained in:
Xingyu.Wang 2021-05-05 10:02:48 +08:00 committed by GitHub
commit e95e5db6df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,99 @@
[#]: subject: (Keep multiple Linux distros on a USB with this open source tool)
[#]: via: (https://opensource.com/article/21/5/linux-ventoy)
[#]: author: (Don Watkins https://opensource.com/users/don-watkins)
[#]: collector: (lujun9972)
[#]: translator: ( )
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: url: ( )
Keep multiple Linux distros on a USB with this open source tool
======
Create a multiboot USB drive with Ventoy, and you'll never be without
your favorite Linux distros.
![USB drive][1]
Giving friends and neighbors a bootable USB drive containing your favorite Linux distribution is a great way to introduce neophyte Linux users to the experience we all enjoy. There are still a large number of folks who have never heard of Linux, and putting your favorite distribution on a bootable USB drive is a great way to break the ice.
A few years ago, I was teaching an introductory computer class to a group of middle schoolers. We used old laptops, and I introduced the students to Fedora, Ubuntu, and Pop!_OS. When the class was over, I gave each student a copy of their favorite distribution to take home and install on a computer of their choice. They were eager to try their new skills at home.
### Put multiple distros on one drive
Recently, a friend introduced me to Ventoy, which (according to its [GitHub repository][2]) is "an open source tool to create bootable a USB drive for ISO/WIM/IMG/VHD(x)/EFI files." Instead of creating separate drives for each Linux distribution I want to share, I can create a single drive with _all_ my favorite Linux distributions on the drive!
![USB space][3]
(Don Watkins, [CC BY-SA 4.0][4])
As you might expect, a USB drive's size will determine how many distributions you can fit onto it. On a 16GB drive, I placed Elementary 5.1, Linux Mint Cinnamon 5.1, and Linux Mint XFCE 5.1… and still have 9.9GB free.
### Get Ventoy
Ventoy is open source with a [GPL v3][5] license and available for Windows and Linux. There is excellent documentation to download and install Ventoy on Microsoft Windows. The Linux installation happens from the command line, so it can be a little confusing if you're not familiar with that process. Yet, it's easier than it might seem.
First, [download Ventoy][6]. I downloaded the archive file to my desktop.
Next, extract the `ventoy-x.y.z-linux.tar.gz` archive (but replace `x.y.z` with your download's version number) using the `tar` command (to keep things simple, I use the `*` character as an infinite wildcard in the command):
```
`$ tar -xvf ventoy*z`
```
This command extracts all the necessary files into a folder named `ventoy-x.y.z` on my desktop.
You can also use your Linux distribution's archive manager to accomplish the same task. After the download and extraction are complete, you are ready to install Ventoy to your USB drive.
### Install Ventoy and Linux on a USB
Insert your USB drive into your computer. Change directory into the Ventoy folder, and look for a shell script named `Ventoy2Disk.sh`. You need to determine your USB drive's correct mount point for this script to work properly. You can find it by issuing the `mount` command on the command line or with the [GNOME Disks][7] command, which provides a graphical interface. The latter shows that my USB drive is mounted at `/dev/sda`. On your computer, the location could be `/dev/sdb` or `/dev/sdc` or something similar.
![USB mount point in GNOME Disks][8]
(Don Watkins, [CC BY-SA 4.0][4])
The next step is to execute the Ventoy shell script. Because it's designed to copy data onto a drive indiscriminately, I'm using a fake location (`/dev/sdx`) to foil copy/paste errors, so replace the trailing `x` with the letter of the actual drive you want to overwrite.
_Let me reiterate:_ This shell script is designed to copy data to a drive, _destroying all data on that drive._ If there is data you care about on the drive, back it up before trying this! If you're not sure about your drive's location, verify it until you're absolutely sure before you proceed!
Once you're sure of your drive's location, run the script:
```
`$ sudo sh Ventoy2Disk.sh -i /dev/sdX`
```
This formats the drive and installs Ventoy to your USB. Now you can copy and paste all the Linux distributions that will fit on the drive. If you boot the newly created drive on your computer, you'll see a menu with the distributions you have copied to your USB drive.
![Linux distros in Ventoy][9]
(Don Watkins, [CC BY-SA 4.0][4])
### Build a portable powerhouse
Ventoy is your key to carrying a multiboot drive on your keychain, so you'll never be without the distributions you rely on. You can have a full-featured desktop, a lightweight distro, a console-only maintenance utility, _and_ anything else you want.
I never leave the house without a Linux distro anymore, and neither should you. Grab Ventoy, a USB drive, and a handful of ISOs. You won't be sorry.
--------------------------------------------------------------------------------
via: https://opensource.com/article/21/5/linux-ventoy
作者:[Don Watkins][a]
选题:[lujun9972][b]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://opensource.com/users/don-watkins
[b]: https://github.com/lujun9972
[1]: https://opensource.com/sites/default/files/styles/image-full-size/public/lead-images/markus-winkler-usb-unsplash.jpg?itok=5ZXDp0V4 (USB drive)
[2]: https://github.com/ventoy/Ventoy
[3]: https://opensource.com/sites/default/files/uploads/ventoy1.png (USB space)
[4]: https://creativecommons.org/licenses/by-sa/4.0/
[5]: https://www.ventoy.net/en/doc_license.html
[6]: https://github.com/ventoy/Ventoy/releases
[7]: https://wiki.gnome.org/Apps/Disks
[8]: https://opensource.com/sites/default/files/uploads/usb-mountpoint.png (USB mount point in GNOME Disks)
[9]: https://opensource.com/sites/default/files/uploads/ventoy_distros.jpg (Linux distros in Ventoy)