After replacing the battery, my XPS 9300 Ubuntu cannot find either HD or SSD. If you experience the same issue, it is because the default BIOS setting for RAID may be wrong. After losing power, it goes back to a wrong setting. So make sure you choose the right RAID setting after battery change.