public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Dale <rdalek1967@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Grub, gpt partitions and BIOS, not uefi thing.
Date: Sun, 28 Apr 2024 00:24:09 -0500	[thread overview]
Message-ID: <0256aae5-4cd8-419e-4c67-8b01da230ae6@gmail.com> (raw)
In-Reply-To: <3298963.44csPzL39Z@rogueboard>

Michael wrote:
> On Saturday, 27 April 2024 17:53:25 BST Dale wrote:
>> Howdy,
>>
>> I'm installing Gentoo on another old box.  To be consistent I like to
>> use cgdisk, GPT I think it is called, to partition all my drives,
>> regardless of size.
> GPT is the partition table structure, which is more advanced than the old DOS 
> partition table structure.
>

I just wasn't 100% sure what it was called. 

>> Thing is, Grub works differently with GPT than it
>> does with the old DOS or whatever it is called, like fdisk does in the
>> old days.
> GRUB works the same, but the disk/partition table structure is different.
>
>
>> I did some research but still find myself in some muddy
>> waters.  My take on some things I've read, I need a boot partition, not
>> to be confused with the /boot for kernels, init thingys and such.  Where
>> I get lost, most use gdisk.  I like cgdisk.  Before that I liked
>> cfdisk.  Anyway, how do I set up that partition with cgdisk?  Any
>> minimum size requirements or tiny is enough?
> 1MB

OK.  You know that "alignment" thing that is always on the beginning of
a drive, could it use it?  I think it is like 2MBs or something. 

>> Does it have to be a
>> specific type?
> Yes, it has to be set up as a "BIOS Boot Partition", with the "ef02", or GUID 
> 21686148-6449-6E6F-744E-656564454649.
>

Light bulb moment.  I've seen 8300 and friends, 8200 etc but never seen
EF02 before.  Now I see what that type means.  That cleared up some
muddy water.  That lead me to finding this, it has a nice table of
common codes. 

https://wiki.archlinux.org/title/GPT_fdisk



>> Does it need to be in a specific place?  
> Not necessarily, but since you're not booting this disk on a UEFI MoBo and 
> consequently won't be using an EFI System Partition (ESP), the very first 
> partition is fine and will be out of the way of the remaining disk.
>
>
>> Formatted with a file system?
> Do not format it.  The raw 1MB partition will be used by GRUB to install its 
> core.img file.
>
>
>> Also, when I do grub-install, do I still point to
>> /dev/sda or to /dev/sda1, if sda1 is the special boot partition?
> Sector 0 of your disk /dev/sda is where GRUB will drop its boot loader image 
> 'boot.img'.  This is the Master Boot Record region.
>
> Normally, with a DOS partition table, GRUB's core.img would be dropped in the 
> empty space of sector 1, following sector 0.  However, in the GPT structure 
> sector 1 is where the GPT partition array data is stored.  You don't want GRUB 
> making a mess by dropping it's core.img on top of it!
>
> So, from what I recall you'd install GRUB like so:
>
> grub-install --boot-directory=/mnt/gentoo/boot --force /dev/sda
>
> If this won't do it, I'll have to boot an old system of mine to check the disk 
> layout in more detail.
>
>

I may look on youtube and see if I can find someone setting up a disk. 
It may have a video, old one for sure.  Maybe that will help me make
sense of it even more.  I think I got figured out how to use cgdisk now
but installing grub may require some more details. 

What I find odd, most of the howtos I found don't show example outputs. 
Then again, it could just work.  O_o

Thanks to all. 

Dale

:-)  :-)


  reply	other threads:[~2024-04-28  5:24 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-27 16:53 [gentoo-user] Grub, gpt partitions and BIOS, not uefi thing Dale
2024-04-27 16:59 ` Wojciech Kuzyszyn
2024-04-27 17:48 ` Mark Knecht
2024-04-27 18:33 ` Michael
2024-04-28  5:24   ` Dale [this message]
2024-04-28  9:14     ` Michael
2024-04-28 17:13   ` [gentoo-user] " Grant Edwards
2024-04-28 17:40     ` Grant Edwards
2024-04-28 18:39       ` Dale
2024-04-28 20:31         ` Michael
2024-04-28 21:08           ` Dale
2024-04-28 21:32             ` Dale
2024-05-01 19:36               ` Dale
2024-05-01 20:03                 ` Grant Edwards
2024-05-01 20:20                   ` Dale
2024-05-01 20:25                     ` Grant Edwards
2024-05-01 23:45                       ` Dale
2024-05-02  9:35                         ` Michael
2024-05-02 10:43                           ` Dale
2024-05-15  7:39                           ` Wols Lists
2024-05-02 10:46                         ` Peter Humphrey
2024-05-15  7:42                           ` Wols Lists
2024-05-15 10:40                             ` Peter Humphrey
2024-05-15 17:38                               ` Wols Lists
2024-05-15 17:57                                 ` Grant Edwards
2024-05-15 23:54                                   ` Peter Humphrey
2024-05-16  0:10                                 ` karl
2024-05-16  8:26                                   ` Michael
2024-05-16  9:22                                     ` Nuno Silva
2024-05-16 16:41                                     ` Dr Rainer Woitok
2024-05-16 16:46                                       ` Michael
2024-05-18  9:16                                         ` Dr Rainer Woitok
2024-04-28 22:42       ` Wol
2024-04-27 19:21 ` [gentoo-user] " Wols Lists
2024-04-28  8:43 ` Mickaël Bucas
2024-04-28 12:57   ` Dale
2024-04-28 13:10     ` Michael
2024-04-28 13:17       ` Dale
2024-05-05  6:31         ` Dale

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0256aae5-4cd8-419e-4c67-8b01da230ae6@gmail.com \
    --to=rdalek1967@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox