>> -----Original Message----- >> From: tastytea <gen...@tastytea.de> >> Sent: Monday, November 29, 2021 9:00 PM >> To: gentoo-user@lists.gentoo.org >> Subject: Re: [gentoo-user] Switching from eudev to udev, disaster. >> >> On 2021-11-29 22:47-0600 Dale <rdalek1...@gmail.com> wrote: >> >> > Now if I can figure out how to reset the list of /dev/sd* names that >> > are lurking about and inconsistent, that would be like striking gold. >> > Every time I hook up my external drive, it gets a different sd* name. >> > It does the same on the SD cards from my trail cameras too but I can >> > auto mount those. >> >> I don't think it is possible to get consistent sd* names for removable >> media. But you could use volume labels with `tune2fs -L` or `tune.exfat -L` >> or `fatlabel` and then mount them via /dev/disk/by-label/*. >> >> Kind regards, tastytea >> >> -- >> Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at >> <https://tastytea.de/tastytea.asc>.
Don't even need to do that if you don't care about human beings too much. /dev/disk/by-id has similar links based on drive model and serial number and /dev/disk/by-uuid I think has them by filesystem uuid. All of those should be pretty consistent. LMP