|
Bugzilla – Full Text Bug Listing |
| Summary: | grub2 won't boot LEAP from logical | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE Distribution | Reporter: | Seymour Metz <smetz3> |
| Component: | Bootloader | Assignee: | Bootloader Maintainers <bootloader-maintainers> |
| Status: | NEW --- | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | nwr10cst-oslnx, smetz3 |
| Version: | Leap 15.5 | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: |
boot options menu
bootloader options |
||
Created attachment 868725 [details]
bootloader options
Third tab of bootloader configuration window.
To boot a logical partition, you need: (1) suitable boot code, usually in the MBR. The Microsoft boot code (supplied with Windows) cannot do it. The "generic boot code" that Yast puts there can do it. That's the "syslinux" boot code. (2) your BIOS must be able to see that far into the disk. I have an older computer, purchased in 2010, which cannot boot one of my systems. sda 8:0 0 698.6G 0 disk ├─sda1 8:1 0 500M 0 part ├─sda2 8:2 0 256M 0 part ├─sda3 8:3 0 59.8G 0 part ├─sda4 8:4 0 1K 0 part ├─sda5 8:5 0 2G 0 part ├─sda6 8:6 0 512M 0 part ├─sda7 8:7 0 150G 0 part ├─sda8 8:8 0 40G 0 part └─sda9 8:9 0 445.7G 0 part └─cr-shared 254:3 0 445.7G 0 crypt /shared Currently that's an internal disk on my newest desktop. But I previously had that disk mounted in an external enclosure (as a USB external drive). And I had a Solus system on "/dev/sda8". One of my computers (the one purchased in 2010) could not boot that, but another newer system could boot it without any problem. I also tried writing to the PBR of /sda4, the extended partition, but that also failed. This is a Dell vostro 1720, which is very old. Should I ignore the space message and write to the MBR? >Should I ignore the space message
You have not previously mention a "space" issue.
I have not had problems booting from a partition. However, if your root file system uses "btrfs", then that probably won't work unless the partition you are booting from is the root partition. That's a limitation of "btrfs".
In a typical newer computer with MSDOS partitioning, there is a gap of 1023 sectors between the MBR and the first partition. And grub2 uses that gap.
In older computers, there is only a 62 or 63 sector gap. And that gap is too small for booting "btrfs".
If your older BIOS cannot access your root partition, then you might need a separate "/boot" partition nearer to the beginning of the disk. Or use the install media option to boot an installed linux system.
I use Yast for partitioning and normally get a warning about not enough space after the MBR. I use ext4. Should I ignore the warning and use the MBR? Would the answer change if i had an ext4 /boot and a btrfs root? If you are using "ext4", then booting from a partition should work unless there is a BIOS limitation. And if your problem is due to a BIOS limitation, then booting from the MBR won't solve that. For booting, grub makes BIOS calls to load the kernel and the "initrd". If the BIOS cannot read that far into the drive, it won't work. If your system supports boot from a USB device, then you could try putting "/boot" onto a USB drive -- either "ext2" or even "FAT" should be okay for that. You could just copy your existing "/boot", and then install booting to boot from that USB. You would need to update the USB whenever there is a kernel update or a grub2 update. If your computer is old enough to not boot from a USB, maybe it has a floppy drive you could use. Or boot the install DVD, but choose the menu option to boot an installed linux. I had previously installed LEAP (15.3?) on this machine, so this is more than a BIOS issue, although BIOS might be one of the factors. >I had previously installed LEAP (15.3?) on this machine ...
Are you reusing the same partitioning? Or is the partitioning different?
Same partitioning. Reformatted sda7 as ext4 (was btrfs). >Same partitioning. Reformatted sda7 as ext4 (was btrfs).
That makes it less likely that this is a BIOS limitation. And that leaves us wondering what is the problem.
If this is not a BIOS limitation, then booting from the MBR should work. Any message about small space in the MBR gap should not matter for an "ext4" root partition.
Writing to MBR works. Does the bootloader require the extra space if root is btrfs bot /boot is ext4? I'm glad to hear it is now working. There should not be a problem with "ext4" for "/boot". However, you lose some of the benefits of "btrfs" if you have a separate "/boot". In particular, this interferes with the ability to rollback. I'm waiting for a GUI tool similar to yast before I try btrfs, so thar's not a problem for me. It probably makes a fix more urgent, but I have no idea how much. Does the issue also exist with UEFI and GPT?If not, it may be less urgent. There should not be any problems with UEFI booting. Well, some of the earlier UEFI implementations were buggy. By now, that's mostly corrected. |
Created attachment 868724 [details] boot options menu grub2 displays grub with no menu and reboots. Partition layout is. localhost:~ # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS sda 8:0 0 232.9G 0 disk ├─sda1 8:1 0 39.2M 0 part ├─sda2 8:2 0 14.6G 0 part ├─sda3 8:3 0 123.6G 0 part ├─sda4 8:4 0 1K 0 part ├─sda5 8:5 0 2G 0 part [SWAP] ├─sda6 8:6 0 50G 0 part /home └─sda7 8:7 0 42.6G 0 part / sr0 11:0 1 4.4G 0 rom