You are not logged in.

#1 2014-04-08 01:14:53

sir_charles804
Member
Registered: 2013-10-10
Posts: 13

Grub not updating using grub-mkconfig

I have created an entry in /etc/grub.d/40_custom. I then ran grub-mkconfig -o /boot/grub/grub.cfg. The entries are there, but when I boot, they don't show up in the menu. Am I missing a step for adding a menuentry to grub?

Offline

#2 2014-04-08 03:45:30

nullified
Member
From: Massachusetts, USA
Registered: 2013-12-09
Posts: 468

Re: Grub not updating using grub-mkconfig

I assume you've read through: https://wiki.archlinux.org/index.php/GR … b-mkconfig?

Are you sure it's (40_custom) properly formatted? You're not set up UEFI-GPT are you?


"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace

Offline

#3 2014-04-08 15:59:38

the.ridikulus.rat
Member
From: Indiana, USA
Registered: 2011-10-04
Posts: 765

Re: Grub not updating using grub-mkconfig

sir_charles804 wrote:

I have created an entry in /etc/grub.d/40_custom. I then ran grub-mkconfig -o /boot/grub/grub.cfg. The entries are there, but when I boot, they don't show up in the menu. Am I missing a step for adding a menuentry to grub?

Please post the 40_custom file. We can't tell whats wrong without looking at it first.

Offline

#4 2014-04-08 18:42:13

sir_charles804
Member
Registered: 2013-10-10
Posts: 13

Re: Grub not updating using grub-mkconfig

nullified wrote:

I assume you've read through: https://wiki.archlinux.org/index.php/GR … b-mkconfig?

Are you sure it's (40_custom) properly formatted? You're not set up UEFI-GPT are you?

I am. And it's a macbook, sorry I should have said that before. I just saw the mactel-boot program thought so I'm going to try that.

Offline

#5 2014-04-08 20:10:21

nullified
Member
From: Massachusetts, USA
Registered: 2013-12-09
Posts: 468

Re: Grub not updating using grub-mkconfig

We're going to need more information if we're going to help you.

For a start, post the 40_custom file in code tags, as the.ridikulus.rat asked. Also, you are what? Two questions were asked that this might be a response to.


"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace

Offline

#6 2014-04-08 20:20:19

sir_charles804
Member
Registered: 2013-10-10
Posts: 13

Re: Grub not updating using grub-mkconfig

nullified wrote:

We're going to need more information if we're going to help you.

For a start, post the 40_custom file in code tags, as the.ridikulus.rat asked. Also, you are what? Two questions were asked that this might be a response to.

I have read the wiki. My answer was in response to your question about UEFI-GPT. I believe that I am setup using UEFI-GPT. I followed the instructions at https://wiki.archlinux.org/index.php/MacBook in order to setup dualboot. A few months ago I blew away the mac osx partition and everything works fine. I am trying to add my linux from scratch partition to my grub menu. I can get to the LFS partition fine from the grub shell, so I know my entry is fine. I think that my problem is updating grub image that's registered with the EFI boot record.

Here is my /etc/grub/40_custom file :

#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry "Linux From Scratch" --class os {
        insmod ext2
        set root=(hda1,5)
        linux /vmlinuz-3.13.3-lfs-7.5 root=/dev/sda2 ro
        boot
}

I am unsure how to update the image that EFI is booting. I also might be misunderstanding how EFI works

Offline

#7 2014-04-08 20:54:47

nullified
Member
From: Massachusetts, USA
Registered: 2013-12-09
Posts: 468

Re: Grub not updating using grub-mkconfig

sir_charles804 wrote:

I have created an entry in /etc/grub.d/40_custom. I then ran grub-mkconfig -o /boot/grub/grub.cfg.

I haven't dealt with a setup like yours, but, what you said you did in your first post is not what the wiki says to do: https://wiki.archlinux.org/index.php/Grub#Dual-booting

In particular:

or, for UEFI-GPT Mode:

# grub-mkconfig -o /boot/efi/EFI/GRUB/grub.cfg

"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace

Offline

#8 2014-04-09 00:09:26

sir_charles804
Member
Registered: 2013-10-10
Posts: 13

Re: Grub not updating using grub-mkconfig

nullified wrote:

I haven't dealt with a setup like yours, but, what you said you did in your first post is not what the wiki says to do: https://wiki.archlinux.org/index.php/Grub#Dual-booting

Thanks nullified,

I miss-read that the first time. I put my grub.cfg on to the efi partition and I ended up having to boot to the os x recovery and do this: https://wiki.archlinux.org/index.php/MacBook#GRUB.

Everything is working now!

Offline

#9 2014-04-09 03:39:07

nullified
Member
From: Massachusetts, USA
Registered: 2013-12-09
Posts: 468

Re: Grub not updating using grub-mkconfig

okay,cool. mark the thread as solved if so. glad it works!


"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace

Offline

Board footer

Powered by FluxBB