I'm trying to repair my GRUB after Windows 7 installation.
I have 64bit and 32bit live Ubuntu CDs + Super Grub Disk (Rescatux) + Boot-Repair-Disk . I'm following this answer's steps . But in 6th step I'm getting
/usr/sbin/grub-probe: error while loading shared libraries: libdevmapper.so.1.02.1: wrong ELF class: ELFCLASS32
after executing update-grub
command.
And then I tried to use Boot-Repair . Firstly tried Recommended repair and it's finished successfully but when I restart there isn't boot menu. And then next time I hold Left Shift while booting. Still it's booting Windows automatically.
And then I tried to use Advanced repair . Same results. This is my Boot-Repair logs : http://paste.ubuntu.com/936178/
I need specific answers for my system. Thank you.
Note :
My installed Ubuntu system is 64 bit and I have 64bit and 32 bit Live CDs
Note 2
(after booting with a 32bit Live CD) (look at Note 3 for 64bit Live CD results)
file /lib/libdevmapper.so.1.02.1
->/lib/libdevmapper.so.1.02.1: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped
file /usr/sbin/grub-probe
->/usr/sbin/grub-probe: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped
ubuntu@ubuntu:~$ sudo mkdir /mnt/ubusda3
ubuntu@ubuntu:~$ sudo mount -t ext4 /dev/sda3 /mnt/ubusda3
ubuntu@ubuntu:~$ file /mnt/ubusda3/sbin/init
/mnt/ubusda3/sbin/init: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped
Note 3
(after booting with a 64bit Live CD)
file /lib/libdevmapper.so.1.02.1
->/lib/libdevmapper.so.1.02.1: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped
file /usr/sbin/grub-probe
->/usr/sbin/grub-probe: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped
ubuntu@ubuntu:~$ sudo su
root@ubuntu:/home/ubuntu# mkdir /mnt/ubusda3
root@ubuntu:/home/ubuntu# mount -t ext4 /dev/sda3 /mnt/ubusda3
root@ubuntu:/home/ubuntu# file /mnt/ubusda3/sbin/init
/mnt/ubusda3/sbin/init: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped
root@ubuntu:/home/ubuntu# file /mnt/ubusda3/lib/libdevmapper.so.1.02.1
/mnt/ubusda3/lib/libdevmapper.so.1.02.1: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped
file /lib/libdevmapper.so.1.02.1
andfile /usr/sbin/grub-probe
say ( while within the chroot ). – psusi Apr 19 '12 at 18:35your system 32bit
because of this i tried with 32Bit livecd. – Eray Apr 20 '12 at 13:17