Re: lsblk vice fdisk, etc

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

 



jb <jb.1234abcd@...> writes:

> ... 
> But the question "why for /dev/sda3 only ?" stands.
> Actually, it should not be included in 'blkid' display at all.
> According to BLKID(8), only option -p should display this field.
> # blkid -p /dev/sda
> /dev/sda: PTUUID="3db012b3" PTTYPE="dos" 

This should be further qualified.

# blkid /dev/sda
/dev/sda: PTUUID="3db012b3" PTTYPE="dos" 
# blkid -p /dev/sda
/dev/sda: PTUUID="3db012b3" PTTYPE="dos" 

and so I think that 'blkid' entry I referred previously to (with that
PTTYPE="dos" in /dev/sda3 row, believed to be erroneously displayed there),
should have the "/dev/sda: ..." line displayed at the top:
# blkid
/dev/sda: PTUUID="3db012b3" PTTYPE="dos"
/dev/sda1: UUID="fb838405-607c-4723-9355-47ccbf1eb273" TYPE="ext4"
PARTUUID="3db012b3-01" 
...

because BLKID(8) says:
"       When  device is specified, tokens from only this device are
        displayed.
        It is possible to specify multiple device  arguments  on  the
        command line.   If none is given, all devices which appear in
        /proc/partitions are shown, if they are recognized."

$ cat /proc/partitions 
major minor  #blocks  name

  11        0    1048575 sr0
   8        0   39070080 sda
   8        1   17825792 sda1
   8        2    4647936 sda2
   8        3   14076928 sda3
   8        4          1 sda4
   8        5    2518368 sda5

jb


--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[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