UFS Growing partition and sysctl kern.geom.debugflags=16

Hi all,

A week ago I installed FreeBSD as a virtual machine in VirtualBox. All works perfect, but as I installed a desktop environment the disk size is small. I make the VDI file greated and growing the partition following https://docs.freebsd.org/en/books/handbook/disks/#disks-growing. All worked perfect and now I have my expanded VDI file and all works fine, without loss of data. My question is about the Warning section of the handbook section that reads


There is risk of data loss when modifying the partition table of a mounted file system. It is best to perform the following steps on an unmounted file system while running from a live CD-ROM or USB device. However, if absolutely necessary, a mounted file system can be resized after disabling GEOM GEOM safety features:

sysctl kern.geom.debugflags=16

I applied the order and I could see that the previous value of kern.geom.debugflags was 0. The question is: should I revert the change to something like sysctl kern.geom.debugflags=0 or similar? The handbook does not says nothing about this point.
 
Back
Top