Ubuntu (both 20.04 and 22.04) installs perfectly while in a USB external enclosure (which is basically USB to SATA for those who don't know), but after it's mounted inside of my laptop it starts giving errors.
Before trying without the enclosure I was getting Errno 30 (Read-only file system error) while trying to install Ubuntu. After multiple tries and a lot of drive checks and a complete drive erase I tried to install it on a enclosure which installed without any errors and booted while still inside of enclosure. After unplugging it and installing it back on laptop it started to give errors.
Laptop specs:
- 4 GB DDR3 RAM
- Intel T6570
- Nvidia 320M
- Model Asus, K50ID
I also tried few other things like:
nomodeset no=acpi
deleting quiet and splash
Burning ISO with both Rufus and Balena Etcher
Redownloading ISO and checking hash
I tried with both USB 2.0 and USB 3.0
I'm out of ideas at the moment. Also the SSD is brand new. I checked with multiple programs like HDSentinel and it is fine, No SMART errors or bad sectors. BIOS is up to date.
The thing I don't get is, why does it install while in the enclosure without any problems and boot up, but after installing Ubuntu back on laptop (the SSD) it still gives errors. Windows 7 also installs without errors.
SSD installed inside laptop:

Ubuntu installation with enclosure:

Ubuntu installation with enclosure:

