installed leap 15 and after that no menu option to boot windows 7

Dear All,

I installed opensuse leap 15 and now windows 7 entry is not visible in boot menu

To install opensuse leap 15…I created a separate 500MB partition(vfat) and mounted /boot/efi.

PREVIOUSLY I had opensuse leap 42.3(WITH NO EFI) and that was booting windows 7 also(was showing in grub boot option)

I installed leap 15 after enabling legacy mode in BIOS.

I need help in dual booting windows 7 along with opensuse leap 15

Thanks in advance
Tapas

When your system is EFI and it boots Windows in EFI, you should install openSUSE in EFI (and the installer should do that automatically).

All should be the same.

When your system is not EFI and then your Windows is not EFI and your openSUSE should also be not EFI (again this should be automatically).

When, for whatever reason you want to change your system from not EFI to EFI (and the firmware allows this), then you should install everything new in EFI. Same of course the other way.

From your story above, I am not sure you followed these simple rules (that are normally followed by the installation automatically).

When I installed opensuse for the first time, I didn’t provide separate partition for /boot/efi. This made my complete system unbootable(no Linux and No windows)

I agree that whether efi or not efi, the installation procedure should have take care automatically.

There is an option in my HP envy laptop bios to enable/disable legacy mode. Trying both enable and disable options always showed no menus at bottom when booting from USB pendrive. It always showed “c-command E-edit”

So I went ahead and create separate FAT partitions for /boot/efi.

I didn’t had separate EFI partition earlier when I had dual boot Windows 7 and leap 42
parted command showed below results


GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type ‘help’ to view a list of commands.
(parted) p
Model: ATA Hitachi HTS54505 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1049kB 210MB 209MB primary ntfs boot, type=07
2 210MB 106GB 106GB primary ntfs type=07
3 106GB 500GB 394GB extended lba, type=0f
5 106GB 159GB 53.2GB logical ntfs type=07
6 159GB 161GB 2159MB logical linux-swap(v1) type=82
8 161GB 162GB 524MB logical fat16 lba, type=0c
9 162GB 237GB 74.6GB logical btrfs type=83
7 237GB 500GB 263GB logical ext4 type=83
4 500GB 500GB 108MB primary fat32 lba, type=0c


Thanks for your time
Tapas

First it is important to know if your system is an EFI system or not.

And when it is an EFI system, I assume that the original Windows installation should have provided for a EFI partition already.

I google and tried one solution to know whether efi or not

the folder: /sys/firmware/efi is present in my system which validates the EFI system.

Now looking at results of parted
parted command showed below results of parted below, is first partition of 209 mb(ntfs) is efi partition from windows ???


GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type ‘help’ to view a list of commands.
(parted) p
Model: ATA Hitachi HTS54505 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1049kB 210MB 209MB primary ntfs boot, type=07
2 210MB 106GB 106GB primary ntfs type=07
3 106GB 500GB 394GB extended lba, type=0f
5 106GB 159GB 53.2GB logical ntfs type=07
6 159GB 161GB 2159MB logical linux-swap(v1) type=82
8 161GB 162GB 524MB logical fat16 lba, type=0c
9 162GB 237GB 74.6GB logical btrfs type=83
7 237GB 500GB 263GB logical ext4 type=83
4 500GB 500GB 108MB primary fat32 lba, type=0c


Mounting above partition 1 and listing the contents gave below files:

Boot bootmgr System Volume Information

Am I on right track ??

Thanks a lot
Tapas

First, for better understanding by everybody:

There is an important, but not easy to find feature on the forums.

Please in the future use CODE tags around copied/pasted computer text in a post. It is the # button in the tool bar of the post editor. When applicable copy/paste complete, that is including the prompt, the command, the output and the next prompt.

Then, you show an msdos partitioned disk, not a gpt one. So I doubt that the system is using EFI. And that is supported by the fact that you say there wasn’t an EFI partition originally.

When that is all correct, IMHO you should not even try to go for EFI. I have no idea what you did and if it broke something. As I am not using multi boot with Windows and as I have only one EFI system, that was handled by the installer without problems, we better wait for other people that know more about this.

Enable legacy mode is not the same as boot legacy mode.

I have two computers with UEFI support. If I disable legacy, then I can only boot UEFI. However, if I enable legacy, I can still boot UEFI. On one of my computers (a Dell), I hit F12 during boot. And it lists both UEFI booting options and legacy booting options. I can choose either.

On the other computer (a Lenovo), I can set it to “prefer UEFI” or to “prefer CSM”. If I want legacy boot, I set it to prefer CSM.

I don’t know how to set your computer to boot the installer in legacy mode. There is probably a setting if you look for it. From your description, you booted the installer in UEFI mode.

It should also be possible to switch to legacy booting. But I have not tested that with Leap 15.0, so I don’t know if it works. The trick would be to run Yast bootloader, and change from using “grub2-efi” to just using “grub2”. If you do that, you will probably get scary sounding warnings.

If I have time, I’ll experiment with that later today (in a VM) to see whether it still works.

@hcvv I will follow your suggestions in future…Thanks
@nrickert I will try booting in legacy mode according to your suggestions… and report status soon

Thanks for your Valuable time

Tapas

I don’t know how to set your computer to boot the installer in legacy mode. There is probably a setting if you look for it. From your description, you booted the installer in UEFI mode.

