[Bug 1387654] Re: installing or upgrading to Ubuntu 14.10 kills Boot Manager on ThinkPad W540
Andrew Pope
1387654 at bugs.launchpad.net
Sun Feb 1 20:35:48 UTC 2015
Thanks @addam-edgley et al! I was thrashing on this for most of last
night but figured it out in the morning.
I had a slightly different experience (mainly encrypted root with LVM),
so recording it in full for The People Of The Future™. This is very
similar to Adam's post and the answer at
http://superuser.com/questions/376470/how-to-reinstall-grub2-efi
- Boot live CD and open terminal.
- Connect to wifi and ensure that your resolv.conf has a good nameserver (e.g. you can `dig google.com`).
- $ sudo su -
- Use gdisk (or fdisk) to check which disk is your HDD. Mine was /dev/sda
- # cryptsetup open /dev/sda3 myroot ## You will need the passphrase for this.
- # lvdisplay ## Find the path of your root volume. Mine was /dev/ubuntu-vg/root
- # mount /dev/ubuntu-vg/root /mnt
- # mount /dev/sda2 /mnt/boot ## Required for doing update-grub later.
- # mkdir /mnt/boot/efi ; mount /dev/sda1 /mnt/boot/efi
- # for i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt$i; done
- # cp /etc/resolv.conf /mnt/etc/ ## Makes the network available after chrooting.
- # modprobe efivars
- #chroot /mnt
- Add "deb http://au.archive.ubuntu.com/ubuntu/ trusty main restricted" to /etc/apt/sources.list
- # apt-get update
- # apt-get install efibootmgr=0.5.4-7ubuntu1
- # update-grub
- # ls /boot/efi/EFI/ubuntu ## Find the efi files that you might need. Mine was shimx64.efi & grubx64.efi
- # efibootmgr -c --disk /dev/sda --part 1 --loader '\EFI\ubuntu\shimx64.efi' --label 'Linux shim' ## Where ' --part 1' is your EFI partition number on '--disk /dev/sda'.
- # efibootmgr -c --disk /dev/sda --part 1 --loader '\EFI\ubuntu\grubx64.efi' --label 'Linux grub'
- # efibootmgr -v ## Verify the new records.
- Ctrl+D to leave the chroot.
- # umount /dev/sda1 # dismount EFI volume
- # umount /dev/sda2 # dismount boot volume
- # reboot
Thanks again everyone - you saved my weekend.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/1387654
Title:
installing or upgrading to Ubuntu 14.10 kills Boot Manager on ThinkPad
W540
Status in efibootmgr package in Ubuntu:
Confirmed
Status in ubuntu-release-upgrader package in Ubuntu:
Confirmed
Bug description:
When you install or upgrade to Ubuntu 14.10 on a Lenovo ThinkPad W540
after a reboot the machine prints:
Boot Manager recover from critical error. Some essential variables are absent or corrupted and Boot Manager has restored them from default configuration. Press Esc to continue or F1 to enter Setup.
Then restores to default configuration (eg only Windows boots)
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: ubuntu-release-upgrader-core 1:14.10.9
ProcVersionSignature: Ubuntu 3.16.0-23.31-generic 3.16.4
Uname: Linux 3.16.0-23-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.14.7-0ubuntu8
Architecture: amd64
CrashDB: ubuntu
CurrentDesktop: Unity
Date: Thu Oct 30 13:10:43 2014
EcryptfsInUse: Yes
InstallationDate: Installed on 2014-10-27 (3 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
PackageArchitecture: all
SourcePackage: ubuntu-release-upgrader
Symptom: release-upgrade
UpgradeStatus: Upgraded to utopic on 2014-10-28 (2 days ago)
VarLogDistupgradeTermlog:
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/efibootmgr/+bug/1387654/+subscriptions
More information about the foundations-bugs
mailing list