Currently I have Linux Mint installed on my PC with a USB hard drive partition mounted as
/home. This is working well.
If I install a second USB hard drive, is there any chance Linux will get confused between the two, and try mount the second hard drive's partition as
/home on boot? That would be bad.
Coming from Windows, I've seen it happen often that drive letters are not "remembered" correctly causing all sorts of issues.
I guess the main question is: How does Linux actually know which USB hard drive is
/dev/sdb and which is
/homeCan you please explain how you did this?
swapon sda, and
/homeon sdb. But I wouldn't know how to change an existing installation's
/homemount, too new for that!
sd[a-z]are simply named in detection order. No attempt at all is made at keeping the names the same. It's typically deterministic (same kernel on same HW will give the same naming), but a new kernel with an update to the SATA-controller driver could make it scan the SATA drives in the opposite order. Instead of even trying to rename block devices (as is done with
nameifor w/e for ethernet device names, usually with udev rules), UUID, label, and id (by drive serial num) names exist.
sd[a-z]: the probing of disks is done simultaneously (in parallel) and whatever disk happens to be detected first becomes