Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grub2-install error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Albion
n00b
n00b


Joined: 07 Feb 2012
Posts: 31
Location: England

PostPosted: Tue May 27, 2014 10:30 am    Post subject: grub2-install error Reply with quote

Good morning, all.

Please note that I just encountered an error when trying to install Grub2 on my computer, as follows:

My partition layout was set-up as follows:
/dev/sda1 EFI
/dev/sda2 /boot
/dev/sda3 Swap
/dev/sda4 /
/dev/sdb1 /home

Quote:

livecd init.d # grub2-install /dev/sda
/usr/sbin/grub2-bios-setup: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
/usr/sbin/grub2-bios-setup: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
/usr/sbin/grub2-bios-setup: error: will not proceed with blocklists.


Please help.

Thank you in advance for your time and I look forward to hearing back shortly.

Regards,

A.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7453
Location: Goose Creek SC

PostPosted: Wed May 28, 2014 6:25 pm    Post subject: Reply with quote

first thought is - don't use grub2, use legacy grub or efistub or syslinux instead - however

boot the install cd/usb, run:
Code:
 parted -l | wgetpaste
gdisk -l /dev/sda | wgetpaste
post the url's returned
_________________
Defund the FCC.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6107
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sun Jun 01, 2014 9:34 am    Post subject: Reply with quote

hm,

perhaps some flags are missing ?


here - as follows - my partitioning scheme (with grub2):

Quote:
parted /dev/sda
GNU Parted 3.1
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: ATA INTEL SSD (scsi)
Disk /dev/sda: 180GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 2097kB 212MB 210MB fat32 boot
2 212MB 528MB 317MB reiserfs
3 528MB 75.2GB 74.7GB
4 75.2GB 180GB 105GB reiserfs

(parted) q


note that the first partition starts with 2 MB - so there's 2 MB of free space before (a security measure in case grub needs to embed itself there)


Quote:
gdisk /dev/sda
GPT fdisk (gdisk) version 0.8.8

Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): p
Disk /dev/sda: 351651888 sectors, 167.7 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 351651854
Partitions will be aligned on 2048-sector boundaries
Total free space is 4077 sectors (2.0 MiB)

Number Start (sector) End (sector) Size Code Name
1 4096 413695 200.0 MiB EF00
2 413696 1032191 302.0 MiB 0700
3 1032192 146851839 69.5 GiB 0700
4 146851840 351651839 97.7 GiB 0700



the first partition, the EFI System Partition gets the EF00 flag by simply enabling the "boot" flag on it - the prerequisite is, that you've booted in (U)EFI mode into the live system


take a look at my thread for references:

https://forums.gentoo.org/viewtopic-t-991298.html
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Albion
n00b
n00b


Joined: 07 Feb 2012
Posts: 31
Location: England

PostPosted: Sun Jun 01, 2014 7:22 pm    Post subject: Reply with quote

Thanks for your help both. I restarted the installation with fewer USE options in make.conf and it seemed to do the trick. Maybe that was it...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum