ventoy / Ventoy

A new bootable USB solution.
https://www.ventoy.net
GNU General Public License v3.0
60.32k stars 3.94k forks source link

[issue]: Can't mount ventoy partition on RHEL 9.4 and latest CentOS Stream 9 #2827

Closed Realex-fire closed 1 month ago

Realex-fire commented 2 months ago

Official FAQ

Ventoy Version

CI

What about latest release

Yes. I have tried the latest release, but the bug still exist.

Try alternative boot mode

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

BIOS Mode

UEFI Mode

Partition Style

GPT

Disk Capacity

128GB

Disk Manufacturer

No response

Image file checksum (if applicable)

None

Image file download link (if applicable)

https://mirror.stream.centos.org/9-stream/BaseOS/x86_64/iso/

What happened?

After upgrading RHEL 9.3 to 9.4 the ventoy partition is not mounted with VTOY_LINUX_REMOUNT option. Probably RedHat backported some changes from the latest linux kernel to 5.14 (build 427 and next). You can also reproduce this issue on the latest Boot ISO of CentOS Stream 9. Screenshot with detailed information: https://ibb.co/XtpZ8Zk

This issue is also related to vtoyboot, on my VHD with RHEL 9.4 the ventoy partition is not mounted too. I'm using latest CI release and vtoyboot-1.0.31 for VHD, Secure Boot is disabled.

ventoy commented 1 month ago

You mean that it can work OK with RHEL 9.3 but can not work with RHEL9.4?

Realex-fire commented 1 month ago

Yes, @ventoy. Also it can work OK on RHEL 9.4 with kernel from RHEL 9.3.

ventoy commented 1 month ago

You can try the CI release: https://www.ventoy.net/en/doc_github_ci.html https://github.com/ventoy/Ventoy/actions/runs/9075095164

Also with vtoyboot-1.0.33: https://github.com/ventoy/vtoyboot/releases/tag/v1.0.33

Realex-fire commented 1 month ago

Hello @ventoy. Thanks for trying to fix it, but now the VTOY_LINUX_REMOUNT feature does not work on RHEL 9.4 and RHEL 9.3, dmesg log has not changed. I tested vtoyboot-1.0.33 with kernels from RHEL 9.4 and RHEL 9.3, and it doesn't work on my VHD. vtoyboot-1.0.31 worked well with kernels from RHEL 9.3 but did not work with kernels from RHEL 9.4.

ventoy commented 1 month ago

I tested with Rocky linux 9.4 and it work OK. I can not download RHEL 9.4, but I think it's similar to Rocky9.4.

image

Realex-fire commented 1 month ago

Yes, it does work on ISO (Rocky 9.4 and RHEL 9.4), but it doesn't work on my VHD with vtoyboot-1.0.33. @ventoy, did you test vtoyboot-1.0.33 on Rocky 9.4 VHD or only the ISO? I also noticed that on the latest CentOS Stream 9 VTOY_LINUX_REMOUNT feature doesn't work on ISO.

Edit: I noticed that you have not updated the vtoytool binaries in vtoyboot-1.0.33. I replaced them with https://github.com/ventoy/Ventoy/commit/44fb9f456480f7d3feb0b35a32d08ae32a713883 but it didn't help.

ventoy commented 1 month ago

Try this CI release https://github.com/ventoy/Ventoy/actions/runs/9146010459

I tested with CentOS-Stream-9-20240513.0-x86_64-boot.iso and it works OK.

And also I released vtoyboot-1.0.34 but I have not tested yet.

Realex-fire commented 1 month ago

Thanks, @ventoy. I tested vtoyboot-1.0.34 on my VHD (RHEL 9.4) and it still doesn't work. Maybe I need to provide some additional information?

ventoy commented 1 month ago

You need to make a fresh new VHD with new vtoyboot version. Or you can do as follows:

  1. Change the xxx.vtoy file to its original name (e.g. xxx.vdi)
  2. Boot the vhd file with the VM that created it before.
  3. Download vtoyboot-1.0.34 and decompress it an re-run vtoyboot.sh inside the VM
  4. Change suffix to xxx.vtoy and boot with Ventoy.
ventoy commented 1 month ago

I will test with a Rocky9.4 VHD later.

ventoy commented 1 month ago

I have just fixed some bug and released vtoyboot-1.0.35. I have tested with Rocky9.4 VHD and it work OK, you can try.

Do as follows:

  1. Use Ventoy to boot your VHD. (This time the VTOY_LINUX_REMOUNT option will not take effect)
  2. Download vtoyboot-1.0.35 and run vtoyboot.sh
  3. reboot and use Ventoy to boot your VHD agagin. (This time VTOY_LINUX_REMOUNT should work)
Realex-fire commented 1 month ago

Thanks @ventoy, but you probably forgot to upload the vtoyboot-1.0.35.iso file in the Releases section. Only the Source code is available now. I think I also understood what the bug was. Is it a $AWK typo? 🙂

ventoy commented 1 month ago

I have upload the vtoyboot-1.0.35.iso now.

Realex-fire commented 1 month ago

Thanks a lot. Everything is working fine now. I am closing this issue.