Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 check pc hardware before booting crazy idea
#1
Brick 
I have multiple hardware configurations at my site, and I need to check my computer's RAM. In case the memory is less than or equal to 2GB, I have to run “Hiren Boot 10”. And if the memory is more than or equal to 4GB, I have to run "Hiren Boot 11".

ventoy can do that ? if the answer is yes

i need Any ideas or help to do this?
Reply
#2
Press F5 and select Hardware Information

You could maybe make a F6 menu item to display $grub_total_ram variable

create a new file: \ventoy\ventoy_grub.cfg

contents:

menuentry 'Total Memory' --class=custom {
echo $grub_total_ram MB
read
clear
}

menuentry '<-- Return to Ventoy menu [Esc]' --class=vtoyret VTOY_RET {
echo 'Return ...'
}
Reply
#3
(02-10-2024, 11:21 AM)Steve2926 Wrote: Press F5 and select Hardware Information

You could maybe make a F6 menu item to display $grub_total_ram  variable

create a new file:  \ventoy\ventoy_grub.cfg

contents:

menuentry 'Total Memory' --class=custom {
echo $grub_total_ram MB
read
clear
}

menuentry '<-- Return to Ventoy menu [Esc]' --class=vtoyret VTOY_RET {
    echo 'Return ...'
}

can ventoy excute automaticly iso file when ram value ix 2 GB or 4 GB
Reply
#4
You would have to create your own F6 menu to do this
You can test memory but then you would need to run the ISO using ventoy

e.g.
if [ $grub_total_ram -ge 4000 ] ; then xxxx; fi
if [ $grub_total_ram -le 4000 ] ; then yyyy; fi

where xxx and yyy would run different ISOs.

but the developer does not support this
https://forums.ventoy.net/showthread.php...on#pid4397
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)