On Sun, 27 Jun 2010 05:38:50 -0400 (EDT), Mizanur Khondoker wrote: > Stephen Powell wrote: >> >> Please provide the following information: >> >> (1) Which boot loader are you using? (Grub version 1? Grub version 2? >> lilo? extlinux?) >> >> (2) What is the contents of /etc/kernel-img.conf? >> >> (3) What are the names of the files in the following directories? >> >> /etc/kernel/preinst.d >> /etc/kernel/prerm.d >> /etc/kernel/postinst.d >> /etc/kernel/postrm.d >> >> (4) What is the output of the following commands? >> >> ls -Al /boot/ >> ls -Al / >> > > Dear Stephen, > > Thanks for trying to help. Please find below the information you requested. > > (1) > debian:/home/mizanur# grub-install -v > grub-install (GNU GRUB 0.97) > > (2) > debian:/home/mizanur# cat /etc/kernel-img.conf > # Kernel image management overrides > # See kernel-img.conf(5) for details > do_symlinks = yes > relative_links = yes > do_bootloader = no > do_bootfloppy = no > do_initrd = yes > link_in_boot = no > postinst_hook = update-grub > postrm_hook = update-grub > > (3) > > None of these directories seem to exist. In fact there is no kernel > directory under /etc/. > > debian:/home/mizanur# ls -l /etc/kernel/preinst.d > ls: cannot access /etc/kernel/preinst.d: No such file or directory > > debian:/home/mizanur# ls -l /etc/kernel/prerm.d > ls: cannot access /etc/kernel/prerm.d: No such file or directory > > debian:/home/mizanur# ls -l /etc/kernel/postinst.d > ls: cannot access /etc/kernel/postinst.d: No such file or directory > > debian:/home/mizanur# ls -l /etc/kernel/postrm.d > ls: cannot access /etc/kernel/postrm.d: No such file or directory > > (4) > > debian:/home/mizanur# ls -Al /boot/ > total 16594 > -rw-r--r-- 1 root root 91746 2010-06-21 11:42 config-2.6.26-2-686 > drwxr-xr-x 2 root root 1024 2010-06-26 21:08 grub > -rw-r--r-- 1 root root 7197441 2010-06-26 21:16 initrd.img-2.6.26-2-686 > -rw-r--r-- 1 root root 7190250 2009-04-13 10:45 initrd.img-2.6.26-2-686.bak > -rw-r--r-- 1 root root 928782 2010-06-21 11:42 System.map-2.6.26-2-686 > -rw-r--r-- 1 root root 1507408 2010-06-21 11:42 vmlinuz-2.6.26-2-686 > > debian:/home/mizanur# ls -Al / > total 75 > drwxr-xr-x 2 root root 5120 2010-06-26 20:20 bin > drwxr-xr-x 3 root root 1024 2010-06-26 21:16 boot > lrwxrwxrwx 1 root root 11 2007-11-14 20:27 cdrom -> media/cdrom > drwxr-xr-x 16 root root 3980 2010-06-27 10:04 dev > drwxr-xr-x 152 root root 9216 2010-06-27 10:06 etc > drwxr-xr-x 5 root root 4096 2010-06-26 08:32 home > drwxr-xr-x 2 root root 1024 2007-11-14 20:29 initrd > lrwxrwxrwx 1 root root 28 2009-05-10 12:05 initrd.img -> > boot/initrd.img-2.6.26-1-486 > lrwxrwxrwx 1 root root 28 2009-04-13 10:45 initrd.img.old -> > boot/initrd.img-2.6.26-2-686 > drwxr-xr-x 16 root root 9216 2010-06-23 22:04 lib > drwx------ 2 root root 12288 2007-11-14 20:27 lost+found > drwxr-xr-x 4 root root 1024 2010-06-27 10:05 media > drwxr-xr-x 5 root root 1024 2009-08-01 23:42 mnt > drwxr-xr-x 2 root root 1024 2007-11-14 20:29 opt > dr-xr-xr-x 163 root root 0 2010-06-27 11:03 proc > -rw-r--r-- 1 mizanur mizanur 4400 2008-03-31 13:04 programmes > -rw------- 1 root root 1024 2007-11-14 20:55 .rnd > drwxr-xr-x 32 root root 1024 2010-06-24 21:43 root > drwxr-xr-x 2 root root 6144 2010-06-26 20:20 sbin > drwxr-xr-x 2 root root 1024 2007-03-07 22:56 selinux > drwxr-xr-x 2 root root 1024 2007-11-14 20:29 srv > drwxr-xr-x 11 root root 0 2010-06-27 11:03 sys > drwxrwxrwt 12 root root 8192 2010-06-27 10:18 tmp > drwxr-xr-x 14 root root 4096 2008-03-31 12:52 usr > drwxr-xr-x 16 root root 4096 2007-11-14 20:57 var > lrwxrwxrwx 1 root root 25 2009-05-10 12:05 vmlinuz -> > boot/vmlinuz-2.6.26-1-486 > lrwxrwxrwx 1 root root 25 2009-04-13 10:45 vmlinuz.old -> > boot/vmlinuz-2.6.26-2-686
OK, I see what's wrong. You've got your symlinks messed up. I'm not sure how things got into that state, but they're all messed up. You could fix your symlinks, but since grub doesn't need them, here's what I would do if it were me. Do all this as root. rm /vmlinuz rm /initrd.img rm /vmlinuz.old rm /initrd.img.old Then edit the file /etc/kernel-img.conf and change do_symlinks = yes to do_symlinks = no File the change. Then issue dpkg-reconfigure linux-image-2.6.26-2-686 That should put you back in business. -- .''`. Stephen Powell : :' : `. `'` `- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/247712580.316973.1277635542895.javamail.r...@md01.wow.synacor.com