Questions tagged [lsblk]
The lsblk tag has no summary.
134 questions
0
votes
1
answer
64
views
Exclude non hotplug from lsblk output
I use the following command to show my hotplug devices:
lsblk --paths --output NAME,MODEL,TRAN,FSUSE%,UUID,HOTPLUG --exclude 7
To get the following rendering:
NAME MODEL ...
0
votes
1
answer
90
views
Determine used space of a block device with no filesystem
How can I determine used space of a block device that has no filesystem on it? If it helps, such device is managed via lvm.
I understand that the concept of "used space" on a device without ...
3
votes
2
answers
463
views
How can I use lsblk to display all devices except my root/main "sda" device where my root filesystem is "/"?
I use LUKS (so my system is encrypted) and LVM.
I don’t want sda displayed because that’s where my root filesystem lives, and it’s my root device. The solution should also work for systems without ...
1
vote
0
answers
246
views
Why doesn't lsblk list the drive where Windows 11 is installed? (I can boot into Windows, so I know the drive is functional)
I used dd to write the SystemRescue ( https://www.system-rescue.org/ ) image to a USB stick drive. I used this USB stick to boot into Computer#1 and then used dd to clone the internal system drive to ...
1
vote
2
answers
72
views
The ambiguous principles that guide the lsblk utility in removing duplicates of displayed records
Linux Mint 20.3
lsblk -V
lsblk from util-linux 2.34
Let's find an explanation for the ambiguous behavior of the lsblk utility applied with the -E option.
Here is the output without applying the -E ...
-1
votes
1
answer
69
views
The concept of holder in the context of the lsblk utility action
The description for the -d option of the lsblk utility says the following:
-d, --nodeps Do not print holder devices or slaves. For example, lsblk --nodeps /dev/sda prints information about the sda ...
2
votes
1
answer
96
views
lsblk can see all drives attached but udev only shows half of them. Conflicting indentifiers?
I'm trying to make a zfs pool on a terramaster D8 Hybrid DAS connected via USB with 4x HDD and 4x NVME drives using this guide. When i try to build the get the drive ids to build the zpool, not all of ...
0
votes
1
answer
66
views
how to provide the device name that related to LVM2_member
LVM2_member could be different according to device partition number
example
lsblk -f | grep LVM2_member | awk '{print $1}'
└─sda3
or on other redhat machine
lsblk -f | grep LVM2_member | ...
2
votes
1
answer
129
views
fstab, mountpoint - what did I miss?
I can't figure out what I'm missing or done wrong.
lsblk dose not show the mount points(?)
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 1.8T 0 disk
└─sda1 8:1 ...
0
votes
0
answers
122
views
Block size output from lsblk and blockdev don't match
Why the output of LOG-SEC column and --getbsz in the following don't match? Are these values of different quantities? How to find actual values? And is the output of following stat command always ...
0
votes
1
answer
101
views
Extending rootfs on centos
so I can see in lsblk that I have a 250G disk, but when I run pvresize /dev/sda3 I am not able to see the free space to extend the volume group.
Do I need to modify the partition table in single user ...
0
votes
1
answer
482
views
Subpartition inside partiton not showed in lsblk or /dev/
I installed archlinux inside my /dev/sdb4 and used the guided partition scheme. After install i can't mount /dev/sdb4 (ext4). The error was VFS: Can't find ext4 filesystem.
lsblk shows me:
sdb 8:...
0
votes
2
answers
260
views
Why the output of lsblk have almost the same lines?
lsblk -d -o NAME,SIZE,TYPE | grep disk
show me the such things
sda 894.3G disk
sdb 894.3G disk
sdc 3.7T disk
sdd 3.7T disk
nbd0 64G disk
Are the sda and sdc have sdb and sdd similarly ...
0
votes
1
answer
386
views
lsblk: Why FSSIZE is not equal to FSAVAIL + FSUSED
sudo lsblk --fs -o NAME,FSTYPE,SIZE,FSSIZE,FSUSED,FSAVAIL,FSUSE%,MOUNTPOINTS,LABEL,PATH | grep -v '^loop'
NAME FSTYPE SIZE FSSIZE FSUSED FSAVAIL FSUSE% MOUNTPOINTS LABEL ...
0
votes
0
answers
362
views
How to check how much space is available on block device disk (e.g not used on partition)
I have multiple block devices: e.g sda (sda1, sda2 & sda3).
sda3 is further divided into LVMs which all has a X amount of space on them. However, I want to be able to list how much space is ...