Re: [gentoo-user] Can't boot using UEFI

2015-06-14 Thread Canek Peláez Valdés
On Sun, Jun 14, 2015 at 8:40 AM, João Matos jaon...@gmail.com wrote:

 Hi list,

 I've bought me a ultrabook dell vostro 5470, and I'm trying to get gentoo
running on it.

 I'm having a few problems, but I'd like to correct the boot one first.

 I'm installing it from ubuntu live cd, and the comand:

 efibootmgr --create --disk /dev/sda --part 7 --label Gentoo --loader
\boot\efi\boot\bootx64.efi

 seems to work. It put a entry on bios - Gentoo - but when I select it,
the windows start (second boot).

 The handbook is not that clear, so I'm not sure if I should call
/dev/sda7 of --part 7. Other difference is I'm not using a separate
/boot. Its everything at /, so I'm also not not sure if this path is ok.

 This seems to be the very simple, and I'd like to have it on my system.
But I've also tried grub2, and got the following error:

 grub2-install: error: cannot find EFI directory.

 What should I do?

Have you tried gummiboot? AFAIR, it's a simple matter of doing:

gummiboot --path=/boot install

/boot should be yout EFI System Partition (ESP).

Regards.
--
Canek Peláez Valdés
Profesor de asignatura, Facultad de Ciencias
Universidad Nacional Autónoma de México


Re: [gentoo-user] Can't boot using UEFI

2015-06-14 Thread João Matos
2015-06-14 11:02 GMT-03:00 Volker Armin Hemmann volkerar...@googlemail.com
:

  Am 14.06.2015 um 15:40 schrieb João Matos:

 Hi list,

  I've bought me a ultrabook dell vostro 5470, and I'm trying to get
 gentoo running on it.

  I'm having a few problems, but I'd like to correct the boot one first.

  I'm installing it from ubuntu live cd, and the comand:

  efibootmgr --create --disk /dev/sda --part 7 --label Gentoo --loader
 \boot\efi\boot\bootx64.efi

  seems to work. It put a entry on bios - Gentoo - but when I select it,
 the windows start (second boot).

  The handbook is not that clear, so I'm not sure if I should call
 /dev/sda7 of --part 7. Other difference is I'm not using a separate
 /boot. Its everything at /, so I'm also not not sure if this path is ok.

  This seems to be the very simple, and I'd like to have it on my system.
 But I've also tried grub2, and got the following error:

  grub2-install: error: cannot find EFI directory.

  What should I do?

  Thank you,

  --
  João Neto
 Linux User #461527
 http://br.linkedin.com/pub/jo%C3%A3o-de-matos/7/316/552


 so you don't have an efi boot partition?

 That would be your answer.


Volker, the efi is already working for Windows. I just want to create a new
entry. Is it really necessary to create a new partition?


-- 
João Neto
Linux User #461527
http://br.linkedin.com/pub/jo%C3%A3o-de-matos/7/316/552


Re: [gentoo-user] Can't boot using UEFI

2015-06-14 Thread Volker Armin Hemmann
Am 14.06.2015 um 15:40 schrieb João Matos:
 Hi list,

 I've bought me a ultrabook dell vostro 5470, and I'm trying to get
 gentoo running on it.

 I'm having a few problems, but I'd like to correct the boot one first.

 I'm installing it from ubuntu live cd, and the comand:

 efibootmgr --create --disk /dev/sda --part 7 --label Gentoo --loader
 \boot\efi\boot\bootx64.efi

 seems to work. It put a entry on bios - Gentoo - but when I select it,
 the windows start (second boot).

 The handbook is not that clear, so I'm not sure if I should call
 /dev/sda7 of --part 7. Other difference is I'm not using a separate
 /boot. Its everything at /, so I'm also not not sure if this path is ok.

 This seems to be the very simple, and I'd like to have it on my
 system. But I've also tried grub2, and got the following error: 

 grub2-install: error: cannot find EFI directory.

 What should I do?

 Thank you, 

 -- 
 João Neto
 Linux User #461527
 http://br.linkedin.com/pub/jo%C3%A3o-de-matos/7/316/552

so you don't have an efi boot partition?

That would be your answer.


Re: [gentoo-user] Can't boot using UEFI

2015-06-14 Thread Mick
On Sunday 14 Jun 2015 14:40:40 João Matos wrote:
 Hi list,
 
 I've bought me a ultrabook dell vostro 5470, and I'm trying to get gentoo
 running on it.
 
 I'm having a few problems, but I'd like to correct the boot one first.
 
 I'm installing it from ubuntu live cd, and the comand:
 
 efibootmgr --create --disk /dev/sda --part 7 --label Gentoo --loader
 \boot\efi\boot\bootx64.efi
 
 seems to work. It put a entry on bios - Gentoo - but when I select it, the
 windows start (second boot).

I think you have confused the too partitions EFI and /boot.


 The handbook is not that clear, so I'm not sure if I should call /dev/sda7
 of --part 7. Other difference is I'm not using a separate /boot. Its
 everything at /, so I'm also not not sure if this path is ok.

Your EFI boot code will jump to the FAT32 EFI partition.  In all likelihood 
this is /dev/sda1.  Unless you have some boot manager in there to point to 
your Linux partition at /dev/sda7 you will only boot what the EFI partition 
bootx64.efi code offers.  Presently the bootx64.efi in the EFI partition is 
the MSWindows boot code.  Create a back up if you intend to mess about with 
this, or you will need to use a MSWindows CD to recreate it with.


 This seems to be the very simple, and I'd like to have it on my system. But
 I've also tried grub2, and got the following error:
 
 grub2-install: error: cannot find EFI directory.

Clearly it can't find the appropriate EFI partition.  Have you mounted it?

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Can't boot using UEFI

2015-06-14 Thread João Matos
/ # gdisk -l /dev/sda
GPT fdisk (gdisk) version 1.0.0

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

Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 976773168 sectors, 465.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 757FFCA9-0B35-4AC3-BA77-B935FBBC57C9
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134
Partitions will be aligned on 2048-sector boundaries
Total free space is 4029 sectors (2.0 MiB)

Number  Start (sector)End (sector)  Size   Code  Name
   12048 1026047   500.0 MiB   EF00  EFI system
partition
   2 1026048 1107967   40.0 MiB  Basic data
partition
   3 1107968 1370111   128.0 MiB   0C01  Microsoft reserved
...
   4 1370112 2906111   750.0 MiB   2700  Basic data
partition
   5 2906112   127477759   59.4 GiB0700  Basic data
partition
   6   961155072   976771119   7.4 GiB 2700  Microsoft recovery
...
   7   127477760   227518463   47.7 GiB8300
   8   227518464   247998463   9.8 GiB 8300
   9   247998464   961155071   340.1 GiB   0700

2015-06-14 11:25 GMT-03:00 Mick michaelkintz...@gmail.com:

 On Sunday 14 Jun 2015 15:09:33 João Matos wrote:
  2015-06-14 11:02 GMT-03:00 Volker Armin Hemmann
  volkerar...@googlemail.com
 
Am 14.06.2015 um 15:40 schrieb João Matos:
   Hi list,
  
I've bought me a ultrabook dell vostro 5470, and I'm trying to get
  
   gentoo running on it.
  
I'm having a few problems, but I'd like to correct the boot one first.
  
I'm installing it from ubuntu live cd, and the comand:
  
efibootmgr --create --disk /dev/sda --part 7 --label Gentoo --loader
  
   \boot\efi\boot\bootx64.efi
  
seems to work. It put a entry on bios - Gentoo - but when I select it,
  
   the windows start (second boot).
  
The handbook is not that clear, so I'm not sure if I should call
  
   /dev/sda7 of --part 7. Other difference is I'm not using a separate
   /boot. Its everything at /, so I'm also not not sure if this path is
 ok.
  
This seems to be the very simple, and I'd like to have it on my
 system.
  
   But I've also tried grub2, and got the following error:
grub2-install: error: cannot find EFI directory.
  
What should I do?
  
Thank you,
  
--
João Neto
  
   Linux User #461527
   http://br.linkedin.com/pub/jo%C3%A3o-de-matos/7/316/552
  
  
   so you don't have an efi boot partition?
  
   That would be your answer.
 
  Volker, the efi is already working for Windows. I just want to create a
 new
  entry. Is it really necessary to create a new partition?

 Can you please tell us what this shows:

 gdisk -l /dev/sda

 or

 fdisk -l

 assuming that /dev/sda is your drive.

 If you are multibooting then gummiboot would be advisable, but GRUB will
 work
 too.

 --
 Regards,
 Mick




