Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub Installation Issues
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
StevenC21
n00b
n00b


Joined: 07 Jun 2018
Posts: 63

PostPosted: Sun Jun 10, 2018 2:34 pm    Post subject: Grub Installation Issues Reply with quote

Hey, its me again, this time having a critical issue installing grub. I'm on amd64, and when I run
Code:

grub-install --target=x86_64-efi --efi-directory=/boot

The system returns
Code:

grub-install: error: /boot doesn't look like an EFI Partition.

Any help?


In addition, /boot is formatted as ext2. Is this the issue? If so, how can I fix it?
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7132
Location: almost Mile High in the USA

PostPosted: Sun Jun 10, 2018 2:52 pm    Post subject: Reply with quote

The EFI System partition must be formatted FAT because EFI does not understand EXT2.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
StevenC21
n00b
n00b


Joined: 07 Jun 2018
Posts: 63

PostPosted: Sun Jun 10, 2018 3:04 pm    Post subject: Reply with quote

Crud. Well, what steps will I need to redo? Besides using fdisk to format it of course.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7132
Location: almost Mile High in the USA

PostPosted: Sun Jun 10, 2018 3:15 pm    Post subject: Reply with quote

I don't know what you have on your /boot right now, but you need an EFI system partition formatted FAT. How do you have your disk partitioned at the moment?

On my EFI machines, I don't have way too much sensitive stuff so GRUB is installed on the EFI system partition. So it might be as simple as converting that EXT2 partition to FAT by copying everything off, mkfs.fat that partition, and copying everything back.

Note that long file names and attributes may be lost, so this might not be good for you...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13845

PostPosted: Sun Jun 10, 2018 3:41 pm    Post subject: Reply with quote

You say that /boot is formatted as ext2. Is it correct to say that you made a separate partition just for /boot, and that is the partition formatted as ext2? If so, then the fix is easy, because you will have very little that needs to be moved.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7132
Location: almost Mile High in the USA

PostPosted: Sun Jun 10, 2018 11:09 pm    Post subject: Reply with quote

For people following along, the related thread has more information - specifically, we're trying to install on a virtual machine, of which the virtual machine may actually be running MBR boot though the host may use EFI. Need clarification before the proper solution can be found...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
olger901
l33t
l33t


Joined: 17 Mar 2005
Posts: 625

PostPosted: Wed Jun 13, 2018 7:19 am    Post subject: Reply with quote

Can you show us your partition layout using cfdisk or a print from parted, then we'd be able to provide you with steps to undertake to resolve the issue. The point is that a GPT partition always needs a partition to be a FAT32 formatted partition and needs to be at least 128MB in size. Also see: https://en.wikipedia.org/wiki/EFI_system_partition for more details.
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