Author Topic: Restore Bootloader in Dual-Boot environement  (Read 1421 times)

0 Members and 1 Guest are viewing this topic.

Offline juli95

  • Jr. Member
  • **
  • Posts: 5
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Restore Bootloader in Dual-Boot environement
« on: April 25, 2020, 01:00:24 am »
Hey dear linux community, :)
I face a pretty stupid issue right now. I have a dual-boot computer with Solus 4.1 and Windows 10. In the last time, i had different issues on Windows like bluescreens and failing updates.
I wanted to reinstall Windows. The reset option in Windows didn't work. So i downloaded Windows 10 and installed it into the same partition as previously. I think that changed the bootloader.
The problem is now, that the computer directly boots into Windows without the choice of booting into Linux. But the Linux partition is still there with all the data in it (i will post the partition table output later).
My question is.... Is there a way to restore the dual-boot? Or should i copy the data from the Linux partition and reinstall it?

Btw, i'm more or less of a beginner. So sorry if i don't understand everything ;)

Thanks in advance for your help!

Offline juli95

  • Jr. Member
  • **
  • Posts: 5
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Restore Bootloader in Dual-Boot environement
« Reply #1 on: April 25, 2020, 02:41:45 am »
sdb2 is the Windows partition, sdb4 the Linux partition

Device           Boot    Start                  End                   Sectors               Size        Id    Type
/dev/sdb1                2048                 1187839          1185792            579M      7     HPFS/NTFS/exFAT
/dev/sdb2    *          1187840          1170699557    1169511718     557.7G   7     HPFS/NTFS/exFAT
/dev/sdb3                1170704745   1178512334    7807590           3.7G        82   Linux swap / Solaris
/dev/sdb4                1178512335    1953520064    775007730      369.6G    83   Linux


Offline Keith

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1036
  • Karma: 13
  • Gender: Male
  • Linux Novice
  • Awards Contributor Of The Month
    • View Profile
    • Awards
Re: Restore Bootloader in Dual-Boot environement
« Reply #2 on: April 25, 2020, 11:47:22 am »
Hello Juli95 - and welcome to the Forum.

If you have data on the Linux partition that you want to save, then do that.  Then I suggest that you simply re-install Linux. 
The installation will probably find the old Linux and ask if you want to overwrite it - say "yes" - and that ought to be OK.  The dual-boot facility will then re-appear. 
I make no guarantees! and I am assuming that Windows is working.   I merely offer this solution based upon my own experience.  Caveat emptor

It might be wise to await further advice from other Members and choose what seems to be the best option. 

Keith
« Last Edit: April 25, 2020, 11:51:28 am by Keith »

Offline juli95

  • Jr. Member
  • **
  • Posts: 5
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Restore Bootloader in Dual-Boot environement
« Reply #3 on: April 26, 2020, 12:41:23 am »
Thank you :)
The problem with that is, that all my programs and program settings would be gone then and setting that up would take a decent time. So i would be happy about a different solution.

Offline Rich J

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 511
  • Karma: 8
  • Gender: Male
  • Still a Linux Luvvie!
    • View Profile
    • Awards
Re: Restore Bootloader in Dual-Boot environement
« Reply #4 on: April 26, 2020, 09:17:04 am »
Hey dear linux community, :)
I face a pretty stupid issue right now. I have a dual-boot computer with Solus 4.1 and Windows 10. In the last time, i had different issues on Windows like bluescreens and failing updates.
I wanted to reinstall Windows. The reset option in Windows didn't work. So i downloaded Windows 10 and installed it into the same partition as previously. I think that changed the bootloader.
The problem is now, that the computer directly boots into Windows without the choice of booting into Linux. But the Linux partition is still there with all the data in it (i will post the partition table output later).
My question is.... Is there a way to restore the dual-boot? Or should i copy the data from the Linux partition and reinstall it?

Btw, i'm more or less of a beginner. So sorry if i don't understand everything ;)

Thanks in advance for your help!

Yep!  That's what's happened.  Windows bootloader does not 'see' other distros whereas Grub does.  In a dual-boot scenario, Windows must always be installed first, then Linux.  ;)

Can you boot from your Solus medium?  If so, go to 'Try Solus' (or similar instruction), open a terminal and enter

Code: [Select]
sudo fdisk -l
(copy/paste it into terminal to avoid errors - also same with the results into your reply)

Incidentally, why Solus?  Is this your first foray into Linux?  I ask only because other, more established distros will have potentially more support available?

Rich

Offline juli95

  • Jr. Member
  • **
  • Posts: 5
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Restore Bootloader in Dual-Boot environement
« Reply #5 on: April 26, 2020, 07:24:24 pm »
It's a bummer, that the Windows bootloader doesn't recognize Linux. But isn't it possible to just reinstall Grub somehow?

Actually, i'm not completely new to Linux. I've used Ubuntu and Linux Mint for the last 7 years. But i really like the design of Solus. And it has been even more comfortable in terms of avoiding to use the terminal. So that's how it replaced Linux Mint for me (whose design is a little boring for me tbh).

Here's the complete output:
(click to show/hide)

Btw, sda is just a data HDD. sdb is the SSD on which i have my operating systems.
« Last Edit: April 28, 2020, 11:30:58 pm by juli95 »

Offline juli95

  • Jr. Member
  • **
  • Posts: 5
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Restore Bootloader in Dual-Boot environement
« Reply #6 on: April 28, 2020, 11:29:41 pm »
I actually fixed it by reinstalling Grub. It worked with the commands on this site:
https://praxistipps.chip.de/grub-neu-installieren-so-klappts_43315

Thank you so much for the help! :)

Offline Keith

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1036
  • Karma: 13
  • Gender: Male
  • Linux Novice
  • Awards Contributor Of The Month
    • View Profile
    • Awards
Re: Restore Bootloader in Dual-Boot environement
« Reply #7 on: April 29, 2020, 10:11:28 am »
Glad that you solved the problem,Juli - and thank you for providing the link.  With my schoolboy German I can almost understand it.

Offline spence

  • Jr. Member
  • **
  • Posts: 31
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Restore Bootloader in Dual-Boot environement
« Reply #8 on: May 05, 2020, 12:12:05 am »
I actually fixed it by reinstalling Grub. It worked with the commands on this site:
https://praxistipps.chip.de/grub-neu-installieren-so-klappts_43315

Thank you so much for the help! :)

Glad you found a solution @juli95. Please remember to edit your original post in this thread and append (SOLVED) at the end of the subject line. That way future forum users with similar problems will see that a solution was found.

 ;)
« Last Edit: May 26, 2020, 11:26:30 pm by spence »

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal