Questions tagged [blkid]
17 questions
0
votes
2 answers
error on using libblkid
when i compile and link this code to get disk uuid:
#include
#include
#include
#include
int main (int argc, char *argv[]) {
blkid_probe pr;
const char *uuid;
if (argc != 2) {
fprintf(stderr,…

ir01
- 383
- 1
- 4
- 13
-2
votes
1 answer
extract the usb name from 'blkid' output
I want to extract the usb lable attached to my linux system. I have written some code in python, it works fine, but I want it to be less complicated. Any ideas ... Thanks.
Here is the code:
#!/usr/bin/env python
import commands
import os
…

Hamza Mehmood
- 3
- 3