Author Topic: Dual boot with W10, prevent grub SOLVED  (Read 1259 times)

Offline lliam53

  • Jr. Member
  • **
  • Posts: 39
  • Karma: 9
  • New To PeppermintOS
    • View Profile
  • Peppermint version(s): 10
Dual boot with W10, prevent grub SOLVED
« on: May 06, 2020, 01:50:00 am »
Now I have some [very positive] experience with P10 on an old machine  ;D I have dcided to replace the Linux Mint I installed  as dual boot with W10 on my main machine with P10. During the set up of this dual boot I found [after much trial and re-installation] that W10 would not restart correctly to finish updates and or new software intalls if a grub was invoked during reboot. I have therfore managed to remove the grub that Mint had created [renewd the windows mbr] and made a separate grub on a flash drive [super_grub2]. This way when I restart the W10 I leave out the flash drive and W10 [completly blind to the Linux system] restarts without a hitch. In order to use my Linux [Mint] OS I simply insert the flash drive and I get the grub OS choice [which includes W10]. How can I prevent the grub being created during the P10 installation on this dual boot machine? I am sure that the super grub flash drive will function as before.

Thanks again!
« Last Edit: May 12, 2020, 02:38:55 am by lliam53 »
hopefull

Offline Slim.Fatz

  • Global Moderator
  • Veteran
  • *****
  • Posts: 2393
  • Karma: 633
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: Dual boot with W10, prevent grub
« Reply #1 on: May 06, 2020, 03:45:02 am »
Hi straybit,

OK, the answer is: you don't prevent it -- however, you install grub in a location that does not cause problems. So assume that your Peppermint 10 installation is going on /dev/sda6 (replace this with the actual value for your machine, of course). Then, during the installation you get asked where grub should be installed. Do not select /dev/sda but instead use /dev/sda6. That way grub will not be in the way of your M$ boot process.

I have never used super_grub2, but if your machine has two USB ports, then during the installation of Peppermint 10 you could also have the super_grub2 flash drive plugged in and select it as the location to install grub (rather than /dev/sda6). Alternatively, you could probably also remake your super_grub2 flash drive the way you did for Linux Mint only use the Peppermint 10 grub (if that makes any sense).

Regards,

-- Slim
Respect science, respect nature, respect each other.

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline alynur

  • Trusted User
  • Veteran
  • *****
  • Posts: 1289
  • Karma: 151
  • Habitual Forum Browser
    • View Profile
  • Peppermint version(s): P 9R (64bit), P 10
Re: Dual boot with W10, prevent grub
« Reply #2 on: May 06, 2020, 05:22:31 am »
Hi  lliam53, so when you first start up your computer, you are presented with grub where you can select either W10 or Mint, correct? If you don't select anything, what os will automatically boot up?

edit; I am refering to before you deleted grub and made your grub-2 usb stick.
« Last Edit: May 06, 2020, 05:24:48 am by alynur »
What was I thinking?

Offline Slim.Fatz

  • Global Moderator
  • Veteran
  • *****
  • Posts: 2393
  • Karma: 633
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: Dual boot with W10, prevent grub
« Reply #3 on: May 06, 2020, 05:24:52 am »
Hi alynur,

No! He does not see the grub menu (except for the case where he uses the super_grub2 flash drive) but is dumped straight into M$ Windoze (as I understand him).

Regards,

-- Slim
« Last Edit: May 06, 2020, 05:26:35 am by Slim.Fatz »
Respect science, respect nature, respect each other.

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline lliam53

  • Jr. Member
  • **
  • Posts: 39
  • Karma: 9
  • New To PeppermintOS
    • View Profile
  • Peppermint version(s): 10
Re: Dual boot with W10, prevent grub
« Reply #4 on: May 07, 2020, 01:40:07 am »
Hey Slim and Alynur, thanks for your input. Just to be clear on my 'grub situation' with my dual boot with LMint and W10. After finishing the LMint installation my machine booted to the LMint grub which gave me the choice between LMint and W10. This would be fine in itself were it not for the fact that W10 can not cope with this interuption to a reboot required by [software] updates. The LMint grub I had was OK but needed to be 'out of the loop' for W10. The grub was such that if I did nothing then LMint would start as first. The supergrub I have on my flash drive presents first with a menu for various options [div analyses, partitioning etc.] AND the option to 'reveal' boot options, only then can I make a choice, Lynux is always top of the list [of previous versions before updates?] with Windows down the bottom.
Without the flash drive present the windows mbr takes command and W10 starts up, which is fine by me, and is the situation I wish to maintain after P10 installation. I shall be trying the P10 installation in the coming days and shall take Slims advice to redirect the grub to a different location. I suppose I could try installing to another flash drive even... I shall keep you posted. As it may take some time for me to get round to this should I post this question as SOLVED and come back after my installation?

