Hello everyone,
I downloaded the FreeBSD 12.1 vhd from official website and used it to create a guest FreeBSD in VirtualBox.
When run at the first time, the kernel produced regularly error messages telling the disk was full. It was impossible to start the very first steps described in the handbook.
So, at first, I used the virtual media manager of VirtualBox to enlarge the disk. Then I followed the steps described in the disks-growing chapter of the handbook. Anytime I used
But then the final
I was logged in as root and also ran
As a solution (or workaround) I found that running
I don't know if this is correct or a dirty hack.
There's still a problem though: each reboot shows that the GPT table is corrupt. I run
What is the way to permanently recover the GPT?
Maybe I am not correctly shutting down the machine? (
I downloaded the FreeBSD 12.1 vhd from official website and used it to create a guest FreeBSD in VirtualBox.
When run at the first time, the kernel produced regularly error messages telling the disk was full. It was impossible to start the very first steps described in the handbook.
So, at first, I used the virtual media manager of VirtualBox to enlarge the disk. Then I followed the steps described in the disks-growing chapter of the handbook. Anytime I used
gpart
, it ended up with a lot of error messages, yet it seemed to have managed to do what was required (the GPT partition table was not marked as corrupt anymore and the correct partition was resized as desired). I cannot join a copy of these error messages since there is yet no way to copy the text of the FreeBSD console, so I insert a screenshot of it at the end of this post (this screenshot having been made later, after the filesytem had actually been resized).But then the final
growfs
call returned Operation not permitted
.I was logged in as root and also ran
sysctl kern.geom.debugflags=16
before, and yet this error showed up.As a solution (or workaround) I found that running
service growfs onestart
(source) solved the problem.I don't know if this is correct or a dirty hack.
There's still a problem though: each reboot shows that the GPT table is corrupt. I run
gpart recover ada0
, what ends up with the Input/output error
shown in the screenshot below, but gpart show
tells GPT is not marked corrupt any more.What is the way to permanently recover the GPT?
Maybe I am not correctly shutting down the machine? (
shutdown -h now
and when ready, power off from VirtualBox dialog).