ventoy needs 1mb free space at begining which is set when partitioning using windows or linux fdisk/sfdisk/
if error then fix is
apk add sfdisk
1. backup partition table
doas sfdisk -d /dev/sda > sda.bkp
cat sda.bkp
label: gpt
label-id: 6DFF8D76-C66D-9E4C-8227-04F623080190
device: /dev/sda
unit: sectors
first-lba: 34
last-lba: 1953525134
sector-size: 512
/dev/sda3 : start= 451397632, size= 473753600, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=021FDF9E-AB47-A64C-8530-EE4D2CD93A8B
/dev/sda2 : start= 925151232, size= 139851776, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=1343503D-421C-85FB-3BCD-E854496DE7FB
/dev/sda4 : start= 1065005056, size= 886421497, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=A2EDA5A4-8697-8948-8D46-5C85636E8DB4
/dev/sda1 : start= 4096, size= 451393536, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=8E65E7F2-5AB3-F148-88F7-4A4F1D410FE1
2. rename so that first sector starting is sda1 others dont matter rename whatever desired sdax and restore partition table
doas sfdisk /dev/sda < sda.bkp
3. if partition missing i.e /dev/sdax then
doas mdev -s
doas ./Ventoy2Disk.sh -n -i -g /dev/sda
requirements
There must be a free partition table to use in the disk mbr 4 limit , gpt 128 partitions limit
The 1st partition must start at 1MB : windows,fdisk,sfdisk created partitions satisfy this
The 1st partition must contains NTFS filesystem or +ext2/3/4 in linux : needs ntfs-3g , e2fsprogs
There must be some free space in the 1st partition : need 32mb free space, or unused partition after part1 to avoid shrinking
for windows first partition must be assigned drive letter
src
https://unix.stackexchange.com/questions/18752/change-the-number-of-the-partition-from-sda1-to-sda2
https://www.ventoy.net/en/doc_non_destructive.html
https://www.ventoy.net/en/doc_disk_layout_gpt.html
Comments
Post a Comment