kern/155484: GPT + UFS boot
Andrey Vladimirov
rarehawk at gmail.com
Fri Mar 11 22:50:11 UTC 2011
>Number: 155484
>Category: kern
>Synopsis: GPT + UFS boot
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Mar 11 22:50:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Andrey Vladimirov
>Release: Freebsd 8.2 RELEASE
>Organization:
>Environment:
FreeBSD 8.2-STABLE FreeBSD 8.2-STABLE #0: Wed Mar 9 20:11:11 UTC 2011 andrey@:/usr/obj/usr/src/sys/x3650m2 amd64
>Description:
I'm trying to setup a system with a large RAID array (total ~4TB)
I do next step:
1.Create the boot, swap and UFS partitions:
Fixit# gpart add -s 64K -t freebsd-boot mfid0
Fixit# gpart add -s 8G -t freebsd-swap -l swap0 mfid0
Fixit# gpart add -t freebsd-ufs -l disk0 mfid0
2. Install the Protected MBR (pmbr) and gptboot loader
Fixit# gpart bootcode -b /mnt2/boot/pmbr -p /mnt2/boot/gptzfsboot -i 1 ad0
Then install FreeBSD and add this:
echo 'vfs.root.mountfrom="ufs:/dev/mfid0p2"' >> /boot/loader.conf
After rebooting (system not booting) i see message:
is unable to find loader at /boot/loader or can it load /boot/kernel/kernel
I load from DVD and go to Fixit
Copying /boot/loader to /loader allows me to enter /loader at the "boot:" prompt and the loader will load, however, its unable to load the kernel.
If I do an "ls" at the loader prompt I can see boot listed as a directory (with a "d" before it)
Trying to do "ls boot" inexplicably it says "boot: not a directory"
>How-To-Repeat:
do next step:
1.Create the boot, swap and UFS partitions:
Fixit# gpart add -s 64K -t freebsd-boot mfid0
Fixit# gpart add -s 8G -t freebsd-swap -l swap0 mfid0
Fixit# gpart add -t freebsd-ufs -l disk0 mfid0
2. Install the Protected MBR (pmbr) and gptboot loader
Fixit# gpart bootcode -b /mnt2/boot/pmbr -p /mnt2/boot/gptzfsboot -i 1 ad0
echo 'vfs.root.mountfrom="ufs:/dev/mfid0p2"' >> /boot/loader.conf
>Fix:
If do next step:
Fixit# gpart add -s 64K -t freebsd-boot mfid0
Fixit# gpart add -s 3800G -t freebsd-ufs -l disk0 mfid0
Fixit# gpart add -s 8G -t freebsd-swap -l swap0 mfid0
or
Fixit# gpart add -s 64K -t freebsd-boot mfid0
next partition must be root(/)
Fixit# gpart add -s 3G -t freebsd-ufs -l disk0 mfid0
Fixit# gpart add -s 8G -t freebsd-swap -l swap0 mfid0
No problem with boot on GPT.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list