In Ubuntu, one can boot a live USB fully to ram using toram
option.
adding toram option
However this procedure is GUI based. Is there anyway to just write down the toram
option to the ISO file so that the bootable USB directly boots from RAM?
The GUI based way to boot Ubuntu from RAM is described here.
Edit: All of the mentioned and proposed idea works. Although, I accepted one solution, One can try any of those methods according to their necessity.
grub.cfg
file (in partition #3 of the USB boot drive) to move this menuentry to the top (or even remove the other menuentries).toram
to the linux line of grub.cfg. right after quiet splash or at the end, one space after -- will work. I will add a proper answer as soon as I have time.