Booting an ISO is fairly easy to do. Booting it the with the settings it needs can be an effort,
Possible ISO boot parms: boot=/, from=all, from=$iso, fromiso=$iso, findiso=$iso, iso-scan/filename=$iso, bootfrom=/dev/sda6$iso
The $iso is a variable I set for the name of the ISO so I can use the same menu for different ISOs.
This is an example of a menu I use:
menuentry" GParted Live - ISO"--classdebian--classicon-debian{echo"Boot disk address is: "$rootecho"Prefix is: "$prefixecho"The boot mode is: "$grub2win_bootmodesetiso=/ISOs/gparted-live-0.30.0-1-i686.isosearch-f$iso--set=rootecho"ISO root is: "$rootecho"ISO is: "$isoecho" "loopbackloop$isosleep-v-i8linux(loop)/live/vmlinuzfindiso=$isoboot=liveunion=overlayusername=userconfigcomponentsquietnoswapip=net.ifnames=0nosplashlocales=en_US.UTF-8keyboard-layouts=usgl_batchinitrd(loop)/live/initrd.imgecho"Booting GParted"}Notetheparametersonthelast2lines.FindingthemtakestimeeithersearchingthewebforpostsrelatingtotheISO,readinginstructionsthatcomewiththeISO,andsearchingthroughtheISO'sbootcodelookingforparametersituses.AndeachISOisunique.WhichISOareyoulookingtoboot?
Last edit: Ed P 2024-02-18
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes, the program can find the path to the ISO file when you choose menu "Type: isoboot", click the "Load Sample Code" button and then the "Select ISO File" button.
As for "in the form of a compressed file" I have no idea what that means. Are you zipping ISO files?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't know what file manager system you use that classifies ISO files as compressed Tarq. On my Windows 11 system in the File Explorer window .iso files show as Disc Image File. .zip files show as Compressed (zipped) Folder. I have an old notebook with Windows 10, I'll have to remember to check how it classifies .iso files the next time I use it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The file system is the default Windows Explorer and also it appears to me that it is a system image file and not compressed. I classify any file that needs writing or burning as
It is compressed. I was wrong. I meant that it needs to be burned and written to discs. That's all
Well, now the GRUB boot loader settings screen appears for me, and I need to type a command related to the target operating system in order to access the boot folder. Is it necessary to know the unique identifier of the disk in order to access the path?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
BTW When I see a .iso file in my Windows 11 File Explorer, double clicking on it opens it in another File Explorer window. The .iso file is not compressed.
Last edit: Ed P 2024-02-18
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Here is the directory structure of an ISO file I am currently working on:
C:\Users\Ed>dir g:
Volume in drive G is Linux Lite 6.6
Volume Serial Number is 3901-DE17
Directory of G:\
09/12/2023 02:28 AM <DIR> .disk
02/06/2022 12:21 AM <DIR> EFI
09/12/2023 02:20 AM 197 README.diskdefines
02/06/2022 12:21 AM <DIR> boot
09/12/2023 02:28 AM 2,048 boot.catalog
09/12/2023 02:28 AM <DIR> casper
09/12/2023 02:20 AM <DIR> dists
09/12/2023 02:20 AM <DIR> install
09/12/2023 02:28 AM 40,782 md5sum.txt
09/12/2023 02:20 AM <DIR> pool
09/12/2023 02:20 AM <DIR> preseed
09/12/2023 02:28 AM 0 ubuntu
4 File(s) 43,027 bytes
8 Dir(s) 0 bytes free
And these are the Grub commands I am using to try and boot it:
` menuentry " Linux Lite 6.6 " --class custom --class icon-isoboot {
Theisopathvariabledefinesthelocationofthe.isofileonmyharddrive.Itdoesnotincludethedrive's identity. That is found with the search command. The Linux system sees the iso file'sfoldersviatheloopbackcommand.Thekernelpathandinitrdpathsettingsarefoundbysearchingthevariousfoldersintheisofilelookingfortherequiredbootfilesvmlinuzandinitrd.Thebootparmssettingsarefoundbysearchingthevariousfoldersintheisofilelookingforbootparmstheisouseswhenbooting.Sometimestheyareinoneplace,sometimestheyareinmultipleplacesandsometimesyouneedtotweakthemtofityoursystem,liketheramsize.Ihopethishelps.BTWTheisothatI'm playing with starts to boot and then fails. I'mstilltryingtofigureitout.
Last edit: Ed P 2024-02-21
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think the screen I'm standing on indicates that the program is unable to see the raw image of the system. I have another device that has a program affiliated with easybcd and accessed the initial system image and then the grub screen. More theoretical clarification and leave the practical to me about that.
Last edit: Tarq 2024-02-21
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You can do whatever you want, but I checked it and I do not think it is completed automatically. Perhaps the program requires manual input. I thought my role was to add the command to boot from the path of the ISO file and nothing more.
No, Grub2Win does not complete it automatically. Some user thought and effort is involved. And when you get it to boot you feel lie you've accomplished something. lol
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
## This is sample code for booting from an iso file# via the Grub2Win g2wisoboot function## See the Grub2Win help file advanced topics section for more information## Note: There are many many ISO files available. They are all different.# You must examine your particular ISO file with a utility like 7-Zip to# obtain the proper kernel and initrd paths.# You can then set the kernelpath and initrdpath variables below.# The kernel and initrd files will not be found unless the correct paths are set. #clearsetisopath='/linuxmint-21.3-xfce-64bit.iso'setkernelpath='/casper/vmlinuz'# Example '/vmlinuz'setinitrdpath='/casper/initrd.lz'# Example '/initrd.img'setbootparms='boot=casper username=mint hostname=mint quiet splash --'# Example 'boot=/ iso-scan/filename='$isopath' noprompt noeject ---'#g2wisoboot# Run the g2wisoboot function#
Easy to set up with the grub.txt file's help. But finding the parm to trigger the linuxmint's iso boot function might take some testing.
Last edit: Ed P 2024-02-22
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well, can you provide me with the operating parameter in the MX-23.2_fluxbox_x64 distribution, and I will try to find the kernel path and the rest of the paths?
Last edit: Tarq 2024-02-22
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The \boot\syslinux\syslinux.cfg and \boot\isolinux\isolinux.cfg and README files are good starting points. The APPEND parms are bootparms. Unfortunately neither mention booting from the ISO file. Try the 2 parms I suggested for your linux mint iso. As I have mentioned before, finding them for ISOs is tedious, time consuming, trial & error, Google searches.
The \boot\grub\loopback.cfg may be the bootparms required to boot the ISO.
Last edit: Ed P 2024-02-22
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think that the boot loader does not reach the root partition that was allocated because there are spaces in the label or the unique disk identifier must be entered
Last edit: Tarq 2024-02-23
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
good greeting
Can you please guide me on how to add an ISO file?
Hi again Tarq,
I refer you to Ed.
He is the master of all things ISO.
Dave
Hello Tarq.
Booting an ISO is fairly easy to do. Booting it the with the settings it needs can be an effort,
Possible ISO boot parms: boot=/, from=all, from=$iso, fromiso=$iso, findiso=$iso, iso-scan/filename=$iso, bootfrom=/dev/sda6$iso
The $iso is a variable I set for the name of the ISO so I can use the same menu for different ISOs.
This is an example of a menu I use:
Last edit: Ed P 2024-02-18
What I meant is: Can the program find the path to the ISO file of a system image of a Linux distribution in the form of a compressed file?
Last edit: Tarq 2024-02-18
Yes, the program can find the path to the ISO file when you choose menu "Type: isoboot", click the "Load Sample Code" button and then the "Select ISO File" button.
As for "in the form of a compressed file" I have no idea what that means. Are you zipping ISO files?
I do not compress ISO files, but by the nature of the ISO file, it is classified as a compressed file, and this is what is intended
Last edit: Tarq 2024-02-18
I don't know what file manager system you use that classifies ISO files as compressed Tarq. On my Windows 11 system in the File Explorer window .iso files show as Disc Image File. .zip files show as Compressed (zipped) Folder. I have an old notebook with Windows 10, I'll have to remember to check how it classifies .iso files the next time I use it.
The file system is the default Windows Explorer and also it appears to me that it is a system image file and not compressed. I classify any file that needs writing or burning as
It is compressed. I was wrong. I meant that it needs to be burned and written to discs. That's all
Well, now the GRUB boot loader settings screen appears for me, and I need to type a command related to the target operating system in order to access the boot folder. Is it necessary to know the unique identifier of the disk in order to access the path?
BTW When I see a .iso file in my Windows 11 File Explorer, double clicking on it opens it in another File Explorer window. The .iso file is not compressed.
Last edit: Ed P 2024-02-18
Here is the directory structure of an ISO file I am currently working on:
` menuentry " Linux Lite 6.6 " --class custom --class icon-isoboot {
}`
Last edit: Ed P 2024-02-21
Also, the bootparms with this iso are the longest set I've ever used. I copied them from somewhere. My normal bootparms are more like these:
bootparms='boot=/ iso-scan/filename='$root$isopath' noprompt noeject'
I think the screen I'm standing on indicates that the program is unable to see the raw image of the system. I have another device that has a program affiliated with easybcd and accessed the initial system image and then the grub screen. More theoretical clarification and leave the practical to me about that.
Last edit: Tarq 2024-02-21
grub boot file
Paths and labels
linuxmint-21.3-xfce-64bit
D:\
D:\boot\grub
Storage unit serial number FE3EEDEA
grub file in attachments
Last edit: Tarq 2024-02-21
Looking forward to seeing your Grub2Win ISO boot menu.
BTW I got my test ISO to finally boot. The bootparms needed more quotes.
Last edit: Ed P 2024-02-21
You can do whatever you want, but I checked it and I do not think it is completed automatically. Perhaps the program requires manual input. I thought my role was to add the command to boot from the path of the ISO file and nothing more.
No, Grub2Win does not complete it automatically. Some user thought and effort is involved. And when you get it to boot you feel lie you've accomplished something. lol
So, is this the menu you're testing?
Easy to set up with the grub.txt file's help. But finding the parm to trigger the linuxmint's iso boot function might take some testing.
Last edit: Ed P 2024-02-22
Try adding these options to the begining of the bootparms:
'file=/cdrom/preseed/linuxmint.seed iso-scan/filename=/iso/'$isopath'
Well, can you provide me with the operating parameter in the MX-23.2_fluxbox_x64 distribution, and I will try to find the kernel path and the rest of the paths?
Last edit: Tarq 2024-02-22
Probably not since it will take about 20 mins to download. Try the same parms as what you used for linuxmint and post the results of that approach.
The \boot\syslinux\syslinux.cfg and \boot\isolinux\isolinux.cfg and README files are good starting points. The APPEND parms are bootparms. Unfortunately neither mention booting from the ISO file. Try the 2 parms I suggested for your linux mint iso. As I have mentioned before, finding them for ISOs is tedious, time consuming, trial & error, Google searches.
The \boot\grub\loopback.cfg may be the bootparms required to boot the ISO.
Last edit: Ed P 2024-02-22
No root device specified. Boot arguments must include a root=parameter.
Last edit: Tarq 2024-02-23
I think that the boot loader does not reach the root partition that was allocated because there are spaces in the label or the unique disk identifier must be entered
Last edit: Tarq 2024-02-23
I think the partition path on the disk is missing in the instructions
Good to hear your making progress but without seeing the parms you have set I can't offer much advice. I don't agree with your thinking though.