On Tuesday, 26-11-2024 at 20:08 Roger Price wrote:
> On Tue, 26 Nov 2024, Hans wrote:
>
> > What about juste enter blkid as root?
> > Will also give UUID and Label.
>
> # blkid /dev/sdg6
> /dev/sdg6: UUID="f5e37a29-357a-e3f2-c731-e29eddce5e91"
> UUID_SUB="8ae02b9d-d818-1d8a-88f6-5cb77b15d0eb"
> LABEL="10.218.0.100:3" TYPE="linux_raid_member"
> PARTUUID="000871f1-06"
>
> # blkid /dev/sdh6
> /dev/sdh6: UUID="f5e37a29-357a-e3f2-c731-e29eddce5e91"
> UUID_SUB="7821cc06-e7f5-358b-cf95-fb0ec2f34585"
> LABEL="10.218.0.100:3" TYPE="linux_raid_member"
> PARTUUID="0000b24f-06"
>
> # blkid /dev/md0
> /dev/md0: UUID="8a31b513-cd62-4639-b5e5-3a8f8879164f" BLOCK_SIZE="4096"
> TYPE="ext4"
>
> The UUIDs are the same for sdg6 and sdh6 but there is a UUID_SUB to
> distinguish
> them. blkid sees a new value for md0's UUID, not the same as lsblk.
Thanks for the clarification, Roger.
This is important to understand if working with RAID.
What does /etc/fstab have, I wonder?
RAID, like LVM, to me is a type of virtualisation of storage, hence is not
exactly the same as a physical disk drive or partition on the disk drive.
I am guessing UUID is for the OS to see the visualised (RAID) storage, where as
UUID_SUB is for the actual partition on the physical disk?
Today I learned a bit more about /dev/disk, but that left me realising there is
much more to learn. I really don't know what to think of all of these folders.
# ls -hal /dev/disk/
# ls -hal /dev/disk/by-id
# ls -hal /dev/disk/by-uuid
But the following worked well for me when putting a boot ISO to a USB memory
stick.
# cp [isoimagefile.iso] /dev/disk/by-id/usb-SMI_USB_DISK-0:0
# sync
The world is full of mysteries for those too lazy to do heaps of reading and
research.
George.
>
> Roger
>
>