FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 07-31-2011, 08:07 AM
"Hermann J. Beckers"
 
Default UEFI and grub2

Got a new computer and the above problem:

It came preinstalled with win7 and a UEFI bootloader (?).
Partitions were:
1) 100 MB boot for windows/UEFI (?)
2) ~980 GB for windows
3) 14 GB for (HP) repair/recovery partition

Sofar no problem: I resized 2) to 200 GB, moved 3) at the end of 2) and made a
extented partion with the rest and installed ubuntu 11.04 and grub2 into the
boot sector of partition 5. Only problem is: I can't find a way to add ubuntu
to the UEFI(?) boot loader. I read the articles Goh Lip posted on 2011/06/11
("11.04 boot issues"), but the mentioned windows program easybcd.exe doesn't
work yet with UEFI.

Should I use the repair function of the ubuntu install cd and reinstall grub2
into the MBR? I only care about still being able to boot the windows partition
as well.

Yours
hjb



--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-31-2011, 08:10 AM
"Hermann J. Beckers"
 
Default UEFI and grub2

Got a new computer and the above problem:

It came preinstalled with win7 and a UEFI bootloader (?).
Partitions were:
1) 100 MB boot for windows/UEFI (?)
2) ~980 GB for windows
3) 14 GB for (HP) repair/recovery partition

Sofar no problem: I resized 2) to 200 GB, moved 3) at the end of 2) and made a
extented partion with the rest and installed ubuntu 11.04 and grub2 into the
boot sector of partition 5. Only problem is: I can't find a way to add ubuntu
to the UEFI(?) boot loader. I read the articles Goh Lip posted on 2011/06/11
("11.04 boot issues"), but the mentioned windows program easybcd.exe doesn't
work yet with UEFI.

Should I use the repair function of the ubuntu install cd and reinstall grub2
into the MBR? I only care about still being able to boot the windows partition
as well.

Yours
hjb

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-31-2011, 08:37 AM
Goh Lip
 
Default UEFI and grub2

On 07/31/2011 04:10 PM, Hermann J. Beckers wrote:

Sofar no problem: I resized 2) to 200 GB, moved 3) at the end of 2) and made a
extented partion with the rest and installed ubuntu 11.04 and grub2 into the
boot sector of partition 5. Only problem is: I can't find a way to add ubuntu
to the UEFI(?) boot loader. I read the articles Goh Lip posted on 2011/06/11
("11.04 boot issues"), but the mentioned windows program easybcd.exe doesn't
work yet with UEFI.



Hermann, I took some time to answer you well, and looking at my message
where I referred to a web site which I think explains very well gpt
partitioning....

http://wiki.sabayon.org/index.php?title=HOWTO:_Install_Sabayon_with_GRUB2_ and_GPT_on_a_New_System

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.


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.


Regards - Goh Lip


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-31-2011, 09:53 AM
"Hermann J. Beckers"
 
Default UEFI and grub2

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



>
> Regards - Goh Lip


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-31-2011, 10:37 AM
"Hermann J. Beckers"
 
Default UEFI and grub2

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


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-31-2011, 11:56 AM
Goh Lip
 
Default UEFI and grub2

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

--

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-31-2011, 12:14 PM
Goh Lip
 
Default UEFI and grub2

On 07/31/2011, Goh Lip wrote:



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


Just a side note - gpt and msdos (the normal) partitions don't mix well.
For example "update-grub" in one will not detect the OS in another.
Also remember to put "insmod gpt" or "insmod msdos" at each menu entry.

Good luck - Goh Lip


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-31-2011, 12:18 PM
Goh Lip
 
Default UEFI and grub2

On 07/31/2011 08:14 PM, Goh Lip wrote:

Just a side note - gpt and msdos (the normal) partitions don't mix well.
For example "update-grub" in one will not detect the OS in another.
Also remember to put "insmod gpt" or "insmod msdos" at each menu entry.


Argh, sorry. I mean "insmod part_gpt" and "insmod part_msdos"


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-31-2011, 12:43 PM
"Hermann J. Beckers"
 
Default UEFI and grub2

Am Sunday, 31. July 2011 schrieb Goh Lip:
...

>
> Hermann, from your fdisk output, I think you're *not* on gpt
> partitioning. Reason - there should not be an extended sda4 there with gpt.
>
Sorry, that is the result of my previous knowledge about partitioning. Not
more then 4 primary partitions, so the 4th has to be an extended and
everything else is logical (was at least to me ...).

> 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 Install Ubuntu with sda4 as /boot and sda5 as '/'.
> At installation make sure bootloader is installed and is *set to sda*
>
But that will kill/overwrite the installed UEFI loader?
>
> Regards - Goh Lip

Thanks again
Hermann-Josef Beckers

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-31-2011, 01:01 PM
Goh Lip
 
Default UEFI and grub2

On 07/31/2011 08:43 PM, Hermann J. Beckers wrote:

But that will kill/overwrite the installed UEFI loader?


Yes.



--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 12:55 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org