Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve lsblk output #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Commits on Sep 1, 2024

  1. 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.
    jkirk committed Sep 1, 2024
    Configuration menu
    Copy the full SHA
    5c91ada View commit details
    Browse the repository at this point in the history