1 |
* Joseph <syscon780@×××××.com> [140905 13:37]: |
2 |
> On 09/05/14 13:12, Todd Goodman wrote: |
3 |
> >* Joseph <syscon780@×××××.com> [140905 12:14]: |
4 |
> >> How to set a boot flag on sda1. |
5 |
> >> I'm using fdisk from util-linux 2.24.1 and in order to set it I need version 2.22 or earlier |
6 |
> >> |
7 |
> >> -- |
8 |
> >> Joseph |
9 |
> > |
10 |
> >If you're using GPT partitions then you should really be using gdisk or |
11 |
> >recent parted (gparted.) |
12 |
> > |
13 |
> >You'll see strange results if you use fdisk to look at GPT partitions (for |
14 |
> >some definition of strange and depending upon if a hybrid configuration |
15 |
> >is used.) |
16 |
> > |
17 |
> >Todd |
18 |
> |
19 |
> Yes, it make more sense. |
20 |
> |
21 |
> Will old BIOS boot GTP partition disk. |
22 |
> My system does not recognize boot sector. It thinks there is no disk. |
23 |
> I can boot current disk with Systemrescue CD but BIOS does not see my boot sector or the way it is installed. |
24 |
> |
25 |
> |
26 |
> -- |
27 |
> Joseph |
28 |
|
29 |
What does 'gdisk -l /dev/sda' say about GPT and MBR (it usually says |
30 |
whether you have a valid GPT and/or MBR before printing information |
31 |
about the partitions.) |
32 |
|
33 |
As others have mentioned, you need that BIOS boot partition for GRUB2 to |
34 |
embed its core.img into since there's no post-MBR gap for it to use with |
35 |
GPT. This is different than the partition you mount as /boot. |
36 |
|
37 |
Your BIOS should be able to boot GPT drives but it can be flaky |
38 |
depending upon motherboard in my experience. |
39 |
|
40 |
If using GPT drives to boot with BIOS you want a protective MBR which |
41 |
encompasses the entire drive (or first 2.2TB if the drive is larger than |
42 |
that as that's as big as MBR can handle.) It has type 0xee. |
43 |
|
44 |
You can create that gdisk (by going into the eXpert menu) or you can use |
45 |
fdisk to create it. |
46 |
|
47 |
With some motherboards you have to flag the protective MBR as bootable. |
48 |
You can do this in fdisk with the 'a' command or in gdisk with the 'a' |
49 |
command on the eXpert menu. |
50 |
|
51 |
grub2 should have installed the correct target by default (i386-pc) but |
52 |
you can force that with the --target command line option to |
53 |
grub2-install ('grub2-install --target=i386-pc /dev/sda' for example) |
54 |
|
55 |
So barring a really strange BIOS implementation you should be able to |
56 |
boot a GPT partitioned drive on a BIOS-based computer but I have to ask |
57 |
why you want to go through all the head-banging? |
58 |
|
59 |
Since your BIOS isn't cooperating the only reason I could see is if your |
60 |
drive is larger than 2.2TB (quite possible but I don't remember from |
61 |
earlier in the thread.) |
62 |
|
63 |
Todd |