Installation of Grub2 on Extended Partition To Leave MBR for Dual-Booting Windows
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Installation of Grub2 on Extended Partition To Leave MBR for Dual-Booting Windows
Hi All,
I am on Dell Inspiron laptop 2014 vintage which I had converted into a dual booting with Windows 10 and OpenSUSE, various versions in the past. Now the Windows is corrupted and I have to reinstall the Dual Boot system.
Recently I had installed Windows 7 and then Leap-15.2 (Gnome Desktop) on a primary partition. Mounted my /home (on a logical partition) on that root and on another logical partition, I installed the KDE Desktop. Grub2 was installed to MBR.
The Windows did not start but both the Desktops on Primary and Logical partitions worked. I installed in the like manner again, this time with Windows 8 and again the windows did not start.
The question that I would like to ask is:
If Grub2 is installed to the Extended partition will it start all the three operating systems?
If Grub2 is installed to the Extended partition will it start all the three operating systems?
No.
To be the boot loader in control, grub will have to be installed to the MBR.
Your description is somewhat confusing - installing a second desktop environment does not require a different partition. So are we to assume you installed 2 Linux (maybe 2 of Leap) as you imply elsewhere.
We need more info than "windows did not start". Let's see fstab and the output of this.
To be the boot loader in control, grub will have to be installed to the MBR.
I have Grub on MBR on 0 of 40+ multiboot PCs, only ever on a partition, and also, 0 on the extended. Several of these PCs have Windows XP or Windows 10. All chainload Windows via Grub. Here's a peek at one with Win10:
Check in YaST Bootloader to ensure that "Probe Foreign OS" is enabled. Sometimes even if checked, Windows is omitted from Grub's menu on installation, but if YaST is Bootloader is run again after installation with it checked, and any trivial change, such as the timeout value, is made and saved, then Windows will show up on next boot. Installation of a new kernel will produce the same result, as long as the box is checked.
Hi,
Here is the output of both commands.
Probing foreign OS is properly marked in the Yast and Windows appears in the Boot Menu.
Quote:
rsp@dell-linux:~> parted -l
Absolute path to 'parted' is '/usr/sbin/parted', so running it may require superuser privileges (eg. root).
rsp@dell-linux:~> sudo parted -l
[sudo] password for root:
Model: ATA ST1000LM024 HN-M (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:
I find your post confusing as originally you had windows 10 and Opensuse installed and booting and then your windows 10 was corrupted. Depending upon the problem, if windows is corrupted in some manner Grub won't boot it. More specifics would be needed.
You then indicate that you installed windows 7 and Opensuse again. If your original Opensuse was still working, why did you reinstall andd did you reinstall it to the same partition(s) as previously and install windows 7 to the same partition on which you previously had windows 10?
Did you install windows 8 after Opensuse and if so, did you run grub-mkconfig from Opensuse after the install? Does your Opensuse boot without problems?
Since you have a Legacy system, it is possible to boot a Linux system from windows if that's what you want. You should be able to find a number of sites with explanations with an online search. It's definitely not as simple as installing Grub.
Quote:
I have Grub on MBR on 0 of 40+ multiboot PCs, only ever on a partition, and also, 0 on the extended. Several of these PCs have Windows XP or Windows 10. All chainload Windows via Grub. Here's a peek at one with Win10:
I don't see how that helps the OP. Perhaps if you explained it then how you did this it would be helpful.
Probing foreign OS is properly marked in the Yast and Windows appears in the Boot Menu.
Did you try changing the timeout value in YaST Bootloader, saving, then rebooting? If yes, but it does not help, please get the script from https://github.com/arvidjaar/bootinfoscript, and run it like so
Code:
sudo sh bootinfoscript --stdout | susepaste
and provide one of the resulting URLs here for our analysis. It will include the content of /etc/fstab that syg00 asked for in post #2.
From the command output provided, it looks like you have two openSUSE installations, one on /dev/sda3, the other on /dev/sda8. One problem could possibly be having installed on sda8 after windows and after the installation on sda3, while Grub is currently in control of the bootloader of the one you are not booting to run YaST in. It could be the one on sda8 has its Grub on sda8 instead of MBR, but more likely it too installed to MBR, thus overwriting what the one on sda3 put there. The output from bootinfoscript should be enlightening, hopefully enough to solve this.
What is meant by "the dual boot system"? "Dual" in the context of booting means two installed operating systems that can be selected to choose to boot from. It looks like you have three, which is multiboot/multi-boot.
1. Did you try changing the timeout value in YaST Bootloader, saving, then rebooting?
Amswer: No.
2. Result of running the bootinfoscript and /etc/fstab:
Quote:
rsp@dell-linux:~/software/cloning-application/bootinfoscript-master> sudo sudo sh bootinfoscript --stdout | susepaste
[sudo] password for root:
Pasted as: https://susepaste.org/71395797 https://paste.opensuse.org/71395797
Link is also in your clipboard.
rsp@dell-linux:~/software/cloning-application/bootinfoscript-master> cd
rsp@dell-linux:~> sudo cat /etc/fstab
UUID=0b53d075-f4d8-4d80-9ac5-3a2cfd10896a / ext4 defaults 0 1
UUID=3df0e818-597c-4e20-9919-3c8c4043c51d /home ext4 data=ordered 0 2
UUID=e124b915-36d2-4d89-986b-19a8b86113c0 swap swap defaults 0 0
rsp@dell-linux:~>
3. From the command output provided, it looks like you have two openSUSE installations, one on /dev/sda3, the other on /dev/sda8.
Ans: Yes, rigt you are.
4. "From the command output provided, it looks like you have two openSUSE installations, one on /dev/sda3, the other on /dev/sda8. One problem could possibly be having installed on sda8 after windows and after the installation on sda3, while Grub is currently in control of the bootloader of the one you are not booting to run YaST in. It could be the one on sda8 has its Grub on sda8 instead of MBR, but more likely it too installed to MBR, thus overwriting what the one on sda3 put there. The output from bootinfoscript should be enlightening, hopefully enough to solve this."
Ans: Yes there are two Leap 15.2 installations as you have stated. The rest of the reason could be as you mentioned. I am not certain but.
5."What is meant by "the dual boot system"? "Dual" in the context of booting means two installed operating systems that can be selected to choose to boot from. It looks like you have three, which is multiboot/multi-boot."
Ans: Yes. I have three os shown in the Boot Menu: Leap-15.2 on /dev/sda3
Windows 7
Leap-15.2 on /dev/sda8
So, yes the correct terminology is 'Multiboot'
Leap was reinstalled because windows had to be reinstalled. I do not have Windows 10 so I installed Windows 7 which I had. Also have Windows 8.
6. "Did you try changing the timeout value in YaST Bootloader, saving, then rebooting?"
Leap was reinstalled because windows had to be reinstalled. I do not have Windows 10 so I installed Windows 7 which I had. Also have Windows 8.
You have Win8, but it's not installed, while you have Win7, and it is installed?
Quote:
Quote:
6. "Did you try changing the timeout value in YaST Bootloader, saving, then rebooting?"
Ans: No
Please try adding or subtracting a timeout second in YaST Bootloader, saving, then rebooting, being sure to make this change that you are booted to the installation of Leap on sda3, if it is the one you intend to actually use. Otherwise, make sure it is the other. If you plan to regularly use both, I'm not sure what to suggest, as each time either one updates its grub, it can be expected to usurp control from the other. The result will be you won't know which one the first menu choice will boot without striking the E key on menu arrival to see which partition is root, due to identically labeled menus each will generate.
The analysis shows each of the two Leap Grub menus contains menu selections to boot both Windows and the other Leap. These are found via "Advanced options" in each Grub boot menu. Have you tried opening "Advanced options" to boot Windows?
Many have replied to my original mail and many have asked many questions which I have answered patiently and to the best of my ability. I am not a 'geek' but a writer who is using OpenSuse's latest OS, Leap 15.2 to write books. Being a lay-user, I may not be aware of many aspects of Linux in details. But I am also a long time lay user of Linux and started learning it from the website 'https://www.linuxfromscratch.org' long years back when most current Linux distributions had not yet taken birth.
This was my first post here at the end of which, I asked a question. That question was:
"If Grub2 is installed to the Extended partition will it start all the three operating systems?"
I am sorry to note that no one has answered this question clearly.
I request someone to answer it in simple terms, please.
"If Grub2 is installed to the Extended partition will it start all the three operating systems?"
I am sorry to note that no one has answered this question clearly.
I cannot say from first hand experience whether it can or cannot, because I've never installed it there. What my experience does say, is that if Grub can be installed somewhere, it can be used to boot whatever is available to be booted on the system on which installed. Thus, I have to think it can, so, a qualified yes.
In case of legacy boot the bootloader must be installed on MBR, because this is the only place where BIOS executes it. In case the booloader is installed somewhere else then it must be chainloaded by another booloader.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.