Thanks again, lliam
hopefull

Offline Slim.Fatz

  • Global Moderator
  • Veteran
  • *****
  • Posts: 2393
  • Karma: 633
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: Dual boot with W10, prevent grub
« Reply #5 on: May 07, 2020, 05:18:49 am »
Hi lliam53,

You can leave the issue as is because it is really not solved yet (as I see it), but the choice is yours.  ;)

Regards,

-- Slim
Respect science, respect nature, respect each other.

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline jlschwartz

  • Trusted User
  • Member
  • *****
  • Posts: 402
  • Karma: 169
  • Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10 - 64bit
Re: Dual boot with W10, prevent grub
« Reply #6 on: May 07, 2020, 07:22:30 am »
If your system defaults to Peppermint in the grub menu, you change that so it defaults to windows and you need to select Peppermint.  That way updates just work automatically.  The grub menu times out and then starts windows.  That's what I have done for years and it works fine.

Offline murraymint

  • Trusted User
  • Veteran
  • *****
  • Posts: 2200
  • Karma: 458
  • soft boiled with a yolk of gold
    • View Profile
  • Peppermint version(s): 7, 8, 9
Re: Dual boot with W10, prevent grub
« Reply #7 on: May 07, 2020, 07:23:44 am »
No, they seem to be saying that Winders won't play nice with Grub any more.

Offline spence

  • Administrator
  • Hero
  • *****
  • Posts: 3027
  • Karma: 345
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): Peppermint 10 Respin
Re: Dual boot with W10, prevent grub
« Reply #8 on: May 07, 2020, 09:45:01 am »
Traditionally one installs Win10 first, uses windows tools to shave the partitons to allow space for whatever other linux distros of one's choosing. Last time I installed Win10 was this time last year on this little mini asus.

I have been ensuring that I was installing via GPT instead of MBR which would theoretically allow an infinite number of subsequent partitions.
While whatever version of Winblows one wants to also work with must be installed first, keep in mind that the linux distro one wants to be default, must be the last distro installed.

I also used to install as Legacy Mode, but @VinDSL's example led me to choose UEFI mode on my last several installations ... I have never successfully dual booted with Secure Boot enabled though.

All that said, it seems my fellow devs are saying recent Win10 updates make this more difficult than ever...


 :-X
spence
PeppermintOS 10 Respin currently installed  on:
'16 Antec Aria rebuild
& '18 Asus VivoBook


Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.

Offline alynur

  • Trusted User
  • Veteran
  • *****
  • Posts: 1289
  • Karma: 151
  • Habitual Forum Browser
    • View Profile
  • Peppermint version(s): P 9R (64bit), P 10
Re: Dual boot with W10, prevent grub
« Reply #9 on: May 07, 2020, 12:00:32 pm »
No, they seem to be saying that Winders won't play nice with Grub any more.


I think lliam53 doesn't know how to change the default boot order in grub, which is why I asked and jlschwartz mentioned. That may be all of his problem. I know there was a discussion in another post about windows update hiding grub altogether but at this point the OP has not indicated that. I would suggest that he, the OP, boot into Peppermint, if he has it installed, and run sudo install-grub /dev/sdx and see what happens. If he gets a grub menu, he can change the default boot order as jlshwartz has suggested.
What was I thinking?

Online VinDSL

  • Administrator
  • Hero
  • *****
  • Posts: 5901
  • Karma: 1160
  • Team Peppermint
    • View Profile
  • Peppermint version(s): Developmental Builds
Re: Dual boot with W10, prevent grub
« Reply #10 on: May 07, 2020, 01:33:14 pm »
Don't know if this will help, but... maybe: https://is.gd/Nkc8WX   :)








Offline lliam53

  • Jr. Member
  • **
  • Posts: 39
  • Karma: 9
  • New To PeppermintOS
    • View Profile
  • Peppermint version(s): 10
