Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.

Questions tagged [lsblk]

Filter by
Sorted by
Tagged with
0 votes
1 answer
67 views

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 ...
fauve's user avatar
  • 1,529
0 votes
1 answer
93 views

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 ...
blonded04's user avatar
  • 101
3 votes
2 answers
473 views

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 ...
ReflectYourCharacter's user avatar
1 vote
0 answers
282 views

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 ...
Robert Jenkins's user avatar
1 vote
2 answers
92 views

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 ...
Kiki Miki's user avatar
-1 votes
1 answer
71 views

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 ...
Kiki Miki's user avatar
2 votes
1 answer
98 views

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 ...
DisplayName's user avatar
0 votes
1 answer
66 views

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 | ...
yael's user avatar
  • 14k
2 votes
1 answer
130 views

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 ...
Arelius's user avatar
  • 83
0 votes
0 answers
125 views

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 ...
Porcupine's user avatar
  • 2,176
0 votes
1 answer
104 views

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 ...
Joe's user avatar
  • 3
0 votes
1 answer
491 views

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:...
cat Man's user avatar
  • 88
0 votes
2 answers
269 views

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 ...
palmasd1's user avatar
  • 127
0 votes
1 answer
401 views

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 ...
Porcupine's user avatar
  • 2,176
0 votes
0 answers
380 views

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 ...
N. J's user avatar
  • 197
1 vote
1 answer
289 views

I need to shrink the sdb4 partition, which currently occupies the entire 7TB of my sdb drive, in order to create an sdb5 partition for my application. The challenge lies in the fact that there is a ...
luddite478's user avatar
-1 votes
1 answer
267 views

What are these empty (0B SIZE) read-write loop devices? sudo lsblk --all NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS loop0 7:0 0 0B 0 loop loop1 7:1 0 0B 0 loop loop2 7:2 ...
adrelanos's user avatar
  • 1,976
0 votes
1 answer
700 views

Hi I'm trying to detect ro filesystem mainly for root partition This is portable system using usb as OS disk The state is readonly, I cannot write anything touch /tmp touch: setting times of '/tmp': ...
wpsd's user avatar
  • 101
0 votes
1 answer
135 views

This is my lsblk output: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS nvme0n1 259:0 0 465.8G 0 disk ├─nvme0n1p1 259:1 0 512M 0 part /efi ├─nvme0n1p2 259:2 0 420G 0 ...
Polizi8's user avatar
  • 305
1 vote
1 answer
608 views

I have a desktop with 128G RAM. This is my typical memory usage when I am not running calculation-heavy scripts: sam@debian:~$ free -ht --si total used free shared ...
bgi8353's user avatar
  • 11
1 vote
0 answers
1k views

My lsblk is not showing gpt partition label for one disk partition, which was freshly formatted with mkfs.ext4 -v -L MyLabel mydev somehow the partition was not labeled properly afterwards. I didn't ...
xpt's user avatar
  • 1,924
2 votes
1 answer
129 views

I was flashing a new operating system to a device, but after the process was complete, I couldn't boot into it. I then checked the disk, and I noticed something strange. Different tools report ...
touka's user avatar
  • 123
0 votes
1 answer
2k views

In my Ubuntu 23.04 system, running lsblk gives the following output: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS loop0 7:0 0 4K 1 loop /snap/bare/5 loop1 7:1 0 55.6M ...
Ar Rakin's user avatar
  • 199
0 votes
2 answers
796 views

Since today, I cannot boot into my Linux CentOS 7. I am directly taken to emergency mode. I have tried the following commands without success: sudo umount /dev/sdb1 and sudo fsck -p /dev/sdb1 I have ...
user979974's user avatar
0 votes
2 answers
1k views

What is the issue with lsblk command in some servers displaying full details and it is not others? Examples: Server 1 ~]$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda ...
Maan's user avatar
  • 21
0 votes
2 answers
823 views

I have a SD card that is giving me some trouble. I followed some instructions from here https://forums.linuxmint.com/viewtopic.php?t=368230 and used the command sudo dd if=/dev/zero of=/dev/sdb bs=1M ...
Diego's user avatar
  • 63
3 votes
1 answer
1k views

My disk is sda. There is the size file /sys/dev/block/8:0/size. Its unit is sectors. When I run strace lsblk I can see it reading this file. But how does lsblk get the sector size to later show the ...
zomega's user avatar
  • 1,022
2 votes
1 answer
2k views

we want to create 2 partitions from each new disk by parted command as the following example: sdg 8:96 0 50G 0 disk ├─sdg1 8:97 0 25G 0 part └─sdg2 ...
yael's user avatar
  • 14k
0 votes
2 answers
1k views

in our bash scripts , we have many places in the code that need to capture only the disk that related to OS ( operation linux/RHEL system ) we are using Linux versions as 7.2/7.5/7.6/7.9 , and on most ...
yael's user avatar
  • 14k
1 vote
4 answers
3k views

we want to print only the disks that are without filesystem by command line from following example we can see that sde disk is without filesystem lsblk -o NAME,FSTYPE NAME FSTYPE sda ├─...
yael's user avatar
  • 14k
0 votes
0 answers
201 views

