I was using Linux Mint 19 on an Asus X-550 LC laptop, and one fine day I got the error about some file system corrupted while booting. So I took the back up of all files using linux mint os on usb and then tried to erase everything and install linux mint again. It did not work so I took out the HDD and formatted it externally and again put it in and tried to install ubuntu 18.04. After completion, the laptop started but as soon as I restarted it, I got same error as previous so I think it might be a hardware issue like ram or hdd got corrupted. But I am not sure. Is there any way to find out whether it is RAM, HDD or some software issue.
Already tried:Erasing everything on hard drive and installing linux mint. Removing HDD formatting it externally and installing ubuntu. Edit1: when I try to use live usb, it works well and I could get the backup of my data through it.Also, erase and install option of live usb goes through. So when I erase and install new os on my hard drive using live usb, it works for the time until I shut down and/or restart the laptop.