Re: GPT on amd64 and boot managers

2010-05-28 Thread Alban Hertroys

On 05/27/10 13:33, Andriy Gapon wrote:

on 27/05/2010 13:55 Alban Hertroys said the following:

I can boot FreeBSD just fine off GPT, but I have to select in the BIOS whether
I want to boot FreeBSD or Windows (by means of changing the boot sequence). A
working boot manager would be so much more convenient for that.


Right.
OTOH I have standard GPT installation (pmbr + gptzfsboot) and during boot I am
presented with a choice which _hard disk_ to boot from.  I didn't do anything
special for that.  Not exactly a boot manager, but OK for me.


I'd be quite happy to have something like that, do you have any idea 
what's doing that for you? I suspect it is your BIOS, as I don't get 
that choice and AFAIK I also have a standard GPT installation - I 
literally followed the examples in man gpart up to the point where 
freebsd-ufs partitions are added.


This is my partition layout:

dalroi:bommel  gpart show ada0
=   34  625142381  ada0  GPT  (298G)
 34128 1  freebsd-boot  (64K)
1622097152 2  freebsd-ufs  (1.0G)
2097314   16777216 3  freebsd-swap  (8.0G)
   188745301024000 4  freebsd-ufs  (500M)
   198985302097152 5  freebsd-ufs  (1.0G)
   21995682   41943040 6  freebsd-ufs  (20G)
   63938722  561203693 7  freebsd-ufs  (268G)


!DSPAM:930,4bffa1c910415538290380!


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: GPT on amd64 and boot managers

2010-05-28 Thread Andriy Gapon
on 28/05/2010 13:58 Alban Hertroys said the following:
 On 05/27/10 13:33, Andriy Gapon wrote:
 on 27/05/2010 13:55 Alban Hertroys said the following:
 I can boot FreeBSD just fine off GPT, but I have to select in the
 BIOS whether
 I want to boot FreeBSD or Windows (by means of changing the boot
 sequence). A
 working boot manager would be so much more convenient for that.

 Right.
 OTOH I have standard GPT installation (pmbr + gptzfsboot) and during
 boot I am
 presented with a choice which _hard disk_ to boot from.  I didn't do
 anything
 special for that.  Not exactly a boot manager, but OK for me.
 
 I'd be quite happy to have something like that, do you have any idea
 what's doing that for you? I suspect it is your BIOS, as I don't get
 that choice and AFAIK I also have a standard GPT installation - I
 literally followed the examples in man gpart up to the point where
 freebsd-ufs partitions are added.

Looks like I was confused - this was on a system where ZFS was installed in a
slice and boot0 was used as MBR.
Sorry for misleading you.

I wonder if it's possible to cram both disk selection support and GPT support in
512 bytes by throwing out something...
Or perhaps add boot manager functions to gptboot, that sounds easier.

-- 
Andriy Gapon
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


GPT on amd64 and boot managers

2010-05-27 Thread Alban Hertroys
Good day,

Yesterday I finally changed my FreeBSD disk to use GPT instead of a traditional 
MBR, but I hadn't realised that the FreeBSD boot manager doesn't understand GPT 
partitions (my CURRENT is from early January, if that matters).
I used to have that disk set up in the BIOS as the preferred boot disk and the 
boot manager on it allowed me to boot one of the other disks containing Windows 
7 [1].

I googled around and noticed that other people with this problem were told to 
use Grub as a boot manager, but trying to install that from ports I found out 
that Grub is only for x86, while I run amd64.

So in short, I can't use the FreeBSD boot manager as I have my disk partitioned 
with GPT, and I can't use Grub as it's not compatible with amd64, yet I do want 
a boot manager. How do I solve this?

Currently I have to choose which OS to boot by changing the boot sequence of my 
disks in the BIOS - not very convenient.


[1] I didn't put a boot manager on the Windows disk on purpose, as Microsoft 
overwrites it with every reinstall anyway.

Alban Hertroys

--
Screwing up is an excellent way to attach something to the ceiling.


!DSPAM:930,4bfe323010414002918410!


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: GPT on amd64 and boot managers

2010-05-27 Thread Michael Reifenberger

On Thu, 27 May 2010, Alban Hertroys wrote:


Date: Thu, 27 May 2010 10:49:44 +0200
From: Alban Hertroys dal...@solfertje.student.utwente.nl
To: FreeBSD Current curr...@freebsd.org
Subject: GPT on amd64 and boot managers

Good day,

Yesterday I finally changed my FreeBSD disk to use GPT instead of a traditional 
MBR, but I hadn't realised that the FreeBSD boot manager doesn't understand GPT 
partitions (my CURRENT is from early January, if that matters).
I used to have that disk set up in the BIOS as the preferred boot disk and the 
boot manager on it allowed me to boot one of the other disks containing Windows 
7 [1].



