saída de lsblk não classificada

1

Recentemente, descobri que o lsblk não mostra sua saída classificada.

$lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sdb      8:16   0 149.1G  0 disk 
├─sdb2   8:18   0  99.1G  0 part /windows/windows-10
└─sdb1   8:17   0    50G  0 part /windows/windows-xp
sr0     11:0    1  1024M  0 rom  
sdc      8:32   0 931.5G  0 disk 
└─sdc1   8:33   0 931.5G  0 part /mnt/data
sda      8:0    0 111.8G  0 disk 
├─sda2   8:2    0     1K  0 part 
├─sda5   8:5    0     4G  0 part [SWAP]
├─sda1   8:1    0    20G  0 part /
└─sda6   8:6    0  87.8G  0 part /home

A mesma coisa acontece com os dois computadores do meu arco.

Não sei por que isso acontece. Existe alguém com o mesmo problema? Alguém pode me dar alguma pista do que está acontecendo?

Estou usando o Arch linux 64 bit com o kernel 4.8.3-1-ARCH.

    
por Rio6 23.10.2016 / 05:41

1 resposta

1

pi@odroid64:~$ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda           8:0    0 111.8G  0 disk
├─sda1        8:1    0 104.9G  0 part /mnt/usbstorage
└─sda2        8:2    0   6.9G  0 part
mmcblk0     179:0    0   7.4G  0 disk
├─mmcblk0p1 179:1    0   128M  0 part /media/boot
└─mmcblk0p2 179:2    0   7.3G  0 part /
pi@odroid64:~$ lsblk -x NAME
NAME      MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
mmcblk0   179:0    0   7.4G  0 disk
mmcblk0p1 179:1    0   128M  0 part /media/boot
mmcblk0p2 179:2    0   7.3G  0 part /
sda         8:0    0 111.8G  0 disk
sda1        8:1    0 104.9G  0 part /mnt/usbstorage
sda2        8:2    0   6.9G  0 part
pi@odroid64:~$

lsblk -x NAME

-x dá a você a opção de ordenar a saída, o argumento para -x pode ser qualquer um dos

Available columns (for --output):
        NAME  device name
       KNAME  internal kernel device name
     MAJ:MIN  major:minor device number
      FSTYPE  filesystem type
  MOUNTPOINT  where the device is mounted
       LABEL  filesystem LABEL
        UUID  filesystem UUID
    PARTTYPE  partition type UUID
   PARTLABEL  partition LABEL
    PARTUUID  partition UUID
   PARTFLAGS  partition flags
          RA  read-ahead of the device
          RO  read-only device
          RM  removable device
     HOTPLUG  removable or hotplug device (usb, pcmcia, ...)
       MODEL  device identifier
      SERIAL  disk serial number
        SIZE  size of the device
       STATE  state of the device
       OWNER  user name
       GROUP  group name
        MODE  device node permissions
   ALIGNMENT  alignment offset
      MIN-IO  minimum I/O size
      OPT-IO  optimal I/O size
     PHY-SEC  physical sector size
     LOG-SEC  logical sector size
        ROTA  rotational device
       SCHED  I/O scheduler name
     RQ-SIZE  request queue size
        TYPE  device type
    DISC-ALN  discard alignment offset
   DISC-GRAN  discard granularity
    DISC-MAX  discard max bytes
   DISC-ZERO  discard zeroes data
       WSAME  write same max bytes
         WWN  unique storage identifier
        RAND  adds randomness
      PKNAME  internal parent kernel device name
        HCTL  Host:Channel:Target:Lun for SCSI
        TRAN  device transport type
  SUBSYSTEMS  de-duplicated chain of subsystems
         REV  device revision
      VENDOR  device vendor

mais informações podem ser encontradas ITFM

    
por 02.11.2016 / 02:29

Tags