If you want to keep your data,i would first install the TWRP Recovery. Just install the Samsung USB-Driver and Odin on your PC.
Then load the TWRP Recovery file in Odin (for my G900FD twrp-3.0.2-1-klteduos.img.tar works fine, you find the latest TWRP for your device on...