grub-probe: error: no mapping exists (with encrypted root disk)

Bug #484798 reported by Mario Verbelen on 2009-11-18
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: grub2

The grub-probe give's a failure with encrypted disk
/boot is not encrypted so the boot is fine, but wheb you want extra stuff like gfxmode it needs files from /usr...

And that disk is encrypted

So I think that I need to move the needed files to /boot and change the grub.d scripts as work around?
coz even when fixing the grub-probe, grub will have a problem at the boot coz encrypted root filesystem

The needed file in this case was /usr/share/grub/unicode.pf2

below a trace for information
==========================
15:23:10|root@mario:/etc/grub.d 0 # strace /usr/sbin/grub-probe -t fs /usr/share/grub/unicode.pf2
execve("/usr/sbin/grub-probe", ["/usr/sbin/grub-probe", "-t", "fs", "/usr/share/grub/unicode.pf2"], [/* 22 vars */]) = 0
brk(0) = 0x823f000
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) = 0xf71000
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=56857, ...}) = 0
mmap2(NULL, 56857, PROT_READ, MAP_PRIVATE, 3, 0) = 0x3d5000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/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\260l\1\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1319364, ...}) = 0
mmap2(NULL, 1325416, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xbf1000
mmap2(0xd2f000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13e) = 0xd2f000
mmap2(0xd32000, 10600, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xd32000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x110000
set_thread_area({entry_number:-1 -> 6, base_addr:0x1108d0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xd2f000, 8192, PROT_READ) = 0
mprotect(0x806b000, 4096, PROT_READ) = 0
mprotect(0x6b8000, 4096, PROT_READ) = 0
munmap(0x3d5000, 56857) = 0
brk(0) = 0x823f000
brk(0x8260000) = 0x8260000
open("/boot/grub/device.map", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=15, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf41000
read(3, "(hd0)\t/dev/sda\n", 1024) = 15
stat64("/dev/sda", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 0), ...}) = 0
lstat64("/dev", {st_mode=S_IFDIR|0755, st_size=3540, ...}) = 0
lstat64("/dev/sda", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 0), ...}) = 0
read(3, "", 1024) = 0
close(3) = 0
munmap(0xf41000, 4096) = 0
open("/dev/sda", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(3, BLKGETSIZE64, 0xbfa81268) = 0
close(3) = 0
gettimeofday({1258554190, 750397}, NULL) = 0
open("/dev/sda", O_RDONLY|O_SYNC|O_LARGEFILE) = 3
ioctl(3, BLKFLSBUF, 0) = 0
_llseek(3, 8589869056, [8589869056], SEEK_SET) = 0
read(3, "\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"..., 4096) = 4096
close(3) = 0
gettimeofday({1258554190, 751896}, NULL) = 0
open("/dev/sda", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(3, BLKGETSIZE64, 0xbfa81358) = 0
close(3) = 0
gettimeofday({1258554190, 752105}, NULL) = 0
open("/dev/sda", O_RDONLY|O_SYNC|O_LARGEFILE) = 3
ioctl(3, BLKFLSBUF, 0) = 0
_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"..., 3584) = 3584
close(3) = 0
gettimeofday({1258554190, 763485}, NULL) = 0
open("/dev/sda", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(3, BLKGETSIZE64, 0xbfa81268) = 0
close(3) = 0
gettimeofday({1258554190, 763741}, NULL) = 0
stat64("/dev/.devfsd", 0xbfa7e154) = -1 ENOENT (No such file or directory)
open("/dev/sda1", O_RDONLY|O_LARGEFILE) = 3
ioctl(3, 0x301, 0xbfa7e1b4) = 0
close(3) = 0
open("/dev/sda2", O_RDONLY|O_LARGEFILE) = 3
ioctl(3, 0x301, 0xbfa7e1b4) = 0
close(3) = 0
open("/dev/sda2", O_RDONLY|O_SYNC|O_LARGEFILE) = 3
ioctl(3, BLKFLSBUF, 0) = 0
_llseek(3, 8332112384, [8332112384], SEEK_SET) = 0
read(3, "\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"..., 4096) = 4096
close(3) = 0
open("/dev/sda1", O_RDONLY|O_LARGEFILE) = 3
ioctl(3, 0x301, 0xbfa7e1b4) = 0
close(3) = 0
open("/dev/sda2", O_RDONLY|O_LARGEFILE) = 3
ioctl(3, 0x301, 0xbfa7e1b4) = 0
close(3) = 0
open("/dev/sda2", O_RDONLY|O_SYNC|O_LARGEFILE) = 3
ioctl(3, BLKFLSBUF, 0) = 0
_llseek(3, 8332116480, [8332116480], SEEK_SET) = 0
read(3, "\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"..., 4096) = 4096
close(3) = 0
gettimeofday({1258554190, 765876}, NULL) = 0
open("/dev/sda", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(3, BLKGETSIZE64, 0xbfa81268) = 0
close(3) = 0
gettimeofday({1258554190, 766205}, NULL) = 0
open("/dev/sda1", O_RDONLY|O_LARGEFILE) = 3
ioctl(3, 0x301, 0xbfa7e1b4) = 0
close(3) = 0
open("/dev/sda1", O_RDONLY|O_SYNC|O_LARGEFILE) = 3
ioctl(3, BLKFLSBUF, 0) = 0
_llseek(3, 254865920, [254865920], SEEK_SET) = 0
read(3, "\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"..., 4096) = 4096
close(3) = 0
open("/dev/sda1", O_RDONLY|O_LARGEFILE) = 3
ioctl(3, 0x301, 0xbfa7e1b4) = 0
close(3) = 0
open("/dev/sda1", O_RDONLY|O_SYNC|O_LARGEFILE) = 3
ioctl(3, BLKFLSBUF, 0) = 0
_llseek(3, 254870016, [254870016], SEEK_SET) = 0
read(3, "\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"..., 4096) = 4096
close(3) = 0
gettimeofday({1258554190, 768649}, NULL) = 0
open("/dev/sda", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(3, BLKGETSIZE64, 0xbfa81078) = 0
close(3) = 0
gettimeofday({1258554190, 768977}, NULL) = 0
gettimeofday({1258554190, 769044}, NULL) = 0
open("/dev/sda", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(3, BLKGETSIZE64, 0xbfa81348) = 0
close(3) = 0
gettimeofday({1258554190, 769367}, NULL) = 0
gettimeofday({1258554190, 769438}, NULL) = 0
open("/dev/sda", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(3, BLKGETSIZE64, 0xbfa81078) = 0
close(3) = 0
gettimeofday({1258554190, 769772}, NULL) = 0
open("/dev/sda1", O_RDONLY|O_LARGEFILE) = 3
ioctl(3, 0x301, 0xbfa7f014) = 0
close(3) = 0
open("/dev/sda2", O_RDONLY|O_LARGEFILE) = 3
ioctl(3, 0x301, 0xbfa7f014) = 0
close(3) = 0
open("/dev/sda2", O_RDONLY|O_SYNC|O_LARGEFILE) = 3
ioctl(3, BLKFLSBUF, 0) = 0
_llseek(3, 18446744073709548032, 0xbfa7ef40, SEEK_SET) = -1 EINVAL (Invalid argument)
close(3) = 0
open("/dev/sda1", O_RDONLY|O_LARGEFILE) = 3
ioctl(3, 0x301, 0xbfa7f014) = 0
close(3) = 0
open("/dev/sda2", O_RDONLY|O_LARGEFILE) = 3
ioctl(3, 0x301, 0xbfa7f014) = 0
close(3) = 0
open("/dev/sda2", O_RDONLY|O_SYNC|O_LARGEFILE) = 3
ioctl(3, BLKFLSBUF, 0) = 0
_llseek(3, 0, [0], SEEK_SET) = 0
read(3, "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"..., 512) = 512
close(3) = 0
open("/dev/sda1", O_RDONLY|O_LARGEFILE) = 3
ioctl(3, 0x301, 0xbfa7f014) = 0
close(3) = 0
open("/dev/sda2", O_RDONLY|O_LARGEFILE) = 3
ioctl(3, 0x301, 0xbfa7f014) = 0
close(3) = 0
open("/dev/sda2", O_RDONLY|O_SYNC|O_LARGEFILE) = 3
ioctl(3, BLKFLSBUF, 0) = 0
_llseek(3, 512, [512], SEEK_SET) = 0
read(3, "\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\6\10\0\0\17\240"..., 4096) = 4096
close(3) = 0
gettimeofday({1258554190, 814983}, NULL) = 0
open("/dev/sda", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 0), ...}) = 0
ioctl(3, BLKGETSIZE64, 0xbfa81078) = 0
close(3) = 0
gettimeofday({1258554190, 815812}, NULL) = 0
open("/dev/sda1", O_RDONLY|O_LARGEFILE) = 3
ioctl(3, 0x301, 0xbfa7f014) = 0
close(3) = 0
open("/dev/sda1", O_RDONLY|O_SYNC|O_LARGEFILE) = 3
ioctl(3, BLKFLSBUF, 0) = 0
_llseek(3, 18446744073709548032, 0xbfa7ef40, SEEK_SET) = -1 EINVAL (Invalid argument)
close(3) = 0
open("/dev/sda1", O_RDONLY|O_LARGEFILE) = 3
ioctl(3, 0x301, 0xbfa7f014) = 0
close(3) = 0
open("/dev/sda1", O_RDONLY|O_SYNC|O_LARGEFILE) = 3
ioctl(3, BLKFLSBUF, 0) = 0
_llseek(3, 0, [0], SEEK_SET) = 0
read(3, "\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"..., 512) = 512
close(3) = 0
open("/dev/sda1", O_RDONLY|O_LARGEFILE) = 3
ioctl(3, 0x301, 0xbfa7f014) = 0
close(3) = 0
open("/dev/sda1", O_RDONLY|O_SYNC|O_LARGEFILE) = 3
ioctl(3, BLKFLSBUF, 0) = 0
_llseek(3, 512, [512], SEEK_SET) = 0
read(3, "\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"..., 4096) = 4096
close(3) = 0
gettimeofday({1258554190, 829834}, NULL) = 0
stat64("/usr/share/grub/unicode.pf2", {st_mode=S_IFREG|0644, st_size=1716019, ...}) = 0
open("/dev", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 3
fcntl64(3, F_GETFD) = 0x1 (flags FD_CLOEXEC)
getcwd(0x823f068, 10) = -1 ERANGE (Numerical result out of range)
getcwd("/etc/grub.d", 20) = 12
chdir("/dev") = 0
getdents64(3, /* 177 entries */, 32768) = 5184
lstat64("dri", {st_mode=S_IFDIR|0755, st_size=60, ...}) = 0
open("dri", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 4
getcwd("/dev", 10) = 5
chdir("dri") = 0
getdents64(4, /* 3 entries */, 32768) = 80
lstat64("card0", {st_mode=S_IFCHR|0660, st_rdev=makedev(226, 0), ...}) = 0
getdents64(4, /* 0 entries */, 32768) = 0
chdir("/dev") = 0
close(4) = 0
lstat64("vcs7", {st_mode=S_IFCHR|0660, st_rdev=makedev(7, 7), ...}) = 0
lstat64("vcsa7", {st_mode=S_IFCHR|0660, st_rdev=makedev(7, 135), ...}) = 0
lstat64("log", {st_mode=S_IFSOCK|0666, st_size=0, ...}) = 0
lstat64("dvd", {st_mode=S_IFLNK|0777, st_size=3, ...}) = 0
lstat64("cdrom", {st_mode=S_IFLNK|0777, st_size=3, ...}) = 0
lstat64("vboxguest", {st_mode=S_IFCHR|0660, st_rdev=makedev(10, 55), ...}) = 0
lstat64("vboxuser", {st_mode=S_IFCHR|0666, st_rdev=makedev(10, 54), ...}) = 0
lstat64("sndstat", {st_mode=S_IFLNK|0777, st_size=24, ...}) = 0
lstat64("stdout", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
lstat64("fd", {st_mode=S_IFLNK|0777, st_size=13, ...}) = 0
lstat64("core", {st_mode=S_IFLNK|0777, st_size=11, ...}) = 0
lstat64("stderr", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
lstat64("shm", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=80, ...}) = 0
open("shm", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 4
getcwd("/dev", 10) = 5
chdir("shm") = 0
getdents64(4, /* 4 entries */, 32768) = 128
lstat64("pulse-shm-2503503253", {st_mode=S_IFREG|0400, st_size=67108904, ...}) = 0
lstat64("pulse-shm-1237137452", {st_mode=S_IFREG|0400, st_size=67108904, ...}) = 0
getdents64(4, /* 0 entries */, 32768) = 0
chdir("/dev") = 0
close(4) = 0
lstat64("stdin", {st_mode=S_IFLNK|0777, st_size=15, ...}) = 0
lstat64("net", {st_mode=S_IFDIR|0755, st_size=60, ...}) = 0
open("net", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 4
getcwd("/dev", 10) = 5
chdir("net") = 0
getdents64(4, /* 3 entries */, 32768) = 72
lstat64("tun", {st_mode=S_IFCHR|0600, st_rdev=makedev(10, 200), ...}) = 0
getdents64(4, /* 0 entries */, 32768) = 0
chdir("/dev") = 0
close(4) = 0
lstat64("pts", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
open("pts", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 4
getcwd("/dev", 10) = 5
chdir("pts") = 0
getdents64(4, /* 4 entries */, 32768) = 96
lstat64("0", {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
lstat64("ptmx", {st_mode=S_IFCHR, st_rdev=makedev(5, 2), ...}) = 0
getdents64(4, /* 0 entries */, 32768) = 0
chdir("/dev") = 0
close(4) = 0
lstat64("vg0", {st_mode=S_IFDIR|0700, st_size=80, ...}) = 0
open("vg0", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 4
getcwd("/dev", 10) = 5
chdir("vg0") = 0
getdents64(4, /* 4 entries */, 32768) = 96
lstat64("swap", {st_mode=S_IFLNK|0777, st_size=18, ...}) = 0
lstat64("root", {st_mode=S_IFLNK|0777, st_size=18, ...}) = 0
getdents64(4, /* 0 entries */, 32768) = 0
chdir("/dev") = 0
close(4) = 0
lstat64("vcs8", {st_mode=S_IFCHR|0660, st_rdev=makedev(7, 8), ...}) = 0
lstat64("vcsa8", {st_mode=S_IFCHR|0660, st_rdev=makedev(7, 136), ...}) = 0
lstat64("vcs6", {st_mode=S_IFCHR|0660, st_rdev=makedev(7, 6), ...}) = 0
lstat64("vcsa6", {st_mode=S_IFCHR|0660, st_rdev=makedev(7, 134), ...}) = 0
lstat64("vcs5", {st_mode=S_IFCHR|0660, st_rdev=makedev(7, 5), ...}) = 0
lstat64("vcsa5", {st_mode=S_IFCHR|0660, st_rdev=makedev(7, 133), ...}) = 0
lstat64("vcsa4", {st_mode=S_IFCHR|0660, st_rdev=makedev(7, 132), ...}) = 0
lstat64("vcs4", {st_mode=S_IFCHR|0660, st_rdev=makedev(7, 4), ...}) = 0
lstat64("vcsa3", {st_mode=S_IFCHR|0660, st_rdev=makedev(7, 131), ...}) = 0
lstat64("vcs3", {st_mode=S_IFCHR|0660, st_rdev=makedev(7, 3), ...}) = 0
lstat64("vcsa2", {st_mode=S_IFCHR|0660, st_rdev=makedev(7, 130), ...}) = 0
lstat64("vcs2", {st_mode=S_IFCHR|0660, st_rdev=makedev(7, 2), ...}) = 0
lstat64("sda2", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 2), ...}) = 0
lstat64("sda1", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 1), ...}) = 0
lstat64("ram13", {st_mode=S_IFBLK|0660, st_rdev=makedev(1, 13), ...}) = 0
lstat64("ram0", {st_mode=S_IFBLK|0660, st_rdev=makedev(1, 0), ...}) = 0
lstat64("ram1", {st_mode=S_IFBLK|0660, st_rdev=makedev(1, 1), ...}) = 0
lstat64("loop6", {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 6), ...}) = 0
lstat64("loop5", {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 5), ...}) = 0
lstat64("ram3", {st_mode=S_IFBLK|0660, st_rdev=makedev(1, 3), ...}) = 0
lstat64("loop4", {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 4), ...}) = 0
lstat64("ram8", {st_mode=S_IFBLK|0660, st_rdev=makedev(1, 8), ...}) = 0
lstat64("ram5", {st_mode=S_IFBLK|0660, st_rdev=makedev(1, 5), ...}) = 0
lstat64("sda", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 0), ...}) = 0
lstat64("ram9", {st_mode=S_IFBLK|0660, st_rdev=makedev(1, 9), ...}) = 0
lstat64("fd0", {st_mode=S_IFBLK|0660, st_rdev=makedev(2, 0), ...}) = 0
lstat64("loop3", {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 3), ...}) = 0
lstat64("ram2", {st_mode=S_IFBLK|0660, st_rdev=makedev(1, 2), ...}) = 0
lstat64("vcsa1", {st_mode=S_IFCHR|0660, st_rdev=makedev(7, 129), ...}) = 0
lstat64("vcsa", {st_mode=S_IFCHR|0660, st_rdev=makedev(7, 128), ...}) = 0
lstat64("tty58", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 58), ...}) = 0
lstat64("tty9", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 9), ...}) = 0
lstat64("usbmon0", {st_mode=S_IFCHR|0660, st_rdev=makedev(253, 0), ...}) = 0
lstat64("tty60", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 60), ...}) = 0
lstat64("tty61", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 61), ...}) = 0
lstat64("tty62", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 62), ...}) = 0
lstat64("tty63", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 63), ...}) = 0
lstat64("tty7", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 7), ...}) = 0
lstat64("tty8", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 8), ...}) = 0
lstat64("vcs", {st_mode=S_IFCHR|0660, st_rdev=makedev(7, 0), ...}) = 0
lstat64("tty56", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 56), ...}) = 0
lstat64("tty57", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 57), ...}) = 0
lstat64("ram11", {st_mode=S_IFBLK|0660, st_rdev=makedev(1, 11), ...}) = 0
lstat64("ram4", {st_mode=S_IFBLK|0660, st_rdev=makedev(1, 4), ...}) = 0
lstat64("ram7", {st_mode=S_IFBLK|0660, st_rdev=makedev(1, 7), ...}) = 0
lstat64("ram6", {st_mode=S_IFBLK|0660, st_rdev=makedev(1, 6), ...}) = 0
lstat64("tty59", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 59), ...}) = 0
lstat64("tty6", {st_mode=S_IFCHR|0600, st_rdev=makedev(4, 6), ...}) = 0
lstat64("vcs1", {st_mode=S_IFCHR|0660, st_rdev=makedev(7, 1), ...}) = 0
lstat64("ram15", {st_mode=S_IFBLK|0660, st_rdev=makedev(1, 15), ...}) = 0
lstat64("ram12", {st_mode=S_IFBLK|0660, st_rdev=makedev(1, 12), ...}) = 0
lstat64("tty20", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 20), ...}) = 0
lstat64("tty55", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 55), ...}) = 0
lstat64("tty54", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 54), ...}) = 0
lstat64("tty53", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 53), ...}) = 0
lstat64("tty52", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 52), ...}) = 0
lstat64("tty51", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 51), ...}) = 0
lstat64("tty50", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 50), ...}) = 0
lstat64("tty49", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 49), ...}) = 0
lstat64("tty44", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 44), ...}) = 0
lstat64("tty43", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 43), ...}) = 0
lstat64("tty42", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 42), ...}) = 0
lstat64("tty41", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 41), ...}) = 0
lstat64("tty4", {st_mode=S_IFCHR|0600, st_rdev=makedev(4, 4), ...}) = 0
lstat64("tty38", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 38), ...}) = 0
lstat64("tty37", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 37), ...}) = 0
lstat64("tty33", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 33), ...}) = 0
lstat64("tty3", {st_mode=S_IFCHR|0600, st_rdev=makedev(4, 3), ...}) = 0
lstat64("tty29", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 29), ...}) = 0
lstat64("tty28", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 28), ...}) = 0
lstat64("tty26", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 26), ...}) = 0
lstat64("tty25", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 25), ...}) = 0
lstat64("tty24", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 24), ...}) = 0
lstat64("tty23", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 23), ...}) = 0
lstat64("tty22", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 22), ...}) = 0
lstat64("tty21", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 21), ...}) = 0
lstat64("ram10", {st_mode=S_IFBLK|0660, st_rdev=makedev(1, 10), ...}) = 0
lstat64("tty5", {st_mode=S_IFCHR|0600, st_rdev=makedev(4, 5), ...}) = 0
lstat64("tty48", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 48), ...}) = 0
lstat64("tty47", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 47), ...}) = 0
lstat64("disk", {st_mode=S_IFDIR|0755, st_size=100, ...}) = 0
open("disk", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 4
getcwd("/dev", 10) = 5
chdir("disk") = 0
getdents64(4, /* 5 entries */, 32768) = 144
lstat64("by-uuid", {st_mode=S_IFDIR|0755, st_size=120, ...}) = 0
open("by-uuid", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 5
brk(0x8282000) = 0x8282000
getcwd("/dev/disk", 10) = 10
chdir("by-uuid") = 0
getdents64(5, /* 6 entries */, 32768) = 272
lstat64("c4e3c10f-2c45-4d03-8d86-5b4c4c811b7e", {st_mode=S_IFLNK|0777, st_size=21, ...}) = 0
lstat64("255f9f46-e31e-46d5-9a5b-06733be7ac4c", {st_mode=S_IFLNK|0777, st_size=21, ...}) = 0
lstat64("e18778c0-e8cc-4235-a61d-3a5147dc65ea", {st_mode=S_IFLNK|0777, st_size=10, ...}) = 0
lstat64("146a68fd-2076-4d3d-bba3-e6515f723bdf", {st_mode=S_IFLNK|0777, st_size=10, ...}) = 0
getdents64(5, /* 0 entries */, 32768) = 0
chdir("/dev/disk") = 0
brk(0x827a000) = 0x827a000
close(5) = 0
lstat64("by-id", {st_mode=S_IFDIR|0755, st_size=260, ...}) = 0
open("by-id", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 5
getcwd("/dev/disk", 10) = 10
chdir("by-id") = 0
getdents64(5, /* 13 entries */, 32768) = 760
lstat64("dm-uuid-LVM-zR5gtm3YsVl37bCWUrK1w0BI5qJMh387ScyK1XVNA4vzQsjxSh8AxgmH1TY22dSh", {st_mode=S_IFLNK|0777, st_size=21, ...}) = 0
lstat64("dm-name-vg0-swap", {st_mode=S_IFLNK|0777, st_size=21, ...}) = 0
lstat64("dm-uuid-LVM-zR5gtm3YsVl37bCWUrK1w0BI5qJMh387X8BhRgUeVdgVl24Zia7mI4HbpHRYoh4R", {st_mode=S_IFLNK|0777, st_size=21, ...}) = 0
lstat64("dm-name-vg0-root", {st_mode=S_IFLNK|0777, st_size=21, ...}) = 0
lstat64("dm-name-sda2_crypt", {st_mode=S_IFLNK|0777, st_size=23, ...}) = 0
lstat64("scsi-SATA_VBOX_HARDDISK_VB92c834a1-800cb554-part2", {st_mode=S_IFLNK|0777, st_size=10, ...}) = 0
lstat64("ata-VBOX_HARDDISK_VB92c834a1-800cb554-part2", {st_mode=S_IFLNK|0777, st_size=10, ...}) = 0
lstat64("scsi-SATA_VBOX_HARDDISK_VB92c834a1-800cb554-part1", {st_mode=S_IFLNK|0777, st_size=10, ...}) = 0
lstat64("ata-VBOX_HARDDISK_VB92c834a1-800cb554-part1", {st_mode=S_IFLNK|0777, st_size=10, ...}) = 0
lstat64("scsi-SATA_VBOX_HARDDISK_VB92c834a1-800cb554", {st_mode=S_IFLNK|0777, st_size=9, ...}) = 0
lstat64("ata-VBOX_HARDDISK_VB92c834a1-800cb554", {st_mode=S_IFLNK|0777, st_size=9, ...}) = 0
getdents64(5, /* 0 entries */, 32768) = 0
chdir("/dev/disk") = 0
close(5) = 0
lstat64("by-path", {st_mode=S_IFDIR|0755, st_size=120, ...}) = 0
open("by-path", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 5
getcwd("/dev/disk", 10) = 10
chdir("by-path") = 0
getdents64(5, /* 6 entries */, 32768) = 272
lstat64("pci-0000:00:01.1-scsi-0:0:0:0-part2", {st_mode=S_IFLNK|0777, st_size=10, ...}) = 0
lstat64("pci-0000:00:01.1-scsi-0:0:0:0-part1", {st_mode=S_IFLNK|0777, st_size=10, ...}) = 0
lstat64("pci-0000:00:01.1-scsi-0:0:0:0", {st_mode=S_IFLNK|0777, st_size=9, ...}) = 0
lstat64("pci-0000:00:01.1-scsi-1:0:0:0", {st_mode=S_IFLNK|0777, st_size=9, ...}) = 0
getdents64(5, /* 0 entries */, 32768) = 0
chdir("/dev/disk") = 0
close(5) = 0
getdents64(4, /* 0 entries */, 32768) = 0
chdir("/dev") = 0
brk(0x8272000) = 0x8272000
close(4) = 0
lstat64("scd0", {st_mode=S_IFLNK|0777, st_size=3, ...}) = 0
lstat64("sr0", {st_mode=S_IFBLK|0660, st_rdev=makedev(11, 0), ...}) = 0
lstat64("tty46", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 46), ...}) = 0
lstat64("tty45", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 45), ...}) = 0
lstat64("tty40", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 40), ...}) = 0
lstat64("tty39", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 39), ...}) = 0
lstat64("tty36", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 36), ...}) = 0
lstat64("tty35", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 35), ...}) = 0
lstat64("tty34", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 34), ...}) = 0
lstat64("tty32", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 32), ...}) = 0
lstat64("tty31", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 31), ...}) = 0
lstat64("tty30", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 30), ...}) = 0
lstat64("tty27", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 27), ...}) = 0
lstat64("fuse", {st_mode=S_IFCHR|0666, st_rdev=makedev(10, 229), ...}) = 0
lstat64("port", {st_mode=S_IFCHR|0640, st_rdev=makedev(1, 4), ...}) = 0
lstat64("loop7", {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 7), ...}) = 0
lstat64("ecryptfs", {st_mode=S_IFCHR|0660, st_rdev=makedev(10, 62), ...}) = 0
lstat64("oldmem", {st_mode=S_IFCHR|0660, st_rdev=makedev(1, 12), ...}) = 0
lstat64("tty17", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 17), ...}) = 0
lstat64("tty2", {st_mode=S_IFCHR|0600, st_rdev=makedev(4, 2), ...}) = 0
lstat64("tty19", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 19), ...}) = 0
lstat64("tty18", {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 18), ...}) = 0
lstat64("zero", {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 5), ...}) = 0
lstat64("binder", {st_mode=S_IFCHR|0660, st_rdev=makedev(10, 59), ...}) = 0
lstat64("mapper", {st_mode=S_IFDIR|0755, st_size=120, ...}) = 0
open("mapper", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 4
getcwd("/dev", 10) = 5
chdir("mapper") = 0
getdents64(4, /* 6 entries */, 32768) = 176
lstat64("vg0-root", {st_mode=S_IFBLK|0660, st_rdev=makedev(252, 2), ...}) = 0
getcwd(0x823f0c8, 10) = -1 ERANGE (Numerical result out of range)
getcwd("/dev/mapper", 20) = 12
chdir("/dev") = 0
close(4) = 0
chdir("/etc/grub.d") = 0
brk(0x826a000) = 0x826a000
close(3) = 0
gettimeofday({1258554191, 6135}, NULL) = 0
write(2, "grub-probe: error: ", 19grub-probe: error: ) = 19
write(2, "no mapping exists for `vg0-root'", 32no mapping exists for `vg0-root') = 32
write(2, "\n", 1
) = 1
exit_group(1) = ?

ProblemType: Bug
Architecture: i386
Date: Wed Nov 18 15:37:44 2009
DistroRelease: Ubuntu 9.10
Package: grub-common 1.97~beta4-1ubuntu4
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: grub2
Uname: Linux 2.6.31-14-generic i686
XsessionErrors:
 (gnome-settings-daemon:6538): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (nautilus:6596): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
 (polkit-gnome-authentication-agent-1:6645): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
 (yelp:6708): Yelp-WARNING **: Failed to load config file: No such file or directory

Mario Verbelen (mario-verbelen) wrote :
Oliver Dungey (oliver-dungey) wrote :

This is pretty serious. I am running AMD 64 version of Karmic and fixed up my windows XP partition to boot which killed my MBR. Now I am totally stuck as I cannot repair grub2. Every article on fixing Grub leads me to this same problem. I would love to work around it but life is too short and I need my PC back. Luckily I have my files backed up so I am just going to trash Ubuntu and start again but this is very disappointing.

linas (linasvepstas) wrote :

FYI, I'm hitting something similar, but for mdraid. Now, according to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=540549 my problem was fixed long ago, in grub-1.97, but I'm running lucid, with grub-install -v returning: grub-install (GNU GRUB 1.98-1ubuntu9)

My variant of this bug says:

grub-install /dev/sda
/usr/sbin/grub-probe: error: no mapping exists for `md1'.
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.

grub-install --modules=/boot/grub/mdraid.mod /dev/sda
/usr/sbin/grub-probe: error: no mapping exists for `md1'.
/usr/sbin/grub-probe: error: no mapping exists for `md1'.
/usr/sbin/grub-probe: error: no mapping exists for `md1'.
You attempted a cross-disk install, but the filesystem containing /boot/grub does not support UUIDs.

cat /proc/mdstat

md1 : active raid1 sdc1[3] sda1[0]
      530100 blocks super 1.0 [3/2] [UU_]

i.e. is mdraid version 1.0 and not version 0.9

Th fs itself is ext4

I believe I will be able to work around this by not using raid for the /boot directory, but this is annoying :-(

Rolf Leggewie (r0lf) wrote :

adressing the problem as reported by the OP, I'd like to point out that I was told today that grub2 from bzr can access files inside an encrypted container. So, this will eventually be fixed. Bear with us.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.