help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grub-mkconfig does not generate menuentries when a /boot is on a log


From: Andrei Borzenkov
Subject: Re: grub-mkconfig does not generate menuentries when a /boot is on a logical volume
Date: Sat, 29 Nov 2014 18:51:23 +0300

В Sat, 29 Nov 2014 12:53:19 +0100
Arbiel Perlacremaz <address@hidden> пишет:

> Hi
> 
> grub is supposed to manage logical volumes. I've installed an OS with
> /boot on a regular logical volume and /, /usr and /home on a crypted
> logical volume. To be more accurate, I first had /boot on a standard
> partition (/dev/sdb2) and after that I overwrote /dev/sdb2 by a LVM and
> reinstalled grub, pointing --boot-directory on the logical volume.
> 
> running os-prober regularly finds the two systems installed on my PC,
> but there are no menuentries in my grub.cfg file.
> What can I do to have grub-mkconfig generate a correct grub.cfg file ?
> 
> address@hidden:~$ sudo os-prober
> /dev/sda6:Ubuntu 12.04.4 LTS (12.04):Ubuntu:linux
> /dev/mapper/lvm-root:Ubuntu 14.04 LTS (14.04):Ubuntu1:linux
> address@hidden:~$ sudo mount /dev/mapper/mvg-boot /boot
> address@hidden:~$ sudo mount /dev/sdb1 /boot/grub
> address@hidden:~$ sudo update-grub

what happens when you run grub-mkconfig directly?

> Création du fichier de configuration GRUB…
> Ubuntu 12.04.4 LTS (12.04) trouvé sur /dev/sda6
> Ubuntu 14.04 LTS (14.04) trouvé sur /dev/mapper/lvm-root
> fait
> address@hidden:~$ cat /boot/grub/grub.cfg
> #
> # DO NOT EDIT THIS FILE
> #
> # It is automatically generated by grub-mkconfig using templates
> # from /etc/grub.d and settings from /etc/default/grub
> #
> ......
> ### BEGIN /etc/grub.d/20_linux_xen ###
> ### END /etc/grub.d/20_linux_xen ###
> 
> ### BEGIN /etc/grub.d/20_memtest86+ ###
> ### END /etc/grub.d/20_memtest86+ ###
> 
> ### BEGIN /etc/grub.d/30_os-prober ###
> 
> 
> ### END /etc/grub.d/30_os-prober ###
> 
> ### BEGIN /etc/grub.d/30_uefi-firmware ###
> ### END /etc/grub.d/30_uefi-firmware ###
> .....
> 
> 
> Thanks in advance for your help
> 
> Arbiel
> 

Attachment: pgprdnJemv0Z8.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]