On 2021-11-29 23:19-0600 Dale <rdalek1...@gmail.com> wrote: > Matt Connell wrote: > > On Mon, 2021-11-29 at 22:47 -0600, Dale 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'd suggest using the UUIDs for the disks (acquired via the blkid > > command) and adding them to your /etc/fstab ... That's always been > > my solution to commonly-connected-but-never-permanently external > > disks. > > > > It won't ensure the same sd* name, but it will ensure that they get > > mounted consistently where you expect them to be. > > > > > > > > > Thanks to both for the idea. My problem isn't mounting, it's > decrypting the drive. I use cryptsetup and I have to give the sd* > name for both my external drives. The way I do now, I type in the > command to the sd point and hit tab twice. Once the drive gets spun > up, I hit tab again. Whichever one adds a 1 on the end is the one > picked. Thing is, it's rarely the same one so I have to test to see > which one it picks. I wish it would either reset itself or pick the > same one each time. I already know to ignore sda, sdb, sdc, sdd and > sde. > > If it wasn't encrypted, it would be a good idea. I sometimes wish > there was a GUI way to do it that allows me to set my own mount > point. There are GUI crypt programs but they set their own mount > points. Plus, the command line is fairly easy. The password is the > hard part. Good luck NSA. ROFL
If the partition table is GPT (instead of msdos compatible), you can set a label to the partition itself with gparted (right click → name partition) and then access it via /dev/disk/by-partlabel/. That works for encrypted partitions too, since the name is stored in the partition table and not the file system. Kind regards, tastytea -- Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at <https://tastytea.de/tastytea.asc>.
pgpvHFgnrSW0v.pgp
Description: Digitale Signatur von OpenPGP