I think I know how to recover - perhaps someone can comment

Hi,

I installed windows server 2012 and now the grub loader is gone. I think what I need to do is to disable secure boot and then boot to rescue and follow the mbr recovery procedure. Is this correct. Prior to installing windows Opensuse was running fine and I took care to install windows in a different partition. Do I have the recovery process right?

What version of openSUSE

On 2014-01-13 15:36, exponent wrote:
>
> Hi,
>
> I installed windows server 2012 and now the grub loader is gone. I think
> what I need to do is to disable secure boot and then boot to rescue and
> follow the mbr recovery procedure. Is this correct. Prior to installing
> windows Opensuse was running fine and I took care to install windows in
> a different partition. Do I have the recovery process right?

Sometimes.

Where I double boot with Windows, I do not allow grub to install on the
MBR, not to write its own generic boot code. Instead, grub goes to the
root partition, and I just change the active partition boot mark.

Also, it is recommended to install Windows first.

The reason to not modifying the MBR is that it impedes aplication of
Windows service packs, when they come. At that time, I restore the boot
mark to the Windows partition. Boot is happy, it does not see grub, and
the SP installs fine. Otherwise you get very strange errors.

Once the SP is installed, I simply change the boot mark again.

The alternative to this is using Windows bcdedit to choose the system to
boot, not grub.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

If I look at boot in system services in windows server 2012 what I see is

Windows Server 2012 R2 (C:\windows) | Current OS, Default OS

How do I use BCedit to change the boot options?

I know the Linux partitions are still there and I would really harte to install again especially if I run into the system not working again. Right now windows boots fine.

That may or may not work. Depends.

Can you boot to a live Linux DVD or CD?

If so do that and show us

fdisk -l
note that is a lower case L not a one

Remember that Windows hates all other OS’s and does not play nice

I have a bootable USB stick that I can run rescue from. This is new territory for me. I’d really be groaning if I had to completely reinstall and got left with only one operating OS.

I have a bootable USB stick that I can run rescue from. This is new territory for me. I’d really be groaning if I had to completely reinstall and got left with only one operating OS.

https://forums.opensuse.org/content.php/128-re-install-grub2-dvd-rescue.html

On 2014-01-13 16:56, exponent wrote:

> How do I use BCedit to change the boot options?

Have a look here:

http://en.wikipedia.org/wiki/EasyBCD

The native bcdedit.exe is complicated to use, I never succeeded with it.
EasyBCD is nice, and works well with W7 and W2008. I have not tried W8.

But for this to work, you need grub to be installed on the Linux root
partition, and I guess it is not.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Easyboot wants $79.95 with no telephone support and no guarantee. I have to pass on that.

On 2014-01-13 21:26, exponent wrote:
>
> Easyboot wants $79.95 with no telephone support and no guarantee. I have
> to pass on that.

What’s that for?

Easybcd is free of charge. I said nothing about easyboot.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

I found the Linux root partition (sda6)

So I followed the directions to a T and everything worked until I typed chroot /mnt. At that point the prompt changed to rescue:/> and when I type

mount /proc

I get a message

mount failed: no such file or directory

The article refers to Arch and forgive me for being naïve but I have no idea what Arch is. Now I don’t know if this is applicable but I have been told that on some UEFI versions some distros just wont run if windows has ever been installed. Opensuse was running but once windows installed Grub was gone.

And to add more confusion if you read the post and look at the screenshot of the command the commands typed are different! Now I am thoroughly confused which instructions are correct, the ones in the link or the ones in the screenshot? The screenshot link from the article is here

https://dl.dropboxusercontent.com/u/10573557/Grub2_Project/rescue.jpg

That’s what the website says but no matter which links I select I get prompted for a payment on download.

On 2014-01-13 22:06, exponent wrote:

> So I followed the directions to a T and everything worked until I typed
> chroot /mnt. At that point the prompt changed to rescue:/> and when I
> type
>
>
> mount /proc
>
> I get a message
>
> mount failed: no such file or directory

I do not understand why the instructions try to mount “/proc” after
doing the chroot, it will fail, obviously.

Instead you have to do:


mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys

just after you do the same to mount “/dev” on those instructions, and
before you do the chroot.

The previous instructions might work on 12.3, but not on 13.1 because
there is no “proc” entry in the fstab file, it has been intentionally
removed (systemd handles it).

> The article refers to Arch and forgive me for being naïve but I have no
> idea what Arch is.

Another distro.

http://en.wikipedia.org/wiki/Arch_Linux

> Now I don’t know if this is applicable but I have
> been told that on some UEFI versions some distros just wont run if
> windows has ever been installed. Opensuse was running but once windows
> installed Grub was gone.

Warning: if you have uefi, the easybcd route I mentioned on the other
post will NOT work.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

On 2014-01-13 22:16, exponent wrote:

> That’s what the website says but no matter which links I select I get
> prompted for a payment on download.

I have no idea about that… must be new.

I see on this page:


https://neosmart.net/EasyBCD/

three options. There is a non-commercial version, a commercial version,
and a repair tool. Apparently for the non-commercial one you have to
register first. Have you tried that one?

But anyway, I read on another post you mention UEFI. To my knowledge,
this tool doesn’t work with uefi.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

So I got a little bit farther today (day4). I was almost ready to capitulate and reinstall but was worried I would just end up back where I am if I don’t do something different. I ignored the commands in the rescue sticky that didn’t work and got my machine to boot Linux but now no windows. The MB is ASUS M5A97 with ASus UEFI BIOS 2006 and an AMD 4300 CPU. In BIOS I have settings for

BOOT DEVICE CONTROL - Legacy, UEFI or both - right now set for both.

The same applies for network, storage and PCI expansion options. Where should this be set?

Window server 2012 is still on disk but the machine now boots straight into Linux. Prior to this it was the other way around. It booted straight into windows. Right now both OSES are on same HD but I can switch HDS if I have to. I just need to have the option of running Linux or Windows. It doesn’t matter much to me how I switch as long as it isn’t a reinstall each time. Any ideas her from anyone is appreciated.

On 2014-01-13 22:56, exponent wrote:

> Window server 2012 is still on disk but the machine now boots straight
> into Linux. Prior to this it was the other way around. It booted
> straight into windows. Right now both OSES are on same HD but I can
> switch HDS if I have to. I just need to have the option of running Linux
> or Windows. It doesn’t matter much to me how I switch as long as it
> isn’t a reinstall each time. Any ideas her from anyone is appreciated.

We need to know if this is a UEFI setup, with GPT partitioning, or
traditional MBR partitioning.

If it is UEFI and GPT, I can not help, I’m not experienced on that.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Just a minute there.

This does not make sense.

If “secure boot” is involved, then you have a UEFI box. And if you are doing UEFI booting, the MBR has nothing to do with it.

I guess I’m looking for clarification at this point.

In the BIOS there is an option for Secure Boot. The options are Windows UEFI or Other OS

I have other OS selected.

There is an option for boot device control. The options are Legacy, UEFI AND Legacy

I have selected UEFI and Legacy.

I don’t think it is UEFI as if I disconnect the HD there is no GRUB. Now EasyBCD is of no use to me because I cant currently boot windows. I have both OSES (Server 2012 and Linux) on the same drive. I want to be able to switch between them at boot time. Now that said I don’t mind if I have to install windows on a different HD and then swap the HDS when I boot. That is an option. right now only Linux works, Windows was working but I followed some directions posted to recover Linux and no I can only boot Linux even though windows partition is still there. Any option to dualboot is acceptable as long as I don’t have top continually reinstall software.