IFL without boot disk (Windows) - Destroys UEFI boot entry?

User discussion and information resource forum for Image products.
highend
Posts: 32
Joined: Mon Jul 09, 2012 1:50 am

Re: IFL without boot disk (Windows) - Destroys UEFI boot entry?

Post by highend »

Thanks Brian, waiting for it :)
Brian K
Posts: 2214
Joined: Fri Aug 12, 2011 1:11 am
Location: NSW, Australia

Re: IFL without boot disk (Windows) - Destroys UEFI boot entry?

Post by Brian K »

highend,

Got home last night. Still interested?
highend
Posts: 32
Joined: Mon Jul 09, 2012 1:50 am

Re: IFL without boot disk (Windows) - Destroys UEFI boot entry?

Post by highend »

Yeah, absolutely!
Brian K
Posts: 2214
Joined: Fri Aug 12, 2011 1:11 am
Location: NSW, Australia

Re: IFL without boot disk (Windows) - Destroys UEFI boot entry?

Post by Brian K »

I've been using this IFL restore method for years. I'm really happy with it. Here are my scripts. You will need to edit them. You need BIU and an IFL partition.

When you make the IFL UFD, select...
Traditional - You have control over options. (Custom)
Leave Boot Drive Mounted as /tbu/boot
Run List - Run Scripts Listed in scriptslist.txt

In BootIt, copy the UFD partition to Free Space on your SSD. You can resize the IFL partition to 150 MiB
Create an IFL Boot Item

In Windows, create type.cmd and type.tbs and IFL.cmd
Create the BOOTNOW folder
Make sure BootNow Support is enabled in BootIt

type.cmd is...

Code: Select all

@echo off
CD /d %~dp0
set TBpath=C:\Program Files (x86)\TeraByte Drive Image Backup and Restore Suite\TeraByte OSD Tool Suite Pro\win
"%TBpath%\tbosdtw64.exe" type.tbs
echo.
pause
D:\My_files\BOOTNOW\BIGGIGA\IFL.cmd
.
.
.

type.tbs is...

Code: Select all

sub main()
  ext("open fs 0: 0 0x2")
  ext("del file 0:\scripts\scriptslist.txt /y")
  printl("Creating scriptslist.txt")
  ext("SET TEXTLINE 0:\scripts\scriptslist.txt ^"restore_brian_.tbs^"")
  printl(" ")
  ext("type 0:\scripts\scriptslist.txt")
  ext("close fs 0:")
end sub
.
.
.

IFL.cmd is...

Code: Select all

CD /d D:\My_files\BOOTNOW\bootnowuefi 1.02\win
bootnowu64.exe IFL
.
.
.


restore_brian_.tbs is in the IFL scripts folder...
You create this file in IFL (Restore menu) and add the extra lines using the Editor icon

Code: Select all

sub main()
  printl(" ")
  printl("Restore brian")
  printl(" ")
  exec("ntfs-3g /dev/sda3 /mnt")
  exec("/tbu/imagel --r --uy --d:{8B9E0625-CEAB-CDC3-DC5D-585E6A73FFFF} --f:{ED486460-7118-1AD0-A75D-585E9773FFFF}@0x2:^"/TeraByte_TBI_Backups/brian*^" --sp:0x1,0x2,0x3,0x4 --vb --wco --logfile:/mnt/IFL_log/RESTORE.LOG", 1)
  ext("del file /tbu/boot/scripts/scriptslist.txt -y")
  ext("SET TEXTLINE /tbu/boot/scripts/scriptslist.txt ^"0_IFL.tbs^"")
  exec("umount /mnt")
  exec("/tbu/scripts/Win11boot.sh")
end sub
.
.
.

Win11boot.sh is in the IFL scripts folder...
Create this in IFL Editor
Save in /tbu/boot/scripts

Code: Select all

#! /bin/sh
cd boot/scripts/bn
./bootnowu Win11
I previously created the bn folder in scripts folder and copied in bootnowu (Linux version). Maybe I did this on the UFD before I copied the partition to the SSD.
.
.
.

0_IFL.tbs is...
Create this in IFL Editor
Save in /tbu/boot/scripts

Code: Select all

sub main()
  printl(" ")
  printl("IFL gui")
  printl(" ")
  exec("/tbu/imagel", 1)
end sub

To restore a backup from Windows, I change the filename of abcdef.tbi to brianabcdef.tbi
Then run type.cmd as an Administrator

I hope my brief notes make sense. Questions?
Brian K
Posts: 2214
Joined: Fri Aug 12, 2011 1:11 am
Location: NSW, Australia