I get the following results for the 3 commands blkid, lsblk and sfdisk on an Arch Linux system $ lsblk --json -p -b -o+PTUUID,UUID /dev/sda1 { "blockdevices": [ { "...
wasp256's user avatar
  • 209
1 vote
1 answer
2k views

we erased the disk signature as the following ( this is after we performed umount ) wipefs -a /dev/sde /dev/sde: 2 bytes were erased at offset 0x00000438 (ext4): 53 ef then we check that disk is ...
yael's user avatar
  • 14k
1 vote
4 answers
1k views

root@pve-virt-01:~# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 250G 0 disk ├─sda1 8:1 0 1007K 0 part ├─sda2 8:2 ...
jsterr's user avatar
  • 1,381
2 votes
1 answer
3k views

we can print all disks by the following ( on our RHEL machine ) fdisk -lu | grep "Disk /dev" Disk /dev/sda: 247.0 GB, 246960619520 bytes, 482344960 sectors Disk /dev/sdb: 4294 MB, 4294967296 ...
yael's user avatar
  • 14k
5 votes
3 answers
645 views

I can capture the disk devices of my Linux machine with the following command: lsblk -lnb | numfmt --to=iec --field=4 | grep disk | awk '{print $1}' sda sdb sdc sdd In my bash script I used the line ...
yael's user avatar
  • 14k
8 votes
2 answers
6k views

Is there a way to know which partition you actually booted from? fdisk -l reveals a "Boot" column that I definitely don't have on my NVME. Is this just legacy information? Device Boot ...
celvro's user avatar
  • 83
0 votes
0 answers
278 views

lspci output: Slot: 02:00.0 Class: RAID bus controller Vendor: LSI Logic / Symbios Logic Device: MegaRAID SAS 2208 [Thunderbolt] SVendor: Dell SDevice: PERC H710P Mini (for ...
palmasd1's user avatar
  • 127
0 votes
1 answer
854 views

I have resized recently the rhel-root partition of my RHEL 7.9 system, basically I did the following commands: pvresize /dev/sda2 lvextend -l+100%FREE /dev/rhel/root I was able to resize the ...
Wilson S.'s user avatar
1 vote
0 answers
489 views

I detect list of hardware arrays by next command: lspci -vmm | sed -E -n '/RAID bus|SCSI controller/,/^ *$/p' | tr -d '\t' Example: Class:RAID bus controller Vendor:Broadcom / LSI Device:MegaRAID SAS ...
palmasd1's user avatar
  • 127
7 votes
1 answer
12k views

On Linux, the command lsblk -o partlabel will display the partlabel for block devices. I have used gdisk to change a partlabel. After the change, lsblk is still reporting the old value of the ...
mpb's user avatar
  • 1,881
1 vote
0 answers
34 views

When I run df -h and lsblk, on my Ubuntu 20.04.3 LTS Oracle Cloud instance, there is a discrepancy between sizes of my /dev/sda1 mount. I am not sure if this has to do with GiB vs GB or something else....
Rob's user avatar
  • 11
-1 votes
1 answer
2k views

I am quite new to Linux, and I need to mount some devices, using the lsblk command and more. lsblk presents the devices (internal, I don't have external ones) the output is: # lsblk NAME ...
ayala's user avatar
  • 1
1 vote
2 answers
1k views

I recently upgraded my home server and wanted to increase my cloud disk to 2TB from 600gb. After some research I found the dd command which can fully copy a disk, which in my case seemed like a good ...
MrSkeed's user avatar
  • 13
0 votes
2 answers
2k views

I am using Ubuntu 20.04. when I do lsblk size is not adding up. root@UbunutuTemplate-001:/home/tca# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 4K 1 loop /snap/bare/5 ...
Mohammed's user avatar
  • 157
-2 votes
1 answer
1k views

I get the following details from RHEL 7.2 machine , sda DISK is using LVM lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 250G 0 disk ├─sda1 8:1 0 500M 0 part /boot ├─sda2 8:2 0 199.5G 0 part │...
yael's user avatar
  • 14k
0 votes
0 answers
1k views

I'm using Ubuntu 20.04, recently (almost a week ago) I upgraded my kernel from 5.11.0 to 5.14.0 and after that I can't access any USB drivers. The system recognises my USBs since when I run lsusb it ...
Adeeb HS's user avatar
0 votes
0 answers
339 views

I have a raspberry pi with two external hard drives. the electricity went off today and after that i couldn't enter the rpi. what i ended up doing was to remove the flash card and enter it in another ...
john-jones's user avatar
  • 1,766
0 votes
1 answer
959 views

I am currently trying to parse the output of lsblk with jq and filters it based on some criteria. Given the following example output: { "blockdevices": [ { "name":...
Kyu96's user avatar
  • 193
5 votes
2 answers
9k views

I have mounted an external hard drive via /etc/fstab with the following entry: UUID=a8286fc9-5b08-41d9-8c4e-cb993a8976d1 /home/bu/safe-heaven-2/ ext4 defaults 0 I can read/write from this disk but I ...
password is password's user avatar
3 votes
2 answers
1k views

In the light of emmc wearout monitoring I'm wondering about the size as displayed inside a running Linux OS. An emmc chip has an internal manager which keeps track of the usage intensity of all the ...
Whois_me's user avatar