Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Install Problem: Core2 E8400 - Grub2
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
chekdalaypa
n00b
n00b


Joined: 22 Dec 2008
Posts: 38
Location: Canada

PostPosted: Fri Dec 26, 2014 4:26 pm    Post subject: Install Problem: Core2 E8400 - Grub2 Reply with quote

Good morning all,

re:Install Problem: Core2 E8400 - Grub2

I had thought I made it through the handbook without error this time ..., except for Grub2, hopefully you all can help

There was only one error, hoping it wouldn't effect anything but when I went through the rest and rebooted all i had was a black screen and a flashing cursor.

The only error message I received this time around was from:
(chroot) livecd / # grub2-install /dev/sda
Installing for i386-pc platform.
grub2-install: warning: this GPT partition label contains no BIOS Boot Partition
grub2-install: warning: Embedding is not possible. GRUB can only be installed iRELIABLE and their use is discouraged..
grub2-install: error: will not proceed with blocklists.

From Grub2 wiki found a bit on chroot. so I tried to mount boot after chrooting but that didn't work.

Not sure what to try next.

Please help
_________________
Chekdalaypa Chimchumoushkin

Current system to be worked on:
Lenovo Think Centre core 2 E8400
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Fri Dec 26, 2014 5:35 pm    Post subject: Reply with quote

chekdalaypa,

Grub2 wants to install a piece of itself in the unused space before the first partition, but you don't have any.
Thats what the
grub2 wrote:
grub2-install: warning: Embedding is not possible
message means.

grub2 wrote:
grub2-install: warning: this GPT partition label contains no BIOS Boot Partition
means that grub2 cannot find a /boot partition that it can read.
I don't use grub2 but I suspect that its looking for a FAT32 boot partition, as it would on a EFI system.

Blocklists should work, but they come with a word of warning.
The block list is written at grub install time and is literally the list of disk bloks that must be loaded to load grub. When this method is used, the contents of the block list are blindly loaded at boot time. Hold that thought. With a 'normal' grub install, it reads the boot filesystem, so bits of grub moving around are not a problem.

When you get an update to grub, the files move on the filesysem - the blocklist now points to 'free' space on the filesystem (if you are lucky) and not to the updated grub2. When you get a grub update you must reinstall grub to the MBR to generate a new blocklist.

Do you have a separate /boot partition?
If so, copy the contents out, make it FAT32 (vfat) and copy the content back. Then try grub2-install again.
If there is no boot partition, find out how to force grub2 to use blocktlists.

Legacy grub will work - it falls back to blocklists without any forcing - but with the same health warning as above.

The absolute backstop is to make a boot partition but there are other options before we go there.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
chekdalaypa
n00b
n00b


Joined: 22 Dec 2008
Posts: 38
Location: Canada

PostPosted: Fri Dec 26, 2014 6:38 pm    Post subject: Reply with quote

NeddySeagoon wrote:
chekdalaypa,

Grub2 wants to install a piece of itself in the unused space before the first partition, but you don't have any.
Thats what the
grub2 wrote:
grub2-install: warning: Embedding is not possible
message means.

grub2 wrote:
grub2-install: warning: this GPT partition label contains no BIOS Boot Partition
means that grub2 cannot find a /boot partition that it can read.
I don't use grub2 but I suspect that its looking for a FAT32 boot partition, as it would on a EFI system.

Blocklists should work, but they come with a word of warning.
The block list is written at grub install time and is literally the list of disk bloks that must be loaded to load grub. When this method is used, the contents of the block list are blindly loaded at boot time. Hold that thought. With a 'normal' grub install, it reads the boot filesystem, so bits of grub moving around are not a problem.

When you get an update to grub, the files move on the filesysem - the blocklist now points to 'free' space on the filesystem (if you are lucky) and not to the updated grub2. When you get a grub update you must reinstall grub to the MBR to generate a new blocklist.

Do you have a separate /boot partition?
If so, copy the contents out, make it FAT32 (vfat) and copy the content back. Then try grub2-install again.
If there is no boot partition, find out how to force grub2 to use blocktlists.

