Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

What the gods would destroy they first submit to an IEEE standards committee.


computers / alt.os.linux / alternative disk ID?

SubjectAuthor
* alternative disk ID?bad sector
+- alternative disk ID?Peter Pearson
+* alternative disk ID?marrgol
|`* alternative disk ID?bad sector
| +- alternative disk ID?Carlos E.R.
| +* alternative disk ID?marrgol
| |`* alternative disk ID?bad sector
| | `* alternative disk ID?Carlos E.R.
| |  `* alternative disk ID?bad sector
| |   +- alternative disk ID?Carlos E.R.
| |   `- alternative disk ID?marrgol
| `- alternative disk ID?Bit Twister
+- alternative disk ID?Johnny
+- alternative disk ID?Joe Beanfish
`- alternative disk ID?David W. Hodgins

1
alternative disk ID?

<n7mcnb1B6IXK26T5nZ2dnZfqn_SdnZ2d@giganews.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2909&group=alt.os.linux#2909

  copy link   Newsgroups: alt.os.linux
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 14 Apr 2023 12:25:59 +0000
Date: Fri, 14 Apr 2023 08:25:58 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.8.0
Newsgroups: alt.os.linux
Content-Language: hu
From: forgetski@INVALID.net (bad sector)
Subject: alternative disk ID?
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <n7mcnb1B6IXK26T5nZ2dnZfqn_SdnZ2d@giganews.com>
Lines: 18
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-9NhtnZWjsexad+SlZ6uCKupCZMh3SMXH4sWJ1HpDeGC44u5fuqKXz7Ez5QI2wdDQXpxMnbpZkI2B1jB!A1RWrgviS+FYBvzoUIByNoAewhVfCdN2BlSBKYbyGTpzD+hIiuR5RPaYvw/aM+NYrQ2JCZupicsg!Sw==
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: bad sector - Fri, 14 Apr 2023 12:25 UTC

Using mmobile racks I have started (physically) labeling my
drives with the last 3 digits of the manufacturers serial #.

As an example one of my 2tb blue WD's ends with 276 so
I marked THAT on the tray handle.

Is this serial number available in the OS somehow? If it is
then I would wanna explore using it with the partition # as
an ID such as 276-17 ...unique enough in my house.

--
Artificial-Stupidity will never be competitive

Re: alternative disk ID?

<k9t1a0F8lb6U1@mid.individual.net>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2914&group=alt.os.linux#2914

  copy link   Newsgroups: alt.os.linux
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!gandalf.srv.welterde.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: pkpearson@nowhere.invalid (Peter Pearson)
Newsgroups: alt.os.linux
Subject: Re: alternative disk ID?
Date: 14 Apr 2023 13:04:01 GMT
Lines: 19
Message-ID: <k9t1a0F8lb6U1@mid.individual.net>
References: <n7mcnb1B6IXK26T5nZ2dnZfqn_SdnZ2d@giganews.com>
X-Trace: individual.net ngU1SL5V3YnrfXkJb0JVmAj23gosUtIe+YWhG4DVJwWL9Nj3PT
Cancel-Lock: sha1:ha7wpE0N01+qYuFB9mI9MW0cPU4=
User-Agent: slrn/1.0.3 (Linux)
 by: Peter Pearson - Fri, 14 Apr 2023 13:04 UTC

On Fri, 14 Apr 2023 08:25:58 -0400, bad sector <forgetski@INVALID.net> wrote:
>
> Using mmobile racks I have started (physically) labeling my
> drives with the last 3 digits of the manufacturers serial #.
>
> As an example one of my 2tb blue WD's ends with 276 so
> I marked THAT on the tray handle.
>
> Is this serial number available in the OS somehow?
[snip]

Like this?

$ sudo smartctl -i /dev/sdb | fgrep Serial
Serial Number: 17501A1840C6
$

--
To email me, substitute nowhere->runbox, invalid->com.

Re: alternative disk ID?

<u1bj2d$1i148$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2915&group=alt.os.linux#2915

  copy link   Newsgroups: alt.os.linux
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: marrgol@address.invalid (marrgol)
Newsgroups: alt.os.linux
Subject: Re: alternative disk ID?
Date: Fri, 14 Apr 2023 15:05:17 +0200
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <u1bj2d$1i148$1@dont-email.me>
References: <n7mcnb1B6IXK26T5nZ2dnZfqn_SdnZ2d@giganews.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 14 Apr 2023 13:05:17 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="759abf775eb71d91bdd7fbebbcc74ff2";
logging-data="1639560"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+kQIP5fZpBegwU3VaU5UbF"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
Cancel-Lock: sha1:YyxDu2NVrRZccMm9C8SHxHcGsb0=
In-Reply-To: <n7mcnb1B6IXK26T5nZ2dnZfqn_SdnZ2d@giganews.com>
Content-Language: en-US
 by: marrgol - Fri, 14 Apr 2023 13:05 UTC

On 14/04/2023 at 14.25, bad sector wrote:
>
> Using mmobile racks I have started (physically) labeling my
> drives with the last 3 digits of the manufacturers serial #.
>
> As an example one of my 2tb blue WD's ends with 276 so
> I marked THAT on the tray handle.
>
> Is this serial number available in the OS somehow?

Inspect the links in /dev/disk/by-id/ directory. They are
created by udev, so you can create whatever links you need.
E.g. I have a file in /etc/udev/rules.d/ that cotains these
lines:

KERNEL=="sd*", ENV{DEVTYPE}=="disk", ENV{ID_SERIAL_SHORT}=="?*",
SYMLINK+="disk/by-sn/$env{ID_SERIAL_SHORT}"
KERNEL=="sd*", ENV{DEVTYPE}=="partition", ENV{ID_SERIAL_SHORT}=="?*",
SYMLINK+="disk/by-sn/$env{ID_SERIAL_SHORT}-%n"

which create links in /dev/disk/by-sn/ in the form pretty much
what you ask for: “serial_number dash partition_number”.

--
mrg

Re: alternative disk ID?

<20230414080715.4209e3ef@mx>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2916&group=alt.os.linux#2916

  copy link   Newsgroups: alt.os.linux
Path: i2pn2.org!rocksolid2!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: johnny@invalid.net (Johnny)
Newsgroups: alt.os.linux
Subject: Re: alternative disk ID?
Date: Fri, 14 Apr 2023 08:07:15 -0500
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <20230414080715.4209e3ef@mx>
References: <n7mcnb1B6IXK26T5nZ2dnZfqn_SdnZ2d@giganews.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="539542c05f83481d72b23a71b90303e3";
logging-data="1623265"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19WXF4x67hQjbeXcMBkfHwN"
Cancel-Lock: sha1:Rf5yjaiO1XyPrliVmB7a7b3AR9k=
X-Newsreader: Claws Mail 4.0.0 (GTK+ 3.24.24; x86_64-pc-linux-gnu)
 by: Johnny - Fri, 14 Apr 2023 13:07 UTC

On Fri, 14 Apr 2023 08:25:58 -0400
bad sector <forgetski@INVALID.net> wrote:

> Using mmobile racks I have started (physically) labeling my
> drives with the last 3 digits of the manufacturers serial #.
>
> As an example one of my 2tb blue WD's ends with 276 so
> I marked THAT on the tray handle.
>
> Is this serial number available in the OS somehow? If it is
> then I would wanna explore using it with the partition # as
> an ID such as 276-17 ...unique enough in my house.
>
>
>

MX Linux has a tool called Quick System Info, it gives the model number
of the drives.

I only have two. ST1000DM003 and FNX512MORM

Re: alternative disk ID?

<u1bmu5$1i02u$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2918&group=alt.os.linux#2918

  copy link   Newsgroups: alt.os.linux
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: joebeanfish@nospam.duh (Joe Beanfish)
Newsgroups: alt.os.linux
Subject: Re: alternative disk ID?
Date: Fri, 14 Apr 2023 14:11:17 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <u1bmu5$1i02u$1@dont-email.me>
References: <n7mcnb1B6IXK26T5nZ2dnZfqn_SdnZ2d@giganews.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 14 Apr 2023 14:11:17 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a806d1d4d29505b1d9d5e9b1a0d7d082";
logging-data="1638494"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/1h3nJI/lkfEpmD84SolEeqf2PjPw5Gys="
User-Agent: Pan/0.146 (Hic habitat felicitas; 8107378
git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock: sha1:206OdfQSZgRYYhjmexBDewaIbIE=
 by: Joe Beanfish - Fri, 14 Apr 2023 14:11 UTC

On Fri, 14 Apr 2023 08:25:58 -0400, bad sector wrote:

> Using mmobile racks I have started (physically) labeling my
> drives with the last 3 digits of the manufacturers serial #.
>
> As an example one of my 2tb blue WD's ends with 276 so
> I marked THAT on the tray handle.
>
> Is this serial number available in the OS somehow? If it is
> then I would wanna explore using it with the partition # as
> an ID such as 276-17 ...unique enough in my house.

Try hdparm -i

Re: alternative disk ID?

<op.13edt2yca3w0dxdave@hodgins.homeip.net>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2920&group=alt.os.linux#2920

  copy link   Newsgroups: alt.os.linux
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dwhodgins@nomail.afraid.org (David W. Hodgins)
Newsgroups: alt.os.linux
Subject: Re: alternative disk ID?
Date: Fri, 14 Apr 2023 11:40:40 -0400
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <op.13edt2yca3w0dxdave@hodgins.homeip.net>
References: <n7mcnb1B6IXK26T5nZ2dnZfqn_SdnZ2d@giganews.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="25cbc3c0e75b6cfba8825307e6244436";
logging-data="1691767"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/bj0Izo+XX5jcMVsnc25aMemJb1ti+mlc="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:ZAfL3ePxHQP6NOwosxQiAhBj5G0=
 by: David W. Hodgins - Fri, 14 Apr 2023 15:40 UTC

On Fri, 14 Apr 2023 08:25:58 -0400, bad sector <forgetski@invalid.net> wrote:

>
> Using mmobile racks I have started (physically) labeling my
> drives with the last 3 digits of the manufacturers serial #.
>
> As an example one of my 2tb blue WD's ends with 276 so
> I marked THAT on the tray handle.
>
> Is this serial number available in the OS somehow? If it is
> then I would wanna explore using it with the partition # as
> an ID such as 276-17 ...unique enough in my house.

Look at "udevadm info /dev/sdb|grep -i serial"

I've experimented with using a udev rule to take an action based on the
serial when inserting a drive ...
$ cat /etc/udev/rules.d/00-myusb2.rules
# udev rules file for my usb drive
ACTION!="add", GOTO="myusb2_rules_end"
KERNEL=="sd?1", ATTRS{serial}=="070526931096D296" , ACTION=="add", RUN+="/bin/logger -t cryptdrive inserted %k"
LABEL="myusb2_rules_end"

The above just rus the logger command, but changing it to run a script to mount
the drive and do something like run a backup script would be easy.

Regards, Dave Hodgins

Re: alternative disk ID?

<Je6dneJKmJYgm6f5nZ2dnZfqnPudnZ2d@giganews.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2923&group=alt.os.linux#2923

  copy link   Newsgroups: alt.os.linux
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!newsfeed.hasname.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!69.80.99.27.MISMATCH!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sat, 15 Apr 2023 02:06:53 +0000
Date: Fri, 14 Apr 2023 22:06:53 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0
From: forgetski@_INVALID_.net (bad sector)
Subject: Re: alternative disk ID?
Newsgroups: alt.os.linux
References: <n7mcnb1B6IXK26T5nZ2dnZfqn_SdnZ2d@giganews.com> <u1bj2d$1i148$1@dont-email.me>
Content-Language: hu-HU
In-Reply-To: <u1bj2d$1i148$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Message-ID: <Je6dneJKmJYgm6f5nZ2dnZfqnPudnZ2d@giganews.com>
Lines: 57
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-T28SAbd/hcjkPYte/BaE/PVxGv0qZWjzzWsZ2CkcGDRAfUfeaNID0hVQhgWppkp111+G2HLxDYLFV9d!FA1o3pk9BwRsXVhgJfEghHamKiKI6ufqzKrlV9oeP0BvIlP2Ex0EVJSKaKdjVevKZKhzkGYYpEKI!VQ==
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Received-Bytes: 3516
 by: bad sector - Sat, 15 Apr 2023 02:06 UTC

On 4/14/23 09:05, marrgol wrote:
> On 14/04/2023 at 14.25, bad sector wrote:
>>
>> Using mmobile racks I have started (physically) labeling my
>> drives with the last 3 digits of the manufacturers serial #.
>>
>> As an example one of my 2tb blue WD's ends with 276 so
>> I marked THAT on the tray handle.
>>
>> Is this serial number available in the OS somehow?
>
> Inspect the links in /dev/disk/by-id/ directory.  They are
> created by udev, so you can create whatever links you need.
> E.g. I have a file in /etc/udev/rules.d/ that cotains these
> lines:
>
> KERNEL=="sd*", ENV{DEVTYPE}=="disk", ENV{ID_SERIAL_SHORT}=="?*",
> SYMLINK+="disk/by-sn/$env{ID_SERIAL_SHORT}"
> KERNEL=="sd*", ENV{DEVTYPE}=="partition", ENV{ID_SERIAL_SHORT}=="?*",
> SYMLINK+="disk/by-sn/$env{ID_SERIAL_SHORT}-%n"
>
> which create links in /dev/disk/by-sn/ in the form pretty much
> what you ask for: “serial_number dash partition_number”.

This is close to what I have in mind though over my head and pay-grade.
I used to be hard-wired to dev-names since IDE days and since sata blew
that into the weeds I've been looking for an alternative bulletproof
hardaware ID. When a disk was plugged into a mobile IDE tray I knew
exactly which disk that was so dev-name was just fine. Disk-by-sn is
pretty hard to beat for being both hardware-locked AND unique.

How would I create a ENV{ID_SERIAL_LAST3} that will produce jzj-1 in the
case cited below? I'd like to get to a point where all I have to do is

mount /dev/jzj-1 /mnt

I did run into a problem trying to mount by-sn though

# mount /dev/disk/by-sn/WD-WXH2A31NPJZJ-1 /mnt
mount: /mnt: /dev/sdc1 already mounted or mount point busy.
dmesg(1) may have more information after failed mount
system call.

and 'dmesg' says:
[ 2689.519819] /dev/sdc1: Can't open blockdev

And this is how it pans out for every disk I try

NB
In Suse-Tumbleweed fdisk now lists by dm-#
*as well as* dev-name, it so happens that the
above disk-partition-1 is listed there as /dev/sdc1.
So maybe there's a relation (like /dev/sdc1 being
just a mountpoint hence 'busy'? Really a Suse question
I guess).

Re: alternative disk ID?

<rhctgjx4h8.ln2@Telcontar.valinor>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2942&group=alt.os.linux#2942

  copy link   Newsgroups: alt.os.linux
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_listas@es.invalid (Carlos E.R.)
Newsgroups: alt.os.linux
Subject: Re: alternative disk ID?
Date: Sun, 16 Apr 2023 16:15:55 +0200
Lines: 74
Message-ID: <rhctgjx4h8.ln2@Telcontar.valinor>
References: <n7mcnb1B6IXK26T5nZ2dnZfqn_SdnZ2d@giganews.com>
<u1bj2d$1i148$1@dont-email.me>
<Je6dneJKmJYgm6f5nZ2dnZfqnPudnZ2d@giganews.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net jzF6q68G0xJ5oFdJnSjyZwld7BoejAHc7ZDmn3UBjdtIuARBJ/
X-Orig-Path: Telcontar.valinor!not-for-mail
Cancel-Lock: sha1:dQ2AyARJiNeaxRkq4JBXuH32t6E=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.9.1
Content-Language: es-ES, en-CA
In-Reply-To: <Je6dneJKmJYgm6f5nZ2dnZfqnPudnZ2d@giganews.com>
 by: Carlos E.R. - Sun, 16 Apr 2023 14:15 UTC

On 2023-04-15 04:06, bad sector wrote:
> On 4/14/23 09:05, marrgol wrote:
>> On 14/04/2023 at 14.25, bad sector wrote:
>>>
>>> Using mmobile racks I have started (physically) labeling my
>>> drives with the last 3 digits of the manufacturers serial #.
>>>
>>> As an example one of my 2tb blue WD's ends with 276 so
>>> I marked THAT on the tray handle.
>>>
>>> Is this serial number available in the OS somehow?
>>
>> Inspect the links in /dev/disk/by-id/ directory.  They are
>> created by udev, so you can create whatever links you need.
>> E.g. I have a file in /etc/udev/rules.d/ that cotains these
>> lines:
>>
>> KERNEL=="sd*", ENV{DEVTYPE}=="disk", ENV{ID_SERIAL_SHORT}=="?*",
>> SYMLINK+="disk/by-sn/$env{ID_SERIAL_SHORT}"
>> KERNEL=="sd*", ENV{DEVTYPE}=="partition", ENV{ID_SERIAL_SHORT}=="?*",
>> SYMLINK+="disk/by-sn/$env{ID_SERIAL_SHORT}-%n"
>>
>> which create links in /dev/disk/by-sn/ in the form pretty much
>> what you ask for: “serial_number dash partition_number”.
>
> This is close to what I have in mind though over my head and pay-grade.
> I used to be hard-wired to dev-names since IDE days and since sata blew
> that into the weeds I've been looking for an alternative bulletproof
> hardaware ID. When a disk was plugged into a mobile IDE tray I knew
> exactly which disk that was so dev-name was just fine. Disk-by-sn is
> pretty hard to beat for being both hardware-locked AND unique.
>
> How would I create a ENV{ID_SERIAL_LAST3} that will produce jzj-1 in the
> case cited below? I'd like to get to a point where all I have to do is
>
> mount /dev/jzj-1 /mnt

Nope. At besst, you would get to do:

mount /dev/disk/by-myserial/ /mnt

>
>
> I did run into a problem trying to mount by-sn though
>
>
> # mount /dev/disk/by-sn/WD-WXH2A31NPJZJ-1  /mnt
> mount: /mnt: /dev/sdc1 already mounted or mount point busy.
>        dmesg(1) may have more information after failed mount
>        system call.
>
> and 'dmesg' says:
> [ 2689.519819] /dev/sdc1: Can't open blockdev
>
> And this is how it pans out for every disk I try
>
> NB
> In Suse-Tumbleweed fdisk now lists by dm-#
> *as well as* dev-name, it so happens that the
> above disk-partition-1 is listed there as /dev/sdc1.
> So maybe there's a relation (like /dev/sdc1 being
> just a mountpoint hence 'busy'? Really a Suse question
> I guess).

No, should be a block device. Exactly this:

Telcontar:~ # l /dev/sdc1
brw-rw---- 1 root disk 8, 33 Apr 14 23:41 /dev/sdc1
Telcontar:~ #

--
Cheers, Carlos.

Re: alternative disk ID?

<u1hau7$2keoo$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2943&group=alt.os.linux#2943

  copy link   Newsgroups: alt.os.linux
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: marrgol@address.invalid (marrgol)
Newsgroups: alt.os.linux
Subject: Re: alternative disk ID?
Date: Sun, 16 Apr 2023 19:23:19 +0200
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <u1hau7$2keoo$1@dont-email.me>
References: <n7mcnb1B6IXK26T5nZ2dnZfqn_SdnZ2d@giganews.com>
<u1bj2d$1i148$1@dont-email.me>
<Je6dneJKmJYgm6f5nZ2dnZfqnPudnZ2d@giganews.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 16 Apr 2023 17:23:19 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a968549ea1d1042d659926b0179a43ad";
logging-data="2767640"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19hzSZMSZiabQwrDMT9QmfD"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
Cancel-Lock: sha1:IWtYLUBQV6HU/CXTqxmI55l1cpY=
Content-Language: en-US
In-Reply-To: <Je6dneJKmJYgm6f5nZ2dnZfqnPudnZ2d@giganews.com>
 by: marrgol - Sun, 16 Apr 2023 17:23 UTC

On 15/04/2023 at 04.06, bad sector wrote:
> How would I create a ENV{ID_SERIAL_LAST3} that will produce jzj-1 in the
> case cited below? I'd like to get to a point where all I have to do is
>
> mount /dev/jzj-1 /mnt

Add this line:

KERNEL=="sd*", ENV{DEVTYPE}=="disk|partition",
ENV{ID_SERIAL_SHORT}=="?*", RUN+="/sbin/disk-by-sn"

again to a file in /etc/udev/rules.d/ directory, and these lines:

-------------------------- 8< ----------------------------
#!/bin/bash
SNDEVNAME="/dev/${ID_SERIAL_SHORT: -3}${PARTN:+-}${PARTN}"
case $ACTION in
add) /usr/bin/ln -s "$DEVNAME" "$SNDEVNAME" ;;
remove) /usr/bin/rm "$SNDEVNAME" ;;
esac
-------------------------- 8< ----------------------------

make the /sbin/disk-by-sn script (must be executable of course).
It's a bare minimum, but if all your serial numbers are at least
3 characters long and the last 3 characters are unique to each,
it will do.

> I did run into a problem trying to mount by-sn though

It's no different from mounting by-label, by-uuid etc.
-- just another symbolic link to the actual block device file.
Works fine here in openSUSE Leap 15.4 and there's no reason
for it not to work in Tumbleweed (or any other distro).

--
mrg

Re: alternative disk ID?

<SfadnXOLc48c-KH5nZ2dnZfqnPudnZ2d@giganews.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2946&group=alt.os.linux#2946

  copy link   Newsgroups: alt.os.linux
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 16 Apr 2023 21:15:45 +0000
Date: Sun, 16 Apr 2023 17:15:45 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
From: forgetski@_INVALID_.net (bad sector)
Subject: Re: alternative disk ID?
Newsgroups: alt.os.linux
References: <n7mcnb1B6IXK26T5nZ2dnZfqn_SdnZ2d@giganews.com>
<u1bj2d$1i148$1@dont-email.me>
<Je6dneJKmJYgm6f5nZ2dnZfqnPudnZ2d@giganews.com>
<u1hau7$2keoo$1@dont-email.me>
Content-Language: hu-HU
In-Reply-To: <u1hau7$2keoo$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Message-ID: <SfadnXOLc48c-KH5nZ2dnZfqnPudnZ2d@giganews.com>
Lines: 47
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-VjoYwFhC9pJ4VzgpLtH4xlpudJqI8yFUFL8drs6hMW+KzgacrWKP55q1Bj1k08wob1oGYOg2nrdTnbx!Z0jS/o1SaLkgCU7VtLFxW70WdAsrtT6ulaiDsJWuxrNGluSni2+NtcCpsxI+c3EJRpb5Qo/0FOif!gA==
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: bad sector - Sun, 16 Apr 2023 21:15 UTC

On 4/16/23 13:23, marrgol wrote:
> On 15/04/2023 at 04.06, bad sector wrote:
>> How would I create a ENV{ID_SERIAL_LAST3} that will produce jzj-1 in the
>> case cited below? I'd like to get to a point where all I have to do is
>>
>> mount /dev/jzj-1 /mnt
>
> Add this line:
>
> KERNEL=="sd*", ENV{DEVTYPE}=="disk|partition",
> ENV{ID_SERIAL_SHORT}=="?*", RUN+="/sbin/disk-by-sn"
>
> again to a file in /etc/udev/rules.d/ directory, and these lines:
>
> -------------------------- 8< ----------------------------
> #!/bin/bash
> SNDEVNAME="/dev/${ID_SERIAL_SHORT: -3}${PARTN:+-}${PARTN}"
> case $ACTION in
>      add) /usr/bin/ln -s "$DEVNAME" "$SNDEVNAME" ;;
>   remove) /usr/bin/rm "$SNDEVNAME" ;;
> esac
> -------------------------- 8< ----------------------------
>
> make the /sbin/disk-by-sn script (must be executable of course).

I would execute this once only, right?

> It's a bare minimum, but if all your serial numbers are at least
> 3 characters long and the last 3 characters are unique to each,
> it will do.
>
>> I did run into a problem trying to mount by-sn though
>
> It's no different from mounting by-label, by-uuid etc.
> -- just another symbolic link to the actual block device file.
> Works fine here in openSUSE Leap 15.4 and there's no reason
> for it not to work in Tumbleweed (or any other distro).

It was Paul or Malcolm who suggested I use labels several years ago :-)

This method, like uuid, is diferent though in that it uses real data and
not something I just imagined. Not even uuid uses hard hardware specs.
That said, I _could_ use labels that happen to be the last digits of the SN.

Re: alternative disk ID?

<oo6ugjx0dm.ln2@Telcontar.valinor>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2947&group=alt.os.linux#2947

  copy link   Newsgroups: alt.os.linux
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_listas@es.invalid (Carlos E.R.)
Newsgroups: alt.os.linux
Subject: Re: alternative disk ID?
Date: Sun, 16 Apr 2023 23:43:20 +0200
Lines: 34
Message-ID: <oo6ugjx0dm.ln2@Telcontar.valinor>
References: <n7mcnb1B6IXK26T5nZ2dnZfqn_SdnZ2d@giganews.com>
<u1bj2d$1i148$1@dont-email.me>
<Je6dneJKmJYgm6f5nZ2dnZfqnPudnZ2d@giganews.com>
<u1hau7$2keoo$1@dont-email.me>
<SfadnXOLc48c-KH5nZ2dnZfqnPudnZ2d@giganews.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net sQLC3oRaPt6fxq3DSHkKrwU++QdbiA5IYoQq9haKis8Zpm8nVv
X-Orig-Path: Telcontar.valinor!not-for-mail
Cancel-Lock: sha1:aT/Y9+ntt0BiJGJxswRY/RE/Twg=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.9.1
Content-Language: es-ES, en-CA
In-Reply-To: <SfadnXOLc48c-KH5nZ2dnZfqnPudnZ2d@giganews.com>
 by: Carlos E.R. - Sun, 16 Apr 2023 21:43 UTC

On 2023-04-16 23:15, bad sector wrote:
> On 4/16/23 13:23, marrgol wrote:
>> On 15/04/2023 at 04.06, bad sector wrote:
>>> How would I create a ENV{ID_SERIAL_LAST3} that will produce jzj-1 in the
>>> case cited below? I'd like to get to a point where all I have to do is
>>>
>>> mount /dev/jzj-1 /mnt
>>
>> Add this line:
>>
>> KERNEL=="sd*", ENV{DEVTYPE}=="disk|partition",
>> ENV{ID_SERIAL_SHORT}=="?*", RUN+="/sbin/disk-by-sn"
>>
>> again to a file in /etc/udev/rules.d/ directory, and these lines:
>>
>> -------------------------- 8< ----------------------------
>> #!/bin/bash
>> SNDEVNAME="/dev/${ID_SERIAL_SHORT: -3}${PARTN:+-}${PARTN}"
>> case $ACTION in
>>       add) /usr/bin/ln -s "$DEVNAME" "$SNDEVNAME" ;;
>>    remove) /usr/bin/rm "$SNDEVNAME" ;;
>> esac
>> -------------------------- 8< ----------------------------
>>
>> make the /sbin/disk-by-sn script (must be executable of course).
>
> I would execute this once only, right?

No, "you" don't ever execute it. The udev rule executes it automatically
when needed.

--
Cheers, Carlos.

Re: alternative disk ID?

<TpicnbY56NrQK6H5nZ2dnZfqnPednZ2d@giganews.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2949&group=alt.os.linux#2949

  copy link   Newsgroups: alt.os.linux
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 17 Apr 2023 03:00:29 +0000
Date: Sun, 16 Apr 2023 23:00:29 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.10.0
From: forgetski@_INVALID_.net (bad sector)
Subject: Re: alternative disk ID?
Newsgroups: alt.os.linux
References: <n7mcnb1B6IXK26T5nZ2dnZfqn_SdnZ2d@giganews.com>
<u1bj2d$1i148$1@dont-email.me>
<Je6dneJKmJYgm6f5nZ2dnZfqnPudnZ2d@giganews.com>
<u1hau7$2keoo$1@dont-email.me>
<SfadnXOLc48c-KH5nZ2dnZfqnPudnZ2d@giganews.com>
<oo6ugjx0dm.ln2@Telcontar.valinor>
Content-Language: hu-HU
In-Reply-To: <oo6ugjx0dm.ln2@Telcontar.valinor>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Message-ID: <TpicnbY56NrQK6H5nZ2dnZfqnPednZ2d@giganews.com>
Lines: 59
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-YifFzQC9H6yMk3+bV0bmAmX1TKZe4HckkFr18lUUVt4700DrjlkNN6+gcgeEFDdjpy+uhwfnkio/Ee/!jyNiZFbC7OX7+PNYKfArs+IoUBlWFGaVaGDYPJwA8qhalnO6OO0Rs4qfAWcPBFMX8GIS1mSW7MGb!LQ==
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: bad sector - Mon, 17 Apr 2023 03:00 UTC

On 4/16/23 17:43, Carlos E.R. wrote:
> On 2023-04-16 23:15, bad sector wrote:
>> On 4/16/23 13:23, marrgol wrote:
>>> On 15/04/2023 at 04.06, bad sector wrote:
>>>> How would I create a ENV{ID_SERIAL_LAST3} that will produce jzj-1 in
>>>> the
>>>> case cited below? I'd like to get to a point where all I have to do is
>>>>
>>>> mount /dev/jzj-1 /mnt
>>>
>>> Add this line:
>>>
>>> KERNEL=="sd*", ENV{DEVTYPE}=="disk|partition",
>>> ENV{ID_SERIAL_SHORT}=="?*", RUN+="/sbin/disk-by-sn"
>>>
>>> again to a file in /etc/udev/rules.d/ directory, and these lines:
>>>
>>> -------------------------- 8< ----------------------------
>>> #!/bin/bash
>>> SNDEVNAME="/dev/${ID_SERIAL_SHORT: -3}${PARTN:+-}${PARTN}"
>>> case $ACTION in
>>>       add) /usr/bin/ln -s "$DEVNAME" "$SNDEVNAME" ;;
>>>    remove) /usr/bin/rm "$SNDEVNAME" ;;
>>> esac
>>> -------------------------- 8< ----------------------------
>>>
>>> make the /sbin/disk-by-sn script (must be executable of course).
>>
>> I would execute this once only, right?
>
> No, "you" don't ever execute it. The udev rule executes it automatically
> when needed.

Ok, done. One of the unmounted disks' ser# ends with 15L and it has only
1 partition for data.

What I have been doing is run "fdisk -l" to see what is plugged-in AND
powered in the raid-rack used for mobile hot-plugged sata drives. That
used to give me a nice list of short dev-names to pick what I want to
mount from.

With any such kind of alternative method I'd need "fdisk -l" or
something else to list them by the names I'm going to want to mount them
with. Fdisk doesn't list them by label either.

ls -l /dev/disk/by-sn

STILL list them by the FULL ser# and partition as well as dev-name but
if I do "mount dev /dev/15L-1 /mnt" it gets mounted there.

Summing up, the doing is good (thank you marrgol) but the deciding what
to do isn't yet.

Re: alternative disk ID?

<slrnu3ppf0.cup2.BitTwister@wb.home.arpa>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2951&group=alt.os.linux#2951

  copy link   Newsgroups: alt.os.linux
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: BitTwister@mouse-potato.com (Bit Twister)
Newsgroups: alt.os.linux
Subject: Re: alternative disk ID?
Date: Mon, 17 Apr 2023 01:23:25 -0500
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <slrnu3ppf0.cup2.BitTwister@wb.home.arpa>
References: <n7mcnb1B6IXK26T5nZ2dnZfqn_SdnZ2d@giganews.com>
<u1bj2d$1i148$1@dont-email.me>
<Je6dneJKmJYgm6f5nZ2dnZfqnPudnZ2d@giganews.com>
Injection-Info: dont-email.me; posting-host="ba56cd59bae31c935f8c3601372985f4";
logging-data="3091578"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1822aJU9J8dO9YOUrNn3Tx5dARMxEv/eAU="
User-Agent: slrn/pre1.0.4-6 (Linux)
Cancel-Lock: sha1:2AERtIiI7DnAPrOvkQwvejW+FpI=
 by: Bit Twister - Mon, 17 Apr 2023 06:23 UTC

On Fri, 14 Apr 2023 22:06:53 -0400, bad sector wrote:

> How would I create a ENV{ID_SERIAL_LAST3} that will produce jzj-1 in the
> case cited below? I'd like to get to a point where all I have to do is
>
> mount /dev/jzj-1 /mnt

In my stupid opinion, all you would need to do is
partition name the partition as jzj-1
add a rule in /etc/fstab like,
PARTLABEL=jzj-1 /jzj-1 ext4 users,noauto,relatime,acl 1 2
and create a mount point like
mkdir /jzj-1

After that all you would need to do is
mount /jzj-1

You can use LABEL=jzj if you label the partition, but keep in mind
anytime you format a partition you have to re-label the partition.

Re: alternative disk ID?

<mbgvgjx5c4.ln2@Telcontar.valinor>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2954&group=alt.os.linux#2954

  copy link   Newsgroups: alt.os.linux
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.imp.ch!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: robin_listas@es.invalid (Carlos E.R.)
Newsgroups: alt.os.linux
Subject: Re: alternative disk ID?
Date: Mon, 17 Apr 2023 11:33:10 +0200
Lines: 86
Message-ID: <mbgvgjx5c4.ln2@Telcontar.valinor>
References: <n7mcnb1B6IXK26T5nZ2dnZfqn_SdnZ2d@giganews.com>
<u1bj2d$1i148$1@dont-email.me>
<Je6dneJKmJYgm6f5nZ2dnZfqnPudnZ2d@giganews.com>
<u1hau7$2keoo$1@dont-email.me>
<SfadnXOLc48c-KH5nZ2dnZfqnPudnZ2d@giganews.com>
<oo6ugjx0dm.ln2@Telcontar.valinor>
<TpicnbY56NrQK6H5nZ2dnZfqnPednZ2d@giganews.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net GreNF2Cy1G4kaRur+YrW8g7pZbiQjw70dzyaSRO/fco7Pz/2df
X-Orig-Path: Telcontar.valinor!not-for-mail
Cancel-Lock: sha1:3w5920V6NN+jFl+oqgPWjQvCngc=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.9.1
Content-Language: es-ES, en-CA
In-Reply-To: <TpicnbY56NrQK6H5nZ2dnZfqnPednZ2d@giganews.com>
 by: Carlos E.R. - Mon, 17 Apr 2023 09:33 UTC

On 2023-04-17 05:00, bad sector wrote:
> On 4/16/23 17:43, Carlos E.R. wrote:
>> On 2023-04-16 23:15, bad sector wrote:
>>> On 4/16/23 13:23, marrgol wrote:
>>>> On 15/04/2023 at 04.06, bad sector wrote:
>>>>> How would I create a ENV{ID_SERIAL_LAST3} that will produce jzj-1
>>>>> in the
>>>>> case cited below? I'd like to get to a point where all I have to do is
>>>>>
>>>>> mount /dev/jzj-1 /mnt
>>>>
>>>> Add this line:
>>>>
>>>> KERNEL=="sd*", ENV{DEVTYPE}=="disk|partition",
>>>> ENV{ID_SERIAL_SHORT}=="?*", RUN+="/sbin/disk-by-sn"
>>>>
>>>> again to a file in /etc/udev/rules.d/ directory, and these lines:
>>>>
>>>> -------------------------- 8< ----------------------------
>>>> #!/bin/bash
>>>> SNDEVNAME="/dev/${ID_SERIAL_SHORT: -3}${PARTN:+-}${PARTN}"
>>>> case $ACTION in
>>>>       add) /usr/bin/ln -s "$DEVNAME" "$SNDEVNAME" ;;
>>>>    remove) /usr/bin/rm "$SNDEVNAME" ;;
>>>> esac
>>>> -------------------------- 8< ----------------------------
>>>>
>>>> make the /sbin/disk-by-sn script (must be executable of course).
>>>
>>> I would execute this once only, right?
>>
>> No, "you" don't ever execute it. The udev rule executes it
>> automatically when needed.
>
>
> Ok, done. One of the unmounted disks' ser# ends with 15L and it has only
> 1 partition for data.
>
> What I have been doing is run "fdisk -l" to see what is plugged-in AND
> powered in the raid-rack used for mobile hot-plugged sata drives. That
> used to give me a nice list of short dev-names to pick what I want to
> mount from.

The best command for that is lsblk, which you can customize to print the
information you prefer. For example, my concoction is (one single line):

lsblk --output
NAME,KNAME,RA,RM,RO,PARTFLAGS,SIZE,TYPE,FSTYPE,LABEL,PARTLABEL,PTTYPE,MOUNTPOINT,UUID,PARTUUID,WWN,MODEL,ALIGNMENT
| less -S

This produces a list of available fields:

lsblk --help

You probably want these:

MODEL device identifier
SERIAL disk serial number
VENDOR device vendor

> With any such kind of alternative method I'd need "fdisk -l" or
> something else to list them by the names I'm going to want to mount them
> with. Fdisk doesn't list them by label either.

Try "fdisk --list-details"

>
> ls -l /dev/disk/by-sn
>
> STILL list them by the FULL ser# and partition as well as dev-name but
> if I do "mount dev /dev/15L-1 /mnt" it gets mounted there.
>
> Summing up, the doing is good (thank you marrgol) but the deciding what
> to do isn't yet.
>
>
>
>
>
>

--
Cheers, Carlos.

Re: alternative disk ID?

<u1j72h$30g2k$1@dont-email.me>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2958&group=alt.os.linux#2958

  copy link   Newsgroups: alt.os.linux
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: marrgol@address.invalid (marrgol)
Newsgroups: alt.os.linux
Subject: Re: alternative disk ID?
Date: Mon, 17 Apr 2023 12:29:37 +0200
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <u1j72h$30g2k$1@dont-email.me>
References: <n7mcnb1B6IXK26T5nZ2dnZfqn_SdnZ2d@giganews.com>
<u1bj2d$1i148$1@dont-email.me>
<Je6dneJKmJYgm6f5nZ2dnZfqnPudnZ2d@giganews.com>
<u1hau7$2keoo$1@dont-email.me>
<SfadnXOLc48c-KH5nZ2dnZfqnPudnZ2d@giganews.com>
<oo6ugjx0dm.ln2@Telcontar.valinor>
<TpicnbY56NrQK6H5nZ2dnZfqnPednZ2d@giganews.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 17 Apr 2023 10:29:37 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f8b075b12986837244bdd838859dbde9";
logging-data="3162196"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1981uqdcugLOHVFlEtgQeTs"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
Cancel-Lock: sha1:NdR0iY9vLhU1YNPaUtGZMSlDdnE=
In-Reply-To: <TpicnbY56NrQK6H5nZ2dnZfqnPednZ2d@giganews.com>
Content-Language: en-US
 by: marrgol - Mon, 17 Apr 2023 10:29 UTC

On 17/04/2023 at 05.00, bad sector wrote:
> What I have been doing is run "fdisk -l" to see what is plugged-in AND
> powered in the raid-rack used for mobile hot-plugged sata drives. That
> used to give me a nice list of short dev-names to pick what I want to
> mount from.
>
> With any such kind of alternative method I'd need "fdisk -l" or
> something else to list them by the names I'm going to want to mount them
> with.

This should list your /dev/15L-1 type of links available at the moment
(among all links to block device files in /dev/ directory, so use
the filter behind your eyes ;-) ):

find /dev/ -maxdepth 1 -type l -xtype b -exec ls -gG {} +

> ls -l /dev/disk/by-sn
>
> STILL list them by the FULL ser# and partition as well as dev-name but

Not needed anymore. This:

> if I do "mount dev /dev/15L-1 /mnt" it gets mounted there.

will still work without the udev rules from my first post.

--
mrg

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor