[Git-commits] [grml/grml-hwinfo] 5c91ad: Improve lsblk output

Michael Prokop noreply at github.com
Fri Nov 22 19:12:16 CET 2024


  Branch: refs/heads/master
  Home:   https://github.com/grml/grml-hwinfo
  Commit: 5c91ada86b88089adb257b581001268843bcfa1a
      https://github.com/grml/grml-hwinfo/commit/5c91ada86b88089adb257b581001268843bcfa1a
  Author: Darshaka Pathirana <dpat at syn-net.org>
  Date:   2024-09-01 (Sun, 01 Sep 2024)

  Changed paths:
    M grml-hwinfo

  Log Message:
  -----------
  Improve lsblk output

Please compare the following outputs:

  ❯ lsblk /dev/sda
  NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
  sda      8:0    0  1,8T  0 disk
  └─sda1   8:1    0  1,8T  0 part /media/jkirk/Transcend

  ❯ lsblk -f /dev/sda
  NAME   FSTYPE FSVER LABEL     UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
  sda
  └─sda1 ntfs         Transcend 96EC52DAEC52SNIP                      102,7G    94% /media/jkirk/Transcend

  ❯ lsblk -o +LABEL,PARTLABEL,UUID,FSTYPE,SERIAL /dev/sda
  NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS            LABEL     PARTLABEL UUID                                 FSTYPE SERIAL
  sda      8:0    0  1,8T  0 disk                                                                                        S36VJ9EGB0SNIP
  └─sda1   8:1    0  1,8T  0 part /media/jkirk/Transcend Transcend           96EC52DAEC52SNIP                     ntfs

Option `-f, --fs` outputs info about filesystems.
This option is equivalent to -o NAME,FSTYPE,FSVER,LABEL,UUID,FSAVAIL,FSUSE%,MOUNTPOINTS.

FSAVAIL and FSUE% could be added to my custom output list, but on a Grml
system the devices are usually not mounted and even if they are, we have
already capture the df output.

IMHO, PARTLABEL and SERIAL are more interesting in this regard.


  Commit: d9c2a7ecf2df0153fbafc749cea596e02299f61d
      https://github.com/grml/grml-hwinfo/commit/d9c2a7ecf2df0153fbafc749cea596e02299f61d
  Author: Michael Prokop <115592+mika at users.noreply.github.com>
  Date:   2024-11-22 (Fri, 22 Nov 2024)

  Changed paths:
    M grml-hwinfo

  Log Message:
  -----------
  Merge pull request #16 from jkirk/jkirk/lsblk-output

Improve lsblk output


Compare: https://github.com/grml/grml-hwinfo/compare/224ec9c79eb1...d9c2a7ecf2df

To unsubscribe from these emails, change your notification settings at https://github.com/grml/grml-hwinfo/settings/notifications


More information about the Git-commits mailing list