GRUB , UEFI and software raid issue

Bug #825145 reported by Bob T
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
grub-installer (Ubuntu)
Invalid
Undecided
Unassigned
ubiquity (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Release: 11.04
After installation of 11.04 ( server or alternate CD ) MBR has no GRUB. Chroot method did not help.,
root@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@ubuntu:~$ sudo chroot /mnt
root@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@ubuntu:~$ sudo lvchange -a y /dev/dbs16/root
ubuntu@ubuntu:~$ sudo mount /dev/dbs16/root /mnt
ubuntu@ubuntu:~$ sudo mount -B /dev /mnt/dev
ubuntu@ubuntu:~$ sudo mount -B /dev/pts /mnt/dev/pts
ubuntu@ubuntu:~$ sudo mount -B /proc /mnt/proc
ubuntu@ubuntu:~$ sudo mount -B /sys /mnt/sys
ubuntu@ubuntu:~$ sudo chroot /mnt
root@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@ubuntu:/# sudo grub-install /dev/sda
Installation finished. No error reported.
root@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)

Steve Langasek (vorlon)
affects: grub (Ubuntu) → grub2 (Ubuntu)
Revision history for this message
Andrew Cranwell (andrew-cranwell) wrote :

Was this system installed when booted in BIOS or EFI mode?

Revision history for this message
Bob T (t2004dd) wrote :

It was loaded in BIOS mode I think. Hardware is IBM System x3250 M3.

Revision history for this message
Bob T (t2004dd) wrote :

Sorry, I check documentation and accoding it system has UEFI BIOS.

Revision history for this message
Andrew Cranwell (andrew-cranwell) wrote :

If you are booting in EFI mode, grub is not installed in the MBR but in the EFI system partition, and registered into the EFI boot order with efibootmgr - I've mainly be trying to get this working with 11.10 Desktop using the graphical installed (Ubiquity). A simple partition setup seems to work but I haven't tried a server or alternate desktop install yet.

Revision history for this message
Andrew Cranwell (andrew-cranwell) wrote :

Just installed 11.10 server 64-bit in VirtualBox with a simple raid1; grub installed with no errors.

Revision history for this message
YannUbuntu (yannubuntu) wrote :

Seems like the problem here is that Ubiquity installed Ubuntu in EFI mode when it should have installed it in Legacy mode.

(maybe duplicate of Bug #1050940 )

summary: - GRUB and software raid issue
+ GRUB , UEFI and software raid issue
Colin Watson (cjwatson)
affects: grub2 (Ubuntu) → grub-installer (Ubuntu)
affects: ubiquity → ubiquity (Ubuntu)
Revision history for this message
dino99 (9d9) wrote :

natty have reached EOL now

Changed in ubiquity (Ubuntu):
status: New → Invalid
Changed in grub-installer (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers