[NOOB question] Need help with GRUB installation.
Hello, doing my arch installation on a virtual machine. Towards the end of the installation guide, it tells me about the boot loaders. So I obviously choose GRUB, but on the GRUB page it's telling me that I need a specific partition before my main one.
I tried checking those YouTube tutorials, to see if they were partitioning the disk in advance but they didn't... Here are my main questions:
- Is it necessary to create a boot-able partition or will grub-install manage this? Like I just have to install it to /dev/sda ??
- If I do need to create a partition, is it possible to realign my previous partition where I installed the base system and then create the boot-able partition? Can I do this with fdisk or do I have to use something else? And after all that do I still install it to /dev/sda ?
- What should my target be?
- x86_64-efi (but I'm using BIOS with MBR) or x86_64-xen ?
Thank you!
Edited 22 May 2019. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 3 · 100% up
- Kind
- Text
- ID
- brncpx
8 comments
You don't need a partition with the 'bootable' flag set. GRUB on a BIOS-MBR setup is installed into ... err, the MBR ...
Optionally, you can put the
/bootdirectory on its own partition, but ... that's .. optional, at least when using GRUB with BIOS-MBR machines.The target for BIOS boot in GRUB is
i386-pchttps://wiki.archlinux.org/index.php/GRUB#Master_Boot_Record_(MBR)_specific_instructionsOoh thanks a lot! I did see the target in the wiki, but thought the wiki was outdated.
Usually when the wiki is outdated, there's a note saying it's outdated. The wiki maintainers are pretty good for noting these things.
That assumption cost you precious time :-)
You got your BIOS/MBR answer, for EFI, you do need a separate partition because EFI partitions want it to be a FAT32 type. So if you ever go that route just keep that in mind.
Thx
this video is a full installation of arch with explanations of what everything does
https://www.youtube.com/watch?v=NchV5UphQeQ
watch it on 2x speed.