Re: Dual boot with W10, prevent grub
« Reply #11 on: May 08, 2020, 01:39:37 am »
It would appear my question has spawned some interesting discussion. I am confident in my conclusion that [my present version: Prof, of] W10 in it's present [complete] update state just can not be trusted to cope with any form of interuption [so anything other than the windows mbr] to the update-reboot processes. That in itself is enough for me to stick with my supergrub flash drive option. I have no wish to start down a road of grub editing, which could leave me with an unresponsive system if I make a mistake, so I shall be sticking to Slims advice. It is true to say that I have not taken the trouble to learn how to change the grub order, probably because I see no real reason to, being given a choice is enough for me. I shall leave the post as it is for now. Thank you for all the input   lliam53
hopefull

Offline clatterfordslim

  • Trusted User
  • Member
  • *****
  • Posts: 624
  • Karma: 149
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10, Nine Respin 2
Re: Dual boot with W10, prevent grub
« Reply #12 on: May 08, 2020, 07:06:13 pm »
The latest version of W10, with April 2020 updates is causing grub not to read the W10 partition. Simply put this update is a big security one, also unable to transfer files from Linux partition over to W10, even as root. There is another big update coming this month too, not sure if it involves more security or not. I have icy dock configuration on my computers, so just I take out W10 when not gaming, plus my bios enables me to control which hard drive to boot first. I have Peppermint 10 re-spin booting first, plus it accommodates two 1TB drives, one the main system the other my home folder. Am in the process of getting 2TB SSD for home drive. All the things I collect within Linux and making backups of the info I collect, am slowly running out of room. So will have to take time to double backup backups to my dropbox account with 2TB of space that I'm paying £95.00 British pounds for a year, with hardly the time to use it.  Icy docks are fantastic if you have enough SATA ports on your motherboard? Plus the fact SSD's hardly need any power to run. I feel sorry for people with only a limited amount of space on their hardware, especially where dual booting is concerned on the same drive and as of now W10 has gotten more secure as in Linux grub not able to read the W10 partition at all, though I'm sure there is a way to switch off all the security in W10, but to what end, making you vulnerable to all and sundry.  :(
Not only is Peppermint an addictive OS to use.
But so is this Forum :)

Offline tjloman

  • Newly Subscribed
  • *
  • Posts: 3
  • Karma: 0
  • Minty Fresh since 2020
    • View Profile
  • Peppermint version(s): 10
Re: Dual boot with W10, prevent grub
« Reply #13 on: May 09, 2020, 06:13:20 pm »
Might not be feasible for some, but here's how my boot works: If I press nothing, it boots from /dev/sda1 (with the Windows loader, so it will go straight there). By pressing f12 during the BIOS screen (Varies by motherboard mfg, usually labeled - boot options) and then I select a second hard drive, which contains GRUB, to boot into Linux. :) :)

Offline lliam53

  • Jr. Member
  • **
  • Posts: 39
  • Karma: 9
  • New To PeppermintOS
    • View Profile
  • Peppermint version(s): 10
Re: Dual boot with W10, prevent grub
« Reply #14 on: May 10, 2020, 07:58:38 am »
Well here's the story so far: after doing a thoro survey of my system to be absolutely sure where the [to be removed] liuxMINT partition was I made a start with the P10 installation. Downloaded the 64bit version and made my USB drive, all ready to go. Rebooted with the flash drive and went straight to 'Install' .  Choosing the option 'something else' I entered the menu: Choosing the boot location is simple so then I went for it 'install'. That's when all the new stuff starts. I get the remark 'root' not defined [or such] 'must be taken care of in the partition menu' trying various options when I passed thru a menu where there was a drop down from a window with 'do not use this partition' I chose /boot [root is not mentioned][or was there a list with EXT4 'sometypeorother' ?]. Install went forward but tripped and stopped, I am now back in the 'live session' off the usb drive and /now the whole installation option just fails as soon as I pass the 'normal installation' choices menu. I get 'ubi partman failed with exit code 10, further info MAY be found in /var/log/syslog'... wherever that may be. It would apear that some partition action has been started and broken off which has now 'messed' up the whole process. I am going to look at cleaning up the whole MINT partition with gparted and starting again. Nevertheless I expect to get that 'where must the root go' question again which i see no way of answering without going into the installation-partition option which warns met that a new partition table will erase everything on my SSD where my windows partion also resides, so thats a no go.

Before you can do something you must first do [learn]something else

IN ADDITION: Gparted refuses to do anything with the partition as it is 'busy'. Reboot back to W10 [so no flash drive present] is still OK so I can be gratefull for that I suppose. I shall carry on after another reboot via the P10 flash drive.....

PS should anyone have emailed me, I had miss-spelled my email adress, sorry for that... :'( corrected it now
« Last Edit: May 12, 2020, 02:22:28 am by lliam53 »
hopefull