TB Script that uses DOS and EMBR partition names for backup
Posted: Thu Jan 17, 2013 7:16 pm
Attention IFD and IFL Users:
Do you have problems with using the IMAGE.EXE /b /uy /d:d0@0x1 /f:d2@0x2E4:" .... file and partition selection nomenclature?
If so, give this little script a try. It converts MBR and EMBR partition names into these disk and partition numbers that image.exe needs.
This is especially useful if you have USB drives, or plug and play sata drives installed, or if you move disks and or partitions around ... as the numbers change on each movement.
Heres the format of the (tbos) command:
IFDIMG2.TBS In_Drive_Label Out_Drive_Label [EXEC/NOEXEC] [Compression_Level]
Required parameters:
in_drive_label : the case sensitive MBR or EMBR partition name to be backed up (put in quotes for multi word names)
out_drive_label: specifies a case sensitive output partition name for the backup file. (file name is hardcoded in script)
optional parameters:
EXEC : Image command will be displayed and then run
NOEXEC: Default, the command to run image.exe will be displayed but will not be executed.
Compression_Level: defaults to 1. You can specify any supported compression level
-----------------------------------------------------------------------------------------------------------------------
I use this script to backup my key partitions. It calls the IFD2MG2.TBS script. I run it from my BOOTITBM selection menu.
Depending on what and where I have my disks installed, it finds them and backs them up. If they are not available, the script just continues to the next drive. Good luck, change as necessary for your system. As always there are no guarantees that this will work on your system, but it can probably be easily fixed !
-------------------------------------------
BU.TBS:
sub main()
EXEC ("IFDIMG2.TBS 56d5p1M-W7 ^"IDRIVE TB^" EXEC 1",1)
EXEC ("IFDIMG2.TBS LEXAR64MB I_DRIVE EXEC 2",1)
EXEC ("IFDIMG2.TBS LinuxMint I_DRIVE NOEXEC 2",1)
EXEC ("IFDIMG2.TBS CNEW52P1 I_DRIVE EXEC 1",1)
EXEC ("IFDIMG2.TBS WinXP(32) I_DRIVE EXEC 1",1)
EXEC ("IFDIMG2.TBS Win7(64) I_DRIVE EXEC 1",1)
EXEC ("IFDIMG2.TBS Win7(32) I_DRIVE EXEC 1",1)
EXEC ("IFDIMG2.TBS D_DRIVE I_DRIVE EXEC 1",1)
EXEC ("IFDIMG2.TBS E_DRIVE I_DRIVE EXEC 1",1)
EXEC ("IFDIMG2.TBS F_DRIVE I_DRIVE EXEC 1",1)
end sub
--------------------------------------------------------------------
Humm ....... The forum will not let me post the IFDIMG2.TBS script ... let me see what is going wrong. I'll be back
Do you have problems with using the IMAGE.EXE /b /uy /d:d0@0x1 /f:d2@0x2E4:" .... file and partition selection nomenclature?
If so, give this little script a try. It converts MBR and EMBR partition names into these disk and partition numbers that image.exe needs.
This is especially useful if you have USB drives, or plug and play sata drives installed, or if you move disks and or partitions around ... as the numbers change on each movement.
Heres the format of the (tbos) command:
IFDIMG2.TBS In_Drive_Label Out_Drive_Label [EXEC/NOEXEC] [Compression_Level]
Required parameters:
in_drive_label : the case sensitive MBR or EMBR partition name to be backed up (put in quotes for multi word names)
out_drive_label: specifies a case sensitive output partition name for the backup file. (file name is hardcoded in script)
optional parameters:
EXEC : Image command will be displayed and then run
NOEXEC: Default, the command to run image.exe will be displayed but will not be executed.
Compression_Level: defaults to 1. You can specify any supported compression level
-----------------------------------------------------------------------------------------------------------------------
I use this script to backup my key partitions. It calls the IFD2MG2.TBS script. I run it from my BOOTITBM selection menu.
Depending on what and where I have my disks installed, it finds them and backs them up. If they are not available, the script just continues to the next drive. Good luck, change as necessary for your system. As always there are no guarantees that this will work on your system, but it can probably be easily fixed !
-------------------------------------------
BU.TBS:
sub main()
EXEC ("IFDIMG2.TBS 56d5p1M-W7 ^"IDRIVE TB^" EXEC 1",1)
EXEC ("IFDIMG2.TBS LEXAR64MB I_DRIVE EXEC 2",1)
EXEC ("IFDIMG2.TBS LinuxMint I_DRIVE NOEXEC 2",1)
EXEC ("IFDIMG2.TBS CNEW52P1 I_DRIVE EXEC 1",1)
EXEC ("IFDIMG2.TBS WinXP(32) I_DRIVE EXEC 1",1)
EXEC ("IFDIMG2.TBS Win7(64) I_DRIVE EXEC 1",1)
EXEC ("IFDIMG2.TBS Win7(32) I_DRIVE EXEC 1",1)
EXEC ("IFDIMG2.TBS D_DRIVE I_DRIVE EXEC 1",1)
EXEC ("IFDIMG2.TBS E_DRIVE I_DRIVE EXEC 1",1)
EXEC ("IFDIMG2.TBS F_DRIVE I_DRIVE EXEC 1",1)
end sub
--------------------------------------------------------------------
Humm ....... The forum will not let me post the IFDIMG2.TBS script ... let me see what is going wrong. I'll be back