I took out an internal SATA drive from a laptop and put it on my desktop computer, if I connected it internally then it boots up fine with no issues. However if I connected my drive to SATA to USB to my computer then it fails to boot.
If I connected my regular drive internally and booted from it and connected the other drive to SATA to USB, the OS does recognize it and I am able to read and write to it, so the cable is not faulty.
While I am booted using the laptop’s internal drive, inside /etc/fstab this is what is inside of it:
THat might make sense, cause when I go into the boot menu it doesn’t show the drive, instead it shows the device’s (SATA to USB) cable’s name instead so it might have its own thing on it. I could try and modify the /etc/fstab and instead of using UUID I could use /dev/sda1 etc. I will have to try this out when I get back.
But a better thing I might need to do is get a replacement of this cable that doesn’t do weird things like this.
This would suggest a module that is needed for booting through the disk enclosure is missing from the initramfs. It is likely all that is needed will be to boot with the fallback image, then rebuild the initramfs.
Test again after that to confirm you can boot normally with the updated image.
As @pebcak claims that the UUID changes. And I belive this is the case as when I go into the boot options it doesn’t show the drive. It instead shows the cable’s name, regardless of what drive I connect it to.
I am about to soon, its nothing urgent or anything it was more of a curiosity as to why I wasn’t able to boot from it when I was testing it out but yeah I actually have something planned to buy.
But in the error anyways it says it couldn’t mount UUID… so I think going through that interface it must have represent it with a different UUID or something (sorry if I don’t make sense) as the device/cable has its own internal processing so not sure what it does there.