[Bug 668327] [NEW] blkid command did not list devices

Savvas Radevic vicedar at gmail.com
Fri Oct 29 13:22:27 UTC 2010


Public bug reported:

Binary package hint: util-linux

This could be a one-time bug, but I thought of reporting it. blkid did not list ANY of my devices.
I was using gnome-terminal.

forger at home-desktop:~$ blkid
forger at home-desktop:~$ blkid
forger at home-desktop:~$ blkid 
forger at home-desktop:~$ blkid --help
blkid: invalid option -- '-'
blkid from util-linux-ng 2.17.2 (libblkid 2.17.0, 22-Mar-2010)
Usage:
  blkid -L <label> | -U <uuid>

  blkid [-c <file>] [-ghlLv] [-o format] [-s <tag>] 
        [-t <token>] [-w <file>] [dev ...]

  blkid -p [-O <offset>] [-S <size>] [-o format] <dev> [dev ...]

Options:
  -c <file>   cache file (default: /etc/blkid.tab, /dev/null = none)
  -h          print this usage message and exit
  -g          garbage collect the blkid cache
  -o <format> output format; can be one of:
              value, device, list, udev or full; (default: full)
  -s <tag>    show specified tag(s) (default show all tags)
  -t <token>  find device with a specific token (NAME=value pair)
  -l          lookup the the first device with arguments specified by -t
  -L <label>  convert LABEL to device name
  -U <uuid>   convert UUID to device name
  -v          print version and exit
  -w <file>   write cache to different file (/dev/null = no write)
  <dev>       specify device(s) to probe (default: all devices)

Low-level probing options:
  -p          switch to low-level mode (bypass cache)
  -S <bytes>  overwrite device size
  -O <bytes>  probe at the given offset
  -u <list>   filter by "usage" (e.g. -u filesystem,raid)

forger at home-desktop:~$ blkid -l
The lookup option requires a search type specified using -t
forger at home-desktop:~$ bl
bleachbit             bluetooth-agent       bluetooth-properties
blkid                 bluetooth-applet      bluetooth-sendto
blockdev              bluetoothd            bluetooth-wizard
forger at home-desktop:~$ blkid /dev/*
^C
forger at home-desktop:~$ blkid /dev/sd*
forger at home-desktop:~$ blkid /dev/sda
sda   sda1  sda2  sda3  
forger at home-desktop:~$ blkid /dev/sda
forger at home-desktop:~$ sudo blkid /dev/sda
[sudo] password for forger: 
forger at home-desktop:~$ man blkid
forger at home-desktop:~$ bl
bleachbit             bluetooth-agent       bluetooth-properties
blkid                 bluetooth-applet      bluetooth-sendto
blockdev              bluetoothd            bluetooth-wizard
forger at home-desktop:~$ blockdev 

Usage:
  blockdev -V
  blockdev --report [devices]
  blockdev [-v|-q] commands devices

Available commands:
	--getsz                        get size in 512-byte sectors
	--setro                        set read-only
	--setrw                        set read-write
	--getro                        get read-only
	--getss                        get logical block (sector) size
	--getpbsz                      get physical block (sector) size
	--getiomin                     get minimum I/O size
	--getioopt                     get optimal I/O size
	--getalignoff                  get alignment offset
	--getmaxsect                   get max sectors per request
	--getbsz                       get blocksize
	--setbsz BLOCKSIZE             set blocksize
	--getsize                      get 32-bit sector count
	--getsize64                    get size in bytes
	--setra READAHEAD              set readahead
	--getra                        get readahead
	--setfra FSREADAHEAD           set filesystem readahead
	--getfra                       get filesystem readahead
	--flushbufs                    flush buffers
	--rereadpt                     reread partition table

forger at home-desktop:~$ blkid -s
blkid: option requires an argument -- 's'
blkid from util-linux-ng 2.17.2 (libblkid 2.17.0, 22-Mar-2010)
Usage:
  blkid -L <label> | -U <uuid>

  blkid [-c <file>] [-ghlLv] [-o format] [-s <tag>] 
        [-t <token>] [-w <file>] [dev ...]

  blkid -p [-O <offset>] [-S <size>] [-o format] <dev> [dev ...]

Options:
  -c <file>   cache file (default: /etc/blkid.tab, /dev/null = none)
  -h          print this usage message and exit
  -g          garbage collect the blkid cache
  -o <format> output format; can be one of:
              value, device, list, udev or full; (default: full)
  -s <tag>    show specified tag(s) (default show all tags)
  -t <token>  find device with a specific token (NAME=value pair)
  -l          lookup the the first device with arguments specified by -t
  -L <label>  convert LABEL to device name
  -U <uuid>   convert UUID to device name
  -v          print version and exit
  -w <file>   write cache to different file (/dev/null = no write)
  <dev>       specify device(s) to probe (default: all devices)

Low-level probing options:
  -p          switch to low-level mode (bypass cache)
  -S <bytes>  overwrite device size
  -O <bytes>  probe at the given offset
  -u <list>   filter by "usage" (e.g. -u filesystem,raid)

forger at home-desktop:~$ blkid -s UUID


***** NOTE: after a minute or so I tried some other command and blkid
again


forger at home-desktop:~$ dpkg -S /usr/bin/blkid
dpkg: /usr/bin/blkid not found.
forger at home-desktop:~$ dpkg -S /sbin/blkid
util-linux: /sbin/blkid
forger at home-desktop:~$ sudo blkid
/dev/sda1: UUID="dc6da6c1-e8e7-4e1c-92f2-304e6a3217ed" TYPE="ext4" 
/dev/sda2: UUID="e4c071a0-9ed3-49ca-9c4e-54cd3a1abee0" TYPE="swap" 
/dev/sda3: UUID="f5c288aa-acd3-48e7-9217-e2dc412f3de3" TYPE="ext4" 
/dev/sdb1: UUID="FC0AE65C0AE61404" TYPE="ntfs" 
/dev/sdb2: UUID="1ba5ca25-f700-4aad-990f-7d1875ebc173" TYPE="ext4" 
/dev/sdb3: LABEL="common" UUID="2F46E5013DF4E742" TYPE="ntfs" 
/dev/sdc1: LABEL="old80gb" UUID="ab2ac1fb-4423-45aa-b7b7-94dfb3dc18d4" TYPE="ext4" 
forger at home-desktop:~$ blkid
/dev/sda1: UUID="dc6da6c1-e8e7-4e1c-92f2-304e6a3217ed" TYPE="ext4" 
/dev/sda2: UUID="e4c071a0-9ed3-49ca-9c4e-54cd3a1abee0" TYPE="swap" 
/dev/sda3: UUID="f5c288aa-acd3-48e7-9217-e2dc412f3de3" TYPE="ext4" 
/dev/sdb1: UUID="FC0AE65C0AE61404" TYPE="ntfs" 
/dev/sdb2: UUID="1ba5ca25-f700-4aad-990f-7d1875ebc173" TYPE="ext4" 
/dev/sdb3: LABEL="common" UUID="2F46E5013DF4E742" TYPE="ntfs" 
/dev/sdc1: LABEL="old80gb" UUID="ab2ac1fb-4423-45aa-b7b7-94dfb3dc18d4" TYPE="ext4"

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: util-linux 2.17.2-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-22.35-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Fri Oct 29 15:18:36 2010
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha amd64 (20100329)
ProcEnviron:
 LANG=en_GB.utf8
 SHELL=/bin/bash
SourcePackage: util-linux

** Affects: util-linux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug maverick

-- 
blkid command did not list devices
https://bugs.launchpad.net/bugs/668327
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to util-linux in ubuntu.




More information about the kernel-bugs mailing list