linux2.6.32-5 and grub problems

Help with issues regarding installation of Debian

linux2.6.32-5 and grub problems

Postby nitwit536 » 2010-06-17 21:41

I upgraded my squeeze machine yesterday. Everything went fine except the installation of the new linux kernel:
Code: Select all
Instellen van linux-image-2.6.32-5-amd64 (2.6.32-15) ...
Running depmod.
Running update-initramfs.
update-initramfs: Generating /boot/initrd.img-2.6.32-5-amd64
initrd.img(/boot/initrd.img-2.6.32-5-amd64
) points to /boot/initrd.img-2.6.32-5-amd64
 (/boot/initrd.img-2.6.32-5-amd64) -- doing nothing at /var/lib/dpkg/info/linux-image-2.6.32-5-amd64.postinst line 400.
vmlinuz(/boot/vmlinuz-2.6.32-5-amd64
) points to /boot/vmlinuz-2.6.32-5-amd64
 (/boot/vmlinuz-2.6.32-5-amd64) -- doing nothing at /var/lib/dpkg/info/linux-image-2.6.32-5-amd64.postinst line 400.
Running update-grub.
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
User postinst hook script [update-grub] exited with value 1


Some grub probe results:
Code: Select all
# grub-probe /boot
ext2
# grub-probe /
grub-probe: error: cannot find a device for / (is /dev mounted?).
# grub-probe /home
grub-probe: error: cannot find a device for /home (is /dev mounted?).


My /etc/fstab:
Code: Select all
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/mapper/r-root /               ext3    errors=remount-ro 0       1
# /dev/sda1       /boot           ext2    defaults        0       2
UUID=f75bcedf-83fc-4b2d-905d-1053524bbdc4       /boot           ext2    defaults        0       2
/dev/mapper/r-home /home           ext3    defaults        0       2
/dev/mapper/r-swap none            swap    sw              0       0
# /dev/hda        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/cdrom1        /media/cdrom0   udf,iso9660 user,noauto     0       0
none    /proc/bus/usb   usbfs   rw,user.devgid=116,devmode=0666 0       0


The problem is probably not having a UUID for my root and home partition. How can I fix this?
User avatar
nitwit536
 
Posts: 172
Joined: 2008-12-28 13:33
Location: Belgium

Re: linux2.6.32-5 and grub problems

Postby smallchange » 2010-06-17 22:22

You can find the UUID by
Code: Select all
ls -l /dev/mapper
followed by
Code: Select all
ls -l /dev/disk/by-uuid
smallchange
 
Posts: 1740
Joined: 2009-05-04 15:56

Re: linux2.6.32-5 and grub problems

Postby craigevil » 2010-06-17 22:40

dpkg-reconfigure grub-pc

View topic - 64-bit d-u grub2: file not found :: - http://www.sidux.com/index.php?name=PNp ... ic&t=20998
Debian Sid KDE Kernel 3.17 Thinkpad R40 Intel M 1.3 CPU 2GB RAM Radeon Mobility 7500
Debian - "If you can't apt-get something, it isn't useful or doesn't exist"
Debian upgrade script smxi | sysinfo script inxi
User avatar
craigevil
 
Posts: 5192
Joined: 2006-09-17 03:17
Location: Oz

Re: linux2.6.32-5 and grub problems

Postby nitwit536 » 2010-06-17 23:08

I changed my fstab to:
Code: Select all
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
UUID=952acf51-09bb-41ff-b453-6b188a164e55       /               ext3    errors=remount-ro 0       1
UUID=f75bcedf-83fc-4b2d-905d-1053524bbdc4       /boot           ext2    defaults        0       2
UUID=cecd1a24-4e46-458f-ad26-2794f29f7654       /home           ext3    defaults        0       2
/dev/mapper/r-swap none            swap    sw              0       0
/dev/cdrom1        /media/cdrom0   udf,iso9660 user,noauto     0       0
none    /proc/bus/usb   usbfs   rw,user.devgid=116,devmode=0666 0       0

