1 |
On 09/05/14 22:06, Neil Bothwick wrote: |
2 |
>On Fri, 5 Sep 2014 13:54:07 -0600, Joseph wrote: |
3 |
> |
4 |
>> >> I don't need to format sda1, grub2-install should take care of it. |
5 |
>> >> So what am I doing wrong? |
6 |
>> > |
7 |
>> >Did you run grub2-install from within the chroot? I've had problems |
8 |
>> >with this in the past, no error messages but GRUB is not installed |
9 |
>> >correctly. Instead, mount your root and boot partitions at /mnt/gent |
10 |
>> >and /mnt/gentoo/boot and run grub2-install from the live system |
11 |
>> > |
12 |
>> >grub2-install --root-directory=/mnt/gentoo |
13 |
>> >--boot-directory=/mnt/gentoo/boot /dev/sda |
14 |
>> |
15 |
>> This will install grub in /mnt/gentoo/boot and will be gone after I |
16 |
>> reboot. |
17 |
> |
18 |
>GRUB is already installed there, when you emerged it. grub-install sets |
19 |
>up the bootstrapping, but it needs to know where the files are, and they |
20 |
>are in /mnt/gentoo. I've done it this way several times and it always |
21 |
>worked, your way has not worked. You decide which is preferable. |
22 |
> |
23 |
>> I was able to boot the system with systemrescue CD the kernel on the |
24 |
>> HD. The problem I have is my BIOS does not recognize GPT partition |
25 |
> |
26 |
>On what factual evidence do you base that statement? |
27 |
> |
28 |
>> I think I'll have to format entire drive in MBR and start from scratch. |
29 |
>> How to format disk in MBR, current "fdisk" defaults to GPT. |
30 |
> |
31 |
>fdisk doesn't default to anything AFAIR, it creates whatever type of |
32 |
>partition table you tell it to, depending on whether you press g or o. |
33 |
|
34 |
I did you suggested: |
35 |
|
36 |
# grub2-install --root-directory=/mnt/gentoo --boot-directory=/mnt/gentoo/boot /dev/sda |
37 |
Installation finished. No error reported. |
38 |
|
39 |
# grub2-mkconfig -o /mnt/gentoo/boot/grub/grub.cfg |
40 |
Generating grub.cfg ... |
41 |
Found linux image: /boot/vmlinuz-3.14.14-gentoo |
42 |
done |
43 |
|
44 |
ls -al /mnt/gentoo/boot/ |
45 |
total 8636 |
46 |
drwxr-xr-x 3 root root 4096 Sep 5 15:58 . |
47 |
drwxr-xr-x 3 root root 4096 Sep 5 13:44 .. |
48 |
-rw-r--r-- 1 root root 94478 Sep 5 15:58 config-3.14.14-gentoo |
49 |
drwxr-xr-x 6 root root 4096 Sep 5 15:57 grub |
50 |
-rw-r--r-- 1 root root 3037035 Sep 5 15:58 System.map-3.14.14-gentoo |
51 |
-rw-r--r-- 1 root root 5689632 Sep 5 15:58 vmlinuz-3.14.14-gentoo |
52 |
|
53 |
reboot the system and it still doesn't boot. |
54 |
|
55 |
-- |
56 |
Joseph |