Ventoy has a plugin to work with the debian autoinstaller. Unfortunately, Ubuntu 20 comes with a new auto install method (cloud-init), which works differently. At first, I wasn't able to get it to work with Ventoy, so I made an account to ask for help; in the time it took the account to get activated, I solved the problem however. So here's how to do it in case anyone else has the same problem.
A working auto installer needs two files, one `meta-data` and one `user-data`. These need to be on a partition that has `cidata` as the partition label.
These files can not be put into the same partition that has the iso files, because that partition is locked while the booted software is running.
So, to get it to work:
A working auto installer needs two files, one `meta-data` and one `user-data`. These need to be on a partition that has `cidata` as the partition label.
These files can not be put into the same partition that has the iso files, because that partition is locked while the booted software is running.
So, to get it to work:
- When running Ventoy for the first time to install it on the USB drive, leave some space for a 3rd partition. On linux, that's `-r 16` to leave 16 MB at the end of the medium.
Code:ventoy-1.0.36/Ventoy2Disk.sh -I /dev/sdX -r 16
- Create a new partition on the medium
Code:fdisk /dev/sdX
n (new)
p (partition)
3 (partition number)
press return twice to confirm the sector numbers
t (type)
3 (partition number)
7 (vfat partition type)
w - format it to vfat, and name it `cidata`.
Code:mkfs.vfat -n cidata /dev/sdX3
- copy the ubuntu installer iso to the first partition, and your user-data and meta-data to the third partition