PDA

View Full Version : [SOLVED] GRUB won't boot after dual OS install



chris336
January 5th, 2015, 05:46 AM
I just installed 14.10 along side Windows 7. After restarting the computer GRUB never came up. I already tried the boot-repair and it said it worked but didn't. Here is my info from that: http://paste.ubuntu.com/9674838/.

I'm a new Ubuntu user and I really appreciate the help!

grahammechanical
January 5th, 2015, 02:06 PM
Try this




[*=left]In your BIOS, disable QuickBoot/FastBoot (http://ubuntuforums.org/showpost.php?p=12397979&postcount=9) and Intel Smart Response Technology (http://ubuntuforums.org/showpost.php?p=12460938&postcount=6) (SRT). If you have Windows8, also disable FastStartup (http://www.eightforums.com/tutorials/6320-fast-startup-turn-off-windows-8-a.html).



https://help.ubuntu.com/community/UEFI

Windows 7 in installed in EFI mode. That means that Ubuntu needed to be installed in EFI mode. That may have been the case. Anyway, Boot Repair has made sure that the correct EFI boot files for Ubuntu are in the correct partition. Boot Repair also gives this advice.


Please do not forget to make your BIOS boot on sda (3001GB) disk!

If your computer reboots directly into Windows, try to change the boot order in your BIOS.
If your BIOS does not allow to change the boot order, change the default boot entry of the Windows bootloader.
For example you can boot into Windows, then type the following command in an admin command prompt:
bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi

Please confirm that you have followed the advice.

Regards.

oldfred
January 5th, 2015, 04:11 PM
What brand/model system?

You seem to have some issue with partitions.

/dev/sda6 3,402,842,112 2,639,306,751 -763,535,360 Data partition (Linux)

You cannot have a minus partition size.

Download into live installer gdisk and post this:
sudo apt-get install gdisk
sudo gdisk -l /dev/sda

chris336
January 6th, 2015, 01:55 AM
Try this



https://help.ubuntu.com/community/UEFI

Windows 7 in installed in EFI mode. That means that Ubuntu needed to be installed in EFI mode. That may have been the case. Anyway, Boot Repair has made sure that the correct EFI boot files for Ubuntu are in the correct partition. Boot Repair also gives this advice.



Please confirm that you have followed the advice.

Regards.

Tried both with no luck,


What brand/model system?

You seem to have some issue with partitions.

/dev/sda6 3,402,842,112 2,639,306,751 -763,535,360 Data partition (Linux)

You cannot have a minus partition size.

Download into live installer gdisk and post this:
sudo apt-get install gdisk
sudo gdisk -l /dev/sda

This system is a custom build:

CPU: i7 920
MOBO: x58-UD5
RAM: 6gb
HDD: 3 TB Seagate
GPU: 2 Radeon HD 5850s Crossfire

Here is the data from gdisk:

Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 5860533168 sectors, 2.7 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): 6C198DA9-089D-4A11-A9FB-78CBE0CF464C
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 5860533134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2925 sectors (1.4 MiB)

Number Start (sector) End (sector) Size Code Name
1 2048 206847 100.0 MiB EF00 EFI system partition
2 206848 468991 128.0 MiB 0C01 Microsoft reserved part
3 468992 3164561407 1.5 TiB 0700 Basic data partition
4 3164561408 3379404799 102.4 GiB 8300
5 3379404800 3402842111 11.2 GiB 8200
6 3402842112 5860532223 1.1 TiB 8300

alfred8
January 7th, 2015, 02:22 AM
Hi,

Have you tried commenting out GRUB_HIDDEN_TIMEOUT?

sudo gedit /etc/default/grub

Change GRUB_HIDDEN_TIMEOUT to #GRUB_HIDDEN_TIMEOUT.

then sudo update-grub and reboot your PC.

Regards!

chris336
January 7th, 2015, 02:35 AM
Hi,

Have you tried commenting out GRUB_HIDDEN_TIMEOUT?

sudo gedit /etc/default/grub

Change GRUB_HIDDEN_TIMEOUT to #GRUB_HIDDEN_TIMEOUT.

then sudo update-grub and reboot your PC.

Regards!

Attempted this but upon the sudo update-grub command I received the following message:

/usr/sbin/grub-probe: error: failed to get canonical path of `/cow'.

oldfred
January 7th, 2015, 04:00 PM
Sounds like you did the changes & updates to the live installer which will not work, not on your install.

Did gdisk say you had any errors? or loading backup, not primary? If so and partitions look ok, then do a w to write changes.
GPT fdisk Tutorial - user srs5694 in forums
http://ubuntuforums.org/showthread.php?t=1439794
http://www.rodsbooks.com/gdisk/

chris336
January 8th, 2015, 05:24 AM
I don't recall any error with gdisk. Although, evertime I load up Ubuntu from Live CD I get the following error before the list of options: Unable to load: "fallback/boot.efi" on line 14. That probably isn't the exact error but it's close.

oldfred
January 8th, 2015, 04:34 PM
Some UEFI have a fall back setting.
See post #11 for possible solution. Copies grub to fallback.efi.

Could not open "\EFI\BOOT\fallback.efi"
https://bugs.launchpad.net/ubuntu/+bug/1241824

chris336
January 9th, 2015, 03:54 AM
Some UEFI have a fall back setting.
See post #11 for possible solution. Copies grub to fallback.efi.

Could not open "\EFI\BOOT\fallback.efi"
https://bugs.launchpad.net/ubuntu/+bug/1241824

I tried to do it but wasn't able to find the file anywhere. I even checked to see if they were hidden. The post was very broad also. Not sure exactly where to copy from or to. This is getting frustrating. I have been trying for about 3 days now.

oldfred
January 9th, 2015, 04:35 PM
Some systems do not have a /EFI/Boot folder in the efi partition, but you do.

Then look at post #11 and copy grub or shim into it and rename it.
May be easier with Nautilus from live installer.

If using terminal:
From live installer mount the efi partition on hard drive, lines with # are comments only:
#Mount efi partition. check which partition is FAT32 with boot flag. Often sda1 or sda2 but varies.
mount /dev/sda1 /mnt
#only if not already existing,
mkdir /mnt/EFI/Boot
cp /mnt/EFI/ubuntu/* /mnt/EFI/Boot
# If new folder created, the bootx64.efi will not exist, skip this command
mv /mnt/EFI/Boot/bootx64.efi /mnt/EFI/Boot/bootx64.efi.backup
# make grub be hard drive boot entry in UEFI. If not existing, may have to update UEFI also with efibootmgr.
cp /mnt/EFI/Boot/grubx64.efi /mnt/EFI/Boot/bootx64.efi
cp /mnt/EFI/Boot/shimx64.efi /mnt/EFI/Boot/fallback.efi

chris336
January 15th, 2015, 04:26 AM
I want to thank everyone who helped with this. I did was oldfred said and it works perfectly!

oldfred
January 15th, 2015, 02:37 PM
Glad you got it working. :)

Please change status to solved.