-- 
João Neto
Linux User #461527
http://br.linkedin.com/pub/jo%C3%A3o-de-matos/7/316/552


Re: [gentoo-user] Can't boot using UEFI

2015-06-14 Thread Mick
On Sunday 14 Jun 2015 15:09:33 João Matos wrote:
 2015-06-14 11:02 GMT-03:00 Volker Armin Hemmann
 volkerar...@googlemail.com
 
   Am 14.06.2015 um 15:40 schrieb João Matos:
  Hi list,
  
   I've bought me a ultrabook dell vostro 5470, and I'm trying to get
  
  gentoo running on it.
  
   I'm having a few problems, but I'd like to correct the boot one first.
   
   I'm installing it from ubuntu live cd, and the comand:
   
   efibootmgr --create --disk /dev/sda --part 7 --label Gentoo --loader
  
  \boot\efi\boot\bootx64.efi
  
   seems to work. It put a entry on bios - Gentoo - but when I select it,
  
  the windows start (second boot).
  
   The handbook is not that clear, so I'm not sure if I should call
  
  /dev/sda7 of --part 7. Other difference is I'm not using a separate
  /boot. Its everything at /, so I'm also not not sure if this path is ok.
  
   This seems to be the very simple, and I'd like to have it on my system.
  
  But I've also tried grub2, and got the following error:
   grub2-install: error: cannot find EFI directory.
   
   What should I do?
   
   Thank you,
   
   --
   João Neto
  
  Linux User #461527
  http://br.linkedin.com/pub/jo%C3%A3o-de-matos/7/316/552
  
  
  so you don't have an efi boot partition?
  
  That would be your answer.
 
 Volker, the efi is already working for Windows. I just want to create a new
 entry. Is it really necessary to create a new partition?

Can you please tell us what this shows:

gdisk -l /dev/sda

or 

fdisk -l

assuming that /dev/sda is your drive.

If you are multibooting then gummiboot would be advisable, but GRUB will work 
too.

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Can't boot using UEFI

2015-06-14 Thread Mick
On Sunday 14 Jun 2015 15:30:18 João Matos wrote:
 / # gdisk -l /dev/sda
[snip ...]

 Number  Start (sector)End (sector)  Size   Code  Name
12048 1026047   500.0 MiB   EF00  EFI system
 partition

OK, so this is your EFI partition, not /dev/sda7.

Mount /dev/sda1 and create your Linux-bootx64.efi in here.

Then set Gummiboot which will detect and list the different .efi boot files 
you have created.

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Can't boot using UEFI

2015-06-14 Thread Volker Armin Hemmann
Am 14.06.2015 um 16:30 schrieb João Matos:
 / # gdisk -l /dev/sda
 GPT fdisk (gdisk) version 1.0.0

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

 Found valid GPT with protective MBR; using GPT.
 Disk /dev/sda: 976773168 sectors, 465.8 GiB
 Logical sector size: 512 bytes
 Disk identifier (GUID): 757FFCA9-0B35-4AC3-BA77-B935FBBC57C9
 Partition table holds up to 128 entries
 First usable sector is 34, last usable sector is 976773134
 Partitions will be aligned on 2048-sector boundaries
 Total free space is 4029 sectors (2.0 MiB)

 Number  Start (sector)End (sector)  Size   Code  Name
12048 1026047   500.0 MiB   EF00  EFI system
 partition
2 1026048 1107967   40.0 MiB  Basic data
 partition
3 1107968 1370111   128.0 MiB   0C01  Microsoft
 reserved ...
4 1370112 2906111   750.0 MiB   2700  Basic data
 partition
5 2906112   127477759   59.4 GiB0700  Basic data
 partition
6   961155072   976771119   7.4 GiB 2700  Microsoft
 recovery ...
7   127477760   227518463   47.7 GiB8300  
8   227518464   247998463   9.8 GiB 8300  
9   247998464   961155071   340.1 GiB   0700  

 2015-06-14 11:25 GMT-03:00 Mick michaelkintz...@gmail.com
 mailto:michaelkintz...@gmail.com:

 On Sunday 14 Jun 2015 15:09:33 João Matos wrote:
  2015-06-14 11:02 GMT-03:00 Volker Armin Hemmann
  volkerar...@googlemail.com mailto:volkerar...@googlemail.com
 
