On Fri 16 Feb 2024 at 14:48:12 (+0000), Andy Smith wrote:
> On Fri, Feb 16, 2024 at 01:32:26AM -0500, gene heskett wrote:
> > On 2/15/24 16:20, David Wright wrote:
> > >    # gdisk -l /dev/sdz
> > >    GPT fdisk (gdisk) version 1.0.3
> > > 
> > >    Partition table scan:
> > >      MBR: protective
> > >      BSD: not present
> > >      APM: not present
> > >      GPT: present
> > > 
> > >    Found valid GPT with protective MBR; using GPT.
> > >    Disk /dev/sdb: 3907029168 sectors, 1.8 TiB
> > >    Model: Desktop
> > >    Sector size (logical/physical): 512/512 bytes
> > >    Disk identifier (GUID): A1093790-9A1A-4A7E-A807-B9CC6F7CF77E
> > >    Partition table holds up to 128 entries
> > >    Main partition table begins at sector 2 and ends at sector 33
> > >    First usable sector is 34, last usable sector is 3907029134
> > >    Partitions will be aligned on 2048-sector boundaries
> > >    Total free space is 2014 sectors (1007.0 KiB)
> > > 
> > >    Number  Start (sector)    End (sector)  Size       Code  Name
> > >       1            2048      3907029134   1.8 TiB     8300  Lulu01
> > >    #
> > > .
> > And this "partition" name survives?
> 
> No, because it's a filesystem label for the ext4 fs created on
> /dev/sdz1. If sdz1 is turned into an LVM Physical Volume, there
> won't be an ext4 filesystem on it any more. If sdz1 is turned into a
> member of an MD array, there won't be an ext4 filesystem on it any
> more. The labels go with the filesystem.

It isn't a filesystem LABEL. See attached partition and filesystem
information, the output from:

  $ cp -ip /run/udev/data/b8\:33 /tmp/partition-data
  $ cp -ip /run/udev/data/b253\:2 /tmp/filesystem-data
  $ 

In particular, E:ID_PART_ENTRY_NAME=Lulu01 from the first attachment
and E:ID_FS_LABEL=lulu01 // E:ID_FS_LABEL_ENC=lulu01 from the second.

> > and can be unique?
> 
> I don't know what that means to you or why it is useful.
> 
> > and can be used in a mount cmd?
> 
> Once the RAID and/or LVM is set up and a filesystem put on it, that
> filesystem can be mounted by label just like any filesystem can, but
> that filesystem may have multiple devices underneath it owing to the
> fact that it's on RAID and/or LVM, so there is no information you
> can put in its label that will tell you anything about those
> underlying devices.
> 
> > if all 3 questions above can be answered with a yes is the answer
> > I've been trying to squeeze out all along.
> 
> You've not yet been clear about what you want, but from what little
> information you have provided you've been told multiple times by
> multiple people that filesystem labels won't help.
                       ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑

… which would be moot if only Gene could create partition PARTLABELs
successfully.

Cheers,
David.
S:disk/by-partuuid/37cf9edf-c695-428e-9889-2f52c40dfca5
S:disk/by-partlabel/Lulu01
S:disk/by-id/ata-ST2000DL003-9VT166_5YD1QX3D-part1
S:disk/by-uuid/11bb81f5-14e5-404a-8548-80bcb1e5071c
S:disk/by-id/usb-Seagate_Desktop_2GHN1XW7-0:0-part1
S:disk/by-path/pci-0000:00:14.0-usb-0:2:1.0-scsi-0:0:0:0-part1
S:disk/by-id/wwn-0x5000c5002f893194-part1
W:32
I:3947430162
E:ID_ATA=1
E:ID_TYPE=disk
E:ID_BUS=ata
E:ID_MODEL=ST2000DL003-9VT166
E:ID_MODEL_ENC=ST2000DL003-9VT166\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
E:ID_REVISION=CC98
E:ID_SERIAL=ST2000DL003-9VT166_5YD1QX3D
E:ID_SERIAL_SHORT=5YD1QX3D
E:ID_ATA_WRITE_CACHE=1
E:ID_ATA_WRITE_CACHE_ENABLED=1
E:ID_ATA_FEATURE_SET_HPA=1
E:ID_ATA_FEATURE_SET_HPA_ENABLED=1
E:ID_ATA_FEATURE_SET_PM=1
E:ID_ATA_FEATURE_SET_PM_ENABLED=1
E:ID_ATA_FEATURE_SET_SECURITY=1
E:ID_ATA_FEATURE_SET_SECURITY_ENABLED=0
E:ID_ATA_FEATURE_SET_SECURITY_ERASE_UNIT_MIN=332
E:ID_ATA_FEATURE_SET_SECURITY_ENHANCED_ERASE_UNIT_MIN=332
E:ID_ATA_FEATURE_SET_SMART=1
E:ID_ATA_FEATURE_SET_SMART_ENABLED=1
E:ID_ATA_FEATURE_SET_AAM=1
E:ID_ATA_FEATURE_SET_AAM_ENABLED=1
E:ID_ATA_FEATURE_SET_AAM_VENDOR_RECOMMENDED_VALUE=208
E:ID_ATA_FEATURE_SET_AAM_CURRENT_VALUE=208
E:ID_ATA_DOWNLOAD_MICROCODE=1
E:ID_ATA_SATA=1
E:ID_ATA_SATA_SIGNAL_RATE_GEN2=1
E:ID_ATA_SATA_SIGNAL_RATE_GEN1=1
E:ID_ATA_ROTATION_RATE_RPM=5900
E:ID_WWN=0x5000c5002f893194
E:ID_WWN_WITH_EXTENSION=0x5000c5002f893194
E:ID_USB_MODEL=Desktop
E:ID_USB_MODEL_ENC=Desktop\x20\x20\x20\x20\x20\x20\x20\x20\x20
E:ID_USB_MODEL_ID=3300
E:ID_USB_SERIAL=Seagate_Desktop_2GHN1XW7-0:0
E:ID_USB_SERIAL_SHORT=2GHN1XW7
E:ID_USB_VENDOR=Seagate
E:ID_USB_VENDOR_ENC=Seagate\x20
E:ID_USB_VENDOR_ID=0bc2
E:ID_USB_REVISION=0130
E:ID_USB_TYPE=disk
E:ID_USB_INSTANCE=0:0
E:ID_USB_INTERFACES=:080650:
E:ID_USB_INTERFACE_NUM=00
E:ID_USB_DRIVER=usb-storage
E:ID_PATH=pci-0000:00:14.0-usb-0:2:1.0-scsi-0:0:0:0
E:ID_PATH_TAG=pci-0000_00_14_0-usb-0_2_1_0-scsi-0_0_0_0
E:ID_PART_TABLE_UUID=a1093790-9a1a-4a7e-a807-b9cc6f7cf77e
E:ID_PART_TABLE_TYPE=gpt
E:ID_FS_VERSION=2
E:ID_FS_UUID=11bb81f5-14e5-404a-8548-80bcb1e5071c
E:ID_FS_UUID_ENC=11bb81f5-14e5-404a-8548-80bcb1e5071c
E:ID_FS_TYPE=crypto_LUKS
E:ID_FS_USAGE=crypto
E:ID_PART_ENTRY_SCHEME=gpt
E:ID_PART_ENTRY_NAME=Lulu01
E:ID_PART_ENTRY_UUID=37cf9edf-c695-428e-9889-2f52c40dfca5
E:ID_PART_ENTRY_TYPE=0fc63daf-8483-4772-8e79-3d69d8477de4
E:ID_PART_ENTRY_NUMBER=1
E:ID_PART_ENTRY_OFFSET=2048
E:ID_PART_ENTRY_SIZE=3907027087
E:ID_PART_ENTRY_DISK=8:32
G:systemd
Q:systemd
V:1
S:disk/by-uuid/d8eb18d2-4d81-4b4f-b743-26e46bcc82b3
S:mapper/luks-11bb81f5-14e5-404a-8548-80bcb1e5071c
S:disk/by-id/dm-uuid-CRYPT-LUKS2-11bb81f514e5404a854880bcb1e5071c-luks-11bb81f5-14e5-404a-8548-80bcb1e5071c
S:disk/by-label/lulu01
S:disk/by-id/dm-name-luks-11bb81f5-14e5-404a-8548-80bcb1e5071c
W:33
I:10158294512
E:DM_UDEV_DISABLE_LIBRARY_FALLBACK_FLAG=1
E:DM_UDEV_PRIMARY_SOURCE_FLAG=1
E:DM_ACTIVATION=1
E:DM_NAME=luks-11bb81f5-14e5-404a-8548-80bcb1e5071c
E:DM_UUID=CRYPT-LUKS2-11bb81f514e5404a854880bcb1e5071c-luks-11bb81f5-14e5-404a-8548-80bcb1e5071c
E:DM_SUSPENDED=0
E:DM_UDEV_RULES=1
E:DM_UDEV_RULES_VSN=2
E:ID_FS_LABEL=lulu01
E:ID_FS_LABEL_ENC=lulu01
E:ID_FS_UUID=d8eb18d2-4d81-4b4f-b743-26e46bcc82b3
E:ID_FS_UUID_ENC=d8eb18d2-4d81-4b4f-b743-26e46bcc82b3
E:ID_FS_VERSION=1.0
E:ID_FS_TYPE=ext4
E:ID_FS_USAGE=filesystem
G:systemd
Q:systemd
V:1

Reply via email to