Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Problem @ Installing grub2 boot loader
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
LotSX
n00b
n00b


Joined: 25 Mar 2015
Posts: 14

PostPosted: Thu Mar 26, 2015 12:48 am    Post subject: [solved] Problem @ Installing grub2 boot loader Reply with quote

When I run "grub2-install /dev/sda"

I get a bunch of "device node not found"
And these warnings:
"this GPT partition label contains no BIOS Boot Partition: embedding won't be possible"
"Embedding is not possible. GRUB can only be installed using in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged.."
And this error:
"will not proceed with blocklists"

When I run "grub2-mkconfig -o /boot/grub/grub.cfg"
I just get a bunch of "device node not found" and a "done"


Last edited by LotSX on Fri Mar 27, 2015 3:45 am; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Thu Mar 26, 2015 1:25 am    Post subject: Reply with quote

see:

https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Disks#What_is_the_BIOS_boot_partition

grub2 needs reserved room to write on a gpt disk
_________________
Defund the FCC.
Back to top
View user's profile Send private message
LotSX
n00b
n00b


Joined: 25 Mar 2015
Posts: 14

PostPosted: Thu Mar 26, 2015 2:30 am    Post subject: Reply with quote

I thought I created the bios boot partition on /dev/sda1 when I was following the wikis instructions for partitioning with fdisk. Why is it not being recognized?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Thu Mar 26, 2015 2:42 am    Post subject: Reply with quote

Code:
parted -l


check for presence and partition type
_________________
Defund the FCC.
Back to top
View user's profile Send private message
LotSX
n00b
n00b


Joined: 25 Mar 2015
Posts: 14

PostPosted: Thu Mar 26, 2015 2:52 am    Post subject: Reply with quote

bash: parted: command not found
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Thu Mar 26, 2015 3:37 am    Post subject: Reply with quote

try fdisk -l

sorry thought parted was on install cd
_________________
Defund the FCC.
Back to top
View user's profile Send private message
LotSX
n00b
n00b


Joined: 25 Mar 2015
Posts: 14

PostPosted: Thu Mar 26, 2015 3:48 am    Post subject: Reply with quote

fdisk -l outputs nothing
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Thu Mar 26, 2015 4:06 am    Post subject: Reply with quote

-l with an l as in list?
what install cd/usb are you using?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
LotSX
n00b
n00b


Joined: 25 Mar 2015
Posts: 14

PostPosted: Thu Mar 26, 2015 4:08 am    Post subject: Reply with quote

Did I make a mistake by using fdisk over parted? I missed this statement in the wiki "lthough recent fdisk should support GPT, it has still shown to have some issues with it. The instructions given below assume that the partition layout being used is MBR." I used fdisk because it was in a video tutorial that i was using at the start before i moved onto the wiki.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Thu Mar 26, 2015 5:06 am    Post subject: Reply with quote

if you are using sysresccd/usb or gentoo minimal install cd/usb you should have parted. using sysresccd booted to the xfce4 desktop adds gparted to the partitioning tools. also provides a midori browser that can display the handbook.
if using an older video instead of the handbook --- things have been changing rapidly lately ---
are you using uefi? secure boot?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
LotSX
n00b
n00b


Joined: 25 Mar 2015
Posts: 14

PostPosted: Thu Mar 26, 2015 5:38 am    Post subject: Reply with quote

I'm using a Gentoo minimal install cd. I'm not sure how to answer your question, sorry. What is UEFI and secure boot? Sorry, I'm new to this whole process.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Thu Mar 26, 2015 7:13 am    Post subject: Reply with quote

is the gentooo minimal install cd current? if so, it should include parted and fdisk. Either should be capable of listing your disks and their partitions -- fdisk -l or parted -l
If your machine came with windows 8 or 8.1 installed it almost certainly shipped with a uefi motherboard and secure boot enabled.
http://en.wikipedia.org/wiki/Unified_Extensible_Firmware_Interface
http://docs.fedoraproject.org/en-US/Fedora/18/html/UEFI_Secure_Boot_Guide/chap-UEFI_Secure_Boot_Guide-What_is_Secure_Boot.html
_________________
Defund the FCC.
Back to top
View user's profile Send private message
LotSX
n00b
n00b


Joined: 25 Mar 2015
Posts: 14

PostPosted: Thu Mar 26, 2015 7:48 am    Post subject: Reply with quote

