Hallo, util-linux, kernel 3.6.11 util-linux 2.21.2 no "udev" running, static entries in "/dev" "blkid" stores something into "/run/blkid/blkid.tab" and backs it sometimes up to "...old". Looks as if this entry only grows - "blkid -g" doesn't change it. My actual configuration: hard disk /dev/sda with 4 partitions USB stick, formatted as "/dev/sdb" (whole stick) Output of "proc/partitions": major minor #blocks name 8 0 29302560 sda 8 1 9775521 sda1 8 2 369495 sda2 8 3 4891792 sda3 8 4 14265720 sda4 11 0 1048575 sr0 8 16 7819264 sdb Some times ago I had used another USB stick, with 4 partitions. Contents of "/run/blkid/blkid.tab": <device DEVNO="0x0801" TIME="1357381001.725326" LABEL="wurzel" UUID="017373e6-6b74-429d-aeb2-5822e65f745c" TYPE="ext2">/dev/sda1<device> <device DEVNO="0x0802" TIME="1357381001.727571" UUID="fbd13a3b-36e6-4d1d-8239-21d6fc82d879" TYPE="swap">/dev/sda2</device> <device DEVNO="0x0803" TIME="1357381001.729552" LABEL="Var" UUID="7fe076f2-8a27-4992-9c86-5f90cb1c4e72" TYPE="ext2">/dev/sda3</device> <device DEVNO="0x0804" TIME="1357381001.731407" LABEL="Home" UUID="17577642-64b8-4ef2-994f-d857ebaf2363" TYPE="ext3" SEC_TYPE="ext2">/dev/sda4</device> <device DEVNO="0x0811" TIME="1357299368.600663" LABEL="mylabel" UUID="e9716633-49f1-44a0-a3b4-90ba9736a540" UUID_SUB="0dcdf253-486e-49af-a5ef-3e4af4bd9be0" TYPE="btrfs">/dev/sdb1</device> <device DEVNO="0x0812" TIME="1357299351.23750" LABEL="mylabel" UUID="e9716633-49f1-44a0-a3b4-90ba9736a540" UUID_SUB="fbb0c504-1996-4a22-bb4d-d97d67679924" TYPE="btrfs">/dev/sdb2</device> <device DEVNO="0x0813" TIME="1357299351.507945" LABEL="mylabel" UUID="e9716633-49f1-44a0-a3b4-90ba9736a540" UUID_SUB="b1d3d63b-fe13-4f13-b31b-cc33efb9697f" TYPE="btrfs">/dev/sdb3</device> <device DEVNO="0x0814" TIME="1357299351.515996" UUID="d2fc63bf-28e5-4c61-8c9a-c577ed79e1ad" TYPE="ext2" LABEL="B">/dev/sdb4</device> <device DEVNO="0x0810" TIME="1357381001.752428" UUID="8b12b545-8b35-4541-8bed-6d2297e6b6c6" UUID_SUB="6f7a0e68-471b-4282-b3c8-4e2c402c7155" TYPE="btrfs">/dev/sdb</device> # -------------------------------------------------------- Running "blkid" as root: /dev/sda1: LABEL="wurzel" UUID="017373e6-6b74-429d-aeb2-5822e65f745c" TYPE="ext2" /dev/sda2: UUID="fbd13a3b-36e6-4d1d-8239-21d6fc82d879" TYPE="swap" /dev/sda3: LABEL="Var" UUID="7fe076f2-8a27-4992-9c86-5f90cb1c4e72" TYPE="ext2" /dev/sda4: LABEL="Home" UUID="17577642-64b8-4ef2-994f-d857ebaf2363" TYPE="ext3" SEC_TYPE="ext2" /dev/sdb: UUID="8b12b545-8b35-4541-8bed-6d2297e6b6c6" UUID_SUB="6f7a0e68-471b-4282-b3c8-4e2c402c7155" TYPE="btrfs" Running "/sbin/blkid" as underprivileged user: /dev/sda1: LABEL="wurzel" UUID="017373e6-6b74-429d-aeb2-5822e65f745c" TYPE="ext2" /dev/sda2: UUID="fbd13a3b-36e6-4d1d-8239-21d6fc82d879" TYPE="swap" /dev/sda3: LABEL="Var" UUID="7fe076f2-8a27-4992-9c86-5f90cb1c4e72" TYPE="ext2" /dev/sda4: LABEL="Home" UUID="17577642-64b8-4ef2-994f-d857ebaf2363" TYPE="ext3" SEC_TYPE="ext2" /dev/sdb1: LABEL="mylabel" UUID="e9716633-49f1-44a0-a3b4-90ba9736a540" UUID_SUB="0dcdf253-486e-49af-a5ef-3e4af4bd9be0" TYPE="btrfs" /dev/sdb2: LABEL="mylabel" UUID="e9716633-49f1-44a0-a3b4-90ba9736a540" UUID_SUB="fbb0c504-1996-4a22-bb4d-d97d67679924" TYPE="btrfs" /dev/sdb3: LABEL="mylabel" UUID="e9716633-49f1-44a0-a3b4-90ba9736a540" UUID_SUB="b1d3d63b-fe13-4f13-b31b-cc33efb9697f" TYPE="btrfs" /dev/sdb4: UUID="d2fc63bf-28e5-4c61-8c9a-c577ed79e1ad" TYPE="ext2" LABEL="B" /dev/sdb: UUID="8b12b545-8b35-4541-8bed-6d2297e6b6c6" UUID_SUB="6f7a0e68-471b-4282-b3c8-4e2c402c7155" TYPE="btrfs" # -------------------------------------------------------- Running "blkid" as an underprivileged user apparently shows data (for sdb) which don't fit for the actually configuration. "strace" output for root: execve("/sbin/blkid", ["blkid"], [/* 50 vars */]) = 0 brk(0) = 0x8050000 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40024000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=107950, ...}) = 0 mmap2(NULL, 107950, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40025000 close(3) = 0 open("/lib/libblkid.so.1", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0A\0\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=163440, ...}) = 0 mmap2(NULL, 162160, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40040000 mmap2(0x40066000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x26) = 0x40066000 close(3) = 0 open("/lib/libuuid.so.1", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\16\0\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=13244, ...}) = 0 mmap2(NULL, 16004, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40068000 mmap2(0x4006b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0x4006b000 close(3) = 0 open("/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\227\1\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1790836, ...}) = 0 mmap2(NULL, 1591836, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4006c000 mprotect(0x401ea000, 4096, PROT_NONE) = 0 mmap2(0x401eb000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17e) = 0x401eb000 mmap2(0x401ee000, 10780, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401ee000 close(3) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x401f1000 set_thread_area({entry_number:-1 -> 6, base_addr:0x401f1980, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 mprotect(0x401eb000, 8192, PROT_READ) = 0 mprotect(0x40021000, 4096, PROT_READ) = 0 munmap(0x40025000, 107950) = 0 brk(0) = 0x8050000 brk(0x8071000) = 0x8071000 getuid32() = 0 geteuid32() = 0 getgid32() = 0 getegid32() = 0 prctl(PR_GET_DUMPABLE) = 1 getuid32() = 0 geteuid32() = 0 getgid32() = 0 getegid32() = 0 prctl(PR_GET_DUMPABLE) = 1 open("/etc/blkid.conf", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) open("/run/blkid/blkid.tab", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=1415, ...}) = 0 fcntl64(3, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE) fstat64(3, {st_mode=S_IFREG|0644, st_size=1415, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40025000 _llseek(3, 0, [0], SEEK_CUR) = 0 read(3, "<device DEVNO=\"0x0801\" TIME=\"135"..., 4096) = 1415 access("/dev/sda1", F_OK) = 0 access("/dev/sda2", F_OK) = 0 access("/dev/sda3", F_OK) = 0 access("/dev/sda4", F_OK) = 0 access("/dev/sdb1", F_OK) = 0 access("/dev/sdb2", F_OK) = 0 access("/dev/sdb3", F_OK) = 0 access("/dev/sdb4", F_OK) = 0 access("/dev/sdb", F_OK) = 0 read(3, "", 4096) = 0 _llseek(3, 1415, [1415], SEEK_SET) = 0 close(3) = 0 munmap(0x40025000, 4096) = 0 open("/run/blkid/blkid.tab", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=1415, ...}) = 0 close(3) = 0 open("/proc/evms/volumes", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/proc/lvm/VGs", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/dev", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 3 getdents64(3, /* 1084 entries */, 32768) = 32752 getdents64(3, /* 749 entries */, 32768) = 22672 getdents64(3, /* 0 entries */, 32768) = 0 close(3) = 0 openat(AT_FDCWD, "/devfs", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/devices", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/proc/partitions", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40025000 read(3, "major minor #blocks name\n\n 8"..., 1024) = 235 time(NULL) = 1357381001 stat64("/dev/sda1", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 1), ...}) = 0 open("/dev/sda1", O_RDONLY|O_LARGEFILE) = 4 fadvise64_64(4, 0, 0, POSIX_FADV_RANDOM) = 0 fstat64(4, {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 1), ...}) = 0 uname({sys="Linux", node="ElNath.wm8.hullen.de", ...}) = 0 ioctl(4, BLKGETSIZE64, 0x8050ebc) = 0 open("/sys/dev/block/8:1", O_RDONLY|O_LARGEFILE) = 5 fstatat64(5, "partition", {st_mode=S_IFREG|0444, st_size=4096, ...}, 0) = 0 readlink("/sys/dev/block/8:1", "../../devices/pci0000:00/0000:00:07.1/ata1/host0/target0:0:0/0:0:0:0/block/sda/sda1", 4095) = 83 open("/sys/block/sda/dev", O_RDONLY|O_LARGEFILE) = 6 fstat64(6, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40026000 read(6, "8:0\n", 4096) = 4 close(6) = 0 munmap(0x40026000, 4096) = 0 close(5) = 0 _llseek(4, 1024, [1024], SEEK_SET) = 0 read(4, "\240V\t\0hJ%\0R\335\1\0\20M\21\0D\315\5\0\0\0\0\0\2\0\0\0\2\0\0\0"..., 1024) = 1024 time(NULL) = 1357381001 open("/proc/filesystems", O_RDONLY|O_LARGEFILE) = 5 fstat64(5, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40026000 read(5, "nodev\tsysfs\nnodev\trootfs\nnodev\tb"..., 1024) = 362 close(5) = 0 munmap(0x40026000, 4096) = 0 gettimeofday({1357381001, 725326}, NULL) = 0 close(4) = 0 time(NULL) = 1357381001 stat64("/dev/sda2", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 2), ...}) = 0 open("/dev/sda2", O_RDONLY|O_LARGEFILE) = 4 fadvise64_64(4, 0, 0, POSIX_FADV_RANDOM) = 0 fstat64(4, {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 2), ...}) = 0 ioctl(4, BLKGETSIZE64, 0x8050ebc) = 0 open("/sys/dev/block/8:2", O_RDONLY|O_LARGEFILE) = 5 fstatat64(5, "partition", {st_mode=S_IFREG|0444, st_size=4096, ...}, 0) = 0 readlink("/sys/dev/block/8:2", "../../devices/pci0000:00/0000:00:07.1/ata1/host0/target0:0:0/0:0:0:0/block/sda/sda2", 4095) = 83 open("/sys/block/sda/dev", O_RDONLY|O_LARGEFILE) = 6 fstat64(6, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40026000 read(6, "8:0\n", 4096) = 4 close(6) = 0 munmap(0x40026000, 4096) = 0 close(5) = 0 _llseek(4, 3072, [3072], SEEK_SET) = 0 read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024 _llseek(4, 0, [0], SEEK_SET) = 0 read(4, "\345\210\334\350\6\0\207\377", 8) = 8 _llseek(4, 1024, [1024], SEEK_SET) = 0 read(4, "\1\0\0\0\324h\1\0\0\0\0\0\373\321:;6\346M\35\2029!\326\374\202\330y\0\0\0\0"..., 516) = 516 gettimeofday({1357381001, 727571}, NULL) = 0 close(4) = 0 time(NULL) = 1357381001 stat64("/dev/sda3", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 3), ...}) = 0 open("/dev/sda3", O_RDONLY|O_LARGEFILE) = 4 fadvise64_64(4, 0, 0, POSIX_FADV_RANDOM) = 0 fstat64(4, {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 3), ...}) = 0 ioctl(4, BLKGETSIZE64, 0x8050ebc) = 0 open("/sys/dev/block/8:3", O_RDONLY|O_LARGEFILE) = 5 fstatat64(5, "partition", {st_mode=S_IFREG|0444, st_size=4096, ...}, 0) = 0 readlink("/sys/dev/block/8:3", "../../devices/pci0000:00/0000:00:07.1/ata1/host0/target0:0:0/0:0:0:0/block/sda/sda3", 4095) = 83 open("/sys/block/sda/dev", O_RDONLY|O_LARGEFILE) = 6 fstat64(6, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40026000 read(6, "8:0\n", 4096) = 4 close(6) = 0 munmap(0x40026000, 4096) = 0 close(5) = 0 _llseek(4, 1024, [1024], SEEK_SET) = 0 read(4, "\240\252\4\0$\251\22\0\333\356\0\0k\351\17\0\362I\4\0\0\0\0\0\2\0\0\0\2\0\0\0"..., 1024) = 1024 time(NULL) = 1357381001 gettimeofday({1357381001, 729552}, NULL) = 0 close(4) = 0 time(NULL) = 1357381001 stat64("/dev/sda4", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 4), ...}) = 0 open("/dev/sda4", O_RDONLY|O_LARGEFILE) = 4 fadvise64_64(4, 0, 0, POSIX_FADV_RANDOM) = 0 fstat64(4, {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 4), ...}) = 0 ioctl(4, BLKGETSIZE64, 0x8050ebc) = 0 open("/sys/dev/block/8:4", O_RDONLY|O_LARGEFILE) = 5 fstatat64(5, "partition", {st_mode=S_IFREG|0444, st_size=4096, ...}, 0) = 0 readlink("/sys/dev/block/8:4", "../../devices/pci0000:00/0000:00:07.1/ata1/host0/target0:0:0/0:0:0:0/block/sda/sda4", 4095) = 83 open("/sys/block/sda/dev", O_RDONLY|O_LARGEFILE) = 6 fstat64(6, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40026000 read(6, "8:0\n", 4096) = 4 close(6) = 0 munmap(0x40026000, 4096) = 0 close(5) = 0 _llseek(4, 1024, [1024], SEEK_SET) = 0 read(4, "\0\240\r\0^k6\0\221\270\2\0\24\2012\0j\352\f\0\0\0\0\0\2\0\0\0\2\0\0\0"..., 1024) = 1024 gettimeofday({1357381001, 731407}, NULL) = 0 close(4) = 0 stat64("/dev/sr0", {st_mode=S_IFBLK|0660, st_rdev=makedev(11, 0), ...}) = 0 access("/dev/sr0", F_OK) = 0 time(NULL) = 1357381001 stat64("/dev/sr0", {st_mode=S_IFBLK|0660, st_rdev=makedev(11, 0), ...}) = 0 open("/dev/sr0", O_RDONLY|O_LARGEFILE) = -1 ENOMEDIUM (No medium found) read(3, "", 1024) = 0 time(NULL) = 1357381001 stat64("/dev/sdb", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 16), ...}) = 0 open("/dev/sdb", O_RDONLY|O_LARGEFILE) = 4 fadvise64_64(4, 0, 0, POSIX_FADV_RANDOM) = 0 fstat64(4, {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 16), ...}) = 0 ioctl(4, BLKGETSIZE64, 0x8050ebc) = 0 open("/sys/dev/block/8:16", O_RDONLY|O_LARGEFILE) = 5 fstatat64(5, "partition", 0xbfd6ff90, 0) = -1 ENOENT (No such file or directory) openat(5, "dm/uuid", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) close(5) = 0 ioctl(4, CDROM_GET_CAPABILITY, 0) = -1 EINVAL (Invalid argument) _llseek(4, 65536, [65536], SEEK_SET) = 0 read(4, "\244\23+a\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024 gettimeofday({1357381001, 752428}, NULL) = 0 close(4) = 0 close(3) = 0 munmap(0x40025000, 4096) = 0 stat64("/run/blkid", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat64("/run/blkid/blkid.tab", {st_mode=S_IFREG|0644, st_size=1415, ...}) = 0 access("/run/blkid/blkid.tab", W_OK) = 0 gettimeofday({1357381001, 753327}, NULL) = 0 getpid() = 5316 open("/run/blkid/blkid.tab-ni61z0", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600) = 3 fcntl64(3, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE) fstat64(3, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40025000 _llseek(3, 0, [0], SEEK_CUR) = 0 fchmod(3, 0644) = 0 write(3, "<device DEVNO=\"0x0801\" TIME=\"135"..., 1415) = 1415 close(3) = 0 munmap(0x40025000, 4096) = 0 unlink("/run/blkid/blkid.tab.old") = 0 link("/run/blkid/blkid.tab", "/run/blkid/blkid.tab.old") = 0 rename("/run/blkid/blkid.tab-ni61z0", "/run/blkid/blkid.tab") = 0 time(NULL) = 1357381001 time(NULL) = 1357381001 stat64("/dev/sda1", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 1), ...}) = 0 fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40025000 write(1, "/dev/sda1: LABEL=\"wurzel\" UUID=\""..., 83) = 83 time(NULL) = 1357381001 stat64("/dev/sda2", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 2), ...}) = 0 write(1, "/dev/sda2: UUID=\"fbd13a3b-36e6-4"..., 68) = 68 time(NULL) = 1357381001 stat64("/dev/sda3", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 3), ...}) = 0 write(1, "/dev/sda3: LABEL=\"Var\" UUID=\"7fe"..., 80) = 80 time(NULL) = 1357381001 stat64("/dev/sda4", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 4), ...}) = 0 write(1, "/dev/sda4: LABEL=\"Home\" UUID=\"17"..., 97) = 97 time(NULL) = 1357381001 stat64("/dev/sdb1", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 17), ...}) = 0 open("/dev/sdb1", O_RDONLY|O_LARGEFILE) = -1 ENXIO (No such device or address) time(NULL) = 1357381001 stat64("/dev/sdb2", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 18), ...}) = 0 open("/dev/sdb2", O_RDONLY|O_LARGEFILE) = -1 ENXIO (No such device or address) time(NULL) = 1357381001 stat64("/dev/sdb3", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 19), ...}) = 0 open("/dev/sdb3", O_RDONLY|O_LARGEFILE) = -1 ENXIO (No such device or address) time(NULL) = 1357381001 stat64("/dev/sdb4", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 20), ...}) = 0 open("/dev/sdb4", O_RDONLY|O_LARGEFILE) = -1 ENXIO (No such device or address) time(NULL) = 1357381001 stat64("/dev/sdb", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 16), ...}) = 0 write(1, "/dev/sdb: UUID=\"8b12b545-8b35-45"..., 116) = 116 exit_group(0) = ? # ------------------------------------------------ "strace" output for an underprivileged user: execve("/sbin/blkid", ["/sbin/blkid"], [/* 51 vars */]) = 0 brk(0) = 0x8050000 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40024000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=107950, ...}) = 0 mmap2(NULL, 107950, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40025000 close(3) = 0 open("/lib/libblkid.so.1", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0A\0\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=163440, ...}) = 0 mmap2(NULL, 162160, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40040000 mmap2(0x40066000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x26) = 0x40066000 close(3) = 0 open("/lib/libuuid.so.1", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\16\0\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=13244, ...}) = 0 mmap2(NULL, 16004, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40068000 mmap2(0x4006b000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0x4006b000 close(3) = 0 open("/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\227\1\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1790836, ...}) = 0 mmap2(NULL, 1591836, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4006c000 mprotect(0x401ea000, 4096, PROT_NONE) = 0 mmap2(0x401eb000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17e) = 0x401eb000 mmap2(0x401ee000, 10780, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401ee000 close(3) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x401f1000 set_thread_area({entry_number:-1 -> 6, base_addr:0x401f1980, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 mprotect(0x401eb000, 8192, PROT_READ) = 0 mprotect(0x40021000, 4096, PROT_READ) = 0 munmap(0x40025000, 107950) = 0 brk(0) = 0x8050000 brk(0x8071000) = 0x8071000 getuid32() = 1000 getuid32() = 1000 open("/etc/blkid.conf", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) open("/run/blkid/blkid.tab", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=1244, ...}) = 0 fcntl64(3, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE) fstat64(3, {st_mode=S_IFREG|0644, st_size=1244, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40025000 _llseek(3, 0, [0], SEEK_CUR) = 0 read(3, "<device DEVNO=\"0x0801\" TIME=\"135"..., 4096) = 1244 access("/dev/sda1", F_OK) = 0 access("/dev/sda2", F_OK) = 0 access("/dev/sda3", F_OK) = 0 access("/dev/sda4", F_OK) = 0 access("/dev/sdb1", F_OK) = 0 access("/dev/sdb2", F_OK) = 0 access("/dev/sdb3", F_OK) = 0 access("/dev/sdb4", F_OK) = 0 read(3, "", 4096) = 0 _llseek(3, 1244, [1244], SEEK_SET) = 0 close(3) = 0 munmap(0x40025000, 4096) = 0 open("/run/blkid/blkid.tab", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=1244, ...}) = 0 close(3) = 0 open("/proc/evms/volumes", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/proc/lvm/VGs", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/dev", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 3 getdents64(3, /* 1084 entries */, 32768) = 32752 getdents64(3, /* 749 entries */, 32768) = 22672 getdents64(3, /* 0 entries */, 32768) = 0 close(3) = 0 openat(AT_FDCWD, "/devfs", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/devices", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/proc/partitions", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40025000 read(3, "major minor #blocks name\n\n 8"..., 1024) = 206 time(NULL) = 1357380423 stat64("/dev/sda1", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 1), ...}) = 0 open("/dev/sda1", O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied) time(NULL) = 1357380423 stat64("/dev/sda2", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 2), ...}) = 0 open("/dev/sda2", O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied) time(NULL) = 1357380423 stat64("/dev/sda3", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 3), ...}) = 0 open("/dev/sda3", O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied) time(NULL) = 1357380423 stat64("/dev/sda4", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 4), ...}) = 0 open("/dev/sda4", O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied) stat64("/dev/sr0", {st_mode=S_IFBLK|0660, st_rdev=makedev(11, 0), ...}) = 0 access("/dev/sr0", F_OK) = 0 time(NULL) = 1357380423 stat64("/dev/sr0", {st_mode=S_IFBLK|0660, st_rdev=makedev(11, 0), ...}) = 0 open("/dev/sr0", O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied) read(3, "", 1024) = 0 close(3) = 0 munmap(0x40025000, 4096) = 0 stat64("/run/blkid", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat64("/run/blkid/blkid.tab", {st_mode=S_IFREG|0644, st_size=1244, ...}) = 0 access("/run/blkid/blkid.tab", W_OK) = -1 EACCES (Permission denied) time(NULL) = 1357380423 time(NULL) = 1357380423 stat64("/dev/sda1", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 1), ...}) = 0 open("/dev/sda1", O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied) fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40025000 write(1, "/dev/sda1: LABEL=\"wurzel\" UUID=\""..., 83) = 83 time(NULL) = 1357380423 stat64("/dev/sda2", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 2), ...}) = 0 open("/dev/sda2", O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied) write(1, "/dev/sda2: UUID=\"fbd13a3b-36e6-4"..., 68) = 68 time(NULL) = 1357380423 stat64("/dev/sda3", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 3), ...}) = 0 open("/dev/sda3", O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied) write(1, "/dev/sda3: LABEL=\"Var\" UUID=\"7fe"..., 80) = 80 time(NULL) = 1357380423 stat64("/dev/sda4", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 4), ...}) = 0 open("/dev/sda4", O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied) write(1, "/dev/sda4: LABEL=\"Home\" UUID=\"17"..., 97) = 97 time(NULL) = 1357380423 stat64("/dev/sdb1", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 17), ...}) = 0 open("/dev/sdb1", O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied) write(1, "/dev/sdb1: LABEL=\"mylabel\" UUID="..., 133) = 133 time(NULL) = 1357380423 stat64("/dev/sdb2", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 18), ...}) = 0 open("/dev/sdb2", O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied) write(1, "/dev/sdb2: LABEL=\"mylabel\" UUID="..., 133) = 133 time(NULL) = 1357380423 stat64("/dev/sdb3", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 19), ...}) = 0 open("/dev/sdb3", O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied) write(1, "/dev/sdb3: LABEL=\"mylabel\" UUID="..., 133) = 133 time(NULL) = 1357380423 stat64("/dev/sdb4", {st_mode=S_IFBLK|0640, st_rdev=makedev(8, 20), ...}) = 0 open("/dev/sdb4", O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied) write(1, "/dev/sdb4: UUID=\"d2fc63bf-28e5-4"..., 78) = 78 time(NULL) = 1357380423 stat64("/dev/sr0", {st_mode=S_IFBLK|0660, st_rdev=makedev(11, 0), ...}) = 0 open("/dev/sr0", O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied) stat64("/run/blkid", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat64("/run/blkid/blkid.tab", {st_mode=S_IFREG|0644, st_size=1244, ...}) = 0 access("/run/blkid/blkid.tab", W_OK) = -1 EACCES (Permission denied) exit_group(0) = ? # ------------------------------------------------ a) where's the bug for this different output? b) how can I create an actual "/run/blkid/blkid.tab"? Only via "rm"? # ----------------- There seems to be another bug in "blkid", related somehow to "btrfs"; I'm collecting more informations. Viele Gruesse! Helmut -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html