-
Notifications
You must be signed in to change notification settings - Fork 24
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
[RFE] make vtoyboot also allow read-write of ventoy partition, that is heed VTOY_LINUX_REMOUNT #43
Comments
Try this vtoyboot in the attachment set VTOY_LINUX_REMOUNT=1 in Ventoy before boot the image or add VTOY_LINUX_REMOUNT=1 as a linux kernel boot parameter in grub.cfg. |
It works !! that's awesome !!
Shall both issues can be closed now ? The fix came so soon. The mind is flooded with potentials of this feature. many many thanks. |
There are two methods to tell vtoyboot to enable this feature. If you only want the vtoy image to enable this feature. Then you can add |
how to do it in grub.cfg please explain in detail |
@candrapersada , Check with forums particular to the Linux distribution you use, in case there are differences. Below is for Fedora. I haven't tested this myself, as I have set Ventoy global json setting, so let know if I missed something. Steps to set the in-image boot-loader's kernel-argument
The two ways of setting the option discussed above are:
My curiosity questions are, (Q1) How does the Ventoy json global option work? How does that parameter percolate into the image and be assigned in the initramfs dm script that does the ventoy-pivot-remount? One answer would be, that the outer ventoy-grub is config-loading the inner image grubs. Another answer would be, it is setting a firmware environment variable that is later probed by script. But, if any of these is the case, then there should also be a 3rd way, albeit non-persistent, to provide the setting, apart from the two ways discussed already, (Q2) that is, Can the option be set manually when booted into in the ventoy-grub, and then select the vtoy-vdisk. That is, in general, can Ventoy-options be set to value imperatively in the vetoy-grub prompt itself, on a need basis, i.e. toggled if boolean? |
changes persist during kernel+grub updates for Manjaro and Linux Mint? |
Manjaro is arch based, Mint is ubuntu/debian based. It is very likely the recent versions of both the said-distros use the same tools and boot up sequence, and to some extent the same partition and file layout as Fedora. So the same steps should work for them. You need to read up their documentation or ask on their respective forums. |
Edit
NO. |
Which manjaro iso file did you use to install the vtoy file? |
what is the cause of |
@candrapersada |
yes but not working for |
@candrapersada |
yes works well thank you |
|
Hi, I am currently trying out the following: menuentry "Try or Install Ubuntu" { Unfortunately it does not work. Do you have any ideas? |
you have to change vmlinuz also. below works for fedora live iso file. # replace default boot options in grub2
sudo sed -i 's/rd.live.image quiet rhgb/rd.live.image VTOY_LINUX_REMOUNT=1/g' /EFI/BOOT/grub.cfg # VTOY_LINUX_REMOUNT=1
sudo sed -i 's/rd.live.image quiet rhgb/rd.live.image VTOY_LINUX_REMOUNT=1/g' /boot/grub2/grub.cfg # VTOY_LINUX_REMOUNT=1
# modify boot option in kernel
sudo grubby --update-kernel /images/pxeboot/vmlinuz --remove-args="rhgb quiet" --args="VTOY_LINUX_REMOUNT=1" # /images/pxeboot/vmlinuz |
First, thanking you for such a awesome utility.
This is a follow-up to ventoy/Ventoy#1326 ([Feature Request]: On being able to mount the ventoy partition read-write from within booted OS)
Feature request: Make it possible for a ventoy-native-boot of fixed-raw-image to mount containing ventoy-partition as read-write. This will make custom-install raw-image to be feature-par with liveiso-image. This will also make ventoy-native-booting an image work just like chainloading a linux-partition.
Present status: As of today, ventoy-native-boot of fixed-raw-image will not allow remounting of the containing ventoy-partition as read-write. The mount command inside the booted-OS will complain that the partition is busy/dirty.
As described in comment- this feature is far more useful to a native-boot of custom-install image than a liveiso image.
Microsoft fixed size VHDX-native-boot allows the native-booted Win-OS to be able to edit files in the containing filesystem. So Ventoy/Linux should also aspire to do the same."
The text was updated successfully, but these errors were encountered: