I am hosted own gitlab server i want to store my repositories on my external HDD permanently when i mount and remount the external HDD

I have hosted gitlab in ubuntu and my project repositories saved in external hard disk After unmounting external hard disk i need to reconfigure gitlab each and evrey repository in HDD. Is it possible to save repositories permanently after remounting of external HDD.