Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #230980

Re: Too many levels of symbolic links

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: Too many levels of symbolic links
Date 2021-01-22 20:30 +0100
Message-ID <BAai6-4Pi-5@gated-at.bofh.it> (permalink)
References (5 earlier) <BznKq-Kg-13@gated-at.bofh.it> <BzsTQ-47G-53@gated-at.bofh.it> <BzCJr-1L2-1@gated-at.bofh.it> <BzUGl-3VE-1@gated-at.bofh.it> <BzYJX-6xv-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri 22 Jan 2021 at 08:06:37 (+0100), steve wrote:
> Le 21-01-2021, à 20:41:05 -0600, David Wright a écrit :
> 
> > I always archive the output of udevadm for my disks (actually
> > I just copy the /run/udev/data/b8\:* files).
> 
> I don't understand.

I keep a log for each of my hard drives, its acquisition, SMART
history, partitioning, filesystems, usage, problems, etc.
At the end of my opinions come the facts, the output of
udevadm info --query=all --name=/dev/sdX    and
udevadm info --query=all --name=/dev/sdXN   for all N.
By that means, I have information available for a drive even
when its host is powered off, or the drive is in storage.

When I edit said log file on the system that it attaches to,
I could update all the udevadm information by removing the
old version and then appending it again by running udevadm
several times. But instead I usually copy in the appropriate
subset of files /run/udev/data/b8\:* that contain almost all
the same information, just for convenience as I'm already in
an editor. Here's a small sample (pruned with grep) of that
information being obtained from each of those sources:

$ for j in '' 1 2 3 4 5 6 ; do udevadm info --query=all --name=/dev/sda$j ; done | grep -e 'ID_FS_UUID='
E: ID_FS_UUID=9a3fa215-a749-47f4-a33e-5708097634b2
E: ID_FS_UUID=10358228-7f4b-49ec-8864-2547e27bccdb
E: ID_FS_UUID=33c3cbeb-ee4b-4a21-9899-49e546f024de
E: ID_FS_UUID=98f15f4c-e3fc-45f3-aa15-3774e012e996
$ 

$ grep -e 'ID_FS_UUID=' /run/udev/data/b8\:?
/run/udev/data/b8:3:E:ID_FS_UUID=9a3fa215-a749-47f4-a33e-5708097634b2
/run/udev/data/b8:4:E:ID_FS_UUID=10358228-7f4b-49ec-8864-2547e27bccdb
/run/udev/data/b8:5:E:ID_FS_UUID=33c3cbeb-ee4b-4a21-9899-49e546f024de
/run/udev/data/b8:6:E:ID_FS_UUID=98f15f4c-e3fc-45f3-aa15-3774e012e996
$ 

> > Does mdadm have a
> > equivalent manner of displaying its configuration?

Not having used it, I wondered whether mdadm could effortlessly
"brain-dump" in a similar manner to either of these methods.

