FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 04-21-2011, 01:29 PM
Giuseppe Sacco
 
Default Bug#623584: grub error: "libm.so.6: cannot open shared object file: No such file or directory"

Package: initramfs-tools
Version: 0.98.8
Severity: important

Hi all,
I am trying to setup a 64 bit machine with Debian squeeze. After the
installation complete (this is a special crafted installation with mixed
32bit and 64bit executables) the machine cannot boot anymore.

The bootloader is grub-pc. It starts, then load kernel and initrd,
uncompress initrd and tries to run the shell. This is where it fails
giving the error "libm.so.6: cannot open shared object file: No such
file or directory".

I booted via a cdrom (debian 6.0 live rescue amd64), mounted all volumes
in /mnt (and subdirs) and chroot'ed into it.

Then, I went to /boot and uncompress the initrd image. This is what I
can see:

root@debian:/boot/f# ls -l
total 36
drwxr-xr-x 2 root root 4096 Apr 21 15:07 bin
drwxr-xr-x 3 root root 4096 Apr 21 14:28 conf
drwxr-xr-x 5 root root 4096 Apr 21 14:28 etc
-rwxr-xr-x 1 root root 5955 Apr 21 14:28 init
drwxr-xr-x 4 root root 4096 Apr 21 14:28 lib
drwxr-xr-x 2 root root 4096 Apr 21 14:28 lib64
drwxr-xr-x 2 root root 4096 Apr 21 14:28 sbin
drwxr-xr-x 6 root root 4096 Apr 21 14:28 scripts
root@debian:/boot/f# ldd bin/sh
linux-vdso.so.1 => (0x00007ffff936d000)
libm.so.6 => /lib64/libm.so.6 (0x00007f0146f8b000)
libc.so.6 => /lib64/libc.so.6 (0x00007f0146c2a000)
/lib64/ld-linux-x86-64.so.2 (0x00007f0147213000)
root@debian:/boot/f# ls -l /lib64/libm.so.6 /lib64/libc.so.6 /lib64/ld-linux-x86-64.so.2
lrwxrwxrwx 1 root root 12 Apr 19 18:57 /lib64/ld-linux-x86-64.so.2 -> ld-2.11.2.so
lrwxrwxrwx 1 root root 14 Apr 19 18:57 /lib64/libc.so.6 -> libc-2.11.2.so
lrwxrwxrwx 1 root root 14 Apr 19 18:57 /lib64/libm.so.6 -> libm-2.11.2.so
root@debian:/boot/f# ls -l lib64/libm.so.6 lib64/libc.so.6 lib64/ld-linux-x86-64.so.2
-rwxr-xr-x 1 root root 128744 Apr 21 14:28 lib64/ld-linux-x86-64.so.2
-rwxr-xr-x 1 root root 1432968 Apr 21 14:28 lib64/libc.so.6
-rw-r--r-- 1 root root 530736 Apr 21 14:28 lib64/libm.so.6
root@debian:/boot/f# bin/sh


BusyBox v1.17.1 (Debian 1:1.17.1-8) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/boot/f # exit
root@debian:/boot/f# chroot . bin/sh
bin/sh: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory
root@debian:/boot/f# chroot . lib64/ld-linux-x86-64.so.2 bin/sh
bin/sh: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory
root@debian:/boot/f# file bin/sh lib64/libm.so.6
bin/sh: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), stripped
lib64/libm.so.6: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
root@debian:/boot/f# diff /lib64/libc-2.11.2.so lib64/libc.so.6
root@debian:/boot/f# diff /lib64/libm-2.11.2.so lib64/libm.so.6

As you may see all program work correctly. I may even run busybox on the
main system, but if I try to run it inside the initramfs image then it
fails.

I tried to create the initrd image from scratch but it does not solve
the problem. The command I used is:

root@debian:/boot/f# update-initramfs -k all -u
update-initramfs: Generating /boot/initrd.img-2.6.32-5-amd64
W: Possible missing firmware /lib/firmware/tigon/tg3_tso5.bin for module tg3
W: Possible missing firmware /lib/firmware/tigon/tg3_tso.bin for module tg3
W: Possible missing firmware /lib/firmware/tigon/tg3.bin for module tg3

Any hints on what to do next?

I thank you very much,
Giuseppe




--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 1303392543.5696.27.camel@scarafaggio">http://lists.debian.org/1303392543.5696.27.camel@scarafaggio
 

Thread Tools




All times are GMT. The time now is 06:54 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org