But you will have to tweak the bootparms, linux and initrd parms to fit your ISO and that can be fun. The latter two parms you can get by looking at the file structure in the ISO. The boot parms can sometimes be found in a boot menu in the ISO or by reviewing the app's website.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ed P, one of my Grub2Win Boot Menu entries looks like this:
clear
set isopath='/ISO/x.iso'
set kernelpath='/kernel32'
set bootparms='rw acpi_osi=Linux acpi_backlight=vendor rmods_dbg=0 acpi=off noapic pci=noacpi,nobios'
getbootpartition file $isopath
loopback loop ($root)$isopath
test -f (loop)$kernelpath
if [ ! $? = 0 ] ; then echo; echo * The kernel file $kernelpath was not found in the loopback filesystem; fi
echo
echo 'Linux will boot from ' ($root)$isopath
echo
linux (loop)$kernelpath $bootparms
initrd (loop)/lrfsbase.bin (loop)/rm_scsi.b32 (loop)/rm_pata.b32 (loop)/rm_usb.b32 (loop)/rm_pcard.b32 (loop)/rm_video.b32 (loop)/rm_other.b32 (loop)/rootgui (loop)/rmconfig.bin
if [ ! -z $reviewpause ] ; then sleep -i -v $reviewpause; fi
echo
echo 'GNU Grub Is Now booting Drive Image'
...so your example's syntax looks incorrect!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have attached a compressed Winrar file containing a dir.txt file which lists the entire folder/file structure of the Pqmagic ISO file.
There are some references to "Grub" so I have also included the .cfg files. Apparently, the ISO itself boots into a DOS GUI which allows to user to select which environment x32 x 64 to boot. After that, the actual Pqmagic applacation begins to load.
I have no idea where to start or to what file names should be entered into the Grub2Win Menu. Help on this will be appreciated.
clearsetisopath='/ISOs/R-DriveImage_6.1.6107_OEMKit..iso'setkernelpath='/kernel32'setbootparms='rw acpi_osi=Linux acpi_backlight=vendor lang=en'getbootpartitionfile $isopathloopbackloop($root)$isopathtest-f(loop)$kernelpathif [ ! $? =0 ] ; then echo; echo *** The kernel file $kernelpath was not found in the loopback filesystem; fiechoecho'Linux will boot from '($root)$isopathecholinux(loop)$kernelpath$bootparmsinitrd(loop)/lrfsbase.bin(loop)/rm_scsi.b32(loop)/rm_pata.b32(loop)/rm_usb.b32(loop)/rm_pcard.b32(loop)/rm_video.b32(loop)/rm_other.b32(loop)/rootgui(loop)/rmconfig.binif [ !-z $reviewpause ] ; then sleep -i -v $reviewpause; fiechoecho'GNU Grub Is Now booting R-Drive Image'
}`
~~~
"...so your example's syntax looks incorrect! "Buttheyallworkso...:-)
Last edit: Ed P 2019-10-17
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
if [ ! $? = 0 ] ; then echo; echo * The kernel file $kernelpath was not found in the loopback filesystem; fi
echo
echo 'Linux will boot from ' ($root)$isopath
echo
linux (loop)$kernelpath $bootparms
initrd (loop)/pmagic/initrd.img (loop)/pmagic/fu.img (loop)/pmagic/m64.img (loop)/pmagic/files.cgz
if [ ! -z $reviewpause ] ; then sleep -i -v $reviewpause; fi
echo
echo 'GNU Grub Is Now booting Drive Image'
Strange about the different syntax. I will still to mine.
I managed to boot the 2018 version ISO, all the .img files all loaded but then it appears to pause saying "Searching for PMAGIC_2018_04_30.SQFS", and about 15 seconds later the rest follows (see attachment). This file is locata inside the ISO pmagic/pmodules folder. I have no idea how to tell the Menu to find this file! Any ideas?
if [ ! $? = 0 ] ; then echo; echo *** The kernel file $kernelpath was not found in the loopback filesystem; fi
echo
echo 'Linux will boot from ' ($root)$isopath
echo
linux (loop)/pmagic/bzImage64 edd=on vga=normal boot=live eject=no
initrd (loop)/pmagic/initrd.img (loop)/pmagic/fu.img (loop)/pmagic/m64.img
if [ ! -z $reviewpause ] ; then sleep -i -v $reviewpause; fi
echo
echo 'GNU Grub Is Now booting Drive Image'
That's it...almost working except for the .sqfs file.
Once again, when I cut-and paste the above into the Grub2win 'Edit Custom Code' and save, I get an error. Why is your code syntax slightly different from mine? The "" and the } are invalid, so I replaced the "" with ' ' and removed the } and there are now no errors.
However, when I boot I receive message 'ISO NOT found.'. I have triple-checked the ISO location and it is valid. If I invert the if statement then booting suceeds but it sill can't find the .SQFS file after the 'Searching for PMAGIC_2018_04_30.SQFS'.
I don't know how to properly format the code here so it is what is it. Here is my menu code:
Happy to hear you got something that works for you Julian.
"Why is your code syntax slightly different from mine? The "" and the } are invalid, so I replaced the "" with ' ' and removed the } and there are now no errors. "
The } character is the end of the code started with the { character which is at the end of the menuentry statement. Open your grub.cfg file and look at the menuentry for your menu and you will see the { character.
I maintain a lot of my grub2 menus via text editors in Linux rather than Grub2Win in Windows. Just quicker than rebooting for an menu entry the same as another one I already have. When you use Grub2Win's "Edit Custom Code" it generates the menuentry statement for you. Why it errors on " characters sounds like a Grub2Win bug, grub2 has no problem with "s.
Last edit: Ed P 2019-10-19
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I wish to boot the "Parted Magic 2019_09_03" ISO, or any other Parted Magic
ISO. The ISOs appear to have the same file/folder structure.
Is anyone able to offer a suggestion as to what the Grub2Win ISO Boot
configuration would look like!
Thank you.
Julian
Probably something like this:
But you will have to tweak the bootparms, linux and initrd parms to fit your ISO and that can be fun. The latter two parms you can get by looking at the file structure in the ISO. The boot parms can sometimes be found in a boot menu in the ISO or by reviewing the app's website.
Mmm. I will look more into you suggestions thank you.
Julian
Ed P, one of my Grub2Win Boot Menu entries looks like this:
clear
set isopath='/ISO/x.iso'
set kernelpath='/kernel32'
set bootparms='rw acpi_osi=Linux acpi_backlight=vendor rmods_dbg=0 acpi=off noapic pci=noacpi,nobios'
getbootpartition file $isopath
loopback loop ($root)$isopath
test -f (loop)$kernelpath
if [ ! $? = 0 ] ; then echo; echo * The kernel file $kernelpath was not found in the loopback filesystem; fi
echo
echo 'Linux will boot from ' ($root)$isopath
echo
linux (loop)$kernelpath $bootparms
initrd (loop)/lrfsbase.bin (loop)/rm_scsi.b32 (loop)/rm_pata.b32 (loop)/rm_usb.b32 (loop)/rm_pcard.b32 (loop)/rm_video.b32 (loop)/rm_other.b32 (loop)/rootgui (loop)/rmconfig.bin
if [ ! -z $reviewpause ] ; then sleep -i -v $reviewpause; fi
echo
echo 'GNU Grub Is Now booting Drive Image'
...so your example's syntax looks incorrect!
Hi,
I have attached a compressed Winrar file containing a dir.txt file which lists the entire folder/file structure of the Pqmagic ISO file.
There are some references to "Grub" so I have also included the .cfg files. Apparently, the ISO itself boots into a DOS GUI which allows to user to select which environment x32 x 64 to boot. After that, the actual Pqmagic applacation begins to load.
I have no idea where to start or to what file names should be entered into the Grub2Win Menu. Help on this will be appreciated.
Thanks.
Julian
Trial version can be download from here: https://www.fcportables.com/parted-magic/
That link is WAY too slow for me. 45min to download the file.
On Wed, Oct 16, 2019 at 10:18 PM Julian Colombo jcinternetstuff@users.sourceforge.net wrote:
You could have downloaded it about 3 times by now!
Last edit: Julian Colombo 2019-10-17
Julian,
"Ed P, one of my Grub2Win Boot Menu entries looks like this:"
That's ok, I have ones that look like this:
and
~~~
`menuentry " R-Drive Image ISO" --class other --class icon-linux {
~~~
Last edit: Ed P 2019-10-17
I found this amongst some files containing the Pmagic files:
DEFAULT pmagic32
LABEL pmagic32
LINUX pmagic/bzImage
INITRD pmagic/initrd.img,pmagic/fu.img,pmagic/m32.img,pmagic/files.cgz
APPEND edd=on vga=normal
LABEL pmagic64
LINUX pmagic/bzImage64
INITRD pmagic/initrd.img,pmagic/fu.img,pmagic/m64.img,pmagic/files.cgz
APPEND edd=on vga=normal
....so I update my menu to:
if [ ! $? = 0 ] ; then echo; echo * The kernel file $kernelpath was not found in the loopback filesystem; fi
echo
echo 'Linux will boot from ' ($root)$isopath
echo
linux (loop)$kernelpath $bootparms
initrd (loop)/pmagic/initrd.img (loop)/pmagic/fu.img (loop)/pmagic/m64.img (loop)/pmagic/files.cgz
if [ ! -z $reviewpause ] ; then sleep -i -v $reviewpause; fi
echo
echo 'GNU Grub Is Now booting Drive Image'
Good job Julian. I suspect the hang is due to a bootparm option.
Strange about the different syntax. I will still to mine.
I managed to boot the 2018 version ISO, all the .img files all loaded but then it appears to pause saying "Searching for PMAGIC_2018_04_30.SQFS", and about 15 seconds later the rest follows (see attachment). This file is locata inside the ISO pmagic/pmodules folder. I have no idea how to tell the Menu to find this file! Any ideas?
Here is what my almost working Menu looks like:
if [ ! $? = 0 ] ; then echo; echo *** The kernel file $kernelpath was not found in the loopback filesystem; fi
echo
echo 'Linux will boot from ' ($root)$isopath
echo
linux (loop)/pmagic/bzImage64 edd=on vga=normal boot=live eject=no
initrd (loop)/pmagic/initrd.img (loop)/pmagic/fu.img (loop)/pmagic/m64.img
if [ ! -z $reviewpause ] ; then sleep -i -v $reviewpause; fi
echo
echo 'GNU Grub Is Now booting Drive Image'
That's it...almost working except for the .sqfs file.
Julian
This works for me.
:-)
Last edit: Ed P 2019-10-18
Once again, when I cut-and paste the above into the Grub2win 'Edit Custom Code' and save, I get an error. Why is your code syntax slightly different from mine? The "" and the } are invalid, so I replaced the "" with ' ' and removed the } and there are now no errors.
However, when I boot I receive message 'ISO NOT found.'. I have triple-checked the ISO location and it is valid. If I invert the if statement then booting suceeds but it sill can't find the .SQFS file after the 'Searching for PMAGIC_2018_04_30.SQFS'.
I don't know how to properly format the code here so it is what is it. Here is my menu code:
Any thoughts?
Ok I have finnaly sorted this all out. The following code work on my system:
Thanks guys for your help.
Julian
Ok I have finally sorted this all out. The following code work on my system:
Thanks guys for your help.
Julian
Happy to hear you got something that works for you Julian.
"Why is your code syntax slightly different from mine? The "" and the } are invalid, so I replaced the "" with ' ' and removed the } and there are now no errors. "
The } character is the end of the code started with the { character which is at the end of the menuentry statement. Open your grub.cfg file and look at the menuentry for your menu and you will see the { character.
I maintain a lot of my grub2 menus via text editors in Linux rather than Grub2Win in Windows. Just quicker than rebooting for an menu entry the same as another one I already have. When you use Grub2Win's "Edit Custom Code" it generates the menuentry statement for you. Why it errors on " characters sounds like a Grub2Win bug, grub2 has no problem with "s.
Last edit: Ed P 2019-10-19