Questions tagged [libblkid]
13 questions
1
vote
1 answer
Can't see mounted drive under lsblk, blkid or mount
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 have some issues related to making backups via…
password is password
- 11
- 3
1
vote
1 answer
How ID_PART_ENTRY_UUID is computed in GPT?
How the tag ID_PART_ENTRY_UUID is computed? Can I get ID_PART_TABLE_UUID from ID_PART_ENTRY_UUID?
I have a disk with GPT partition table and some partitions.
I need to identify which partitions are related to my disk. All partitions in the disk are…
NikBond
- 113
- 4
1
vote
3 answers
What triggers disk's UUID to change?
On the same model of industrial PCs, I see UUID of the main SSD changed. Those 2 IPCs are restored from 2 similar but different Linux disk images. Question is as per the title. UUID of the main disk /dev/sda2 is different.
Both Ubuntu 16.04.
Linux…
IsaacS
- 175
- 3
- 11
0
votes
0 answers
Why are uuid and ptuuid different for different commands
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": [
{
"name": "/dev/sda1",
"maj:min": "8:1",
"rm":…
wasp256
- 215
- 5
- 15
0
votes
1 answer
blkid: blkid_probe_lookup_value() - strange partition types
I need to check filesystem type on a thumb drive in my C++ application. It must be done before mounting a new partition. I also prefer not to call system() function. I tried to use the following test code:
#include
#include…
user6758
- 23
- 6
0
votes
1 answer
blkid doesn't doesn't print the device name on CentOS
I am running a container with CentOS:
docker run -it centos bash
I first check for its Label or UUID:
[root@3271c071fe0a /]# cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-5.3.0-1032-aws root=LABEL=cloudimg-rootfs ro console=tty1 console=ttyS0…
E235
- 363
- 7
- 19
0
votes
1 answer
Disk doesn't appear in blkid but does appear in lsblk
When we do the following on a RHEL lab machine:
lsblk | grep sdd
sdd 8:48 0 1.8T 0 disk
we get the sdd disk, but when we do blkid as the following:
blkid | grep sdd
we do not get any output.
We re-scan the disk as:
echo…
yael
- 12,598
- 51
- 169
- 303
0
votes
2 answers
How can I get my drive mounting via fstab again?
I had a nice Ubuntu 18.04 system up and running with many different internal SATA drives and rock solid for several months, and all were happy in the land. Then one day, there was a simple power outage. No problem, we've been through them before.…
Mike Skott
- 1
- 1
- 3
0
votes
0 answers
Why the partx cannot output the debug info with LIBBLKID_DEBUG enabled ?
We have run the partx with LIBBLKID_DEBUG enabled on many RHEL/CentOS, but all output without their corresponding debug details!
#
#
# LIBBLKID_DEBUG=0xffff partx /dev/cciss/c0d0
# 1: 63- 208844 ( 208782 sectors, 106 MB)
# 2: …
lylklb
- 193
- 4
- 13
0
votes
1 answer
RAID1 `mdX` looks O.K. on `/proc/mdstat`, but `blkid` and `fdisk -l` of the members report whacky/faulty values
I created a RAID1 with
mdadm --create /dev/mdX --level=mirror --raid-devices=2 /dev/sdb /dev/sdc
Then watched the first sync on /proc/mdstat. It says [UU]. So far so good.
sd[bc] were supposed to have been shreded, but I did not check before,…
Alex Stragies
- 5,857
- 2
- 32
- 56
0
votes
1 answer
Where is struct blkid_struct_dev defined?
blkid.h typedefs as follows:
typedef struct blkid_struct_dev *blkid_dev;
That is the only appearance of the token blkid_struct_dev in blkid.h.
grep -rl blkid_struct_dev /usr/include
returns only /usr/include/blkid/blkid.h. So I'm assuming the…
Bandrami
- 850
- 5
- 13
-1
votes
1 answer
On `blkid`'s `-O` option
I was investigating blkid options and have trouble understanding the -O option.
user@host :~ $ > blkid --help | grep -E -- '-O'
-O, --offset probe at the given offset
What is this "offset" ?
For reference, On a virtual machine (with…
Atralb
- 253
- 2
- 12
-1
votes
1 answer
blkid returns more information than expected
I'm following a recipe I created a couple of years ago, where at one point I need to use blkid to obtain a filesystem UUID.
I have this command noted, along with an expected example return value:
blkid -o export -s UUID…
roaima
- 107,089
- 14
- 139
- 261