UEFI and grub2

Goh Lip g.lip at gmx.com
Sun Jul 31 11:56:02 UTC 2011


On 07/31/2011 06:37 PM, Hermann J. Beckers wrote:
>
> Am Sunday, 31. July 2011 schrieb Goh Lip:
>
> Thanks for your prompt reply.
> ...
>> Some questions..
>> o When installing ubuntu, did you set the /boot partition to that sda2,
>> not sda1 which is actually "boot-grub" which we are not supposed to touch.
>>
> No, as you guessed right, its on the same partition as /.
> fdisk -l from the new computer:
>
> Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
> 255 heads, 63 sectors/track, 121601 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disk identifier: 0x5ac84f54
>
>     Device Boot      Start         End      Blocks   Id  System
> /dev/sda1   *           1          13      102400    7  HPFS/NTFS
> Partition 1 does not end on cylinder boundary.
> /dev/sda2              13       26237   210645278+   7  HPFS/NTFS
> /dev/sda3           26238       28044    14514727+   7  HPFS/NTFS
> /dev/sda4           28045       31692    29296641    5  Extended
> /dev/sda5           28045       31692    29296640   83  Linux
>
>> o /boot must be saperate from '/', which I think you have on sda5.
>>
>>
>>    If you reinstall Ubuntu and set /boot to sda2, you should still have
>> your windows intact.
> sda2 is the main windows partition. So grub puts its files there and the UEFI
> loader gets them from there? And I point the bootloader installation still to
> the root sector of partition 5?
>
> Thanks for your help
> Hermann-Josef Beckers
>
>
Hermann, from your fdisk output, I think you're *not* on gpt 
partitioning. Reason - there should not be an extended sda4 there with gpt.

So, I won't handle the question of putting grub in sda2 where windows is 
there, but lets try to proceed...

First, do not touch any sda1, sda2, sda3 with whatever we do now.

o Use gparted from a cdrom
   Delete sda4 and sda5
   Create 2 partitions sda4 and sda5 *not* as extended or logical
     but *as gpt partitions*.
     sda4 in ext2 150 MB
     sda5 in ext4 the balance.

o Install Ubuntu with sda4 as /boot and sda5 as '/'.
   At installation make sure bootloader is installed and is *set to sda*


Regards - Goh Lip

-- 




More information about the ubuntu-users mailing list