Custom Post Download Script

  • Feel free to laugh as I am new to scripting in Ubuntu. Currently, I am using a script in the PostDownloadScripts folder to copy drivers to our different models of computers after imaging them with our Master Image. We have our older computers that are using BIOS and are mounted to sda2 but our newer computers we have started installing are using UEFI which is on sda4. Right now I am changing the mapping in the script between “mount.ntfs-3g /dev/sda2 /ntfs” or “mount.ntfs-3g /dev/sda4 /ntfs” depending on what type of system I am imaging. Is there a way to get the script to auto determine this so I do not have to edit the script each time I change between the different types?

    Thanks for any assistance ya’ll can offer me,

    Fog 1.4.4
    Ubuntu 16.04

  • @george1421 Thank you very much! I was able to modify the script to fit our setup. Everything is working smoothly now.

    Thanks again!

  • Moderator

    It appears you may be using an older tutorial that had the hard coded /dev/sda2 in it. One of the developers provided an updated script that automatically finds the proper partition. You can review the updated scripts here:

Log in to reply