-
Notifications
You must be signed in to change notification settings - Fork 107
Legacy boot of .img files doesnt work. #351
Comments
P.S. adding || is causing a problem! trying to find a way round it... |
So if long path for .img file then can fail. |
Using your menu.lst + (rd) original code using recent grub.exe works.
|
Here is final code which I think is OK!
so changes are using ;; in g4d_cmd |
This also works using ;; instead of \x0a:
|
using my new grub.exe ...
P.S. When is the
code used? |
P.S. rules/vhd/map.sh code has similar issue. |
If the img file is not on a real hard drive (e.g. grub2-filemanager/boot/grubfm/g4d_path.lua Lines 24 to 36 in 918524d
|
What are the advantages of using ';;'?
What does |
According to Linux/x86 boot protocol, the max length of v2.05 cmdline is 255. |
I just tried ;; (use for multiple statements on one grub4dos line) and it worked. I did not then go back and change it to ; (hd) means the NEXT FREE hd device number in grub4dos. So if we have hd0 and hd1, using map xxx (hd) would map xxx as hd2. From then on, we can reference the xxx file as device (hd-1). |
If the OS installed on the img is DOS (Win 9x), then it must be mapped to (hd0). |
The rules/img/hdd.sh tries to call grub4dos grub.exe but hangs.
I found that the --config-file= string is fussy. http://reboot.pro/index.php?showtopic=15422
Also the version of grub.exe you are using has a bug when loading from command line
I changed to the latest version of grub.exe and used this code.
Now it will boot a 32GB .img of Medicat (two partitions) OK.
Note: I removed --mem. I will test with --mem and add amended code later.
The text was updated successfully, but these errors were encountered: