[Bug 825145] [NEW] GRUB and software raid issue

Bob T 825145 at bugs.launchpad.net
Fri Aug 12 11:50:49 UTC 2011


Public bug reported:

Release:        11.04
After installation of 11.04 ( server or alternate CD ) MBR has no GRUB. Chroot method did not help., 
root at ubuntu:/# sudo grub-install /dev/sda
Installation finished. No error reported.
but MBR has no boot after.
I found only one way how to fix:
1) Boot from LiveCd
2) apt-get install -y grub-pc
ubuntu at ubuntu:~$ sudo chroot /mnt
root at ubuntu:/# apt-get install -y grub-pc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  efibootmgr
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  grub-gfxpayload-lists
Suggested packages:
  desktop-base
The following packages will be REMOVED:
  grub-efi grub-efi-amd64
The following NEW packages will be installed:
  grub-gfxpayload-lists grub-pc
0 upgraded, 2 newly installed, 2 to remove and 76 not upgraded.
Need to get 942 kB of archives.
.....


...................
ubuntu at ubuntu:~$ sudo lvchange -a y /dev/dbs16/root
ubuntu at ubuntu:~$ sudo mount /dev/dbs16/root /mnt
ubuntu at ubuntu:~$ sudo mount -B /dev /mnt/dev
ubuntu at ubuntu:~$ sudo mount -B /dev/pts /mnt/dev/pts
ubuntu at ubuntu:~$ sudo mount -B /proc /mnt/proc
ubuntu at ubuntu:~$ sudo mount -B /sys /mnt/sys
ubuntu at ubuntu:~$ sudo chroot /mnt
root at ubuntu:/# sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.38-8-server
Found initrd image: /boot/initrd.img-2.6.38-8-server
Found linux image: /boot/vmlinuz-2.6.38-8-generic
Found initrd image: /boot/initrd.img-2.6.38-8-generic
Found memtest86+ image: /boot/memtest86+.bin
done
root at ubuntu:/# sudo grub-install /dev/sda
Installation finished. No error reported.
root at ubuntu:/# sudo grub-install /dev/sdb
Installation finished. No error reported.
.......
3) sudo grub-install /dev/sda
and I managed boot Ubuntu.
Seems problem is in EFI.
Full store of this bug is here
http://ubuntuforums.org/showthread.php?t=1813136

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: grub (not installed)
ProcVersionSignature: Ubuntu 2.6.38-8.42-server 2.6.38.2
Uname: Linux 2.6.38-8-server x86_64
Architecture: amd64
Date: Fri Aug 12 13:34:05 2011
InstallationMedia: Ubuntu-Server 11.04 "Natty Narwhal" - Release amd64 (20110426)
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: grub
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: grub (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug natty

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub in Ubuntu.
https://bugs.launchpad.net/bugs/825145

Title:
  GRUB and software raid issue

Status in “grub” package in Ubuntu:
  New

Bug description:
  Release:        11.04
  After installation of 11.04 ( server or alternate CD ) MBR has no GRUB. Chroot method did not help., 
  root at ubuntu:/# sudo grub-install /dev/sda
  Installation finished. No error reported.
  but MBR has no boot after.
  I found only one way how to fix:
  1) Boot from LiveCd
  2) apt-get install -y grub-pc
  ubuntu at ubuntu:~$ sudo chroot /mnt
  root at ubuntu:/# apt-get install -y grub-pc
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  The following package was automatically installed and is no longer required:
    efibootmgr
  Use 'apt-get autoremove' to remove them.
  The following extra packages will be installed:
    grub-gfxpayload-lists
  Suggested packages:
    desktop-base
  The following packages will be REMOVED:
    grub-efi grub-efi-amd64
  The following NEW packages will be installed:
    grub-gfxpayload-lists grub-pc
  0 upgraded, 2 newly installed, 2 to remove and 76 not upgraded.
  Need to get 942 kB of archives.
  .....

  
  ...................
  ubuntu at ubuntu:~$ sudo lvchange -a y /dev/dbs16/root
  ubuntu at ubuntu:~$ sudo mount /dev/dbs16/root /mnt
  ubuntu at ubuntu:~$ sudo mount -B /dev /mnt/dev
  ubuntu at ubuntu:~$ sudo mount -B /dev/pts /mnt/dev/pts
  ubuntu at ubuntu:~$ sudo mount -B /proc /mnt/proc
  ubuntu at ubuntu:~$ sudo mount -B /sys /mnt/sys
  ubuntu at ubuntu:~$ sudo chroot /mnt
  root at ubuntu:/# sudo update-grub
  Generating grub.cfg ...
  Found linux image: /boot/vmlinuz-2.6.38-8-server
  Found initrd image: /boot/initrd.img-2.6.38-8-server
  Found linux image: /boot/vmlinuz-2.6.38-8-generic
  Found initrd image: /boot/initrd.img-2.6.38-8-generic
  Found memtest86+ image: /boot/memtest86+.bin
  done
  root at ubuntu:/# sudo grub-install /dev/sda
  Installation finished. No error reported.
  root at ubuntu:/# sudo grub-install /dev/sdb
  Installation finished. No error reported.
  .......
  3) sudo grub-install /dev/sda
  and I managed boot Ubuntu.
  Seems problem is in EFI.
  Full store of this bug is here
  http://ubuntuforums.org/showthread.php?t=1813136

  ProblemType: Bug
  DistroRelease: Ubuntu 11.04
  Package: grub (not installed)
  ProcVersionSignature: Ubuntu 2.6.38-8.42-server 2.6.38.2
  Uname: Linux 2.6.38-8-server x86_64
  Architecture: amd64
  Date: Fri Aug 12 13:34:05 2011
  InstallationMedia: Ubuntu-Server 11.04 "Natty Narwhal" - Release amd64 (20110426)
  ProcEnviron:
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: grub
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub/+bug/825145/+subscriptions




More information about the foundations-bugs mailing list