[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: |
Jordan Uggla |
Subject: |
Re: grub-mkconfig does not generate menuentries when a /boot is on a logical volume |
Date: |
Mon, 1 Dec 2014 14:47:15 -0800 |
On Sat, Nov 29, 2014 at 3:53 AM, Arbiel Perlacremaz
<address@hidden> wrote:
> 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
> 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
>
My guess is that you don't have any kernels in /boot/ to create menu
entries for. Please post the output of "ls /boot/".
--
Jordan Uggla (Jordan_U on irc.freenode.net)
- Re: grub-mkconfig does not generate menuentries when a /boot is on a logical volume,
Jordan Uggla <=