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: Arbiel Perlacremaz
Subject: Re: grub-mkconfig does not generate menuentries when a /boot is on a logical volume
Date: Wed, 03 Dec 2014 20:31:43 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

Hi Jordan

Your gess seems quite correct.

As I had a lot of trouble to understand why my various grub.cfg files
presented so many discrepancies, I returned to the basics. I made a
brand new installation on a encrypted LVM and I am presently running a
bunch of new tests. I realize in reading your post that my /boot's are
very often apart from their / and that I may well have forgot to mount
the appropriate directories on the various /boot's.

I go on with my tests and let you know in a few days when I am done.

Arbiel


Le 01/12/2014 23:47, Jordan Uggla a écrit :
> 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/".
>


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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