* [gentoo-user] GPT-UEFI-fstab questions
@ 2013-11-14 17:18 James
2013-11-14 17:51 ` Michael Hampicke
0 siblings, 1 reply; 11+ messages in thread
From: James @ 2013-11-14 17:18 UTC (permalink / raw
To: gentoo-user
Hello,
I've made another run and this, using this document guide:
http://code.google.com/p/pentoo/wiki/UEFI#UEFI_pentoo-installer_guide_for_UEFI_and_GPT
it all seem to be fine; except grub 2 cannot find the kernel.
The GPT is read fine by grub2. But, grub 2 cannot find
the kernel, explicitly the error messages from grub2:
error : file '/boot/kernel-genkernel-x86_64-3.3.9-pentoo' not found.
error: you need to load the kernel first
Here is the fstab:
UUID="EFA3-8415" /boot/efi vfat default 0 1
#sda2
UUID="cf76566e-bf4e-4dee-ab9d-6fc2bcdd5b1b" /boot ext2 defaults 0 1
#sda3
UUID="0ef33e5a-7869-418e-86be-1ef5e16b4495" none swap sw 0 0
#sda4
UUID="fc8efde7-359e-41b1-94b0-8a9a868bdf24" / ext4 defaults 0 0
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
/dev/cdrom /mnt/cdrom audo noauto,ro 0 0
If you look at the table, which I followed, the names are in all caps, but
I used lowercase; could this be the problem?
The table from the aforementioned doc:
Select "gpt" as Partition Table
Create the following partitions:
# FS Size mount point name
/dev/sda1 vfat 256M /boot/efi UEFI
/dev/sda2 ext2 64M /boot BOOT
/dev/sda3 swap 4G SWAP
/dev/sda4 ext4 16G / ROOT
Booting GRUB-2 through UEFI
On "4. Install Bootloader" choose "UEFI-GRUB".
The UEFI boot partition will be /dev/sda1.
The GRUB device path will be (hd0,2) - the default, /dev/sda2 where the
kernel resides.
ANY IDEAS?
James
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] GPT-UEFI-fstab questions
2013-11-14 17:18 [gentoo-user] GPT-UEFI-fstab questions James
@ 2013-11-14 17:51 ` Michael Hampicke
2013-11-14 18:17 ` [gentoo-user] " James
0 siblings, 1 reply; 11+ messages in thread
From: Michael Hampicke @ 2013-11-14 17:51 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1872 bytes --]
Am 14.11.2013 18:18, schrieb James:
> Hello,
>
> I've made another run and this, using this document guide:
> http://code.google.com/p/pentoo/wiki/UEFI#UEFI_pentoo-installer_guide_for_UEFI_and_GPT
>
> it all seem to be fine; except grub 2 cannot find the kernel.
> The GPT is read fine by grub2. But, grub 2 cannot find
> the kernel, explicitly the error messages from grub2:
>
> error : file '/boot/kernel-genkernel-x86_64-3.3.9-pentoo' not found.
> error: you need to load the kernel first
>
>
> Here is the fstab:
>
> UUID="EFA3-8415" /boot/efi vfat default 0 1
> #sda2
> UUID="cf76566e-bf4e-4dee-ab9d-6fc2bcdd5b1b" /boot ext2 defaults 0 1
> #sda3
> UUID="0ef33e5a-7869-418e-86be-1ef5e16b4495" none swap sw 0 0
> #sda4
> UUID="fc8efde7-359e-41b1-94b0-8a9a868bdf24" / ext4 defaults 0 0
>
> shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
> /dev/cdrom /mnt/cdrom audo noauto,ro 0 0
>
>
> If you look at the table, which I followed, the names are in all caps, but
> I used lowercase; could this be the problem?
>
>
>
> The table from the aforementioned doc:
> Select "gpt" as Partition Table
> Create the following partitions:
>
> # FS Size mount point name
> /dev/sda1 vfat 256M /boot/efi UEFI
> /dev/sda2 ext2 64M /boot BOOT
> /dev/sda3 swap 4G SWAP
> /dev/sda4 ext4 16G / ROOT
>
> Booting GRUB-2 through UEFI
>
> On "4. Install Bootloader" choose "UEFI-GRUB".
> The UEFI boot partition will be /dev/sda1.
> The GRUB device path will be (hd0,2) - the default, /dev/sda2 where the
> kernel resides.
>
>
> ANY IDEAS?
Please show us your grub2.cfg :-)
Also try using the output of grub2-mkconfig as your grub2.cfg and see if
your machine boots.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* [gentoo-user] Re: GPT-UEFI-fstab questions
2013-11-14 17:51 ` Michael Hampicke
@ 2013-11-14 18:17 ` James
2013-11-14 19:47 ` Rick "Zero_Chaos" Farina
2013-11-14 19:48 ` Michael Hampicke
0 siblings, 2 replies; 11+ messages in thread
From: James @ 2013-11-14 18:17 UTC (permalink / raw
To: gentoo-user
Michael Hampicke <mh <at> hadt.biz> writes:
> > On "4. Install Bootloader" choose "UEFI-GRUB".
> > The UEFI boot partition will be /dev/sda1.
> > The GRUB device path will be (hd0,2) - the default, /dev/sda2
> > where the kernel resides.
> Please show us your grub2.cfg
> Also try using the output of grub2-mkconfig as your grub2.cfg and see if
> your machine boots.
During the pentoo install, I capture this:
now review the "/tmp/efibootpart/boot/grub2/grub.cfg"
timeout=5
menuentry 'Pentoo' {
insmod efi_gop
insmod efi_uga
insmod part_msdos
insmod part_gpt
root=(hd0,2)
linux /boot/kernel-genkernel-x86_64-3.9.9-pentoo root=/dev/ram0
real_root= video= console=tty1 ro
initrd /boot/initramfs-genkernel-x86_64-3.9.9-pentoo
}
James
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Re: GPT-UEFI-fstab questions
2013-11-14 18:17 ` [gentoo-user] " James
@ 2013-11-14 19:47 ` Rick "Zero_Chaos" Farina
2013-11-14 20:32 ` James
2013-11-14 19:48 ` Michael Hampicke
1 sibling, 1 reply; 11+ messages in thread
From: Rick "Zero_Chaos" Farina @ 2013-11-14 19:47 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 11/14/2013 01:17 PM, James wrote:
> Michael Hampicke <mh <at> hadt.biz> writes:
>
>
>>> On "4. Install Bootloader" choose "UEFI-GRUB".
>>> The UEFI boot partition will be /dev/sda1.
>>> The GRUB device path will be (hd0,2) - the default, /dev/sda2
>>> where the kernel resides.
>
>> Please show us your grub2.cfg
>> Also try using the output of grub2-mkconfig as your grub2.cfg and see if
>> your machine boots.
>
>
> During the pentoo install, I capture this:
>
>
> now review the "/tmp/efibootpart/boot/grub2/grub.cfg"
>
> timeout=5
> menuentry 'Pentoo' {
> insmod efi_gop
> insmod efi_uga
> insmod part_msdos
> insmod part_gpt
> root=(hd0,2)
> linux /boot/kernel-genkernel-x86_64-3.9.9-pentoo root=/dev/ram0
> real_root= video= console=tty1 ro
> initrd /boot/initramfs-genkernel-x86_64-3.9.9-pentoo
> }
>
I would like to note that in pentoo-installer grub2 is marked
experimental and I honestly don't expect it to work at all.
I am beyond happy to accept patches that fix that, I currently lack time
and substantial motivation to work on such things. grub1 works.
Thanks,
Zero
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBAgAGBQJShSi2AAoJEKXdFCfdEflK3lMP/2EfI6A7IVVq7JRun8bKkzMV
5ib4ffO20K2kPdgBCrHgR1LDSDRG36jjHfDYu+f6vT8Xnr9f0M3HG8zwcuaaXGyV
/9Y6XqPOp+2jwF3FXc/wrp60jCt3hTckpnN9Esrd5/dkGYS7TYDeHFA6jK1Ec/6M
JMBjxUy9TeSXiJMZkiUDkS1G+BqlHdro1huJqGOGDuSPJhrjqtBVewqpw5BlH4EP
XlzKpKquVyWPIvtY9N7kwxA8E1wAVIBMeFYQ9R9FOhochT5OEmQj2nRBvNSCHw32
mRoEYIbX1IV09CiZUHzhknsWUzA48NX0fyQBXNxPbillq0cKx9gDSEXJJtT93YU7
tQMxjQE8yqjouy9CPH4WsBRuE7qP5DNJbD6EV2LUsTSl9rg/NNhjK5GXGJNbKlQs
cML1ze6u79IsikwScyY9UwUA6KfUjtOsj3UbgYDAWoLS8pG8TOZ1aD58BSmV+fRO
ImsYT8BqnIT/HK32Evn/6pAVv0T5wZkDzaOZVQUzEhaHlP4aL4/kwpvTgFEhdd7C
ikSgDi/KAlP9yWhbP+urob8eJgpAxJ/MFCYt2TXRUASuH3Dd1PbPsTyN/tTx38v0
+Qnqbtdf2GaxvRpRW2xY+KffCyIgx92xfYVdDy3RkXK/CofDnWSbaXPYbXXA/hxG
XaOebmBHl3JHPPHskDhJ
=iuNl
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 11+ messages in thread
* [gentoo-user] Re: GPT-UEFI-fstab questions
2013-11-14 19:47 ` Rick "Zero_Chaos" Farina
@ 2013-11-14 20:32 ` James
2013-11-14 22:13 ` Rick "Zero_Chaos" Farina
0 siblings, 1 reply; 11+ messages in thread
From: James @ 2013-11-14 20:32 UTC (permalink / raw
To: gentoo-user
Rick "Zero_Chaos" Farina <zerochaos <at> gentoo.org> writes:
> > timeout=5
> > menuentry 'Pentoo' {
> > insmod efi_gop
> > insmod efi_uga
> > insmod part_msdos
> > insmod part_gpt
> > root=(hd0,2)
> > linux /boot/kernel-genkernel-x86_64-3.9.9-pentoo root=/dev/ram0
> > real_root= video= console=tty1 ro
> > initrd /boot/initramfs-genkernel-x86_64-3.9.9-pentoo
> > }
> I would like to note that in pentoo-installer grub2 is marked
> experimental and I honestly don't expect it to work at all.
> I am beyond happy to accept patches that fix that, I currently lack time
> and substantial motivation to work on such things. grub1 works.
> Thanks,
> Zero
Ahhhhhhhhhhh, you guys do exist; NICE piece of work! Sure, I'll figure it
out and drop you a line. It'd be much easier on me if you activated my
request for a dev account......
Just for the record, quite a few folks are having troubles with (U)EFI
and it appears that the kernel signature is quite often the culprit,
from my preliminary research [1]. You got any comments about that?
James
[1] http://kroah.com/log/blog/2013/09/02/booting-a-self-signed-linux-kernel/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Re: GPT-UEFI-fstab questions
2013-11-14 20:32 ` James
@ 2013-11-14 22:13 ` Rick "Zero_Chaos" Farina
0 siblings, 0 replies; 11+ messages in thread
From: Rick "Zero_Chaos" Farina @ 2013-11-14 22:13 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 11/14/2013 03:32 PM, James wrote:
> Rick "Zero_Chaos" Farina <zerochaos <at> gentoo.org> writes:
>
>>> timeout=5
>>> menuentry 'Pentoo' {
>>> insmod efi_gop
>>> insmod efi_uga
>>> insmod part_msdos
>>> insmod part_gpt
>>> root=(hd0,2)
>>> linux /boot/kernel-genkernel-x86_64-3.9.9-pentoo root=/dev/ram0
>>> real_root= video= console=tty1 ro
>>> initrd /boot/initramfs-genkernel-x86_64-3.9.9-pentoo
>>> }
>
>> I would like to note that in pentoo-installer grub2 is marked
>> experimental and I honestly don't expect it to work at all.
>
>> I am beyond happy to accept patches that fix that, I currently lack time
>> and substantial motivation to work on such things. grub1 works.
>
>> Thanks,
>> Zero
>
> Ahhhhhhhhhhh, you guys do exist; NICE piece of work! Sure, I'll figure it
We do, we have an irc channel on freenode, a bug tracker on googlecode,
and I do a lot of talks at hacker cons.
> out and drop you a line. It'd be much easier on me if you activated my
> request for a dev account......
Since I don't recognize your name, clearly you should be around my bug
tracker or irc more if you want a dev account ;-)
>
>
> Just for the record, quite a few folks are having troubles with (U)EFI
> and it appears that the kernel signature is quite often the culprit,
> from my preliminary research [1]. You got any comments about that?
Yes, disable signature verification. It's not possible to boot a
self-signed kernel from someone else unless you also add in their
certificate to the UEFI and at that point why even bother to sign the
thing? Booting a self-signed kernel is cool, but me handing out signed
kernels and saying "add this to your UEFI as a valid cert" is exactly as
secure as not signing it at all.
- -Zero
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBAgAGBQJShUseAAoJEKXdFCfdEflK54wQAIrsnnReC3WlwwAb1bU7+ETN
w6tn6qM9EHUJ/2XkxwhlGLmijakanjgjpTGXIfnaHIpk74U2vLiqe+qyd8Ws9VbX
z8Ny5Qie93uCgxycF6/SxYpIZWtC9mrYb+1F26eoEUVri1I1wIjQiHCoMqFHMbAX
EWubNwq58ul8B7aNg6DlZCAAW3JZ2WqeG0O2/CK/iDeitD5c9ocWvMWf4LrA6/uK
/mwqOCFlWrjsUeKQYm5wyXwE5NeqY1E+e4G219+JUaiD5GHePcVNIrUbt0pIugNp
Oy+ntvvrzk5vqPj6466CrTDoY2VI3QEYot4RIi2aUbYdhzMRlkip1l4TZvmNjpET
qVSmlZA1P19uKznnYvyGsPF1BHPoplvmCOg1vKBBPh3Sf9KZqYw9w9loa9uIYZaR
F3dslFdZCyYOamFbKMTdko3l595kABCQACm4uwYvL795W7MAjiqnlDaUczLkvCdQ
MuR8EWO4gVJR2vkOm1a5zZE6+civeUsDu7acLNtDKc7mOtxfl19Fcmhiux6ooGzW
dW5KwQdI0CQY6PQ8OYSj6r5jdpH+Vb7vAkbm1z0QuYwuyEMZEUg3+KcJACEV2cRk
wVyHJE0SQR6nMz2SfjpkravsxmAGcW9V88y5bXHYT7qw/VmKwfmuVsBi/oQVy88i
tQFXDsmLgKH950j5hvk9
=Pnd3
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Re: GPT-UEFI-fstab questions
2013-11-14 18:17 ` [gentoo-user] " James
2013-11-14 19:47 ` Rick "Zero_Chaos" Farina
@ 2013-11-14 19:48 ` Michael Hampicke
2013-11-14 20:23 ` James
1 sibling, 1 reply; 11+ messages in thread
From: Michael Hampicke @ 2013-11-14 19:48 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1031 bytes --]
Am 14.11.2013 19:17, schrieb James:
> Michael Hampicke <mh <at> hadt.biz> writes:
>
>
>>> On "4. Install Bootloader" choose "UEFI-GRUB".
>>> The UEFI boot partition will be /dev/sda1.
>>> The GRUB device path will be (hd0,2) - the default, /dev/sda2
>>> where the kernel resides.
>
>> Please show us your grub2.cfg
>> Also try using the output of grub2-mkconfig as your grub2.cfg and see if
>> your machine boots.
>
>
> During the pentoo install, I capture this:
>
>
> now review the "/tmp/efibootpart/boot/grub2/grub.cfg"
>
> timeout=5
> menuentry 'Pentoo' {
> insmod efi_gop
> insmod efi_uga
> insmod part_msdos
> insmod part_gpt
> root=(hd0,2)
> linux /boot/kernel-genkernel-x86_64-3.9.9-pentoo root=/dev/ram0
> real_root= video= console=tty1 ro
> initrd /boot/initramfs-genkernel-x86_64-3.9.9-pentoo
> }
>
Do you have the boot symlink on your boot partition?
$ ls -al /boot/boot
lrwxrwxrwx 1 root root 1 Sep 23 2011 /boot/boot -> .
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* [gentoo-user] Re: GPT-UEFI-fstab questions
2013-11-14 19:48 ` Michael Hampicke
@ 2013-11-14 20:23 ` James
2013-11-18 19:48 ` Stefan G. Weichinger
0 siblings, 1 reply; 11+ messages in thread
From: James @ 2013-11-14 20:23 UTC (permalink / raw
To: gentoo-user
Michael Hampicke <mh <at> hadt.biz> writes:
> >> Please show us your grub2.cfg
> > now review the "/tmp/efibootpart/boot/grub2/grub.cfg"
> > timeout=5
> > menuentry 'Pentoo' {
> > insmod efi_gop
> > insmod efi_uga
> > insmod part_msdos
> > insmod part_gpt
> > root=(hd0,2)
> > linux /boot/kernel-genkernel-x86_64-3.9.9-pentoo root=/dev/ram0
> > real_root= video= console=tty1 ro
> > initrd /boot/initramfs-genkernel-x86_64-3.9.9-pentoo
> > }
> >
>
> Do you have the boot symlink on your boot partition?
> $ ls -al /boot/boot
> lrwxrwxrwx 1 root root 1 Sep 23 2011 /boot/boot -> .
Well, I'm using pentoo installer to set up a grub 1 box
just to verify that it works, as purported....
I'll have to mount everything to figure it out after looking
at what the pentoo installer has done....
Then I'll have the 2 pentoo boxes to look at and figure out
what's up.
thx,
James
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Re: GPT-UEFI-fstab questions
2013-11-14 20:23 ` James
@ 2013-11-18 19:48 ` Stefan G. Weichinger
2013-11-21 18:45 ` James
0 siblings, 1 reply; 11+ messages in thread
From: Stefan G. Weichinger @ 2013-11-18 19:48 UTC (permalink / raw
To: gentoo-user
Am 14.11.2013 21:23, schrieb James:
>>> timeout=5
>>> menuentry 'Pentoo' {
>>> insmod efi_gop
>>> insmod efi_uga
>>> insmod part_msdos
>>> insmod part_gpt
>>> root=(hd0,2)
>>> linux /boot/kernel-genkernel-x86_64-3.9.9-pentoo root=/dev/ram0
>>> real_root= video= console=tty1 ro
>>> initrd /boot/initramfs-genkernel-x86_64-3.9.9-pentoo
>>> }
>>>
>>
>> Do you have the boot symlink on your boot partition?
>> $ ls -al /boot/boot
>> lrwxrwxrwx 1 root root 1 Sep 23 2011 /boot/boot -> .
I want to take another effort and retry to get my box booted via UEFI
again. I had that working back then, Gentoo and Win7 ... since it failed
due to some SSD-swapping and stuff I have never seen Win7 again ;-)
Aside from the "I want it because it sounds more modern and is
complicated": do we get any benefit from booting via UEFI?
AFAI understand (haven't googled it today but read about it back then)
one of the major issues is hdd- and partition-size, right? So if I only
have disks/partitions smaller than 2 TB ... no real difference, right?
I also play around with the booting of EFI-Stub-Kernels ... (getting rid
of GRUB2)
I got it started but it somehow stopped booting and just sat there. With
and without EFI_FB set.
Maybe I should use part-uuids instead of device-names next time
especially as I have / on sdc1 and the UEFI-ESP on sda1 (just a thought).
just asking for discussion and experience ...
Stefan
^ permalink raw reply [flat|nested] 11+ messages in thread
* [gentoo-user] Re: GPT-UEFI-fstab questions
2013-11-18 19:48 ` Stefan G. Weichinger
@ 2013-11-21 18:45 ` James
2013-11-22 11:56 ` Stefan G. Weichinger
0 siblings, 1 reply; 11+ messages in thread
From: James @ 2013-11-21 18:45 UTC (permalink / raw
To: gentoo-user
Stefan G. Weichinger <lists <at> xunil.at> writes:
> just asking for discussion and experience ...
> Stefan
Hello Stefan,
Maybe you should start a new thread specifically about your
proboem and what you want to achieve.
My efforts (currently) are more focused on pentoo that UEFI,
as that part of my pentoo efforts is on hold until a figure
out a few more things.
I'll post as I can contribute to your new thread.
hth,
James
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [gentoo-user] Re: GPT-UEFI-fstab questions
2013-11-21 18:45 ` James
@ 2013-11-22 11:56 ` Stefan G. Weichinger
0 siblings, 0 replies; 11+ messages in thread
From: Stefan G. Weichinger @ 2013-11-22 11:56 UTC (permalink / raw
To: gentoo-user
Am 21.11.2013 19:45, schrieb James:
> Stefan G. Weichinger <lists <at> xunil.at> writes:
>
>> just asking for discussion and experience ...
>
>> Stefan
>
> Hello Stefan,
>
> Maybe you should start a new thread specifically about your
> proboem and what you want to achieve.
>
> My efforts (currently) are more focused on pentoo that UEFI,
> as that part of my pentoo efforts is on hold until a figure
> out a few more things.
>
>
> I'll post as I can contribute to your new thread.
thanks for your suggestion.
Currently I am on the road and won't be back at that specific machine
for the next few days.
I will open a new thread as soon as I find the time to deal with this
topic again.
Greets, Stefan
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2013-11-22 11:56 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-14 17:18 [gentoo-user] GPT-UEFI-fstab questions James
2013-11-14 17:51 ` Michael Hampicke
2013-11-14 18:17 ` [gentoo-user] " James
2013-11-14 19:47 ` Rick "Zero_Chaos" Farina
2013-11-14 20:32 ` James
2013-11-14 22:13 ` Rick "Zero_Chaos" Farina
2013-11-14 19:48 ` Michael Hampicke
2013-11-14 20:23 ` James
2013-11-18 19:48 ` Stefan G. Weichinger
2013-11-21 18:45 ` James
2013-11-22 11:56 ` Stefan G. Weichinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox