Image For Windows

Discussion in 'backup, imaging & disk mgmt' started by Stigg, Apr 15, 2014.

  1. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,146
    Location:
    NSW, Australia
    I just made a GPT-UEFI System Partition IFL UFD. It had no drive letter in Windows but during the IFW copy it was seen as FAT-32. BIBM showed the IFL partition as EFI System. Weird. This is somewhat different from your IFL UFD as your UFD had a drive letter.
     
    Last edited: Jul 14, 2019
  2. n8chavez

    n8chavez Registered Member

    Joined:
    Jul 19, 2003
    Posts:
    3,347
    Location:
    Location Unknown
    That worked fine. I didn't catch the fact that when you said "copy" you were talking about IFW partition copy. Everything's fine now; IFL boots fine and the script runs. The IFL partion is fat32
     
  3. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,146
    Location:
    NSW, Australia
    Great work. Do you want to do more tonight or tomorrow. It's only 1710 here, so either is fine by me.
     
  4. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,146
    Location:
    NSW, Australia
    One more time to work on the IFL UFD.

    In your restore.sh, underneath your restore line paste these two lines...

    Code:
    rm /tbu/boot/scripts/scriptslist.txt
    reboot
    
    Also, delete --rb:4 from the restore line. Now you should have...

    Code:
    #! /bin/sh
    /tbu/imagel --r --uy --d:l1 --f:l0@0x3:"/System-07-13-2019-1544" --opw:6E2767A67664F4045677B782A3427B --sp:0x1,0x2
    rm /tbu/boot/scripts/scriptslist.txt
    reboot
    Copy (IFW) the UFD partition to your HD. Over-write the IFL partition.
    This is in preparation for the Windows scripts.
     
  5. n8chavez

    n8chavez Registered Member

    Joined:
    Jul 19, 2003
    Posts:
    3,347
    Location:
    Location Unknown
    Tomorrow would be better. Well, I guess technically later today. It's 0030 here, and I have a early day.
     
  6. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,146
    Location:
    NSW, Australia
    In BIBM, Settings, put a tick in BootNow Support.

    In BIBM, Part Work, select the IFL partition and click Properties. In the blue title bar, what is the number after Properties?

    We are almost done.

    In BIBM what is the Identity of your Windows? The same name in the Boot Menu?
     
    Last edited: Jul 14, 2019
  7. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,146
    Location:
    NSW, Australia
    Last edited: Jul 14, 2019
  8. n8chavez

    n8chavez Registered Member

    Joined:
    Jul 19, 2003
    Posts:
    3,347
    Location:
    Location Unknown
    Well, now the restore script is not running at all; manually or automatically! When I had to recreate the UFD I went with the nonet version. Could that be why? The script stayed the same.
     
  9. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,146
    Location:
    NSW, Australia
    The Nonet version is fine. Try creating a restore1.sh in the UFD.
    Is there an error message in the black window underneath the menu?

    Or do you mean the restore script with 4 lines?
     
    Last edited: Jul 14, 2019
  10. n8chavez

    n8chavez Registered Member

    Joined:
    Jul 19, 2003
    Posts:
    3,347
    Location:
    Location Unknown
    I mean my original one that ran successfully before I created a new UDF. It sees the script, it just does'nt do anything once selected.
     
  11. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,146
    Location:
    NSW, Australia
    There should be an error on the black Terminal window. If not make a new .sh script.
     
  12. n8chavez

    n8chavez Registered Member

    Joined:
    Jul 19, 2003
    Posts:
    3,347
    Location:
    Location Unknown
    I have no clue why this isn't working anymore. I even completely remade the UDF, to your directions. When I rebooted I got the no script error as planed. Then I copied the scripts over, replacing the scriptslist.txt file. Reboot in IFL. Then nothing; not even a command line window. So, I remade the scripts, imaging first and taking ther line from there. Reboot in IFL. Nothing. I tried simplifying the script using "test.tbi" and creating an image with no password. That did notyhing either. Reboot in IFL, again, nothingk...not even the CL. My script is below.

     
  13. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,146
    Location:
    NSW, Australia
    Nate,

    Code:
    --d:l1@0x1,0x2,0x4
    Is invalid. Did you manually edit this section?

    Try this. It doesn't have --uy so the restore won't start and you can abort. But if you see the Yes/No question then we are on the right track.

    Code:
    #! /bin/sh
    /tbu/imagel --r --d:l1 --f:l0@0x3:"/test" --sp:0x1,0x2,0x4 --wco --rb:4
     
  14. n8chavez

    n8chavez Registered Member

    Joined:
    Jul 19, 2003
    Posts:
    3,347
    Location:
    Location Unknown
    I copied and pasted your script ^ and still, after rebooting in IFL, nothing happens. I don't even get a CL window. When I try to manually run the script, by having IFL show me the list of scripts, nothing happens when I select it. I see the script in the list, but nothing happens when I select it.
     
  15. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,146
    Location:
    NSW, Australia
    This is frustrating for both of us and before I suggest you contact TeraByte Support can you do one last thing for me? Create another restore script and name it help.tbs instead of help.sh
    Please post the contents of help.tbs
     
  16. n8chavez

    n8chavez Registered Member

    Joined:
    Jul 19, 2003
    Posts:
    3,347
    Location:
    Location Unknown
    I'm at a loss for what to do next. I tested each version of the scripts below within IFL (not as scripts but within the imagin program) and they all worked fine. Then when I put them each as scripts, regardless of .tbs or .sh extension (even though they should be .sh) none of them worked as sripts.

    If I create the cl in the IFL imaging program and save it to a file, the resulting file is not persistent, meaning that when I reboot it's no longer there.
     
  17. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,146
    Location:
    NSW, Australia
    Nate, none of those are .tbs.

    I'll let TeraByte Support know you will be in touch.
     
  18. n8chavez

    n8chavez Registered Member

    Joined:
    Jul 19, 2003
    Posts:
    3,347
    Location:
    Location Unknown
    I know that. They should be .sh files. But I've even had script s with a txt extension work, of course when I rebooted they were gone.
     
  19. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,146
    Location:
    NSW, Australia
    So after you reboot the scripts are no longer in the IFL scripts folder?
     
  20. n8chavez

    n8chavez Registered Member

    Joined:
    Jul 19, 2003
    Posts:
    3,347
    Location:
    Location Unknown
    Correct. At least I think so. From what I can tell there are two scripts folders; the one on my flash drive or partition and there's also one that's created when IFL is loaded into memory. Since there's really no way to verify or copy any files,because all I really have is "editor" there's really no way to determine which version I am using (since the file structures are the same).

    Side note, can those above scripts be converted into tbs files?
     
  21. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,146
    Location:
    NSW, Australia
    When you boot into IFL your IFL partition is mounted as Boot. As you point out, the Script folder you see in /tbu/scripts is ephemeral. You don't save to this folder. When you save a script you navigate to /boot/scripts which is the Scripts folder in the UFD. These scripts will not disappear.

    In MC you can navigate to /boot/scripts and see your scripts and scriptlist.txt.

    .sh scripts can be converted to .tbs. But not easily.
     
  22. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,146
    Location:
    NSW, Australia
    Copy this ifl.tbs to the scripts folder of your UFD. Type ifl.tbs in scriptslist.txt. Boot the UFD. It should boot to the IFL gui without the script missing message.

    Code:
    sub main()
      printl(" ")
      printl("IFL gui")
      printl(" ")
      exec("/tbu/imagel", 1)
    end sub
     
  23. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,146
    Location:
    NSW, Australia
    If above works the .tbs scripts work OK.

    Another experiment. Create a simple restore script but don't edit it in any way.

    On the Summary screen click Show Command. Click Save to File.
    Click OK. Select boot (folder) and press Enter. Select scripts (folder) and press Enter. In the Name field type in nate.sh
    Click OK. Click Exit on IFL.

    Reboot into Windows and confirm nate.sh is in scripts folder. Don't open it.
    In scriptslist.txt, type nate.sh

    Boot the IFL UFD. Does the script run?
     
  24. n8chavez

    n8chavez Registered Member

    Joined:
    Jul 19, 2003
    Posts:
    3,347
    Location:
    Location Unknown
    Ok. I now have both a backup and restore script that have worked a few times each. The only difference I can see between this and others is that these don't have extensions. But they seem to work, so I won't question.

    and

    What switches do you suggest I use?
     
  25. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,146
    Location:
    NSW, Australia
    If there are no extensions it suggests you saved the file without an extension. I can confirm that behaviour.

    Just create any restore script without any non default options (switches). As it won't have --uy it won't restore. It will open to IFL and give a warning. Click NO and it will abort. We just want to see if it opens.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.