UEFI fails to detect boot disk
This document (7023923) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 15
Situation
efi12sp3:~ # parted -s /dev/vda print
...
Partition Table: gpt
Disk Flags: pmbr_boot
...
Resolution
- Check the boot disk is not corrupted
- Remove pmbr_boot label in case it is set
1. Identify the boot device with mount point /boot/efi
efi12sp3:~ # lsblk2. Print the partition table
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sr0 11:0 1 3.6G 0 rom
vda 253:0 0 20G 0 disk
├─vda1 253:1 0 156M 0 part /boot/efi <==================
├─vda2 253:2 0 1.5G 0 part [SWAP]
└─vda3 253:3 0 18.4G 0 part /var/lib/mysql
efi12sp3:~ # parted -s /dev/vda print3. Remove the pmbr_boot disk flag.
Model: Virtio Block Device (virtblk)
Disk /dev/vda: 21.5GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: pmbr_boot <================================
Number Start End Size File system Name Flags
1 1049kB 165MB 164MB fat16 primary boot
2 165MB 1727MB 1562MB linux-swap(v1) primary
3 1727MB 21.5GB 19.7GB btrfs primary
efi12sp3:~ # parted -s /dev/vda disk_set pmbr_boot off4. Confirm the pmbr_boot disk flag has been removed.
efi12sp3:~ # parted -s /dev/vda print5. Reboot to test.
Model: Virtio Block Device (virtblk)
Disk /dev/vda: 21.5GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: <================================
Number Start End Size File system Name Flags
1 1049kB 165MB 164MB fat16 primary boot
2 165MB 1727MB 1562MB linux-swap(v1) primary
3 1727MB 21.5GB 19.7GB btrfs primary
Cause
Additional Information
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7023923
- Creation Date: 10-Jun-2019
- Modified Date:03-Mar-2020
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com