Re: IFL without boot disk (Windows) - Destroys UEFI boot entry?

Post by Brian K »

If you also have backup scripts in the scripts folder, then you will need to have relevant type.cmd and type.tbs in another Windows folder.

After a restore I change the filename back to abcdef.tbi.
highend
Posts: 32
Joined: Mon Jul 09, 2012 1:50 am

Re: IFL without boot disk (Windows) - Destroys UEFI boot entry?

Post by highend »

Thank you Brian!

Was a bit out of time during the last days. Will try your notes (hopefully) today or tomorrow now :)
Brian K
Posts: 2214
Joined: Fri Aug 12, 2011 1:11 am
Location: NSW, Australia

Re: IFL without boot disk (Windows) - Destroys UEFI boot entry?

Post by Brian K »

I suggest you make your initial IFL script a backup script. Less stressful.
You don't need to use the ntfs-3g line in your early scripts. You can read ifl.log from Windows anyway.
Brian K
Posts: 2214
Joined: Fri Aug 12, 2011 1:11 am
Location: NSW, Australia

Re: IFL without boot disk (Windows) - Destroys UEFI boot entry?

Post by Brian K »

A sample full backup script...

Code: Select all

sub main()
  exec("/tbu/imagel --b --uy --d:{8B9E0625-CEAB-CDC3-DC5D-585E6A73FFFF}@0x1,0x2,0x3,0x4 --f:{ED486460-7118-1AD0-A75D-585E9773FFFF}@0x2:^"/TeraByte_TBI_Backups/Backup-l1-0x1-0x2-0x3-0x4-$~YYYY$-$~MM$-$~DD$-$~HHMM$^" --vb --hash --rb:4", 1)
end sub
Remember to add --uy
highend
Posts: 32
Joined: Mon Jul 09, 2012 1:50 am

Re: IFL without boot disk (Windows) - Destroys UEFI boot entry?

Post by highend »

Ok, finally had the time for it...

Works as expected here :)

I could simplify it a little bit (e.g. I don't need Win11boot.sh and the call for it, BootIt is running in IT mode with a timeout of 2 and Win 10 as the default boot entry)...

Thanks a bunch for your instructions, very helpful!

Regards,
highend
highend
Posts: 32
Joined: Mon Jul 09, 2012 1:50 am

Re: IFL without boot disk (Windows) - Destroys UEFI boot entry?

Post by highend »

One thing that doesn't work as expected...

This is the script that does get executed when I boot into IFL via bootnow:

Code: Select all

sub main()
  exec("/tbu/imagel --b --d:{0CD8DDD9-4A45-4239-948D-03238DD825B3}@0x1 --f:l1@0x1:^"/Backup/Windows_10^" --md --uy --comp:14 --log:0", 1)
  ext("del /tbu/scripts/* -y -q")
  ext("set textline /tbu/scripts/scriptslist.txt ^"^"")
  ext("reboot -f")
end sub
The setup script:

Code: Select all

sub main()
  ext("open fs 0: 1 0x3")
  ext("del 0:\scripts\* /y /q")
  ext("set textline 0:\scripts\scriptslist.txt ^"Backup_Windows_10.tbs^"")
  ext("copy D:\Tools\BootIt_UEFI\@tmp\Backup_Windows_10.tbs 0:\scripts /y /q")
  ext("close fs 0:")
end sub
The imaging works fine, the reboot works fine.
But the cleaning up (delete content of scriptfolder and setting up an empty scriptslist.txt doesn't work in the first script...

It doesn't matter that much because I have written a .bat script that sets up the backup / restore scripts (which cleans up the scripts folder when run from a windows command prompt) but I would like to be able to boot into the IFL partition "manually" (and thus starting the menu from there) without an automatic running script...

I'm creating the IFL no net usb stick with:
(o) Normal Boot - Boot Drive is Not Mounted

Do I need to use:
(o) Leave Boot Drive Mounted as /tbu/boot

and change the script back to your values like:

Code: Select all

sub main()
  exec("/tbu/imagel --b --d:{0CD8DDD9-4A45-4239-948D-03238DD825B3}@0x1 --f:l1@0x1:^"/Backup/Windows_10^" --md --uy --comp:14 --log:0", 1)
  ext("del /tbu/boot/scripts/* -y -q")
  ext("set textline /tbu/boot/scripts/scriptslist.txt ^"^"")
  ext("reboot -f")
end sub
to get that part to work?
Post Reply