On Sat, Dec 14, 2024 at 09:02:45PM +0100, Hans wrote:
I put a harddrive with linux with a native installed linux (native means, the
harddrive was built-in) in an usb-case and could boot from it. This was nice!
Thus some questions appeared:
1. Is this is normal standard behaviour and can this be confirmed?
It depends on a lot of variables, like what kind of boot (BIOS or EFI),
how the drive/OS is configured, what the host system supports. There are
many cases where it will just work, but also many configurations that
won't work without additional steps. There's no reason it shouldn't work
(possibly with some tweaking of configurations) on any reasonably modern
system, and once working there's no reason it would have issues. The
main thing you'd want to ensure is that all mounts are done by
UUID/label/LVM path/etc rather than by drive letter, but that's long
been the default. Legacy (BIOS) grub upgrades may also require
additional steps if the drive is moved from its original drive letter as
those are inherently tied to a device name rather than something like a
UUID. EFI boot paths do not have that issue, but may require configuring
grub to use the default removable media path (EFI\BOOT\BOOTX64.EFI
rather than EFI\DEBIAN\GRUBX64.EFI or EFI\DEBIAN\SHIMX64.EFI).