Yesterday I tried to do a binary upgrade to 8.2-RELEASE (using freebsd-update), coming from 8.1-RELEASE-p2. The upgrade process went fine, up until the point I rebooted using the GENERIC kernel (nextboot -k GENERIC).
After rebooting, I was unable to mount my root filesystem. After some searching I found this to be the cause:
Which is strange, since I then rebooted again using my old (custom) kernel, and I could boot again and everything is running.
However, something I had on my old kernel was this:
I had this as soon as I set up a mirror raid, but everything worked.
Now I'm at a loss. I didn't change anything (shown from the fact my old kernel still boots), but the new GENERIC stops at the GPT part. I know 8.2 did some stuff for GPT, but I don't understand how it goes from "recovery suggested" to plain "corrupt and I will refuse to boot".
This is how I partitioned my disk (I'm new to FreeBSD and used one big root partition, sorry)
And my mirror:
When I installed 8.1, I first partitioned ad4, after which I created the mirror, which synced everything to ad6.
Would appreciate if anyone had an idea how I can manage to boot using the 8.2 GENERIC so I can finish the upgrade process
After rebooting, I was unable to mount my root filesystem. After some searching I found this to be the cause:
Code:
GEOM: mirror/gm0: corrupt or invalid GPT detected.
GEOM: mirror/gm0: GPT rejected -- may not be recoverable
Which is strange, since I then rebooted again using my old (custom) kernel, and I could boot again and everything is running.
However, something I had on my old kernel was this:
Code:
GEOM_MIRROR: Device mirror/gm0 launched (2/2).
GEOM: mirror/gm0: the secondary GPT table is corrupt or invalid.
GEOM: mirror/gm0: using the primary only -- recovery suggested.
I had this as soon as I set up a mirror raid, but everything worked.
Now I'm at a loss. I didn't change anything (shown from the fact my old kernel still boots), but the new GENERIC stops at the GPT part. I know 8.2 did some stuff for GPT, but I don't understand how it goes from "recovery suggested" to plain "corrupt and I will refuse to boot".
This is how I partitioned my disk (I'm new to FreeBSD and used one big root partition, sorry)
Code:
[root@cc001 ~/gptbackup]# gpart show /dev/mirror/gm0
=> 34 156301421 mirror/gm0 GPT (75G)
34 128 1 freebsd-boot (64K)
162 1886 - free - (943K)
2048 8388608 2 freebsd-swap (4.0G)
8390656 147910799 3 freebsd-ufs (71G)
And my mirror:
Code:
[root@cc001 ~/gptbackup]# gmirror status
Name Status Components
mirror/gm0 COMPLETE ad4
ad6
When I installed 8.1, I first partitioned ad4, after which I created the mirror, which synced everything to ad6.
Would appreciate if anyone had an idea how I can manage to boot using the 8.2 GENERIC so I can finish the upgrade process