From: Todd Goodman <tsg@bonedaddy.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] setting boot flag on sda1
Date: Fri, 5 Sep 2014 14:08:47 -0400 [thread overview]
Message-ID: <20140905180847.GR8207@ns1.bonedaddy.net> (raw)
In-Reply-To: <20140905173704.GK7971@syscon7>
* Joseph <syscon780@gmail.com> [140905 13:37]:
> On 09/05/14 13:12, Todd Goodman wrote:
> >* Joseph <syscon780@gmail.com> [140905 12:14]:
> >> How to set a boot flag on sda1.
> >> I'm using fdisk from util-linux 2.24.1 and in order to set it I need version 2.22 or earlier
> >>
> >> --
> >> Joseph
> >
> >If you're using GPT partitions then you should really be using gdisk or
> >recent parted (gparted.)
> >
> >You'll see strange results if you use fdisk to look at GPT partitions (for
> >some definition of strange and depending upon if a hybrid configuration
> >is used.)
> >
> >Todd
>
> Yes, it make more sense.
>
> Will old BIOS boot GTP partition disk.
> My system does not recognize boot sector. It thinks there is no disk.
> I can boot current disk with Systemrescue CD but BIOS does not see my boot sector or the way it is installed.
>
>
> --
> Joseph
What does 'gdisk -l /dev/sda' say about GPT and MBR (it usually says
whether you have a valid GPT and/or MBR before printing information
about the partitions.)
As others have mentioned, you need that BIOS boot partition for GRUB2 to
embed its core.img into since there's no post-MBR gap for it to use with
GPT. This is different than the partition you mount as /boot.
Your BIOS should be able to boot GPT drives but it can be flaky
depending upon motherboard in my experience.
If using GPT drives to boot with BIOS you want a protective MBR which
encompasses the entire drive (or first 2.2TB if the drive is larger than
that as that's as big as MBR can handle.) It has type 0xee.
You can create that gdisk (by going into the eXpert menu) or you can use
fdisk to create it.
With some motherboards you have to flag the protective MBR as bootable.
You can do this in fdisk with the 'a' command or in gdisk with the 'a'
command on the eXpert menu.
grub2 should have installed the correct target by default (i386-pc) but
you can force that with the --target command line option to
grub2-install ('grub2-install --target=i386-pc /dev/sda' for example)
So barring a really strange BIOS implementation you should be able to
boot a GPT partitioned drive on a BIOS-based computer but I have to ask
why you want to go through all the head-banging?
Since your BIOS isn't cooperating the only reason I could see is if your
drive is larger than 2.2TB (quite possible but I don't remember from
earlier in the thread.)
Todd
next prev parent reply other threads:[~2014-09-05 18:08 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-05 16:14 [gentoo-user] setting boot flag on sda1 Joseph
2014-09-05 17:12 ` Todd Goodman
2014-09-05 17:37 ` Joseph
2014-09-05 18:08 ` Todd Goodman [this message]
2014-09-05 19:57 ` [gentoo-user] " James
2014-09-05 20:11 ` Joseph
2014-09-05 20:38 ` Alec Ten Harmsel
2014-09-05 20:50 ` James
2014-09-05 21:43 ` Joseph
2014-09-05 22:06 ` James
2014-09-05 23:34 ` Neil Bothwick
2014-09-05 20:41 ` Todd Goodman
2014-09-05 21:08 ` Neil Bothwick
2014-09-05 19:32 ` [gentoo-user] " Neil Bothwick
2014-09-05 20:29 ` [gentoo-user] " James
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=20140905180847.GR8207@ns1.bonedaddy.net \
--to=tsg@bonedaddy.net \
--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