Ventoy Forums
vt_browser_dir - Printable Version

+- Ventoy Forums (https://forums.ventoy.net)
+-- Forum: Ventoy General Use —— Ventoy 使用交流 (https://forums.ventoy.net/forumdisplay.php?fid=1)
+--- Forum: Ventoy Discussion Forum (https://forums.ventoy.net/forumdisplay.php?fid=2)
+--- Thread: vt_browser_dir (/showthread.php?tid=2604)

Pages: 1 2


vt_browser_dir - serhat100 - 08-02-2023

hello master longpanda. Could you please help me to type the below command manually?

https://github.com/ventoy/Ventoy/blob/d0e10f8e48d4550cd484a2d114ef97f8a3dacaea/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_browser.c#L373

"  vt_browser_dir %s 0x%lx \"%s/%s\"\n"

0x%lx How can I name this expression?

https://github.com/ventoy/Ventoy/blob/d0e10f8e48d4550cd484a2d114ef97f8a3dacaea/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_browser.c#L490

https://github.com/ventoy/Ventoy/blob/d0e10f8e48d4550cd484a2d114ef97f8a3dacaea/INSTALL/grub/grub.cfg#L823

Please excuse me if I phrased it wrong.


RE: vt_browser_dir - Steve2926 - 08-02-2023

Why don't you just press 'e' when you select the menu item???

Then you will see the command, e.g.

vt_browser_dir hd1,5 0x12345678 "/ISOS"


RE: vt_browser_dir - serhat100 - 08-02-2023

(08-02-2023, 05:48 PM)Steve2926 Wrote: Why don't you just press 'e'  when you select the menu item???

Then you will see the command, e.g.

vt_browser_dir hd1,5 0x12345678 "/ISOS"
thank you steve2926; I know you said yes, I want to learn how we can write this 0x12345678 expression, which we see with the e key, as a command in the configuration file. can you please help.


RE: vt_browser_dir - Steve2926 - 08-03-2023

I would assume that you use the 'e' key - look at the number, and then write a .cfg file with that command in it.


RE: vt_browser_dir - nguyen ha thai trong - 08-03-2023

vt_browser_dir parameter1 parameter2 parameter3

parameter2 is related to memory


RE: vt_browser_dir - serhat100 - 08-03-2023

(08-03-2023, 09:32 AM)Steve2926 Wrote: I would assume that you use the 'e' key - look at the number, and then write a .cfg file with that command in it.

Thank you master steve2926; I already have a .cfg file, I prepared it manually from the very beginning. I only had the opportunity to test it on my own computer. It works perfectly, is the 0x12345678 value I want to know fixed or is this code variable "0x%lx" when I want to use the flash memory on different computer? Or is it a fixed command?

(08-03-2023, 09:54 AM)nguyen ha thai trong Wrote: vt_browser_dir parameter1 parameter2 parameter3

parameter2 is related to memory

Thank you my friend nhtt for your contribution. If what I want to learn is about memory, how can I get it as a command.


RE: vt_browser_dir - serhat100 - 08-03-2023

I made an amateur video. grub2fm and ventoyfm two in one, also installing HKBoot_1_2017.iso with ventoy.vhd, connecting after boot.
video link:
https://disk.yandex.com.tr/i/cWzwLX-O24yJ7A

Note: Lenovo ThinkCentre E73 secureboot Enabled


RE: vt_browser_dir - nguyen ha thai trong - 08-03-2023

Do you already know how to use vt_browser_dir?


RE: vt_browser_dir - nguyen ha thai trong - 08-03-2023

Note, parameter2 depends on your computer's memory and parameter2 is not exactly equal to ${vt_systemd_menu_mem_addr}


RE: vt_browser_dir - serhat100 - 08-03-2023

(08-03-2023, 04:35 PM)nguyen ha thai trong Wrote: Do you already know how to use vt_browser_dir?
Yes
(08-03-2023, 06:15 PM)nguyen ha thai trong Wrote: Note, parameter2 depends on your computer's memory and parameter2 is not exactly equal to ${vt_systemd_menu_mem_addr}
ok, if parameter2 is related to computer's memory, why ventoy has different value in normal mode and ventoy.vhd gives different value.