PDA

View Full Version : CentOS 7 (1708) missing in boot menu created by F25



boycottsystemd
4th October 2017, 10:31 AM
(After copying fedora partition to new disk and solving problem with encrypted home folder https://www.forums.fedoraforum.org/showthread.php?t=315677)
MBR partition disc, legacy BIOS boot.

I've mounted CentOS boot partition before creating boot menu:


grub2-install /dev/sda
grub2-mkconfig -o /boot/grub2/grub.cfg

Does anyone know please how to fix it ?

srakitnican
4th October 2017, 08:02 PM
I think grub2-mkconfig mounts partitions on its own as it is doing the probing. Please give more information about partitions layout, disks, etc.


$ lsblk -f

And explain what is what.

boycottsystemd
5th October 2017, 01:17 PM
Hello,


NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1 ntfs system reserved
├─sda2 ntfs
├─sda3 extended
├─sda5 ext4 (empty)
├─sda6 xfs centos /boot
├─sda7 centos luks
├─sda8 centos luks
├─sda9 centos luks
├─sda10 swap
├─sda11 ext4
├─sda12 ext4
├─sda13 unallocated
├─sda14 ext4
├─sda15 encrypted - devuan
├─sda16 ext4
├─sda17 ext4 fedora
└─sda18 ext4
sr0

is this satisfactory ?

boycottsystemd
5th October 2017, 01:25 PM
I think grub2-mkconfig mounts partitions on its own as it is doing the probing.


Mounting ubuntu partition was necessary in one case: https://www.forums.fedoraforum.org/showthread.php?t=312241