Skip to main content

Posts

Showing posts with the label :: FreeBSD

FreeBSD: How to Resize Root Partition

Set debugflags sysctl kern.geom.debugflags=16 Resize root partition Show the current partition gpart show => 40 8388528 da0 GPT (30G) [CORRUPT] 40 1024 1 freebsd-boot (512K) 1064 7965696 2 freebsd-ufs (3.8G) 7966760 421808 - free - (206M) Apply the partition /etc/rc.d/growfs onestart Growing root partition to fill device Adding swap partition da0 recovered da0p3 added da0p2 resized super-block backups (for fsck_ffs -b #) at: 8963328, 10243776, 11524224, 12804672, 14085120, 15365568, 16646016, 17926464, 19206912, 20487360, 21767808, 23048256, 24328704, 25609152, 26889600, 28170048, 29450496, 30730944, 32011392, 33291840, 34572288, 35852736, 37133184, 38413632, 39694080, 40974528, 42254976, 43535424, 44815872, 46096320, 47376768, 48657216, 49937664, 51218112, 52498560, 53779008, 55059456, 56339904 Metadata value stored on da0p3. Done. Check the result df -h Filesystem Size Used Avail Capacity Mounted on /dev/gpt/rootfs

:: the working directory is not writable ::

:: error bind on freebsd if you got bind error log on freebsd system like: bsd# tail /var/log/messages Feb 2 12:15:30 bsd named[5059]: command channel listening on 127.0.0.1#953 Feb 2 12:15:30 bsd named[5059]: command channel listening on ::1#953 Feb 2 12:15:30 bsd named[5059]: the working directory is not writable Feb 2 12:15:30 bsd named[5059]: running