LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-17-2016, 03:51 PM   #1
danutzdobre
LQ Newbie
 
Registered: Jan 2016
Posts: 14

Rep: Reputation: Disabled
linux mint/windows 7 dual boot issue


Hello,

I am trying to get a dual boot with Windows 7 and Linux mint.
My system is an HP EliteBook 2560p.
I had windows 7 installed EFI.
I booted Linux mint live in EFI mode from USB and installed it on my hard drive. Instalation went ok, with no warnings or errors.
After reboot the laptop boots directly in Windows.

I have tried to boot from USB again in linux mint and to install grub but i get the error "grub-probe: error: failed to get canonical path of `/cow'"
I have searched and did not find anything that works. (I am new with linux).

Can you help me add Linux as a second boot option? I do not care if it is by using grub or using other windows boot application.

-I have tried grub-update or grub install but i get same /cow error.
-Someone suggested to install grub2 on mbr. Is this safe when both are installed EFI? How do i do that? Will i be able to boot both windows and linux if i do that?
-I tried deactivating the UEFI boot and windows did not start either. No OS was visible on start.

Thank you.
Danut
 
Old 01-17-2016, 05:59 PM   #2
offgridguy
Senior Member
 
Registered: Nov 2015
Location: Alberta Canada
Distribution: Windows10, Debian
Posts: 1,109

Rep: Reputation: 147Reputation: 147
I cannot help you much as I have never dual-booted using UEFI, However I would recommend DO NOT install grub 2 on MBR, as UEFI indicates you are already installed to a GPT partition table.
 
Old 01-17-2016, 07:20 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Probably simply a default boot issue. When the systems reboots, interrupt the boot immediately the screen goes blank and get into the (UEFI) boot list.
There should be an entry for "Ubuntu" (IIRC - not Mint). Select that, and it should boot into your Mint. Once there you can change the default boot entry using efibootmgr - the manpage has all the info you need. Here is what the manpage shows as an example
Code:
[root@localhost ~]# efibootmgr
       BootCurrent: 0004
       BootNext: 0003
       BootOrder: 0004,0000,0001,0002,0003
       Timeout: 30 seconds
       Boot0000* Diskette Drive(device:0)
       Boot0001* CD-ROM Drive(device:FF)
       Boot0002* Hard Drive(Device:80)/HD(Part1,Sig00112233)
       Boot0003* PXE Boot: MAC(00D0B7C15D91)
       Boot0004* Linux
 
Old 01-17-2016, 07:48 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
Can you help me add Linux as a second boot option? I do not care if it is by using grub or using other windows boot application.
I don't know of any windows app that will boot any Linux although there is third party software such as EasyBCD. I don't know if it will work with UEFI. Booting Mint in UEFI was correct. If windows is UEFI, then Mint must also be. Some General Principles explain it at the link below:

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

Boot the Mint install medium and mount the EFI partition to take a look at it. You should have files there for both windows and Mint. The Mint files will be named ubuntu as pointed out above. I would suggest you use the Mint install medium and go to the site below and use the instructions to get boot repair. After running it, post a link to the output here.

https://help.ubuntu.com/community/Boot-Repair

I would suggest you try the method suggested by syg00 above before doing the boot repair.
 
Old 01-18-2016, 12:19 PM   #5
danutzdobre
LQ Newbie
 
Registered: Jan 2016
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
Probably simply a default boot issue. When the systems reboots, interrupt the boot immediately the screen goes blank and get into the (UEFI) boot list.
There should be an entry for "Ubuntu" (IIRC - not Mint). Select that, and it should boot into your Mint. Once there you can change the default boot entry using efibootmgr - the manpage has all the info you need. Here is what the manpage shows as an example
Code:
[root@localhost ~]# efibootmgr
       BootCurrent: 0004
       BootNext: 0003
       BootOrder: 0004,0000,0001,0002,0003
       Timeout: 30 seconds
       Boot0000* Diskette Drive(device:0)
       Boot0001* CD-ROM Drive(device:FF)
       Boot0002* Hard Drive(Device:80)/HD(Part1,Sig00112233)
       Boot0003* PXE Boot: MAC(00D0B7C15D91)
       Boot0004* Linux
Can you please give me more details on how to do this? On restart Windows boots by default. How do i stop windows from booting to get into the UEFI boot list?

@yancek i will give it a look after i get a reply from @syg00 and try his advice as you suggested

Thank you
 
Old 01-18-2016, 05:57 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Depends on hardware - if you have a user guide look in there. Sometimes you'll see a line on the initial screen specifying which key to hit. Else just try a few - Esc, F2, F10 or F12 are common, although it might even be the Del key.
 
Old 01-18-2016, 11:40 PM   #7
zrdc28
Member
 
Registered: Dec 2007
Location: Alabama USA
Distribution: Slackware current
Posts: 309

Rep: Reputation: 55
A quick and easy way to do this is to download super grub and burn it to a CD. Boot & start super grub. It will correct and create a boot up for mbr. it will offer to boot linux or windows or both.
 
Old 01-19-2016, 05:40 AM   #8
danutzdobre
LQ Newbie
 
Registered: Jan 2016
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
Depends on hardware - if you have a user guide look in there. Sometimes you'll see a line on the initial screen specifying which key to hit. Else just try a few - Esc, F2, F10 or F12 are common, although it might even be the Del key.
Oh, I thaught you were talking about another menu to show me the boot options.

On my laptop I hit Esc to open the first menu with all the bios options (EFI). There is no manu entry to see what system to load.

I reinstalled Linux from the Linux live UBS and i placed the Boot loader on the Linux partition (don't want to replace MBR). I then created a partition (fat32) and extracted the first 512 kb in a file to that partition and went to windows and tried to add it to the EFI menu as an option. I can see the option now but Linux will not boot. i will post more details today when i get back home and continue to investigate.
 
Old 01-19-2016, 07:20 AM   #9
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
I then created a partition (fat32) and extracted the first 512 kb in a file to that partition
You should already have an EFI partition if you had windows installed EFI and that is where the Linux files. Post the output from boot repair and don't try to do any repairs but select Create BootInfo Summary.
 
1 members found this post helpful.
Old 01-19-2016, 02:03 PM   #10
danutzdobre
LQ Newbie
 
Registered: Jan 2016
Posts: 14

Original Poster
Rep: Reputation: Disabled
Did not try the BootInfo summary yet because i need to do that from linux.

I tried this
https://www.iceflatline.com/2009/09/...using-bcdedit/

That's why i created a fat32 partition. But apparently did not work.
 
Old 01-19-2016, 06:48 PM   #11
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
The FAT32 partition suggested in the link you posted is simply for sharing data between windows and Linux. It could be ntfs. It has nothing to do with booting. It also explains how to boot a Linux from windows installed using MBR and not EFI so I don't see how that will help in your situation.
 
Old 01-19-2016, 07:34 PM   #12
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by danutzdobre View Post
On my laptop I hit Esc to open the first menu with all the bios options (EFI). There is no manu entry to see what system to load.
There must be somewhere - on one of my machines I get a list of options after <Esc>, one of which is F9 to list boot options. From there I can select which system to boot.
Quote:
Did not try the BootInfo summary yet because i need to do that from linux.
Run it from a live/install CD/USB - we can't help you if we don't have hard data rather than guess-work.

Also (from the Linux liveCD) run this and show us the output
Code:
 [ -d /sys/firmware/efi ] && echo UEFI || echo BIOS

Last edited by syg00; 01-19-2016 at 09:05 PM. Reason: last bit
 
1 members found this post helpful.
Old 01-20-2016, 11:30 AM   #13
danutzdobre
LQ Newbie
 
Registered: Jan 2016
Posts: 14

Original Poster
Rep: Reputation: Disabled
I logged into Mint live and ran

Code:

[ -d /sys/firmware/efi ] && echo UEFI || echo BIOS


the result was UEFI

Then I installed the BootRepair and ran a check. The results are here: http://paste2.org/GOWI4GYY

Should i do a repair?
 
Old 01-20-2016, 02:41 PM   #14
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
You indicated in an earlier post that you had disabled EFI. Have you re-enabled it? If not, you need to. You have no boot code in the MBR which is correct and you do also have both windows and Mint files in sda1 which is the EFI partition. I notice that none of the windows partitions is marked active/bootable which is usually required, at least with MBR. I'm not sure with EFI. Someone with more knowledge of it will have to advise you.
 
Old 01-20-2016, 02:51 PM   #15
danutzdobre
LQ Newbie
 
Registered: Jan 2016
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
You indicated in an earlier post that you had disabled EFI. Have you re-enabled it? If not, you need to. You have no boot code in the MBR which is correct and you do also have both windows and Mint files in sda1 which is the EFI partition. I notice that none of the windows partitions is marked active/bootable which is usually required, at least with MBR. I'm not sure with EFI. Someone with more knowledge of it will have to advise you.
I have disabled EFI because someone told me to try. Doing that my laptop did not boot at all. No windows and no Linux available. I had to enable it for my Windows to work.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Windows fonts from a PC (Windows 7) to another PC (Linux Mint (17.2)) - not dual boot ArtKautz Linux - Newbie 9 09-30-2015 08:42 AM
how do I dual boot linux mint and windows 8? stewart858 Linux - Newbie 3 05-26-2014 02:00 AM
Dual boot linux Mint - Windows 8 vixa Linux - Newbie 4 09-14-2013 05:42 AM
[SOLVED] Dual Boot Windows 7 and Linux Mint 13, Windows failed jasperbuckens Linux - Software 6 12-21-2012 01:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration