reinstall/reconfigure GRUB for a new OS

Help with issues regarding installation of Debian

Re: reinstall/reconfigure GRUB for a new OS

Postby mzimmers » 2017-04-09 14:06

Thanks for the information, guys. This is quite a learning experience, but I'm grateful for all the help. I've posted in the ASRock forum about disabling legacy boot, as I couldn't find mention of it in my owners manual nor online (specific to ASRock). I'm a little concerned that such a feature may not exist on my board (the firmware is described as "64Mb AMI UEFI Legal BIOS" in the manual), but hopefully I'll know more soon.
mzimmers
 
Posts: 74
Joined: 2016-12-11 23:49

Re: reinstall/reconfigure GRUB for a new OS

Postby Dai_trying » 2017-04-09 14:11

It might be something like enable CSM in your bios.
Dai_trying
 
Posts: 274
Joined: 2016-01-07 12:25

Re: reinstall/reconfigure GRUB for a new OS

Postby mzimmers » 2017-04-09 14:38

Dai_trying wrote:It might be something like enable CSM in your bios.


Indeed it was. Thanks...I guess I'll try reinstalling now. I think I'll do Debian first, and then Windows. That'll make it easier for me to format the Windows drive. Back in a while...
mzimmers
 
Posts: 74
Joined: 2016-12-11 23:49

Re: reinstall/reconfigure GRUB for a new OS

Postby GarryRicketson » 2017-04-09 15:39

by mzimmers » I think I'll do Debian first, and then Windows. That'll make it easier for me to format the Windows drive. Back in a while...


I think you need to do some research first, I don't use windows, and never install it on my hardware. But I did do some experiments, and also based on research,
I found that one can not install windows, without destroying the other partitions,
Windows must be installed first, then the partition resized, a new one created, and
Debian, or what ever installed to the new partition.
In any event , when it comes to the MS windows, I don't know anything, except that everything works better with out it.
But what ever, good luck, do what you want.
User avatar
GarryRicketson
 
Posts: 3963
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: reinstall/reconfigure GRUB for a new OS

Postby mzimmers » 2017-04-09 15:42

Hi, Garry -

Thanks for the post. I'm installing Windows on a separate disk, so I think I'm OK. I guess we'll see, though...
mzimmers
 
Posts: 74
Joined: 2016-12-11 23:49

Re: reinstall/reconfigure GRUB for a new OS

Postby GarryRicketson » 2017-04-09 15:45

Oops, Ok, well that is a different ball game, I thought you ment on
the same HD, (disk),... sorry
User avatar
GarryRicketson
 
Posts: 3963
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: reinstall/reconfigure GRUB for a new OS

Postby phenest » 2017-04-09 16:01

GarryRicketson wrote:In any event , when it comes to the MS windows, I don't know anything,

That much is clear. That was some very misguided advice.
GarryRicketson wrote:I think you need to do some research first

Shame you didn't this thread fully.
NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS Sabertooth P67 i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1571
Joined: 2010-03-09 09:38
Location: The Matrix

Re: reinstall/reconfigure GRUB for a new OS

Postby mzimmers » 2017-04-09 16:16

Status report:

1. I've installed Debian (including grub-efi) successfully, and all is good in that world.
2. When I try to boot from my Windows installation DVD with CSM disabled, it hangs. If I re-enable CSM, it works, but I'm concerned that if I install, it won't create GPT partitions. My plan is to use gparted to create the partitions first, then install, then disable CSM again. Does this have a chance of working?

If I go this route, my intention is to use this as a partitioning guide:
https://msdn.microsoft.com/en-us/windows/hardware/commercialize/manufacture/desktop/configure-uefigpt-based-hard-drive-partitions#recommendedpartitionconfigurations

It brings up a couple of questions, though. Do I still need a System partition (since I have an ESP on my Debian disk already), or is this liable to cause confusion for GRUB?

Thanks...
mzimmers
 
Posts: 74
Joined: 2016-12-11 23:49

Re: reinstall/reconfigure GRUB for a new OS

Postby phenest » 2017-04-09 16:45

Both Debian and Windows installers check your BIOS to see whether you're using UEFI booting or not. If you are, it will create GPT, and if not, it will create MBR.

