Bug#673573: grub-probe: error: no such disk. when probing LVM device (problem with symbolic links)

Witold Baryluk baryluk at smp.if.uj.edu.pl
Sat May 19 20:00:27 UTC 2012


Package: grub-common
Version: 1.99-21
Severity: normal

Hello,

It looks that grub-probe have many errors reported, and maybe one of them
is similar to mine, but I cannot find exactly same problem reported.

I have simple configuration with single disk /dev/sda,
and 2 partitions /dev/sda1 (ext3) and /dev/sda2 (LUKS),
on /sda2 I have a LUKS which after giving keys, have a
LVM volume with about 10 logical volumes, including / (ext4).

grub-probe hovewer have some misterious problem with it, involving not
following symlinks:

sredniczarny:~/# grub-probe --target=device /
/dev/mapper/sredniczarny-root
sredniczarny:~# grub-probe --device --target=fs /dev/mapper/sredniczarny-root
grub-probe: error: no such disk.
sredniczarny:~# grub-probe --device --target=fs_uuid /dev/mapper/sredniczarny-
root
grub-probe: error: no such disk.

sredniczarny:~# grub-probe --device --target=fs_uuid $(readlink --canonicalize
/dev/mapper/sredniczarny-root)
0db01a0e-aa96-4796-a4a0-cfbdd89b99b7
sredniczarny:~# grub-probe --device --target=fs $(readlink --canonicalize
/dev/mapper/sredniczarny-root)
ext2

sredniczarny:~# grub-probe --device --target=fs /dev/dm-1
ext2
sredniczarny:~# grub-probe --device --target=fs_uuid /dev/dm-1
0db01a0e-aa96-4796-a4a0-cfbdd89b99b7



sredniczarny:~# ls -l /dev/mapper/
total 0
crw------- 1 root root 10, 236 May 18 15:51 control
lrwxrwxrwx 1 root root       7 May 18 15:51 sda2_crypt -> ../dm-0
lrwxrwxrwx 1 root root       7 May 18 15:51 sredniczarny-root -> ../dm-1
lrwxrwxrwx 1 root root       7 May 18 15:51 sredniczarny-sctank2 -> ../dm-6
lrwxrwxrwx 1 root root       7 May 18 15:51 sredniczarny-swap_1 -> ../dm-4
lrwxrwxrwx 1 root root       7 May 18 15:51 sredniczarny-tmp -> ../dm-5
lrwxrwxrwx 1 root root       7 May 18 15:51 sredniczarny-usr -> ../dm-2
lrwxrwxrwx 1 root root       7 May 18 15:51 sredniczarny-var -> ../dm-3
sredniczarny:~# ls -l /dev/dm-* /dev/root
brw-rw---T 1 root disk 253, 0 May 18 15:51 /dev/dm-0
brw-rw---T 1 root disk 253, 1 May 18 15:51 /dev/dm-1
brw-rw---T 1 root disk 253, 2 May 18 15:53 /dev/dm-2
brw-rw---T 1 root disk 253, 3 May 18 15:53 /dev/dm-3
brw-rw---T 1 root disk 253, 4 May 18 15:51 /dev/dm-4
brw-rw---T 1 root disk 253, 5 May 18 15:52 /dev/dm-5
brw-rw---T 1 root disk 253, 6 May 19 21:58 /dev/dm-6
lrwxrwxrwx 1 root root      4 May 18 15:51 /dev/root -> dm-1



sredniczarny:~# dd if=/dev/mapper/sredniczarny-root | file -
/dev/stdin: Linux rev 1.0 ext4 filesystem data, UUID=0db01a0e-
aa96-4796-a4a0-cfbdd89b99b7, volume name "ROOT" (needs journal recovery)
(extents) (large files) (huge files)



The same with swap:

sredniczarny:~# grub-probe --device --target=fs /dev/mapper/sredniczarny-swap_1
grub-probe: error: no such disk.
sredniczarny:~# grub-probe --device --target=fs_uuid /dev/mapper/sredniczarny-
swap_1
grub-probe: error: no such disk.



Here is verbose output

sredniczarny:~# grub-probe --verbose --device --target=fs /dev/mapper
/sredniczarny-root
grub-probe: info: Scanning for dmraid_nv RAID devices on disk hd0.
grub-probe: info: the size of hd0 is 312581808.
grub-probe: info: the size of hd0 is 312581808.
grub-probe: info: scanning hd0 for LVM.
grub-probe: info: the size of hd0 is 312581808.
grub-probe: info: no LVM signature found.
grub-probe: info: the size of hd0 is 312581808.
grub-probe: info: Scanning for mdraid09 RAID devices on disk hd0.
grub-probe: info: the size of hd0 is 312581808.
grub-probe: info: the size of hd0 is 312581808.
grub-probe: info: Scanning for mdraid1x RAID devices on disk hd0.
grub-probe: info: the size of hd0 is 312581808.
grub-probe: info: the size of hd0 is 312581808.
grub-probe: info: Scanning for mdraid09 RAID devices on disk hd0.
grub-probe: info: the size of hd0 is 312581808.
grub-probe: info: the size of hd0 is 312581808.
grub-probe: info: Scanning for mdraid09 RAID devices on disk hd0,msdos2.
grub-probe: info: the size of hd0 is 312581808.
grub-probe: info: Scanning for mdraid09 RAID devices on disk hd0,msdos1.
grub-probe: info: the size of hd0 is 312581808.
grub-probe: info: Scanning for mdraid1x RAID devices on disk hd0.
grub-probe: info: the size of hd0 is 312581808.
grub-probe: info: the size of hd0 is 312581808.
grub-probe: info: Scanning for mdraid1x RAID devices on disk hd0,msdos2.
grub-probe: info: the size of hd0 is 312581808.
grub-probe: info: Scanning for mdraid1x RAID devices on disk hd0,msdos1.
grub-probe: info: the size of hd0 is 312581808.
grub-probe: info: scanning hd0 for LVM.
grub-probe: info: the size of hd0 is 312581808.
grub-probe: info: no LVM signature found.
grub-probe: info: the size of hd0 is 312581808.
grub-probe: info: scanning hd0,msdos2 for LVM.
grub-probe: info: the size of hd0 is 312581808.
grub-probe: info: no LVM signature found.
grub-probe: info: scanning hd0,msdos1 for LVM.
grub-probe: info: the size of hd0 is 312581808.
grub-probe: info: no LVM signature found.
grub-probe: info: opening sredniczarny-root.
grub-probe: error: no such disk.


And here is a strace output

sredniczarny:~# strace grub-probe --verbose --device --target=fs /dev/mapper
/sredniczarny-root
execve("/usr/sbin/grub-probe", ["grub-probe", "--verbose", "--device", "--
target=fs", "/dev/mapper/sredniczarny-root"], [/* 43 vars */]) = 0
brk(0)                                  = 0x82b6000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7711000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=191184, ...}) = 0
mmap2(NULL, 191184, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb76e2000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/i386-linux-gnu/libdevmapper.so.1.02.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`W\0\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=241368, ...}) = 0
mmap2(NULL, 248316, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0xb76a5000
mmap2(0xb76de000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x38) = 0xb76de000
mmap2(0xb76e1000, 2556, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb76e1000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/i386-linux-gnu/i686/cmov/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240o\1\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1413288, ...}) = 0
mmap2(NULL, 1427832, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0xb7548000
mprotect(0xb769e000, 4096, PROT_NONE)   = 0
mmap2(0xb769f000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x156) = 0xb769f000
mmap2(0xb76a2000, 10616, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb76a2000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/i386-linux-gnu/libselinux.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360O\0\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=124996, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7547000
mmap2(NULL, 130140, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0xb7527000
mmap2(0xb7545000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1d) = 0xb7545000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/i386-linux-gnu/libudev.so.0", O_RDONLY) = 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\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=58992, ...}) = 0
mmap2(NULL, 61804, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0xb7517000
mmap2(0xb7525000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd) = 0xb7525000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/i386-linux-gnu/i686/cmov/librt.so.1", O_RDONLY) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\30\0\0004\0\0\0"..., 512)
= 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=30684, ...}) = 0
mmap2(NULL, 33360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0xb750e000
mmap2(0xb7515000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6) = 0xb7515000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/i386-linux-gnu/i686/cmov/libdl.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\n\0\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=9844, ...}) = 0
mmap2(NULL, 12408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0xb750a000
mmap2(0xb750c000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb750c000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/i386-linux-gnu/i686/cmov/libpthread.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220L\0\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=117009, ...}) = 0
mmap2(NULL, 98816, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0xb74f1000
mmap2(0xb7506000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14) = 0xb7506000
mmap2(0xb7508000, 4608, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7508000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb74f0000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb74ef000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb74ef720, limit:1048575,
seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0,
useable:1}) = 0
mprotect(0xb7506000, 4096, PROT_READ)   = 0
mprotect(0xb750c000, 4096, PROT_READ)   = 0
mprotect(0xb7515000, 4096, PROT_READ)   = 0
mprotect(0xb7525000, 4096, PROT_READ)   = 0
mprotect(0xb7545000, 4096, PROT_READ)   = 0
mprotect(0xb769f000, 8192, PROT_READ)   = 0
mprotect(0xb772f000, 4096, PROT_READ)   = 0
munmap(0xb76e2000, 191184)              = 0
set_tid_address(0xb74ef788)             = 22558
set_robust_list(0xb74ef790, 0xc)        = 0
futex(0xbfd5b720, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, NULL,
bfd5b730) = -1 EAGAIN (Resource temporarily unavailable)
rt_sigaction(SIGRTMIN, {0xb74f56e0, [], SA_SIGINFO}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0xb74f5b70, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
uname({sys="Linux", node="sredniczarny", ...}) = 0
statfs64("/sys/fs/selinux", 84, 0xbfd5b68c) = -1 ENOENT (No such file or
directory)
statfs64("/selinux", 84, {f_type="EXT2_SUPER_MAGIC", f_bsize=4096,
f_blocks=292166, f_bfree=82927, f_bavail=68284, f_files=73296, f_ffree=53355,
f_fsid={-1277882199, 568200562}, f_namelen=255, f_frsize=4096}) = 0
brk(0)                                  = 0x82b6000
brk(0x82d7000)                          = 0x82d7000
open("/proc/filesystems", 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) =
0xb7710000
read(3, "nodev\tsysfs\nnodev\trootfs\nnodev\tb"..., 1024) = 410
read(3, "", 1024)                       = 0
close(3)                                = 0
munmap(0xb7710000, 4096)                = 0
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1534656, ...}) = 0
mmap2(NULL, 1534656, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7378000
close(3)                                = 0
open("/boot/grub/device.map", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=64, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7710000
read(3, "(hd0)\t/dev/disk/by-id/ata-WDC_WD"..., 4096) = 64
stat64("/dev/disk/by-id/ata-WDC_WD1600BEVE-00UYT0_WD-WXA0AA9V2992",
{st_mode=S_IFBLK|S_ISVTX|0660, st_rdev=makedev(8, 0), ...}) = 0
lstat64("/dev", {st_mode=S_IFDIR|0755, st_size=3480, ...}) = 0
lstat64("/dev/disk", {st_mode=S_IFDIR|0755, st_size=120, ...}) = 0
lstat64("/dev/disk/by-id", {st_mode=S_IFDIR|0755, st_size=520, ...}) = 0
lstat64("/dev/disk/by-id/ata-WDC_WD1600BEVE-00UYT0_WD-WXA0AA9V2992",
{st_mode=S_IFLNK|0777, st_size=9, ...}) = 0
readlink("/dev/disk/by-id/ata-WDC_WD1600BEVE-00UYT0_WD-WXA0AA9V2992",
"../../sda", 4095) = 9
lstat64("/dev/sda", {st_mode=S_IFBLK|S_ISVTX|0660, st_rdev=makedev(8, 0), ...})
= 0
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb7710000, 4096)                = 0
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2570, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7710000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2570
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb7710000, 4096)                = 0
open("/usr/share/locale/pl_PL.UTF-8/LC_MESSAGES/grub.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/share/locale/pl_PL.utf8/LC_MESSAGES/grub.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/share/locale/pl_PL/LC_MESSAGES/grub.mo", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/share/locale/pl.UTF-8/LC_MESSAGES/grub.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/share/locale/pl.utf8/LC_MESSAGES/grub.mo", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/share/locale/pl/LC_MESSAGES/grub.mo", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=24016, ...}) = 0
mmap2(NULL, 24016, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb770b000
close(3)                                = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "Scanning for dmraid_nv RAID devi"..., 47Scanning for dmraid_nv RAID
devices on disk hd0) = 47
write(2, ".\n", 2.
)                      = 2
open("/dev/sda", O_RDONLY|O_LARGEFILE)  = 3
fstat64(3, {st_mode=S_IFBLK|S_ISVTX|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(3, BLKGETSIZE64, 0xbfd5b4f0)      = 0
ioctl(3, BLKSSZGET, 0xbfd5b4fc)         = 0
close(3)                                = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "the size of hd0 is 312581808", 28the size of hd0 is 312581808) = 28
write(2, ".\n", 2.
)                      = 2
gettimeofday({1337456425, 200778}, NULL) = 0
open("/dev/sda", O_RDONLY|O_SYNC|O_LARGEFILE|0x100000) = 3
_llseek(3, 160041884672, [160041884672], SEEK_SET) = 0
read(3,
"\316\236\241\22\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"...,
512) = 512
close(3)                                = 0
gettimeofday({1337456425, 203788}, NULL) = 0
open("/dev/sda", O_RDONLY|O_LARGEFILE)  = 3
fstat64(3, {st_mode=S_IFBLK|S_ISVTX|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(3, BLKGETSIZE64, 0xbfd5b570)      = 0
ioctl(3, BLKSSZGET, 0xbfd5b57c)         = 0
close(3)                                = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "the size of hd0 is 312581808", 28the size of hd0 is 312581808) = 28
write(2, ".\n", 2.
)                      = 2
gettimeofday({1337456425, 204394}, NULL) = 0
gettimeofday({1337456425, 204444}, NULL) = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "scanning hd0 for LVM", 20scanning hd0 for LVM)    = 20
write(2, ".\n", 2.
)                      = 2
open("/dev/sda", O_RDONLY|O_LARGEFILE)  = 3
fstat64(3, {st_mode=S_IFBLK|S_ISVTX|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(3, BLKGETSIZE64, 0xbfd5b280)      = 0
ioctl(3, BLKSSZGET, 0xbfd5b28c)         = 0
close(3)                                = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "the size of hd0 is 312581808", 28the size of hd0 is 312581808) = 28
write(2, ".\n", 2.
)                      = 2
gettimeofday({1337456425, 205406}, NULL) = 0
open("/dev/sda", O_RDONLY|O_SYNC|O_LARGEFILE|0x100000) = 3
_llseek(3, 0, [0], SEEK_SET)            = 0
read(3,
"\353c\220\20\216\320\274\0\260\270\0\0\216\330\216\300\373\276\0|\277\0\6\271\0\2\363\244\352!\6\0"...,
512) = 512
read(3,
"RV\276\33\201\3509\1^\277\364\201f\213-\203}\10\0\17\204\342\0\200|\377\0tFf\213\35"...,
32256) = 32256
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "no LVM signature found", 22no LVM signature found)  = 22
write(2, ".\n", 2.
)                      = 2
close(3)                                = 0
gettimeofday({1337456425, 206138}, NULL) = 0
open("/dev/sda", O_RDONLY|O_LARGEFILE)  = 3
fstat64(3, {st_mode=S_IFBLK|S_ISVTX|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(3, BLKGETSIZE64, 0xbfd5b550)      = 0
ioctl(3, BLKSSZGET, 0xbfd5b55c)         = 0
close(3)                                = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "the size of hd0 is 312581808", 28the size of hd0 is 312581808) = 28
write(2, ".\n", 2.
)                      = 2
gettimeofday({1337456425, 206722}, NULL) = 0
gettimeofday({1337456425, 206771}, NULL) = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "Scanning for mdraid09 RAID devic"..., 46Scanning for mdraid09 RAID
devices on disk hd0) = 46
write(2, ".\n", 2.
)                      = 2
open("/dev/sda", O_RDONLY|O_LARGEFILE)  = 3
fstat64(3, {st_mode=S_IFBLK|S_ISVTX|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(3, BLKGETSIZE64, 0xbfd5b4f0)      = 0
ioctl(3, BLKSSZGET, 0xbfd5b4fc)         = 0
close(3)                                = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "the size of hd0 is 312581808", 28the size of hd0 is 312581808) = 28
write(2, ".\n", 2.
)                      = 2
gettimeofday({1337456425, 208299}, NULL) = 0
open("/dev/sda", O_RDONLY|O_SYNC|O_LARGEFILE|0x100000) = 3
_llseek(3, 160041795584, [160041795584], SEEK_SET) = 0
read(3, "
\236\241\22\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"..., 32768)
= 32768
brk(0x82f9000)                          = 0x82f9000
close(3)                                = 0
gettimeofday({1337456425, 208775}, NULL) = 0
open("/dev/sda", O_RDONLY|O_LARGEFILE)  = 3
fstat64(3, {st_mode=S_IFBLK|S_ISVTX|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(3, BLKGETSIZE64, 0xbfd5b570)      = 0
ioctl(3, BLKSSZGET, 0xbfd5b57c)         = 0
close(3)                                = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "the size of hd0 is 312581808", 28the size of hd0 is 312581808) = 28
write(2, ".\n", 2.
)                      = 2
gettimeofday({1337456425, 209382}, NULL) = 0
gettimeofday({1337456425, 209431}, NULL) = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "Scanning for mdraid1x RAID devic"..., 46Scanning for mdraid1x RAID
devices on disk hd0) = 46
write(2, ".\n", 2.
)                      = 2
open("/dev/sda", O_RDONLY|O_LARGEFILE)  = 3
fstat64(3, {st_mode=S_IFBLK|S_ISVTX|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(3, BLKGETSIZE64, 0xbfd5b4f0)      = 0
ioctl(3, BLKSSZGET, 0xbfd5b4fc)         = 0
close(3)                                = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "the size of hd0 is 312581808", 28the size of hd0 is 312581808) = 28
write(2, ".\n", 2.
)                      = 2
gettimeofday({1337456425, 216306}, NULL) = 0
open("/dev/sda", O_RDONLY|O_SYNC|O_LARGEFILE|0x100000) = 3
_llseek(3, 160041877504, [160041877504], SEEK_SET) = 0
read(3,
"\300\236\241\22\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"...,
512) = 512
close(3)                                = 0
gettimeofday({1337456425, 216715}, NULL) = 0
open("/dev/sda", O_RDONLY|O_LARGEFILE)  = 3
fstat64(3, {st_mode=S_IFBLK|S_ISVTX|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(3, BLKGETSIZE64, 0xbfd5b570)      = 0
ioctl(3, BLKSSZGET, 0xbfd5b57c)         = 0
close(3)                                = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "the size of hd0 is 312581808", 28the size of hd0 is 312581808) = 28
write(2, ".\n", 2.
)                      = 2
gettimeofday({1337456425, 217358}, NULL) = 0
gettimeofday({1337456425, 217408}, NULL) = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "Scanning for mdraid09 RAID devic"..., 46Scanning for mdraid09 RAID
devices on disk hd0) = 46
write(2, ".\n", 2.
)                      = 2
open("/dev/sda", O_RDONLY|O_LARGEFILE)  = 3
fstat64(3, {st_mode=S_IFBLK|S_ISVTX|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(3, BLKGETSIZE64, 0xbfd5b500)      = 0
ioctl(3, BLKSSZGET, 0xbfd5b50c)         = 0
close(3)                                = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "the size of hd0 is 312581808", 28the size of hd0 is 312581808) = 28
write(2, ".\n", 2.
)                      = 2
gettimeofday({1337456425, 327117}, NULL) = 0
gettimeofday({1337456425, 327364}, NULL) = 0
open("/dev/sda", O_RDONLY|O_LARGEFILE)  = 3
fstat64(3, {st_mode=S_IFBLK|S_ISVTX|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(3, BLKGETSIZE64, 0xbfd5b580)      = 0
ioctl(3, BLKSSZGET, 0xbfd5b58c)         = 0
close(3)                                = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "the size of hd0 is 312581808", 28the size of hd0 is 312581808) = 28
write(2, ".\n", 2.
)                      = 2
gettimeofday({1337456425, 329523}, NULL) = 0
stat64("/dev/.devfsd", 0xbfd5aed0)      = -1 ENOENT (No such file or directory)
open("/dev/sda1", O_RDONLY|O_LARGEFILE) = 3
close(3)                                = 0
uname({sys="Linux", node="sredniczarny", ...}) = 0
stat64("/dev/mapper/control", {st_mode=S_IFCHR|0600, st_rdev=makedev(10, 236),
....}) = 0
open("/dev/mapper/control", O_RDWR|O_LARGEFILE) = 3
open("/proc/devices", O_RDONLY|O_LARGEFILE) = 4
fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb770a000
read(4, "Character devices:\n  1 mem\n  4 /"..., 1024) = 502
close(4)                                = 0
munmap(0xb770a000, 4096)                = 0
ioctl(3, DM_VERSION, 0x82e0f28)         = 0
stat64("/dev/sda1", {st_mode=S_IFBLK|S_ISVTX|0660, st_rdev=makedev(8, 1), ...})
= 0
open("/dev/sda1", O_RDONLY|O_LARGEFILE) = 4
ioctl(4, 0x301, 0xbfd58e50)             = 0
close(4)                                = 0
open("/dev/sda1", O_RDONLY|O_SYNC|O_LARGEFILE|0x100000) = 4
_llseek(4, 512, [512], 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"...,
32768) = 32768
close(4)                                = 0
open("/dev/sda", O_RDONLY|O_SYNC|O_LARGEFILE|0x100000) = 4
_llseek(4, 641564672, [641564672], 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"...,
7168) = 7168
open("/dev/sda1", O_RDONLY|O_LARGEFILE) = 5
close(5)                                = 0
stat64("/dev/sda1", {st_mode=S_IFBLK|S_ISVTX|0660, st_rdev=makedev(8, 1), ...})
= 0
open("/dev/sda1", O_RDONLY|O_LARGEFILE) = 5
ioctl(5, 0x301, 0xbfd58e50)             = 0
close(5)                                = 0
open("/dev/sda2", O_RDONLY|O_LARGEFILE) = 5
close(5)                                = 0
stat64("/dev/sda2", {st_mode=S_IFBLK|S_ISVTX|0660, st_rdev=makedev(8, 2), ...})
= 0
open("/dev/sda2", O_RDONLY|O_LARGEFILE) = 5
ioctl(5, 0x301, 0xbfd58e50)             = 0
close(5)                                = 0
close(4)                                = 0
open("/dev/sda2", O_RDONLY|O_SYNC|O_LARGEFILE|0x100000) = 4
_llseek(4, 0, [0], SEEK_SET)            = 0
read(4, "LUKS\272\276\0\1aes\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
25600) = 25600
close(4)                                = 0
gettimeofday({1337456425, 339650}, NULL) = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "Scanning for mdraid09 RAID devic"..., 53Scanning for mdraid09 RAID
devices on disk hd0,msdos2) = 53
write(2, ".\n", 2.
)                      = 2
open("/dev/sda", O_RDONLY|O_LARGEFILE)  = 4
fstat64(4, {st_mode=S_IFBLK|S_ISVTX|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(4, BLKGETSIZE64, 0xbfd5b500)      = 0
ioctl(4, BLKSSZGET, 0xbfd5b50c)         = 0
close(4)                                = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "the size of hd0 is 312581808", 28the size of hd0 is 312581808) = 28
write(2, ".\n", 2.
)                      = 2
gettimeofday({1337456425, 340546}, NULL) = 0
open("/dev/sda2", O_RDONLY|O_SYNC|O_LARGEFILE|0x100000) = 4
_llseek(4, 159397569536, [159397569536], SEEK_SET) = 0
read(4, "G#\264\210\325\374K\30J~\272\312
\346F\24\23\t\310.Ei\225\337\371\tB\372Z2\263\n"..., 32768) = 32768
brk(0x8321000)                          = 0x8321000
close(4)                                = 0
gettimeofday({1337456425, 341142}, NULL) = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "Scanning for mdraid09 RAID devic"..., 53Scanning for mdraid09 RAID
devices on disk hd0,msdos1) = 53
write(2, ".\n", 2.
)                      = 2
open("/dev/sda", O_RDONLY|O_LARGEFILE)  = 4
fstat64(4, {st_mode=S_IFBLK|S_ISVTX|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(4, BLKGETSIZE64, 0xbfd5b500)      = 0
ioctl(4, BLKSSZGET, 0xbfd5b50c)         = 0
close(4)                                = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "the size of hd0 is 312581808", 28the size of hd0 is 312581808) = 28
write(2, ".\n", 2.
)                      = 2
gettimeofday({1337456425, 342813}, NULL) = 0
open("/dev/sda1", O_RDONLY|O_SYNC|O_LARGEFILE|0x100000) = 4
_llseek(4, 641434112, [641434112], 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"...,
32768) = 32768
_llseek(4, 641466880, [641466880], 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"...,
32768) = 32768
close(4)                                = 0
gettimeofday({1337456425, 344072}, NULL) = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "Scanning for mdraid1x RAID devic"..., 46Scanning for mdraid1x RAID
devices on disk hd0) = 46
write(2, ".\n", 2.
)                      = 2
open("/dev/sda", O_RDONLY|O_LARGEFILE)  = 4
fstat64(4, {st_mode=S_IFBLK|S_ISVTX|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(4, BLKGETSIZE64, 0xbfd5b500)      = 0
ioctl(4, BLKSSZGET, 0xbfd5b50c)         = 0
close(4)                                = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "the size of hd0 is 312581808", 28the size of hd0 is 312581808) = 28
write(2, ".\n", 2.
)                      = 2
gettimeofday({1337456425, 345781}, NULL) = 0
open("/dev/sda", O_RDONLY|O_SYNC|O_LARGEFILE|0x100000) = 4
_llseek(4, 160041877504, [160041877504], SEEK_SET) = 0
read(4,
"\300\236\241\22\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"...,
512) = 512
close(4)                                = 0
gettimeofday({1337456425, 346098}, NULL) = 0
open("/dev/sda", O_RDONLY|O_LARGEFILE)  = 4
fstat64(4, {st_mode=S_IFBLK|S_ISVTX|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(4, BLKGETSIZE64, 0xbfd5b580)      = 0
ioctl(4, BLKSSZGET, 0xbfd5b58c)         = 0
close(4)                                = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "the size of hd0 is 312581808", 28the size of hd0 is 312581808) = 28
write(2, ".\n", 2.
)                      = 2
gettimeofday({1337456425, 346703}, NULL) = 0
gettimeofday({1337456425, 346856}, NULL) = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "Scanning for mdraid1x RAID devic"..., 53Scanning for mdraid1x RAID
devices on disk hd0,msdos2) = 53
write(2, ".\n", 2.
)                      = 2
open("/dev/sda", O_RDONLY|O_LARGEFILE)  = 4
fstat64(4, {st_mode=S_IFBLK|S_ISVTX|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(4, BLKGETSIZE64, 0xbfd5b500)      = 0
ioctl(4, BLKSSZGET, 0xbfd5b50c)         = 0
close(4)                                = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "the size of hd0 is 312581808", 28the size of hd0 is 312581808) = 28
write(2, ".\n", 2.
)                      = 2
gettimeofday({1337456425, 347710}, NULL) = 0
open("/dev/sda2", O_RDONLY|O_SYNC|O_LARGEFILE|0x100000) = 4
_llseek(4, 159397667840, [159397667840], SEEK_SET) = 0
read(4,
"\27\2427\330\3713\352\233\3O\374\236y\215\341\31\260_\2562\305\200\243\243\ni\352yQ\263C7"...,
32768) = 32768
close(4)                                = 0
gettimeofday({1337456425, 348144}, NULL) = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "Scanning for mdraid1x RAID devic"..., 53Scanning for mdraid1x RAID
devices on disk hd0,msdos1) = 53
write(2, ".\n", 2.
)                      = 2
open("/dev/sda", O_RDONLY|O_LARGEFILE)  = 4
fstat64(4, {st_mode=S_IFBLK|S_ISVTX|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(4, BLKGETSIZE64, 0xbfd5b500)      = 0
ioctl(4, BLKSSZGET, 0xbfd5b50c)         = 0
close(4)                                = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "the size of hd0 is 312581808", 28the size of hd0 is 312581808) = 28
write(2, ".\n", 2.
)                      = 2
gettimeofday({1337456425, 353668}, NULL) = 0
open("/dev/sda1", O_RDONLY|O_SYNC|O_LARGEFILE|0x100000) = 4
_llseek(4, 641499648, [641499648], 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"...,
32768) = 32768
brk(0x8349000)                          = 0x8349000
close(4)                                = 0
gettimeofday({1337456425, 354121}, NULL) = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "scanning hd0 for LVM", 20scanning hd0 for LVM)    = 20
write(2, ".\n", 2.
)                      = 2
open("/dev/sda", O_RDONLY|O_LARGEFILE)  = 4
fstat64(4, {st_mode=S_IFBLK|S_ISVTX|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(4, BLKGETSIZE64, 0xbfd5b290)      = 0
ioctl(4, BLKSSZGET, 0xbfd5b29c)         = 0
close(4)                                = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "the size of hd0 is 312581808", 28the size of hd0 is 312581808) = 28
write(2, ".\n", 2.
)                      = 2
gettimeofday({1337456425, 355059}, NULL) = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "no LVM signature found", 22no LVM signature found)  = 22
write(2, ".\n", 2.
)                      = 2
gettimeofday({1337456425, 355347}, NULL) = 0
open("/dev/sda", O_RDONLY|O_LARGEFILE)  = 4
fstat64(4, {st_mode=S_IFBLK|S_ISVTX|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(4, BLKGETSIZE64, 0xbfd5b560)      = 0
ioctl(4, BLKSSZGET, 0xbfd5b56c)         = 0
close(4)                                = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "the size of hd0 is 312581808", 28the size of hd0 is 312581808) = 28
write(2, ".\n", 2.
)                      = 2
gettimeofday({1337456425, 355932}, NULL) = 0
gettimeofday({1337456425, 356081}, NULL) = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "scanning hd0,msdos2 for LVM", 27scanning hd0,msdos2 for LVM) = 27
write(2, ".\n", 2.
)                      = 2
open("/dev/sda", O_RDONLY|O_LARGEFILE)  = 4
fstat64(4, {st_mode=S_IFBLK|S_ISVTX|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(4, BLKGETSIZE64, 0xbfd5b290)      = 0
ioctl(4, BLKSSZGET, 0xbfd5b29c)         = 0
close(4)                                = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "the size of hd0 is 312581808", 28the size of hd0 is 312581808) = 28
write(2, ".\n", 2.
)                      = 2
gettimeofday({1337456425, 361026}, NULL) = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "no LVM signature found", 22no LVM signature found)  = 22
write(2, ".\n", 2.
)                      = 2
gettimeofday({1337456425, 361645}, NULL) = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "scanning hd0,msdos1 for LVM", 27scanning hd0,msdos1 for LVM) = 27
write(2, ".\n", 2.
)                      = 2
open("/dev/sda", O_RDONLY|O_LARGEFILE)  = 4
fstat64(4, {st_mode=S_IFBLK|S_ISVTX|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(4, BLKGETSIZE64, 0xbfd5b290)      = 0
ioctl(4, BLKSSZGET, 0xbfd5b29c)         = 0
close(4)                                = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "the size of hd0 is 312581808", 28the size of hd0 is 312581808) = 28
write(2, ".\n", 2.
)                      = 2
gettimeofday({1337456425, 363156}, NULL) = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "no LVM signature found", 22no LVM signature found)  = 22
write(2, ".\n", 2.
)                      = 2
gettimeofday({1337456425, 363443}, NULL) = 0
stat64("/dev/mapper/sredniczarny-root", {st_mode=S_IFBLK|S_ISVTX|0660,
st_rdev=makedev(253, 1), ...}) = 0
stat64("/dev/mapper/sredniczarny-root", {st_mode=S_IFBLK|S_ISVTX|0660,
st_rdev=makedev(253, 1), ...}) = 0
lstat64("/dev", {st_mode=S_IFDIR|0755, st_size=3480, ...}) = 0
lstat64("/dev/mapper", {st_mode=S_IFDIR|0755, st_size=200, ...}) = 0
lstat64("/dev/mapper/sredniczarny-root", {st_mode=S_IFLNK|0777, st_size=7,
....}) = 0
readlink("/dev/mapper/sredniczarny-root", "../dm-1"..., 4095) = 7
lstat64("/dev/dm-1", {st_mode=S_IFBLK|S_ISVTX|0660, st_rdev=makedev(253, 1),
....}) = 0
ioctl(3, DM_TABLE_DEPS, 0x82da8c8)      = 0
ioctl(3, DM_TABLE_DEPS, 0x8310e28)      = 0
stat64("/dev/mapper/sredniczarny-root", {st_mode=S_IFBLK|S_ISVTX|0660,
st_rdev=makedev(253, 1), ...}) = 0
ioctl(3, DM_TABLE_DEPS, 0x82d98c0)      = 0
ioctl(3, DM_TABLE_DEPS, 0x8310e28)      = 0
write(2, "grub-probe: info:", 17grub-probe: info:)       = 17
write(2, " ", 1 )                        = 1
write(2, "opening sredniczarny-root", 25opening sredniczarny-root) = 25
write(2, ".\n", 2.
)                      = 2
gettimeofday({1337456425, 365111}, NULL) = 0
write(2, "grub-probe: error:", 18grub-probe: error:)      = 18
write(2, " ", 1 )                        = 1
write(2, "no such disk", 12no such disk)            = 12
write(2, ".\n", 2.
)                      = 2
close(3)                                = 0
exit_group(1)                           = ?
sredniczarny:~#









And here the same (just last lines) without --verbose:

....
gettimeofday({1337456825, 659602}, NULL) = 0
stat64("/dev/mapper/sredniczarny-root", {st_mode=S_IFBLK|S_ISVTX|0660,
st_rdev=makedev(253, 1), ...}) = 0
stat64("/dev/mapper/sredniczarny-root", {st_mode=S_IFBLK|S_ISVTX|0660,
st_rdev=makedev(253, 1), ...}) = 0
lstat64("/dev", {st_mode=S_IFDIR|0755, st_size=3480, ...}) = 0
lstat64("/dev/mapper", {st_mode=S_IFDIR|0755, st_size=200, ...}) = 0
lstat64("/dev/mapper/sredniczarny-root", {st_mode=S_IFLNK|0777, st_size=7,
....}) = 0
readlink("/dev/mapper/sredniczarny-root", "../dm-1"..., 4095) = 7
lstat64("/dev/dm-1", {st_mode=S_IFBLK|S_ISVTX|0660, st_rdev=makedev(253, 1),
....}) = 0
ioctl(3, DM_TABLE_DEPS, 0x91758c0)      = 0
ioctl(3, DM_TABLE_DEPS, 0x91abe20)      = 0
stat64("/dev/mapper/sredniczarny-root", {st_mode=S_IFBLK|S_ISVTX|0660,
st_rdev=makedev(253, 1), ...}) = 0
ioctl(3, DM_TABLE_DEPS, 0x91748b8)      = 0
ioctl(3, DM_TABLE_DEPS, 0x91abe20)      = 0
gettimeofday({1337456825, 665481}, NULL) = 0
write(2, "grub-probe: error:", 18grub-probe: error:)      = 18
write(2, " ", 1 )                        = 1
write(2, "no such disk", 12no such disk)            = 12
write(2, ".\n", 2.
)                      = 2
close(3)                                = 0
exit_group(1)                           = ?
sredniczarny:~#




Why grub-probe fails to follow link? Why it probes /dev/sda and /dev/sda1 when
it is not asked for it? Why this behaviour changed (it is a regression, it was
working without error)?

This is not critical error, because I can still boot system after update-grub,
because this is what is generated in case of this error:

menuentry 'Debian GNU/Linux, za pomocą systemu Linux 3.4.0-rc7-t43-devel-
smp-00106-gb1dab2f-dirty' --class debian --class gnu-linux --class gnu --class
os {
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set=root 112f7462-0a8b-
4a93-b9e9-03bf35526c98
        echo    'Wczytywanie systemu Linux 3.4.0-rc7-t43-devel-smp-00106
-gb1dab2f-dirty...'
        linux   /vmlinuz-3.4.0-rc7-t43-devel-smp-00106-gb1dab2f-dirty
root=/dev/mapper/sredniczarny-root ro  resume=/dev/mapper/sredniczarny-swap_1
thinkpad_acpi.fan_control=1
        echo    'Wczytywanie początkowego dysku RAM...'
        initrd  /initrd.img-3.4.0-rc7-t43-devel-smp-00106-gb1dab2f-dirty
}


And there is also no problem with boot partition:

sredniczarny:~# grub-probe --target=fs_uuid /boot
112f7462-0a8b-4a93-b9e9-03bf35526c98
sredniczarny:~# grub-probe --target=fs /boot
ext2

So, both kernel and initrd can be loaded without problem, also root=/dev/mapper
/sredniczarny-root is actabale, because initrd is able to properly find this
device and open encrypted device + LVM. However, ability to have UUID there
would be best option, and currently it is not automated due this symlink
releated bug.



It may be releated to the fact that grub-probe is trying to also handle
multiple devices setup, and want to know all devices used by it. However, I do
not understand why output would be a different than just following link:



I also doesn't understand why grub-probe even touches /dev/sda , sda1 and sda2!
It was asked explicitly for /dev/something other (like /dev/dm-1), and it still
is the last thing it does. Even more, /dev/sda sda1 and sda2 are opened
multiple times according to strace.


Additional info

sredniczarny:~# cat /proc/mounts  | awk '$2 ~ /^\/$/'
rootfs / rootfs rw 0 0
/dev/mapper/sredniczarny-root / ext4 rw,relatime,nodelalloc 0 0


sredniczarny:~# cat /etc/fstab  | awk '$2 ~ /^\/$/'
/dev/mapper/sredniczarny-root /               ext4    errors=remount-
ro,barrier=1,user_xattr,relatime,acl,commit=120 0       1


Probably converting to UUID based entries here will solve a problem, but still
I do not see why grub-probe fails with simple request when symlinks (and I find
them more human readable and writable than UUIDs) are presented.

Thanks,
Witek



-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.4.0-rc6-t43-prod2-00020-g789505b-dirty (SMP w/1 CPU core)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to pl_PL.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-common depends on:
ii  gettext-base        0.18.1.1-8
ii  libc6               2.13-32
ii  libdevmapper1.02.1  2:1.02.74-3
ii  libfreetype6        2.4.9-1
ii  libfuse2            2.9.0-1
ii  zlib1g              1:1.2.7.dfsg-1

Versions of packages grub-common recommends:
ii  os-prober  1.53

Versions of packages grub-common suggests:
ii  desktop-base   6.0.7
ii  grub-emu       <none>
ii  multiboot-doc  <none>
ii  xorriso        1.2.2-1

-- no debconf information





More information about the Pkg-grub-devel mailing list