Legacy grub will work - it falls back to blocklists without any forcing - but with the same health warning as above.

The absolute backstop is to make a boot partition but there are other options before we go there.


Hi NeddySeagoon,

Yes I have a separate boot partition. From the handbook i used the recommended default parted:
===============================================
livecd gentoo # parted
GNU Parted 3.1
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: ATA ST3160815AS (scsi)
Disk /dev/sda: 160GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 1049kB 5243kB 4194kB ext4 grub
2 5243kB 139MB 134MB ext2 boot
3 139MB 4434MB 4295MB linux-swap(v1) swap
4 4434MB 133GB 129GB ext4 rootfs

===============================================

I will do some experimenting to try and work it out.

My new question is (maybe you can answer) if in the handbook, I stuck with the default recommendations such as using parted and grub2, why did this install fail at grub2 or is my install just one that failed out of many successes? just curious.

thank you for the information I truly appreciate it.

Chekdalaypa
_________________
Chekdalaypa Chimchumoushkin

Current system to be worked on:
Lenovo Think Centre core 2 E8400
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Fri Dec 26, 2014 7:19 pm    Post subject: Reply with quote

chekdalaypa,

Hmm the handbook has been updated since I Installed last.

Your problem is that you have done an install using a GPT partition table but on a system that has a conventional BIOS.
You do indeed have space to do the embedditg that grub2 needs but it can't see it as its asking your BIOS about partitions.
The BIOS can only see the 'protective' MSDOS paritition table, which will only contain a single partition.

This part of the grub manual looks helpful.
See 3.4 BIOS installation, the section on GPT.

Be sure you get this right - The Caution at the end means what it says.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
chekdalaypa
n00b
n00b


Joined: 22 Dec 2008
Posts: 38
Location: Canada

PostPosted: Fri Dec 26, 2014 7:31 pm    Post subject: Reply with quote

NeddySeagoon wrote:
chekdalaypa,

Hmm the handbook has been updated since I Installed last.

Your problem is that you have done an install using a GPT partition table but on a system that has a conventional BIOS.
You do indeed have space to do the embedditg that grub2 needs but it can't see it as its asking your BIOS about partitions.
The BIOS can only see the 'protective' MSDOS paritition table, which will only contain a single partition.

This part of the grub manual looks helpful.
See 3.4 BIOS installation, the section on GPT.

Be sure you get this right - The Caution at the end means what it says.


thanks again. I will be checking into this.
_________________
Chekdalaypa Chimchumoushkin

Current system to be worked on:
Lenovo Think Centre core 2 E8400
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Fri Dec 26, 2014 7:48 pm    Post subject: Reply with quote

chekdalaypa,

The handbook says
Code:
(parted) mkpart primary 1 3
(parted) name 1 grub
(parted) set 1 bios_grub on


Your parted output shows
Code:
Number Start    End  Size File system     Name Flags
1     1049kB 5243kB 4194kB     ext4       grub

Notice that there are no flags listed. That suggests you missed the last step above,
Code:
set 1 bios_grub on
which is a flag that grub uses to know that the partition is for grub to use for its embedding.

You can set that flag any time before you install grub.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
chekdalaypa
n00b
n00b


Joined: 22 Dec 2008
Posts: 38
Location: Canada

PostPosted: Mon Dec 29, 2014 1:36 am    Post subject: Reply with quote

NeddySeagoon wrote:
chekdalaypa,

The handbook says
Code:
(parted) mkpart primary 1 3
(parted) name 1 grub
(parted) set 1 bios_grub on


Your parted output shows
Code:
Number Start    End  Size File system     Name Flags
1     1049kB 5243kB 4194kB     ext4       grub

Notice that there are no flags listed. That suggests you missed the last step above,
Code:
set 1 bios_grub on
which is a flag that grub uses to know that the partition is for grub to use for its embedding.

You can set that flag any time before you install grub.


Hi there NeddySeagoon,

was away for a couple days and it bugged me the whole time that I missed something.

thanks for noticing I appreciate it.

Chekdalaypa
_________________
Chekdalaypa Chimchumoushkin

Current system to be worked on:
Lenovo Think Centre core 2 E8400
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