Re: lsblk full disk id output column

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Karel

On Fri, Jun 7, 2019 at 7:17 AM Karel Zak <kzak@xxxxxxxxxx> wrote:
> Not sure what you mean with ID in this case.
>
> Try
>     lsblk -o+MODEL,WWN
> or
>     lsblk -o+MODEL,SERIAL
>
> maybe we can add SERIAL-LONG, because udev differentiate between
> SERIAL and SERIAL_SHORT (used by lsblk), and it's MODEL+SERIAL.

Neither of those commands provide the output I want.

>
> See also
>
>     udevadm info /dev/sda

That command does though, on my current laptop it prints

S: disk/by-id/ata-Samsung_SSD_840_EVO_250GB_S1DBNSBD945982B

As part of its output and that's exactly the sort of ZFS-friendly
device name I require and was hoping to get from lsblk.

I had never heard of or used udevadm until you mentioned it but it
serves the purpose of translating "regular" Linux disk device names
into their ID equivalents.

Thanks!



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux