Maybe godmode9 but luma im sure you can boot it if you did setup boot9strap correctly , boot9strap is written on the system nand so formatting sd wont erase hack but surely delete all installed data on the sd , even dsiware stay since they on system memory .
You just need to get homebrew launcher working get fbi.3dsx and put it on 3ds folder then get and put fbi.cia on cias folder and open fbi on HBL and then install the cias version finally reinstall all your data and lumaupdater back and you should be ok!
Edit : you need to setup all folder back first and download homebrew launcher setup it then do step above!
Redit: of course godmode9 wont work you need to create on root of sd files named luma and inside it create and file named payloads then get godmode9.firm and put it inside payloads folder sorry i forgot that