LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-21-2016, 04:23 AM   #1
ivy2011
LQ Newbie
 
Registered: Mar 2016
Posts: 3

Rep: Reputation: Disabled
Installed Win10 next to linux, dual boot fails (EasyBCD)


Hi
I've been running Sabayon linux for a long time and are very happy with it. Yesterday I installed Windows 10 on a extra (new) HD, went smooth.
When I boot, it would log me in to Windows 10 without providing me the option to select which OS I wanted to boot into.

So I run EasyBCD to alter my boot mbr menu.
I added a new entry (Linux), with grub2 selected.

When I reboot, I get the windows 10 boot menu which now shows two options (Windows and linux). After selecting Linux, the screen turns black and reads "Try hd(0,0): ext".

Can someone please help me out?
I've tried many things now, googled a lot - but I'm honestly stuck.

Thanks for any input.
Let me know if I need to provide any feedback/outputs etc.

Status quo: I can only boot into Windows 10 now. Thanks, MS
 
Old 03-21-2016, 09:26 PM   #2
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 3,190

Rep: Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381Reputation: 1381
Sympathy

Had you googled prior to the install you would have found a LOT of advice about doing that the other way around, or not doing it at all.
Microsoft installs are well known for assuming that everything belongs to them and overwriting all other boot blocks without warning or recourse.

Ok, now that you are in the soup, know that there IS a way out. Google again, this time looking for how to recover the linux boot. You will find advice involving a live-cd version of linux (with a grub of the same major version as they one you have been using) and restoring (re-installing) the grub boot block install. This can be tricky, so read more than one and think about it a little first. You may want to boot the live-cd a couple of times and examine the detected devices and file systems before actually writing anything to disk.

Windows does not detect (or care about) linux or grub, but grub and linux can detect and play nice with Windows. Your grub should detect both linux and Windows and (once reinstalled) present a menu to start either you wish.

Remember this next time: the only safe order is windows first, then linux, because Linux can detect and protect Windows while Windows cannot detect or protect anything.

Pop back here if you run into problems.
 
Old 03-21-2016, 10:30 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,477

Rep: Reputation: 3093Reputation: 3093Reputation: 3093Reputation: 3093Reputation: 3093Reputation: 3093Reputation: 3093Reputation: 3093Reputation: 3093Reputation: 3093Reputation: 3093
M$oft just make things difficult - separate disks like that should be do-able.
At the blank screen immediately after power-on, get into the boot list (BIOS or UEFI should both have a key for this - watch the screen or try F12, F10, <Esc>, <Del> ...). Pick the disk that has Sabayon on it and boot that. If it's UEFI you may have to dig around to get the entry for Linux.
Once in Linux run these from a terminal (root/sudo as needed) and post the output
Code:
parted -l
lsblk -f
[ -d /sys/firmware/efi ] && echo "EFI" || echo "Legacy"
 
Old 03-22-2016, 07:17 AM   #4
ivy2011
LQ Newbie
 
Registered: Mar 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi again. Thanks for the replies, I've gotten much further now.
I was not able to boot into the linux disk, not even by changing the boot order in the bios (running legacy, non-uefi btw).
Looks like Windows 10 did a great job cleaning up all bootloaders

However, I did manage to re-install grub2.
What I did for this was:
- boot from sabayon dvd, recovery disk (made sure boot order was correct in bios)
- create dir /mnt/root
- OPTIONAL (if using LVM): had to run "vgscan" + "vgchange -ay MY_VG_NAME" first to activate the volume group
- OPTIONAL (if using LVM): run "sudo lvdisplay" to show logical volumes, and find the root volume
- mount /dev/MY_VG_NAME/root /mnt/root
- run "grub2-install /dev/sda --boot-directory=/mnt/root" (check that /dev/sda is your linux disk, could be sdb/sdc/... etc. as well)
- reboot, change boot order in bios (linux disk first), and reboot again

After this, I was booting into grub2 shell.

I am not sure how to configure my grub2 yet (so it shows "Linux" and "Windows 10"), working on that now.
Will post update if I figured it out.

Tip: if you have trouble booting into grub, create a bootable cd/dvd/usb with super-grub2-disk (http://www.supergrubdisk.org/super-grub2-disk/).
It can be quite useful.
 
Old 03-22-2016, 08:17 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,477

Rep: Reputation: 3093Reputation: 3093Reputation: 3093Reputation: 3093Reputation: 3093Reputation: 3093Reputation: 3093Reputation: 3093Reputation: 3093Reputation: 3093Reputation: 3093
Just run grub-mkconfig - presuming os-prober is installed (it generally is with grub2 these days).
 
Old 03-22-2016, 08:22 AM   #6
ivy2011
LQ Newbie
 
Registered: Mar 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
Just run grub-mkconfig - presuming os-prober is installed (it generally is with grub2 these days).
Thanks again. This was indeed doing the job.
I had to boot into my linux installation first though, which I could only manage by using the "super-grub2-disk" bootable dvd.
When I did manage to boot into my linux installation, I ran:
- grub2-mkconfig

After rebooting and setting correct boot-order in the bios, the grub menu showed both linux (Sabayon) and windows 10.
Windows 10 works fine, but the linux entry fails to boot.
However, if I select "Sabayon recovery mode" and pick an older kernel, it works fine.

This however has to do with my linux installation and is outside the scope of this post (tips are welcome though ).

Thanks for the help!
 
Old 03-22-2016, 10:02 AM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware FreeBSD Win10 MX
Posts: 9,591

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Quote:
Originally Posted by ivy2011 View Post
Hi
I've been running Sabayon linux for a long time and are very happy with it. Yesterday I installed Windows 10 on a extra (new) HD, went smooth.
When I boot, it would log me in to Windows 10 without providing me the option to select which OS I wanted to boot into.

So I run EasyBCD to alter my boot mbr menu.
I added a new entry (Linux), with grub2 selected.

When I reboot, I get the windows 10 boot menu which now shows two options (Windows and linux). After selecting Linux, the screen turns black and reads "Try hd(0,0): ext".

Can someone please help me out?
I've tried many things now, googled a lot - but I'm honestly stuck.

Thanks for any input.
Let me know if I need to provide any feedback/outputs etc.

Status quo: I can only boot into Windows 10 now. Thanks, MS
you are using BACKWARDS Logic.

I have the same set up now too. one HDD Linux, the second HDD Windows 10

Grub uses it to boot. set your Linux to be the first boot HDD and let grub deal with it. so simple.
Code:
#update-grub
it will pick up windows done.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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] Dual Boot com Windows 7 usando o EasyBCD Daniel Marucci Linux - Newbie 1 05-14-2010 03:09 PM
Dual Boot, Vista + Fedora, 2 HDD, EasyBcd boot manager = Fedora not start 6yp Linux - Newbie 7 10-29-2008 07:44 PM
dual boot (linux installed first) allyghee Linux - Newbie 2 09-12-2007 07:51 PM
EASYBCD Boot problem kartik3vv Linux - Software 1 09-11-2007 03:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:51 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration