Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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
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:
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.
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
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
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.
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.
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.
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.
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.
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.