As told earlier, the only setting in BIOS is to enable/diable legacy mode(along with boot orders for both legacy/EFI modes separately) But it was also mentioned there that when both are available and even if legacy mode is enabled, EFI mode will be given preference. That’s why for me if always booted in EFI mode.

It should also be possible to switch to legacy booting. But I have not tested that with Leap 15.0, so I don’t know if it works…

During installation setup I didn’t find any option which allowed to choose between legacy/EFI mode
For installed opensuse leap 15, we can always open yast and open bootloader option and try to change to grub2 etc, but I am scared trying that option because it may break even single OS(opensuse) booting also(I tried something like that yesterday and as a result leap 15 was unable to boot. So I reinstalled leap 15 again).

Thanks
Tapas

Please help someone… I need to dual boot to Windows 7 and leap 15…

I think all I need to reinstall grub, but I don’t know how to make it work without breaking current instllation…

Thanks
Tapas

I can only tell you what I would do, in the same circumstances. I cannot guarantee that it won’t break something (such as making it unbootable), although I think it will work.

Before I start, I need to know more about your computer. Is there only one hard drive, or are there two hard drives?

If there is only one hard drive, is that the one described in post #6 in this thread?

I’m asking partly because you mentioned creating an EFI partition, but I am unable to work out which is the EFI partition.

There is on one hardrive in my laptop the description is mentioned in post #5(not #6)
For your information, parted command output

ubiroute@linux-1hcj:~> sudo parted -l
[sudo] password for root: 
Model: ATA Hitachi HTS54505 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags: 

Number  Start   End    Size    Type      File system     Flags
 1      1049kB  210MB  209MB   primary   ntfs            boot, type=07
 2      210MB   106GB  106GB   primary   ntfs            type=07
 3      106GB   500GB  394GB   extended                  lba, type=0f
 5      106GB   159GB  53.2GB  logical   ntfs            type=07
 6      159GB   161GB  2159MB  logical   linux-swap(v1)  type=82
 8      161GB   162GB  524MB   logical   fat16           lba, type=0c
 9      162GB   237GB  74.6GB  logical   btrfs           type=83
 7      237GB   500GB  263GB   logical   ext4            type=83
 4      500GB   500GB  108MB   primary   fat32           lba, type=0c


ubiroute@linux-1hcj:~> 


The above partition #8 is the one I created for /boot/efi while installing opensuse leap 15
Also I was mentioning about above partition #1 in my post #6

Thanks
Tapas

Hi,

I have the same problem everytime I do a new install. The solution was quite simple:

  1. Boot openSUSE Leap
  2. Go to Yast-System-Boot loader-Boot loader option Tab-Set a new Timeout in Seconds.
  3. Save
  4. Reboot
    The idea is that it will redetect foreigner OSes and it will add them to the boot menu.
    DO NOT CHANGE ANYTHING ELSE !
    Waiting for your feedback.

I increased the time out and rebooted but STILL NO ENTRY OF WINDOWS AT BOOT MENU

The check box to probe foreign OS is already ENABLED, STILL not finding windows

Thanks

Open a konsole and as root type: efibootmgr and press enter.
Paste the results here.

Be sure fast boot is off in Windows. Also no “Dynamic disks” set in Windows If either is true Linux can not see the Windows partition thus can not boot to Windows.

From the output it appears you have a DOS partitioned drive and there fore can not use a EFI boot. Since there did not exist a EFI boot partition for Windows it must have been installed in MBR boot mode and you can not chain between two OS if they use different boot methods. Also MBR boot requires a boot flag and I don’t see one. SO not sure exactly how you managed this.:open_mouth:

ubiroute@linux-1hcj:~> /usr/sbin/efibootmgr
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0001,3000,2001,2002,2003
Boot0000* EFI HDD Device
Boot0001* opensuse-secureboot
Boot0002* Notebook Hard Drive
Boot2001* USB Drive (UEFI)
Boot3000* Internal Hard Disk or Solid State Disk
ubiroute@linux-1hcj:~> 


ubiroute@linux-1hcj:~> sudo /sbin/fdisk -l
[sudo] password for root: 
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 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
Disklabel type: dos
Disk identifier: 0x46047eb5

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1  *         2048    409599    407552   199M  7 HPFS/NTFS/exFAT
/dev/sda2          409600 207069983 206660384  98.6G  7 HPFS/NTFS/exFAT
/dev/sda3       207071232 976560127 769488896 366.9G  f W95 Ext'd (LBA)
/dev/sda4       976560128 976771071    210944   103M  c W95 FAT32 (LBA)
/dev/sda5       207073280 310960127 103886848  49.6G  7 HPFS/NTFS/exFAT
/dev/sda6       310962176 315179007   4216832     2G 82 Linux swap / Solaris
/dev/sda7       461983744 976560127 514576384 245.4G 83 Linux
/dev/sda8       315181056 316205055   1024000   500M  c W95 FAT32 (LBA)
/dev/sda9       316207104 461983615 145776512  69.5G 83 Linux

Partition table entries are not in disk order.
ubiroute@linux-1hcj:~> 

From above output we can see boot flag set for partition: /dev/sda1

Thanks

Point still is that both OS must boot the same way. Windows can not use fastboot or Dynamic disks

This really looks like MBR boot and probably Windows installed as MBR and Linux as EFI