Skip to content

[issue]: User data ventoy.json is destroyed on upgrade via Ventoy2Disk.sh -u #3210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
HaleTom opened this issue Apr 17, 2025 · 0 comments
Open
1 task done

Comments

@HaleTom
Copy link

HaleTom commented Apr 17, 2025

Official FAQ

  • I have checked the official FAQ.

Ventoy Version

1.1.05

What about latest release

No. I didn't try the latest release.

Try alternative boot mode

Yes. I have tried them, but the bug still exist.

BIOS Mode

Both

Partition Style

GPT

Disk Capacity

N/A

Disk Manufacturer

N/A

Image file checksum (if applicable)

None

Image file download link (if applicable)

No response

What happened?

/ventoy/ventoy.json is removed by Ventoy2Disk.sh -u /dev/sda

This is particularly bad, as the user is told that all the data is safe:

Upgrade operation is safe, all the data in the 1st partition (iso files and other) will be unchanged!

Demonstration:

% sudo mount /dev/sda2 /mnt/usbkey
% # Create an example ventoy.json to show that it will be removed later on:
% sudo touch /mnt/usbkey/ventoy/ventoy.json
% sudo umount /dev/sda2
% sudo /opt/ventoy/Ventoy2Disk.sh -u /dev/sda

**********************************************
      Ventoy: 1.1.05  x86_64
      longpanda admin@ventoy.net
      https://www.ventoy.net
**********************************************

Upgrade operation is safe, all the data in the 1st partition (iso files and other) will be unchanged!

Update Ventoy  1.1.05 ===> 1.1.05   Continue? (y/n) y
esp partition processing ...
update esp partition attribute

Update Ventoy on /dev/sda successfully finished.

% sudo mount /dev/sda2 /mnt/usbkey
% stat /mnt/usbkey/ventoy/ventoy.json
stat: cannot statx '/mnt/usbkey/ventoy/ventoy.json': No such file or directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant