Hi all,
It seems that I've successfully managed to mess up the startup process of my system. I'm in no way an expert on FreeBSD (just a regular user of it for the past 20 years or so, but was not too adventurous), so please bear with me if I'm using some technical terms incorrectly.
The chronology of events (some of them maybe irrelevant, but for the sake of providing the whole picture I'll just write what I remember) is as follows: I was running 12.2-RELEASE and decided to upgrade to 13.0-RELEASE. Tried to accomplish that through a binary update, but that didn't work. I then downloaded the source tree and rebuilt / reinstalled the world / kernel. That went fine and I was able to boot into 13.0-RELEASE.
The next step for adventurous me was to upgrade ZFS to the latest version (5000). After upgrading the pools I shut down the system. I guess in this step something went wrong or I overlooked a step because after that I couldn't boot into the system. The only thing I could see is the boot prompt with a single strange character right after it (kind of smiley, don't have a screenshot of that unfortunately).
I tried to boot from a live CD and after reading some posts on this forum I executed a command similar to the one below from the live USB stick (probably by reading too fast through this forum) to try and restore the boot loader:
To make long story short I can now see the following screen when I try to boot:
When booting from a USB-stick (option LiveCD) I can see the following:
What I remember from disk configuration is that there was a bootpool with the size of 2 GB, swap pool with 2 GB and the remaining space was taken by the regular ZFS zroot pool. I don't remember if it was MBR of GPT.
The disk was ZFS + geli, where the prompt to provide the geli password appeared towards the middle of the boot process (just before mounting zroot pool).
So now several questions emerge:
TIA.
It seems that I've successfully managed to mess up the startup process of my system. I'm in no way an expert on FreeBSD (just a regular user of it for the past 20 years or so, but was not too adventurous), so please bear with me if I'm using some technical terms incorrectly.
The chronology of events (some of them maybe irrelevant, but for the sake of providing the whole picture I'll just write what I remember) is as follows: I was running 12.2-RELEASE and decided to upgrade to 13.0-RELEASE. Tried to accomplish that through a binary update, but that didn't work. I then downloaded the source tree and rebuilt / reinstalled the world / kernel. That went fine and I was able to boot into 13.0-RELEASE.
The next step for adventurous me was to upgrade ZFS to the latest version (5000). After upgrading the pools I shut down the system. I guess in this step something went wrong or I overlooked a step because after that I couldn't boot into the system. The only thing I could see is the boot prompt with a single strange character right after it (kind of smiley, don't have a screenshot of that unfortunately).
I tried to boot from a live CD and after reading some posts on this forum I executed a command similar to the one below from the live USB stick (probably by reading too fast through this forum) to try and restore the boot loader:
# gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0
To make long story short I can now see the following screen when I try to boot:
When booting from a USB-stick (option LiveCD) I can see the following:
What I remember from disk configuration is that there was a bootpool with the size of 2 GB, swap pool with 2 GB and the remaining space was taken by the regular ZFS zroot pool. I don't remember if it was MBR of GPT.
The disk was ZFS + geli, where the prompt to provide the geli password appeared towards the middle of the boot process (just before mounting zroot pool).
So now several questions emerge:
- How do I get to the situation where I can see the original layout of the disk (with 2Gb bootpool, 2Gb swap space end the remaining space is zroot pool)?
- If point 1 is successful, how do I boot into the original system?
TIA.