xorat / grubutils

Automatically exported from code.google.com/p/grubutils
0 stars 0 forks source link

Hangs/crashes during nested file copy in batch file #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make a grub4dos bootable USB drive
2. Copy XPPROSP3.ISO (any XP ISO) to the root ofUSb drive
3. Copy copyff.bat and fat to the root and menu.lst
4. Boot and select menu entry (can use QEMU)

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

Should copy all files and all subfolders using copyff.bat.
Copies /DOTNETFX folder OK
Starts copying /I386 folder 
Hangs/crashes when copying /I386/ASMS/10/MSFT/WINDOWS folder (does not go to 
next folder which is GDIPLUS)

If just copy folder /I386 then hangs when it gets to folder 
/I386/ASMS/10/MSFT/WINDOWS/GDIPLUS

What version of the product are you using? On what operating system?
latest 0.4.5c and 0.4.6a

Please provide any additional information below.

probably no fix as I am suprised it copies as many files as it does!
Far too many files and folders?

Original issue reported on code.google.com by Steve6375 on 14 Mar 2012 at 7:28

Attachments:

GoogleCodeExporter commented 9 years ago
Seems there has bug in grub4dos batchscript.
But I did not found any problem now.

Seems now only can use call 13 times.

eg.(Below batch will hangs when 0x60000=0xD.)

!BAT
write 0x60000 0
:test
calc *0x60000++
call :test

Original comment by chenall.cn on 19 Mar 2012 at 7:30

GoogleCodeExporter commented 9 years ago
Please try this grldr.

Original comment by chenall.cn on 19 Mar 2012 at 8:52

Attachments:

GoogleCodeExporter commented 9 years ago
That is much better! Still cannot copy all i386 folder (but there are 1000's of 
files so I did not really expect it to!). Anyway, nesting bug seems to have 
been improved greatly - thanks!

Original comment by Steve6375 on 19 Mar 2012 at 9:08

GoogleCodeExporter commented 9 years ago
Thank you for your report and reply.

Original comment by chenall.cn on 19 Mar 2012 at 1:11

GoogleCodeExporter commented 9 years ago
The fat current only supports 8.3 filenames.
The following command may get an error.
(bd)/fat mkdir %FD%%%cd%/%1

try

(bd)/fat mkdir %FD%%%cd%/%1 || echo Error: mkdir %FD%%%cd%/%1

Original comment by chenall.cn on 19 Mar 2012 at 1:20

GoogleCodeExporter commented 9 years ago

Original comment by chenall.cn on 4 Jul 2013 at 2:15