Don't use gparted. Let Windows do it itself.

If you've installed Debian first, Windows will auto detect the ESP on the Debian drive and use that. If you don't want it to use the Debian one, disconnect the Debian drive before proceeding, and Windows will create a new one on the Windows drive.

EDIT: It's completely normal for multiple OS's to share one ESP. That's part of its design.
NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS Sabertooth P67 i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1571
Joined: 2010-03-09 09:38
Location: The Matrix

Re: reinstall/reconfigure GRUB for a new OS

Postby mzimmers » 2017-04-09 19:06

I think we're getting somewhere. Current status is:

  • both drives formatted for GPT
  • Windows installed on /dev/sda; Debian o /dev/sdb
  • grub-efi installed and seems to be (sort of) working
So this is really good news, and definite progress.

I say "sort of" above because the behavior isn't yet quite what I wanted all along. When CSM mode is disabled, Windows doesn't start up correctly -- I get "an error occurred while attempted to read the boot configuration data." Does this mean that Windows doesn't know about the GRUB information on the Debian disk?

And, when CSM mode is enabled, I don't get the GRUB menu. I can still boot Debian, but I have to use the UEFI boot menu.

Phenest: is it at long last time for me to run the commands you gave me on the first page?

Code: Select all
mount /dev/sdb1 /boot/efi
apt-get install --reinstall grub-efi
grub-install /dev/sdb
update-grub
exit


Thank you...this is very encouraging.
mzimmers
 
Posts: 74
Joined: 2016-12-11 23:49

Re: reinstall/reconfigure GRUB for a new OS

Postby phenest » 2017-04-11 13:46

mzimmers wrote:[list][*]both drives formatted for GPT
...
When CSM mode is disabled, Windows doesn't start up correctly

Why did you change the CSM setting after formatting?

All you have to do is disable CSM in the BIOS. Install Debian and install Windows (or whichever order you want). GPT will automatically be used because CSM is disabled in the BIOS.

There is no need for you to select GPT or MBR manually because the installers check the BIOS and select the appropriate type for you.
NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS Sabertooth P67 i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1571
Joined: 2010-03-09 09:38
Location: The Matrix

Re: reinstall/reconfigure GRUB for a new OS

Postby phenest » 2017-04-11 13:59

mzimmers wrote:[list][*]both drives formatted for GPT

Phenest: is it at long last time for me to run the commands you gave me on the first page?

That was to fix your broken system. But now that you've reformatted the drives, there's nothing to fix.
NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS Sabertooth P67 i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1571
Joined: 2010-03-09 09:38
Location: The Matrix

Re: reinstall/reconfigure GRUB for a new OS

Postby mzimmers » 2017-04-11 14:49

phenest wrote:Why did you change the CSM setting after formatting?

All you have to do is disable CSM in the BIOS. Install Debian and install Windows (or whichever order you want). GPT will automatically be used because CSM is disabled in the BIOS.

There is no need for you to select GPT or MBR manually because the installers check the BIOS and select the appropriate type for you.


The Windows installation freezes when have CSM disabled. The only way I can install is to re-enable it.
mzimmers
 
Posts: 74
Joined: 2016-12-11 23:49

Re: reinstall/reconfigure GRUB for a new OS

Postby phenest » 2017-04-11 15:39

Are you installing Windows 64bit? And is it an MS disc?
NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS Sabertooth P67 i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1571
Joined: 2010-03-09 09:38
Location: The Matrix

Re: reinstall/reconfigure GRUB for a new OS

Postby mzimmers » 2017-04-11 15:45

phenest wrote:Are you installing Windows 64bit? And is it an MS disc?

Yes, it's 64-bit and I believe it's a genuine MS disk. My sysAdmin at a former employer gave it to me years ago.
It's white with black print, Windows 7 Professional, includes service pack 1. It does say "Intended for distribution with a refurbished PC."

And it works just fine when I install with CSM enabled.
Last edited by mzimmers on 2017-04-11 15:51, edited 1 time in total.
mzimmers
 
Posts: 74
Joined: 2016-12-11 23:49

PreviousNext

Return to Installation

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable