I'm just starting out on scripting and am trying to get a simple backup going. If I run the following script - (which is almost a direct copy of the one on page 67 of the Bootit UEFI User manual) -
sub main()
exec("C:\EFI\BOOTIT\IMAGEU.EFI /b /d:3@0x2 /f:0@0x2:^"\Work^"",1)
end sub
the script fails. The ifu.log shows the following
[08/26/2018 06:11:05 PM] C:\EFI\BOOTIT\IMAGEU.EFI C:\EFI\BOOTIT\IMAGEU.EFI /b /d:3@0x2 /f:0@0x2:\Work
[08/26/2018 06:11:05 PM] Parameter '/d:3@0x2' found before operation known
[08/26/2018 06:11:05 PM] Program exiting with error code 61
It seems that it has not picked up the /b parameter but I don't understand why.
I would appreciate any help given - thanks in anticipation
Robert
A Newbie, Imageu.efi and Scripting
Re: A Newbie, Imageu.efi and Scripting
Robert,
Can you check your script. On the final IFU screen, the Summary screen, click Show Command.
Can you check your script. On the final IFU screen, the Summary screen, click Show Command.
Re: A Newbie, Imageu.efi and Scripting
Hi Kevin,
Thanks for your reply - appreciated
This is the script file i ran
sub main()
exec("C:\EFI\BOOTIT\IMAGEU.EFI /b /d:2@0x2 /f:0@0x2:^"\Work\worktest^"",1)
end sub
I then executed the same using the Image GUI.
This is the output from the two operations in the ifu.log file
--------------------------------------------------------------------------
[08/27/2018 08:57:45 AM] C:\EFI\BOOTIT\IMAGEU.EFI C:\EFI\BOOTIT\IMAGEU.EFI /b /d:2@0x2 /f:0@0x2:\Work\worktest
[08/27/2018 08:57:45 AM] Parameter '/d:2@0x2' found before operation known
[08/27/2018 08:57:45 AM] Program exiting with error code 61
--------------------------------------------------------------------------
[08/27/2018 08:59:34 AM] Image for UEFI (GUI) 3.21a
[08/27/2018 08:59:34 AM] Starting ...
IMAGEU.EFI /b /d:2@0x2 /f:0@0x2:"\Work\worktest"
[08/27/2018 08:59:36 AM] Backup: Drive 2 WORK Partition (02) 10000 MiB NTFS
[08/27/2018 08:59:36 AM] To: 0@0x2:\Work\worktest.TBI
[08/27/2018 08:59:48 AM] INFO: Total Sectors:20480000 Total Allocated:7492672
[08/27/2018 08:59:48 AM] INFO: 1348672 Sector(s) backed up
[08/27/2018 08:59:48 AM] Time Elapsed: 0:00:00:14
[08/27/2018 08:59:48 AM] Operation Completed with Error Code 0
[08/27/2018 08:59:50 AM] Stop
hope this helps - out of interest is there a script manual available which shows the various commands and syntax etc ?
Thanks for your reply - appreciated
This is the script file i ran
sub main()
exec("C:\EFI\BOOTIT\IMAGEU.EFI /b /d:2@0x2 /f:0@0x2:^"\Work\worktest^"",1)
end sub
I then executed the same using the Image GUI.
This is the output from the two operations in the ifu.log file
--------------------------------------------------------------------------
[08/27/2018 08:57:45 AM] C:\EFI\BOOTIT\IMAGEU.EFI C:\EFI\BOOTIT\IMAGEU.EFI /b /d:2@0x2 /f:0@0x2:\Work\worktest
[08/27/2018 08:57:45 AM] Parameter '/d:2@0x2' found before operation known
[08/27/2018 08:57:45 AM] Program exiting with error code 61
--------------------------------------------------------------------------
[08/27/2018 08:59:34 AM] Image for UEFI (GUI) 3.21a
[08/27/2018 08:59:34 AM] Starting ...
IMAGEU.EFI /b /d:2@0x2 /f:0@0x2:"\Work\worktest"
[08/27/2018 08:59:36 AM] Backup: Drive 2 WORK Partition (02) 10000 MiB NTFS
[08/27/2018 08:59:36 AM] To: 0@0x2:\Work\worktest.TBI
[08/27/2018 08:59:48 AM] INFO: Total Sectors:20480000 Total Allocated:7492672
[08/27/2018 08:59:48 AM] INFO: 1348672 Sector(s) backed up
[08/27/2018 08:59:48 AM] Time Elapsed: 0:00:00:14
[08/27/2018 08:59:48 AM] Operation Completed with Error Code 0
[08/27/2018 08:59:50 AM] Stop
hope this helps - out of interest is there a script manual available which shows the various commands and syntax etc ?
Re: A Newbie, Imageu.efi and Scripting
Robert,
I tried a backup from a script and saw the same errors you saw. IFU.
I tried a backup from a script and saw the same errors you saw. IFU.
-
- Posts: 1598
- Joined: Fri Aug 12, 2011 12:51 am
Re: A Newbie, Imageu.efi and Scripting
I see the same issue with IFU GUI, but didn't see it with IFU CUI (you could use it as a work-around, if necessary).
robertd wrote:
> out of interest is there a script manual available which
> shows the various commands and syntax etc ?
The manuals are included with the TBOSDT downloads. They're installed by default with IFW or you can download TBOSDT from your account. The manuals are in the "docs" folder.
robertd wrote:
> out of interest is there a script manual available which
> shows the various commands and syntax etc ?
The manuals are included with the TBOSDT downloads. They're installed by default with IFW or you can download TBOSDT from your account. The manuals are in the "docs" folder.
Paul Purviance
TeraByte Support
TeraByte Support
Re: A Newbie, Imageu.efi and Scripting
Received the following from technical support :
It only affects the GUI version being used from the command line, fixed in 3.22. You can use the CUI version 3.21 from the command line for now. Just download that and replace the .efi file.
Hope this helps others
It only affects the GUI version being used from the command line, fixed in 3.22. You can use the CUI version 3.21 from the command line for now. Just download that and replace the .efi file.
Hope this helps others
Re: A Newbie, Imageu.efi and Scripting
I can confirm that this problem has been resolved in BIU 1.04
Robert
Robert