Subject: linux-image-2.6.39-bpo.2-amd64 root filesystem not found
Package: linux-image-2.6 / linux-image-2.6.39-bpo.2-amd64
Version: 2.6.39-bpo.2-amd64

This is a new bug report as suggested by Ben Hutchings in 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=636123

Starting situation:
Debian Squeeze with 2.6.38-5 kernel from backport.

Performed action:
Upgrade kernel to 2.6.39-2 using apt.
apt-get install linux-image-2.6.39-bpo.2-amd64
The kernel upgrade goes well (but the old kernel gets removed?!).

Problem found:
After upgrade the system no longer boots, the root system cannot be found:

    "No filesystem could mount root, tried:"
    "Kernel panic = not syncing: VFS: Unable to mount root fs on 
unkown-block(0,0)."

Strange thing is that there's nothing behind "tried:"?
Anyway, the system didn't boot anymore.

Since the old kernel was removed, I had no way to get into the system anymore.
I managed to boot a liveusb and verified that all harddisks were working ok and 
accessible.

Then I just tried to reinstall Debian Squeeze on top of the existing 
problematic installation.
This means:

1. Boot from netinst image (usb).
2. Choose Text Auto
3. Enter some stuff.
4. Choose the existing partition which already contains Debian installed, but 
with malfunctioning 2.6.39 kernel.
5. Wait and reboot.
6. Notice that it now works, having kernel 2.6.32-5, the default for the 
netinst image I was using.

After talking some more in bug 636123, we found out that the initd image for 
2.6.39-5 was missing.

root@NAS2:/boot# ls -l
total 19460
-rw-r--r-- 1 root root   106088 Mar  8 01:18 config-2.6.32-5-amd64
-rw-r--r-- 1 root root   124738 Jul 26 14:02 config-2.6.39-bpo.2-amd64
drwxr-xr-x 3 root root     4096 Aug 22 00:32 grub
-rw-r--r-- 1 root root 10977315 Mar 24 08:24 initrd.img-2.6.32-5-amd64
-rw-r--r-- 1 root root  1662514 Mar  8 01:18 System.map-2.6.32-5-amd64
-rw-r--r-- 1 root root  1887188 Jul 26 14:02 System.map-2.6.39-bpo.2-amd64
-rw-r--r-- 1 root root  2418720 Mar  8 01:12 vmlinuz-2.6.32-5-amd64
-rw-r--r-- 1 root root  2691792 Jul 26 13:59 vmlinuz-2.6.39-bpo.2-amd64

Ben requested the dpkg.log section covering the upgrade, but it seems that 
timeframe is missing/overwritten.
I do have the term.log from apt covering the upgrade (bottom of report)

Grub version: 

root@NAS2:/var/log# dpkg -s grub-pc
Package: grub-pc
Status: install ok installed
Priority: optional
Section: admin
Installed-Size: 2468
Maintainer: GRUB Maintainers <pkg-grub-de...@lists.alioth.debian.org>
Architecture: amd64
Source: grub2
Version: 1.98+20100804-14
Replaces: grub, grub-common (<= 1.96+20080413-1), grub-coreboot, 
grub-efi-amd64, grub-efi-ia32, grub-ieee1275, grub-legacy, grub2 (<< 
1.98+20100804-14)
Depends: libc6 (>= 2.3), libdevmapper1.02.1 (>= 2:1.02.36), debconf (>= 0.5) | 
debconf-2.0, grub-common (= 1.98+20100804-14), ucf
Suggests: desktop-base (>= 4.0.6)
Conflicts: desktop-base (= 4.0.5), grub (<< 0.97-54), grub-coreboot, 
grub-efi-amd64, grub-efi-ia32, grub-ieee1275, grub-legacy

I am willing to try again to upgrade and see if we can reproduce it.

I just need to find out how to do this without the old/working kernel being 
removed.

Is there anything I can do to gather more information?

/var/log/term.log:

Log started: 2011-08-21  22:40:54
(Reading database ... 
(Reading database ... 100%
(Reading database ... 50615 files and directories currently installed.)
Preparing to replace linux-base 3.3~bpo60+1 (using .../linux-base_3.3_all.deb) 
...
Unpacking replacement linux-base ...
Processing triggers for man-db ...
Setting up linux-base (3.3) ...
Log ended: 2011-08-21  22:41:01

Log started: 2011-08-21  22:46:26
Selecting previously deselected package dracut.
(Reading database ... 
(Reading database ... 100%
(Reading database ... 50615 files and directories currently installed.)
Unpacking dracut (from .../archives/dracut_005-1_all.deb) ...
Processing triggers for man-db ...
Setting up dracut (005-1) ...
/boot/dracut.img-2.6.38-bpo.2-amd64 does not exist. Cannot update.
(Reading database ... 
(Reading database ... 100%
(Reading database ... 50772 files and directories currently installed.)
Removing linux-image-2.6.38-bpo.2-amd64 ...
[?1049h[?25l(B






















(BPackage configuration+--------------¦ 
Configuring linux-image-2.6.38-bpo.2-amd64 +---------------+¦   
                                                                        
¦ (B¦ You are running a kernel (version 
2.6.38-bpo.2-amd64) and attempting to   ¦ (B¦ 
remove the same version.                                                  
¦ (B¦                                         
                                  ¦ (B¦ This 
can make the system unbootable as it will remove                     
¦ (B¦ /boot/vmlinuz-2.6.38-bpo.2-amd64 and 
all modules under the directory      ¦ (B¦ 
/lib/modules/2.6.38-bpo.2-amd64. This can only be fixed with a copy of    
¦ (B¦ the kernel image and the corresponding 
modules.                           ¦ (B¦     
                                                                      
¦ (B¦ It is highly recommended to abort the 
kernel removal unless you are       ¦ (B¦ 
prepared to fix the system after removal.                                 
¦ (B¦                                        
                                   ¦ (B¦ 
Abort kernel removal?                                                     
¦ (B¦                                        
                                   ¦ (B¦     
               <Yes>                       <No>             
          ¦ (B¦                              
                                             ¦ 
(B+---------------------------------------------------------------------------+
                                                                         
     
(B<Yes><No>[?12l[?25h(B

[?1049lOk, proceeding with removing running kernel image.
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 2.6.38-bpo.2-amd64 
/boot/vmlinuz-2.6.38-bpo.2-amd64
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 2.6.38-bpo.2-amd64 
/boot/vmlinuz-2.6.38-bpo.2-amd64
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-5-amd64
Found initrd image: /boot/initrd.img-2.6.32-5-amd64
done
The link /vmlinuz is a damaged link
Removing symbolic link vmlinuz 
You may need to re-run your boot loader
The link /initrd.img is a damaged link
Removing symbolic link initrd.img 
You may need to re-run your boot loader
Removing live-initramfs ...
Removing live-boot ...
Removing live-boot-initramfs-tools ...
Removing linux-image-2.6-amd64 ...
Removing linux-image-2.6.32-5-amd64 ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 2.6.32-5-amd64 
/boot/vmlinuz-2.6.32-5-amd64
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 2.6.32-5-amd64 
/boot/vmlinuz-2.6.32-5-amd64
Generating grub.cfg ...
done
The link /vmlinuz.old is a damaged link
Removing symbolic link vmlinuz.old 
You may need to re-run your boot loader
The link /initrd.img.old is a damaged link
Removing symbolic link initrd.img.old 
You may need to re-run your boot loader
Removing initramfs-tools ...
Processing triggers for man-db ...
Processing triggers for dracut ...
Selecting previously deselected package linux-image-2.6.39-bpo.2-amd64.
(Reading database ... 
(Reading database ... 100%
(Reading database ... 44515 files and directories currently installed.)
Unpacking linux-image-2.6.39-bpo.2-amd64 (from 
.../linux-image-2.6.39-bpo.2-amd64_2.6.39-3~bpo60+1_amd64.deb) ...
Setting up linux-image-2.6.39-bpo.2-amd64 (2.6.39-3~bpo60+1) ...
Running depmod.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.39-bpo.2-amd64 
/boot/vmlinuz-2.6.39-bpo.2-amd64
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.39-bpo.2-amd64 
/boot/vmlinuz-2.6.39-bpo.2-amd64
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.39-bpo.2-amd64
done
Log ended: 2011-08-21  22:48:46

Reply via email to