using these instructions:
Code: Select all
# ls -l /dev/mapper
totaal 0
crw------- 1 root root 10, 59 jun 17 22:40 control
lrwxrwxrwx 1 root root      7 jun 17 22:40 r-home -> ../dm-2
lrwxrwxrwx 1 root root      7 jun 17 22:40 r-root -> ../dm-0
lrwxrwxrwx 1 root root      7 jun 17 22:40 r-swap -> ../dm-1
# ls -l /dev/disk/by-uuid/
totaal 0
lrwxrwxrwx 1 root root 10 jun 17 22:40 952acf51-09bb-41ff-b453-6b188a164e55 -> ../../dm-0
lrwxrwxrwx 1 root root 10 jun 17 22:40 cecd1a24-4e46-458f-ad26-2794f29f7654 -> ../../dm-2
lrwxrwxrwx 1 root root 10 jun 17 22:40 f75bcedf-83fc-4b2d-905d-1053524bbdc4 -> ../../sda1

and tried a dpkg-reconfigure grub-pc, but it didn't help:
Code: Select all
# dpkg-reconfigure grub-pc
Installation finished. No error reported.
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).

I even tried rebooting and executing dpkg-reconfigure, but without success.
User avatar
nitwit536
 
Posts: 172
Joined: 2008-12-28 13:33
Location: Belgium

Re: linux2.6.32-5 and grub problems

Postby nitwit536 » 2010-06-17 23:23

I found the error. It seems that the system booted into linux-image-2.6.32-trunk-amd64. Booted into an other kernel, remove the trunk package and everything worked.
Thanks for the help! :)
User avatar
nitwit536
 
Posts: 172
Joined: 2008-12-28 13:33
Location: Belgium

Re: linux2.6.32-5 and grub problems

Postby Riberto » 2010-06-18 12:27

Judging from the last couple of posts.

It's clear I was NOT the only one that had "issues" with this latest upgrade to Squeeze.
Because I am not as well versed as some of you, I elected to re-install.

Thankfully, I have back-up installs, different platforms, distros and a cloud based /home directory for my data.
(yes, I know! I have to get a LIFE!)

I have to wonder, how many did we loose? This forum only reflects those few that are technically experienced and knew how to make the corrections.
But how many, that could not, simply decided to give up and return to what they had been using before?

I feel the winds of change blowing, I hope its good!
It seldom is...
Giving up on yourself is a CRIME!
And it carries a LIFE SENTENCE.
User avatar
Riberto
 
Posts: 108
Joined: 2009-04-16 17:10
Location: Miami, FL USA

Re: linux2.6.32-5 and grub problems

Postby esheesle » 2010-06-20 03:08

Having the same issue but I'm booted into the new kernel. Can't get update-grub to work for the life of me. Tried changing /etc/fstab to use all UUID but no help there.

Has anyone found a good solution for this? I actually removed a few of the older kernels and they are still in the grub list because it can't be updated.
esheesle
 
Posts: 70
Joined: 2009-08-03 15:17

Re: linux2.6.32-5 and grub problems

Postby aninias » 2010-06-20 17:03

I'm trying to upgrade my Squeeze kernel to linux-image-2.6.32-5-686-bigmem with no success.

Code: Select all
Running update-grub.
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).


Has anyone found a solution to this?
aninias
 
Posts: 1
Joined: 2009-01-15 06:03

Re: linux2.6.32-5 and grub problems

Postby nitwit536 » 2010-06-21 11:40

The upgrade works on linux-image-2.6.32-3 and linux-image-2.6.32-1. Boot one of those and the upgrade will work nicely.
User avatar
nitwit536
 
Posts: 172
Joined: 2008-12-28 13:33
Location: Belgium


Return to Installation

Who is online

Users browsing this forum: ljones0 and 5 guests

fashionable