Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: Reparaing grub after WIndows 10 install

  1. #1

    Default Reparaing grub after WIndows 10 install

    Hi,

    some days ago I upgrade my windows to windows 10. But i'm dual-booting with my openSUSE 13.2 and when I restarted GRUB disapeared, directly booting on windows 10.

    Can you tell me a safe way to fix that ?

    Thanks

  2. #2
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    9,164
    Blog Entries
    3

    Default Re: Reparaing grub after WIndows 10 install

    Is this a UEFI system, or a traditional (legacy MBR) system?
    opensuse Leap 42.3; KDE Plasma 5;
    opensuse tumbleweed; KDE Plasma 5 (test system);

  3. #3

    Default Re : Re: Reparaing grub after WIndows 10 install

    Quote Originally Posted by nrickert View Post
    Is this a UEFI system, or a traditional (legacy MBR) system?
    Legacy BIOS, Windows on a MBR Partition

  4. #4
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    9,164
    Blog Entries
    3

    Default Re: Reparaing grub after WIndows 10 install

    Best would be for you to provide us with the output from:

    Code:
    # fdisk -l /dev/sda
    Use CODE tags around the output (easier to read). You can generate code tags by clicking the "#" near the top of the edit box, then paste the output there.

    You will probably need to boot from live media or boot your install media in rescue mode, to run that command. You can maybe mount a Windows drive or a USB and save the output of the command to there for later posting.

    It will also be useful to know:

    Are you using grub2? (that's the 13.2 default, but if you upgraded from an earlier system you might be using legacy grub).

    Where did you tell the system to boot from: (could be the root partition or the MBR or "/boot" if you have a separate "/boot").
    opensuse Leap 42.3; KDE Plasma 5;
    opensuse tumbleweed; KDE Plasma 5 (test system);

  5. #5
    Join Date
    Nov 2009
    Location
    West Virginia Sector 9
    Posts
    14,589

    Default Re: Reparaing grub after WIndows 10 install

    Since MBR it may be that Windows changed the boot flag. Check the boot flag (fdisk -l will show it) If it is on the Windows boot change it to the partition that holds your Linux boot

  6. #6
    Join Date
    Jun 2008
    Location
    Belleville, Ontario, Canada
    Posts
    346

    Default Re: Reparaing grub after WIndows 10 install

    Quote Originally Posted by nrickert View Post
    Is this a UEFI system, or a traditional (legacy MBR) system?
    And out of curiosity, what would the procedure be for those that had a UEFI system?
    "Making rich people richer doesn't make the rest of us richer."
    Ha-Joon Chang

    openSUSE 42.3 x64 KDE 5.8.7-1.1
    Linux Counter #140934

  7. #7
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    9,164
    Blog Entries
    3

    Default Re: Reparaing grub after WIndows 10 install

    Quote Originally Posted by kerijan2003 View Post
    And out of curiosity, what would the procedure be for those that had a UEFI system?
    I have not tried Win 10, so I don't have personal experience with this.

    The first thing that I would do, would be to hit F12 during boot. That should bring up the firmware boot menu. If opensuse is there, I would try to boot it. If it is not there, I would boot the live rescue CD, and see if I can add the boot entry with the "efibootmgr" command.

    If the boot entry is there, but it doesn't boot, then there's a different problem. It is known that Win10 installs can add partitions and change the partition numbering. That might require editing "/etc/fstab" to fix. Also edit "/etc/crypttab" if an encrypted partition is needed. Then one might need to go into rescue mode to rebuild the "initrd" and the boot menu.

    Most of this is similar to what can happen with MBR boots. The difference is with the actual boot selection -- depends on an NVRAM entry for UEFI and on the active partition flag for legacy booting.

    From what I have seen on the net, a Windows 10 install does not do major damage to linux, but might require the kind of repairs mentioned above, and perhaps also a reinstall of grub2 (or grub2-efi).
    opensuse Leap 42.3; KDE Plasma 5;
    opensuse tumbleweed; KDE Plasma 5 (test system);

  8. #8
    Join Date
    Nov 2009
    Location
    West Virginia Sector 9
    Posts
    14,589

    Default Re: Reparaing grub after WIndows 10 install

    No boot flags in a UEFI GPT system the problem would be in the BIOS boot default or Windows had wiped out the entries in the EFI boot partition. If the former fix in the BIOS the later then it is much more complicated. in essence you need to rebuild the opnesuse directory in the EFI boot partition.

  9. #9

    Default Re : Re: Reparaing grub after WIndows 10 install

    Quote Originally Posted by nrickert View Post

    It will also be useful to know:

    Are you using grub2? (that's the 13.2 default, but if you upgraded from an earlier system you might be using legacy grub).

    Where did you tell the system to boot from: (could be the root partition or the MBR or "/boot" if you have a separate "/boot").
    I installed openSUSE 13.1 and upgraded 13.2, I think I let default boot option but don't know where I tell the system to boot from and if I have grub legacy or grub2.

  10. #10

    Default Re : Reparaing grub after WIndows 10 install

    When I upgraded my win7 to win10 I tagged/flagged my win7 partition as active (maybe it can help).

    Here are partitioning infos :
    Code:
    lubuntu@lubuntu:/$ sudo fdisk -l /dev/sda
    
    Disk /dev/sda: 750.2 GB, 750156374016 bytes
    255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00004f0b
    
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1            2048      206847      102400    7  HPFS/NTFS/exFAT
    /dev/sda2   *      206848   308027391   153910272    7  HPFS/NTFS/exFAT
    /dev/sda3       308027392  1465147391   578560000    f  W95 Ext'd (LBA)
    /dev/sda5       308029440   324802559     8386560   82  Linux swap / Solaris
    /dev/sda6       324804608   429658111    52426752   83  Linux
    /dev/sda7       429660160   953143295   261741568    7  HPFS/NTFS/exFAT
    /dev/sda8       953145344  1465147391   256001024    7  HPFS/NTFS/exFAT
    Code:
    lubuntu@lubuntu:/$ sudo fdisk -lu /dev/sda
    
    Disk /dev/sda: 750.2 GB, 750156374016 bytes
    255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x00004f0b
    
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1            2048      206847      102400    7  HPFS/NTFS/exFAT
    /dev/sda2   *      206848   308027391   153910272    7  HPFS/NTFS/exFAT
    /dev/sda3       308027392  1465147391   578560000    f  W95 Ext'd (LBA)
    /dev/sda5       308029440   324802559     8386560   82  Linux swap / Solaris
    /dev/sda6       324804608   429658111    52426752   83  Linux
    /dev/sda7       429660160   953143295   261741568    7  HPFS/NTFS/exFAT
    Code:
    lubuntu@lubuntu:/$ lsblkNAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    sda      8:0    0 698,7G  0 disk 
    ├─sda1   8:1    0   100M  0 part /media/lubuntu/Réservé au système
    ├─sda2   8:2    0 146,8G  0 part /media/lubuntu/8C687FAA687F91A6
    ├─sda3   8:3    0     1K  0 part 
    ├─sda5   8:5    0     8G  0 part [SWAP]
    ├─sda6   8:6    0    50G  0 part /media/lubuntu/214174d0-4744-4fc1-a9e7-e1c6c4846dbb
    ├─sda7   8:7    0 249,6G  0 part 
    └─sda8   8:8    0 244,1G  0 part /media/lubuntu/Media
    Code:
    lubuntu@lubuntu:/$  sudo parted -lModel: ATA Hitachi HTS54757 (scsi)
    Disk /dev/sda: 750GB
    Sector size (logical/physical): 512B/4096B
    Partition Table: msdos
    
    
    Number  Start   End    Size    Type      File system     Flags
     1      1049kB  106MB  105MB   primary   ntfs
     2      106MB   158GB  158GB   primary   ntfs            boot
     3      158GB   750GB  592GB   extended                  lba
     5      158GB   166GB  8588MB  logical   linux-swap(v1)
     6      166GB   220GB  53,7GB  logical   ext4
     7      220GB   488GB  268GB   logical   ntfs
     8      488GB   750GB  262GB   logical   ntfs

Page 1 of 3 123 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •