Gentoo Archives: gentoo-user

From: tastytea <gentoo@××××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Switching from eudev to udev, disaster.
Date: Tue, 30 Nov 2021 05:42:04
Message-Id: 20211130064155.690d3d57@ventiloplattform.tastytea.de
In Reply to: Re: [gentoo-user] Switching from eudev to udev, disaster. by Dale
1 On 2021-11-29 23:19-0600 Dale <rdalek1967@×××××.com> wrote:
2
3 > Matt Connell wrote:
4 > > On Mon, 2021-11-29 at 22:47 -0600, Dale wrote:
5 > >> Now if I can figure out how to reset the list of /dev/sd* names
6 > >> that are lurking about and inconsistent, that would be like
7 > >> striking gold.  Every time I hook up my external drive, it gets a
8 > >> different sd* name.  It does the same on the SD cards from my
9 > >> trail cameras too but I can auto mount those. 
10 > > I'd suggest using the UUIDs for the disks (acquired via the blkid
11 > > command) and adding them to your /etc/fstab ... That's always been
12 > > my solution to commonly-connected-but-never-permanently external
13 > > disks.
14 > >
15 > > It won't ensure the same sd* name, but it will ensure that they get
16 > > mounted consistently where you expect them to be.
17 > >
18 > >
19 > >
20 >
21 >
22 > Thanks to both for the idea.  My problem isn't mounting, it's
23 > decrypting the drive.  I use cryptsetup and I have to give the sd*
24 > name for both my external drives.  The way I do now, I type in the
25 > command to the sd point and hit tab twice.  Once the drive gets spun
26 > up, I hit tab again. Whichever one adds a 1 on the end is the one
27 > picked.  Thing is, it's rarely the same one so I have to test to see
28 > which one it picks.  I wish it would either reset itself or pick the
29 > same one each time.  I already know to ignore sda, sdb, sdc, sdd and
30 > sde. 
31 >
32 > If it wasn't encrypted, it would be a good idea.  I sometimes wish
33 > there was a GUI way to do it that allows me to set my own mount
34 > point.  There are GUI crypt programs but they set their own mount
35 > points.  Plus, the command line is fairly easy.  The password is the
36 > hard part.  Good luck NSA.  ROFL 
37
38 If the partition table is GPT (instead of msdos compatible), you can
39 set a label to the partition itself with gparted (right click →
40 name partition) and then access it via /dev/disk/by-partlabel/. That
41 works for encrypted partitions too, since the name is stored in the
42 partition table and not the file system.
43
44 Kind regards, tastytea
45
46
47 --
48 Get my PGP key with `gpg --locate-keys tastytea@××××××××.de` or at
49 <https://tastytea.de/tastytea.asc>.