FreeBSD boots just fine from GPT.
See the examples section of gpart(8).

Bye/2
---
Michael Reifenberger
mich...@reifenberger.com
http://www.Reifenberger.com

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: GPT on amd64 and boot managers

2010-05-27 Thread Alban Hertroys
On 27 May 2010, at 12:02, Michael Reifenberger wrote:

 On Thu, 27 May 2010, Alban Hertroys wrote:
 Good day,
 
 Yesterday I finally changed my FreeBSD disk to use GPT instead of a 
 traditional MBR, but I hadn't realised that the FreeBSD boot manager doesn't 
 understand GPT partitions (my CURRENT is from early January, if that 
 matters).
 I used to have that disk set up in the BIOS as the preferred boot disk and 
 the boot manager on it allowed me to boot one of the other disks containing 
 Windows 7 [1].
 
 
 FreeBSD boots just fine from GPT.
 See the examples section of gpart(8).


You appear to have missed the point; I was talking about the boot manager - the 
thing that lets you choose which OS to boot, not the boot loader.

I can boot FreeBSD just fine off GPT, but I have to select in the BIOS whether 
I want to boot FreeBSD or Windows (by means of changing the boot sequence). A 
working boot manager would be so much more convenient for that.

Alban Hertroys

--
If you can't see the forest for the trees,
cut the trees and you'll see there is no forest.


!DSPAM:930,4bfe4fa210412299192489!


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: GPT on amd64 and boot managers

2010-05-27 Thread Andriy Gapon
on 27/05/2010 13:55 Alban Hertroys said the following:
 On 27 May 2010, at 12:02, Michael Reifenberger wrote:
 
 On Thu, 27 May 2010, Alban Hertroys wrote:
 Good day,
 
 Yesterday I finally changed my FreeBSD disk to use GPT instead of a
 traditional MBR, but I hadn't realised that the FreeBSD boot manager
 doesn't understand GPT partitions (my CURRENT is from early January, if
 that matters). I used to have that disk set up in the BIOS as the preferred
 boot disk and the boot manager on it allowed me to boot one of the other
 disks containing Windows 7 [1].
 
 FreeBSD boots just fine from GPT. See the examples section of gpart(8).
 
 
 You appear to have missed the point; I was talking about the boot manager - 
 the
 thing that lets you choose which OS to boot, not the boot loader.
 
 I can boot FreeBSD just fine off GPT, but I have to select in the BIOS whether
 I want to boot FreeBSD or Windows (by means of changing the boot sequence). A
 working boot manager would be so much more convenient for that.

Right.
OTOH I have standard GPT installation (pmbr + gptzfsboot) and during boot I am
presented with a choice which _hard disk_ to boot from.  I didn't do anything
special for that.  Not exactly a boot manager, but OK for me.

-- 
Andriy Gapon
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: GPT on amd64 and boot managers

2010-05-27 Thread Michael Reifenberger

On Thu, 27 May 2010, Alban Hertroys wrote:
...

You appear to have missed the point; I was talking about the boot manager - the 
thing that lets you choose which OS to boot, not the boot loader.

I can boot FreeBSD just fine off GPT, but I have to select in the BIOS whether 
I want to boot FreeBSD or Windows (by means of changing the boot sequence). A 
working boot manager would be so much more convenient for that.



Ah. I see.
Sorry, can't help here.
On all servers I use GPT for FreeBSD/ZFS exclusively.
On the Notebooks I stay with MBR...

Bye/2
---
Michael Reifenberger
mich...@reifenberger.com
http://www.Reifenberger.com

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: GPT on amd64 and boot managers

2010-05-27 Thread C. P. Ghost
On Thu, May 27, 2010 at 10:49 AM, Alban Hertroys
dal...@solfertje.student.utwente.nl wrote:
 I googled around and noticed that other people with this problem
 were told to use Grub as a boot manager, but trying to install that
 from ports I found out that Grub is only for x86, while I run amd64.

Maybe you'll have more luck with grub2 instead of legacy grub?

I've compiled the bzr version of grub2 on amd64: all I had to do was
to add -L /usr/lib32 at the end stage of linking.

However, there's currently a bug in grub2 which prevents it from
interpreting and recognizing BSD partitions correctly. It's currently
being worked on.

http://www.mail-archive.com/grub-de...@gnu.org/msg15595.html
http://www.mail-archive.com/grub-de...@gnu.org/msg15644.html
http://www.mail-archive.com/grub-de...@gnu.org/msg15661.html

http://www.mail-archive.com/grub-de...@gnu.org/msg15715.html

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org