Page 1 of 1

How to search for tbi file on USB Stick

PostPosted: Tue Jun 23, 2015 4:02 pm
by UkiwiS
I have the following restore script.

sub main()
exec("/tbu/imagel --r --uy --um --d:l0 --f:l2@0x1:^"image^" --rb:8", 1)
end sub

I use this script on different hardware and sometimes another drive is detected (even though it's empty) causing the restore to simply fail without an error. If I change --f:l2 to --f:l1 it will work in these instances but I'd like a single script to be able to handle both cases.

What would I need to change so that script finds and restores from the correct location?

Thanks in advance
KIWI

Re: How to search for tbi file on USB Stick

PostPosted: Tue Jun 23, 2015 5:27 pm
by TeraByte Support
This quickie sample should give you an idea, but since using IFL, just use
the option for IFL to keep the drive booted mounted, then you could just
refer to it under /mnt/image



"UkiwiS" wrote in message news:9836@public.scripting...

I have the following restore script.

sub main()
exec("/tbu/imagel --r --uy --um --d:l0 --f:l2@0x1:^"image^" --rb:8", 1)
end sub

I use this script on different hardware and sometimes another drive is
detected (even though it's empty) causing the restore to simply fail without
an error. If I change --f:l2 to --f:l1 it will work in these instances but
I'd like a single script to be able to handle both cases.

What would I need to change so that script finds and restores from the
correct location?

Thanks in advance
KIWI

Re: How to search for tbi file on USB Stick

PostPosted: Wed Jun 24, 2015 2:58 pm
by UkiwiS
Thanks very much for your assistance.

KIWI