MaxTyutyunnikov / grub4dos-chenall

Automatically exported from code.google.com/p/grub4dos-chenall
0 stars 0 forks source link

iftitle [find --devices=h /bootmgr] causes problems #185

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Asus P8H77-M Pro + Toshiba 60GB SSD

ptn 1 PRI C: OS Windows 7 Embedded (40GB)
ptn 2 PRI D: Log Files (10GB)
ptn 3 PRI E: Recovery (10GB)

grub4dos installed to MBR
grldr and menu.lst on E:  (partition 3)

menu.lst
========

echo 1

iftitle [find  --devices=h /bootmgr] Boot Windows 7\nBoots to Windows 7 or 
Vista (bootmgr)
find --set-root --devices=h /bootmgr
chainloader /bootmgr

What is the expected output? What do you see instead?

SYMPTOM: system boots grub4dos, loads menu.lst then immediately goes to 
grub4dos console.

If use INSERT key to single-step - all appears OK. iftitle runs OK and then any 
lines of menu.lst run OK (e.g. echo 1). After echo 1 it immediately goes to 
command line.

If at command line, I run configfile (hd0,2)/menu.lst then menu loads and 
displays OK!

Also, if add the line:

if "%DD%"=="" set DD=1 && configfile (hd0,2)/menu.lst

then menu loads OK on boot.

BIOS is 'strange' because if add code lines to top of menu e.g.
if exist (hd0,0)/windows/explorer.exe set WDRV=sda1
if exist (hd0,1)/windows/explorer.exe set WDRV=sda2
if exist (hd0,2)/windows/explorer.exe set WDRV=sda3
if exist (hd0,3)/windows/explorer.exe set WDRV=sda4
if exist (hd0,0)/clonezilla/live/vmlinuz set BAKDRV=sda1
if exist (hd0,1)/clonezilla/live/vmlinuz set BAKDRV=sda2
if exist (hd0,2)/clonezilla/live/vmlinuz set BAKDRV=sda3

then I get errors reported (see jpg attached).

If the iftitle line is changed to:

iftitle [find /bootmgr] Boot Windows 7\nBoots to Windows 7 or Vista (bootmgr)
find --set-root --devices=h /bootmgr
chainloader /bootmgr

then the menu loads correctly - so the  --devices=h is causing the problem but 
ONLY when used in iftitle and ONLY on this system.

What version of the product are you using? On what operating system?
0.4.5c  2012 version and 2014 version

Please provide any additional information below.

I cannot repro this, but I diagnosed the issue when working via email with a 
user. 

Original issue reported on code.google.com by Steve6375 on 1 Jul 2014 at 11:12

Attachments:

GoogleCodeExporter commented 9 years ago
P.S. the jpg is when debug on is used, so this is normal.
So ignore the  if exist xxx stuff and the jpg. 
So the system seems perfectly 'normal' except that --devices=h  in an iftitle 
line causes it to abort instead of showing the menu.

Original comment by Steve6375 on 1 Jul 2014 at 1:02

GoogleCodeExporter commented 9 years ago
fixed in July 2104 version on GitHub

Original comment by Steve6375 on 2 Aug 2014 at 7:51

GoogleCodeExporter commented 9 years ago

Original comment by chenall.cn on 4 Aug 2014 at 8:21