Cheers,
David.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Too many levels of symbolic links steve <dlist@bluewin.ch> - 2021-01-19 10:10 +0100
  Re: Too many levels of symbolic links Greg Wooledge <wooledg@eeg.ccf.org> - 2021-01-19 13:50 +0100
    Re: Too many levels of symbolic links <tomas@tuxteam.de> - 2021-01-19 14:50 +0100
      Re: Too many levels of symbolic links steve <dlist@bluewin.ch> - 2021-01-19 15:50 +0100
        Re: Too many levels of symbolic links <tomas@tuxteam.de> - 2021-01-19 16:00 +0100
          Re: Too many levels of symbolic links steve <dlist@bluewin.ch> - 2021-01-19 16:10 +0100
            Re: Too many levels of symbolic links Greg Wooledge <wooledg@eeg.ccf.org> - 2021-01-19 17:20 +0100
              Re: Too many levels of symbolic links David Wright <deblis@lionunicorn.co.uk> - 2021-01-19 18:10 +0100
                Re: Too many levels of symbolic links steve <dlist@bluewin.ch> - 2021-01-20 08:50 +0100
                [SOLVED] Re: Too many levels of symbolic links steve <dlist@bluewin.ch> - 2021-01-20 08:50 +0100
                Re: Too many levels of symbolic links steve <dlist@bluewin.ch> - 2021-01-20 09:50 +0100
                Re: Too many levels of symbolic links <tomas@tuxteam.de> - 2021-01-20 10:20 +0100
                Re: Too many levels of symbolic links steve <dlist@bluewin.ch> - 2021-01-20 10:50 +0100
                Re: Too many levels of symbolic links <tomas@tuxteam.de> - 2021-01-20 11:00 +0100
                Re: Too many levels of symbolic links steve <dlist@bluewin.ch> - 2021-01-20 11:20 +0100
                Re: Too many levels of symbolic links steve <dlist@bluewin.ch> - 2021-01-20 11:30 +0100
                Bluewin bouncing my mails [was: Too many levels of symbolic links] tomas@tuxteam.de - 2021-01-20 11:30 +0100
                Re: Bluewin bouncing my mails tomas@tuxteam.de - 2021-01-20 12:50 +0100
                Re: Too many levels of symbolic links <tomas@tuxteam.de> - 2021-01-20 11:30 +0100
                Re: Too many levels of symbolic links Erwan David <erwan@rail.eu.org> - 2021-01-20 11:40 +0100
                Re: Too many levels of symbolic links <tomas@tuxteam.de> - 2021-01-20 11:40 +0100
                Re: Too many levels of symbolic links steve <dlist@bluewin.ch> - 2021-01-20 12:10 +0100
                Re: Too many levels of symbolic links Stefan Monnier <monnier@iro.umontreal.ca> - 2021-01-20 16:20 +0100
                Re: Too many levels of symbolic links steve <dlist@bluewin.ch> - 2021-01-20 16:40 +0100
                Re: Too many levels of symbolic links Stefan Monnier <monnier@iro.umontreal.ca> - 2021-01-20 22:10 +0100
                Re: Too many levels of symbolic links steve <dlist@bluewin.ch> - 2021-01-21 08:10 +0100
                Re: Too many levels of symbolic links steve <dlist@bluewin.ch> - 2021-01-21 08:40 +0100
                Re: Too many levels of symbolic links Andrei POPESCU <andreimpopescu@gmail.com> - 2021-01-21 08:50 +0100
                Re: Too many levels of symbolic links steve <dlist@bluewin.ch> - 2021-01-22 08:10 +0100
                Re: Too many levels of symbolic links Vincent Lefevre <vincent@vinc17.net> - 2021-01-22 13:50 +0100
                Re: Too many levels of symbolic links steve <dlist@bluewin.ch> - 2021-01-23 09:40 +0100
                Re: Too many levels of symbolic links Vincent Lefevre <vincent@vinc17.net> - 2021-01-23 16:20 +0100
                Re: Too many levels of symbolic links Andrei POPESCU <andreimpopescu@gmail.com> - 2021-01-22 14:00 +0100
                remove me from this list J B Martin <bryant@ab-domain.com> - 2021-01-22 14:10 +0100
                Re: remove me from this list Charles Curley <charlescurley@charlescurley.com> - 2021-01-22 18:50 +0100
                Re: remove me from this list "Andrew M.A. Cater" <amacater@einval.com> - 2021-01-23 11:00 +0100
                Re: Too many levels of symbolic links steve <dlist@bluewin.ch> - 2021-01-23 09:40 +0100
                Re: Too many levels of symbolic links David Wright <deblis@lionunicorn.co.uk> - 2021-01-22 03:50 +0100
                Re: Too many levels of symbolic links steve <dlist@bluewin.ch> - 2021-01-22 08:10 +0100
                Re: Too many levels of symbolic links David Wright <deblis@lionunicorn.co.uk> - 2021-01-22 20:30 +0100
                Re: Too many levels of symbolic links Dan Ritter <dsr@randomstring.org> - 2021-01-22 21:10 +0100
                Re: Too many levels of symbolic links steve <dlist@bluewin.ch> - 2021-01-23 15:40 +0100
            Re: Too many levels of symbolic links <tomas@tuxteam.de> - 2021-01-19 17:20 +0100
              Re: Too many levels of symbolic links steve <dlist@bluewin.ch> - 2021-01-19 18:00 +0100

csiph-web