The Gentoo minimal install cd I installed was the latest 3 days ago. I think fdisk and parted stop working when I chroot... My computer did ship with windows 8 so I think it is using UEFI/secure boot.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Thu Mar 26, 2015 5:09 pm    Post subject: Reply with quote

Boot the cd, do not enter the chroot, run
Code:
fdisk -l
and/or
Code:
parted -l
, verify that the partition scheme is as you expect it. If you want additional eyes on the problem,
Code:
fdisk -l | wgetpaste
and/or
Code:
parted -l | wgetpaste
should post the command results on a pastebin site and return a url that you can post here so we can see it.
The situation is complicated. a uefi secure boot motherboard will only run windows unless secure boot is disabled or a secure boot "shim" for the alternate operating system is provided.
What make/model is the computer? That information plus
Code:
lspci -k | wgetpaste
, post the url returned, to allow us to evaluate whether uefi and secure boot are involved.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
LotSX
n00b
n00b


Joined: 25 Mar 2015
Posts: 14

PostPosted: Thu Mar 26, 2015 5:40 pm    Post subject: Reply with quote

fdisk -l | wgetpaste: https://bpaste.net/show/d39b4fe80f34

parted -l | wgetpaste gives me:
Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0
Error: Invalid partition table - recursive partition on /dev/sr0

My computer is a Lenovo Z710.

lspci -k | wgetpaste: https://bpaste.net/show/bac272ba5fa7
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Thu Mar 26, 2015 10:41 pm    Post subject: Reply with quote

about parted -l, the info for /dev/sda is probably up screen. the /dev/sr0 output is normal and is the last output from parted -l on an optical disk equipped system. shift-page up will scroll the display up. your z710 is uefi and secure boot capable. pressing f2 or delete during the start of booting should take you into uefi and allow you to choose uefi mode (with or without secure boot) or legacy bios mode.
fdisk -l reveals that /dev/sda1 2048 6143 4096 2M EFI System exists. the 2m size is inadequate for an efi system partition. windows uses 100 MiB, recommendations in the linux world are as high as 512 MiB. the 2 mb size is fine for a bios boot partition for grub2 with legacy bios mode and mbr disk label or legacy bios and gpt disk label with protective mbr.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
LotSX
n00b
n00b


Joined: 25 Mar 2015
Posts: 14

PostPosted: Fri Mar 27, 2015 1:58 am    Post subject: Reply with quote

I think I'll restart my entire installation since it looks like I messed up from the beginning at the partitioning stage. Thanks a lot for all your info it was really helpful! If you still have some time can you tell me any sources of information that can help me know how to configure the Linux kernel for my machine and what modules to load in /etc/conf.d/modules? I was completely lost during that stage of the installation.

P.S. Also do you know how to access the BIOS on my machine? Spamming F1, F2, and Delete don't work.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


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

PostPosted: Fri Mar 27, 2015 3:23 am    Post subject: Reply with quote

Quote:
I think I'll restart my entire installation since it looks like I messed up from the beginning at the partitioning stage.
the gentoo way is to repair instead of reinstalling, disasters become learning experiences. I'd recommend
making a http://sourceforge.net/projects/systemrescuecd/files/sysresccd-x86/4.5.1/systemrescuecd-x86-4.5.1.iso/download and booting it. select alternative kernel with standard features. if the selection screen is black the boot is in uefi mode. colorful screen is legacy bios. when booted to the CLI run startx. startx will load the xfce4 desktop environment. a network manager icon in the lower right will allow configuring the network, wired or wireless. gparted icon in lower left will allow you to resize partitions if desired. I suspect you will boot in uefi mode. if so and if you want to use uefi mode use gparted to format sda2 as fat32, type ef00, boot flag.Helpful refs:
https://wiki.gentoo.org/wiki/Efibootmgr
https://wiki.gentoo.org/wiki/EFI_stub_kernel
https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation#Using_UEFI
grub2 not needed.
Quote:
Thanks a lot for all your info it was really helpful! If you still have some time can you tell me any sources of information that can help me know how to configure the Linux kernel for my machine and what modules to load in /etc/conf.d/modules?
Recommend ignoring that step, it is a legacy that is almost never needed. I also ignore the mirror-select step.
Quote:
I was completely lost during that stage of the installation. P.S. Also do you know how to access the BIOS on my machine? Spamming F1, F2, and Delete don't work.
As best I can read the lenovo z710 manual, there is a "novo" button that opens a menu that includes setup bios.
_________________
Defund the FCC.
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