help-grub
[Top][All Lists]
Advanced

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

Re: GRUB 2.0 not loading config file


From: Chris Murphy
Subject: Re: GRUB 2.0 not loading config file
Date: Sat, 19 Oct 2013 22:07:47 -0600

On Oct 19, 2013, at 3:02 AM, Ortwin Glück <address@hidden> wrote:

> Hi,
> 
> Symptoms:
> - GRUB 2.0 starts in command-line mode. The boot menu is not loaded.
> - on the command-line: configfile /boot/grub/grub.cfg properly loads the 
> config file, surprisingly.
> - GRUB 0.9 works fine.
> 
> HW: Samsung laptop that I boot in legacy (non-EFI) mode. Have not tried EFI.
> 
> grub-install creates the image like so:
> /usr/bin/grub2-mkimage -d /usr/lib/grub/i386-pc -O i386-pc 
> --output=/boot/grub/i386-pc/core.img --prefix=(,gpt1)/boot/grub biosdisk ext2 
> part_gpt
> 
> 
> Partition tables:
> MBR:
> Disk /dev/sda: 126.0 GB, 126035288064 bytes, 246162672 sectors
> Units = sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disk identifier: 0x3eb19e87
> 
>   Device Boot      Start         End      Blocks   Id  System
> /dev/sda1               1   246162671   123081335+  ee  GPT
> 
> 
> GPT:
> Disk /dev/sda: 246162672 sectors, 117.4 GiB
> Logical sector size: 512 bytes
> Disk identifier (GUID): 6A7696BC-D860-44B9-87E9-6AAECD6C9E4F
> Partition table holds up to 128 entries 
> First usable sector is 34, last usable sector is 246162638 
> Partitions will be aligned on 2-sector boundaries 
> Total free space is 0 sectors (0 bytes) 
> 
> Number  Start (sector)    End (sector)  Size       Code  Name 
>   1            2048       246162638   117.4 GiB   8300  primary 
>   2              34            2047   1007.0 KiB  EF02  BIOS boot partition

At the grub command line, issue the set command and report the result for 
prefix. Above it looks like it's setting the prefix to (,gpt1)/boot/grub which 
is wrong. It should be (hd0,gpt2) based on the GPT you've posted, but it's 
unusual that the partition numbers are reversed given the LBAs being used. The 
BIOS boot partition is first.

It might be worth using gdisk to reorder the partitions and write out the GPT 
again and then re-installing grub.

Chris Murphy


reply via email to

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