Am 14.06.2015 um 15:40 schrieb João Matos:
   Hi list,
  
I've bought me a ultrabook dell vostro 5470, and I'm trying
 to get
  
   gentoo running on it.
  
I'm having a few problems, but I'd like to correct the boot
 one first.
  
I'm installing it from ubuntu live cd, and the comand:
  
efibootmgr --create --disk /dev/sda --part 7 --label Gentoo
 --loader
  
   \boot\efi\boot\bootx64.efi
  
seems to work. It put a entry on bios - Gentoo - but when I
 select it,
  
   the windows start (second boot).
  
The handbook is not that clear, so I'm not sure if I should call
  
   /dev/sda7 of --part 7. Other difference is I'm not using a
 separate
   /boot. Its everything at /, so I'm also not not sure if this
 path is ok.
  
This seems to be the very simple, and I'd like to have it on
 my system.
  
   But I've also tried grub2, and got the following error:
grub2-install: error: cannot find EFI directory.
  
What should I do?
  
Thank you,
  
--
João Neto
  
   Linux User #461527
   http://br.linkedin.com/pub/jo%C3%A3o-de-matos/7/316/552
  
  
   so you don't have an efi boot partition?
  
   That would be your answer.
 
  Volker, the efi is already working for Windows. I just want to
 create a new
  entry. Is it really necessary to create a new partition?

 Can you please tell us what this shows:

 gdisk -l /dev/sda

 or

 fdisk -l

 assuming that /dev/sda is your drive.

 If you are multibooting then gummiboot would be advisable, but
 GRUB will work
 too.

 --
 Regards,
 Mick




 -- 
 João Neto
 Linux User #461527
 http://br.linkedin.com/pub/jo%C3%A3o-de-matos/7/316/552

you have to put your gentoo binary into that efi boot partition. And
tell efibootmgr to look there



Re: [gentoo-user] Can't boot using UEFI

2015-06-14 Thread João Matos
2015-06-14 12:17 GMT-03:00 Mick michaelkintz...@gmail.com:

 On Sunday 14 Jun 2015 15:30:18 João Matos wrote:
  / # gdisk -l /dev/sda
 [snip ...]

  Number  Start (sector)End (sector)  Size   Code  Name
 12048 1026047   500.0 MiB   EF00  EFI system
  partition

 OK, so this is your EFI partition, not /dev/sda7.

 Mount /dev/sda1 and create your Linux-bootx64.efi in here.

 Then set Gummiboot which will detect and list the different .efi boot files
 you have created.

 --
 Regards,
 Mick



I've Just installed grub2. It's ok for now. Gentoo is working and windows
isn't. I'll back to bootloader another time.

Thank you all for your tips :)
-- 
João Neto
Linux User #461527
http://br.linkedin.com/pub/jo%C3%A3o-de-matos/7/316/552


Re: [gentoo-user] Can't boot using UEFI

2015-06-14 Thread Mick
On Sunday 14 Jun 2015 16:22:07 João Matos wrote:

 I've Just installed grub2. It's ok for now. Gentoo is working and windows
 isn't. I'll back to bootloader another time.
 
 Thank you all for your tips :)

GRUB should scan the /boot partition for any OS bootloaders and find 
MSWindows.

Have you run update-grub?
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Can't boot using UEFI

2015-06-14 Thread Neil Bothwick
On Sun, 14 Jun 2015 17:35:48 +0100, Mick wrote:

  I've Just installed grub2. It's ok for now. Gentoo is working and
  windows isn't. I'll back to bootloader another time.
  
  Thank you all for your tips :)  
 
 GRUB should scan the /boot partition for any OS bootloaders and find 
 MSWindows.
 
 Have you run update-grub?

But the ESP is not mounted at /boot.

To keep things simple with UEFI, I prefer to use the ESP as /boot - if
you use Gummibioot this is compulsory.


-- 
Neil Bothwick

Ralph's Observation - It is a mistake to allow any mechanical object
to realize that you are in a hurry.


pgpwJRW6BSV1n.pgp
Description: OpenPGP digital signature