File system full FreeBSD in VirtualBox...

I installed FreeBSD in VirtualBox using the official FreeBSD 12.1 vmdk file. When I created a new user I got a file system full message. I can't find out how to increase the file system. Advice please. Thanks.
 
You probably have to resize the (virtual) disk first. Then you resize the partition, only when that's done can you resize the filesystem.
 
Thanks for that. Unfortunately I can't find any instructions for resizing the disk image. Google has failed me again. Any ideas where I might look for instructions? Thanks.
 
Haha, that's excellent. My Google-fu is clearly in need of some enhancing. Thanks again.
 
Don't search specifically for the combination with FreeBSD. From Virtualbox's point of view it's irrelevant what the guest OS actually is. Resizing the virtual disk works exactly the same for any guest OS. What is different is what happens after you resized the disk. Moving partitions around (or resizing) is different, FreeBSD uses gpart(8), Linux often uses fdisk, GParted or some other tool. On Linux you often use LVM to then enlarge the filesystem, on FreeBSD you use growfs(8) for UFS or use the autoexpand feature for ZFS.
 
Honestly, I think it's quickest and simplest to grab a FreeBSD iso file and do a fresh install with a virtual HDD of the appropriate size. Mostly if you begin with FreeBSD.
 
Maybe you should find out why the file system filled up? If there is a reason for that (for example some daemon process that creates too much output), then the enlarged file system might also fill up.
 
Just bumped into the same issue.

Since im newish to BSD I have opted to install the virutalbox image to play with. The VB virtual disk is 4gb with 2.39gb used, so im thinking i need to grow the filesystem from witihin the os.

however,
Honestly, I think it's quickest and simplest to grab a FreeBSD iso file and do a fresh install with a virtual HDD of the appropriate size. Mostly if you begin with FreeBSD.

reckon i will try this
 
When I was speaking of the "appropriate size", I meant 10 GiB at least. And if you want to have a future on this installation, go on 20 GiB; 50 GiB would be better. Do not forget that the real size taken by a dynamic virtual box disk isn't the maximum size unless you use all of its space. It grows as needed.
 
I recently installed 11.3-RELEASE in a VM. It contains the base and some more stuff, e.g. nginx. It weighs in at 2.7 GiB.

When I was speaking of the "appropriate size", I meant 10 GiB at least. And if you want to have a future on this installation, go on 20 GiB; 50 GiB would be better. Do not forget that the real size taken by a dynamic virtual box disk isn't the maximum size unless you use all of its space. It grows as needed.

Some of us have tiny drives though 😛 My laptop has one SSD with a total of 121 GiB of storage. (I guess I should upgrade. Any day now...)
 
I had the same problem where the vhd was full on first boot. I bumped the size slightly in Windows during my first attempt to fix.

mount(8) shows that this is a UFS volume, and gpart list / gpart show say the default 3.0G filesystem is ada0p3 (disk ada0, index 3). This guide correctly said that the disk was listed as [CORRUPT] using gpart show, and that annotation was removed by running gpart recover ada0.

gpart resize -i 3 ada0 was pretty noisy with "ATA Status Error" / "DRDY ERR" but the subsequent service growfs onestart seems to have worked fine. The filesystem is now resized as I would expect, given the size I set in the VirtualBox media manager.
 
I got a kernel warning I was 3% over allotted HDD space when at the login terminal. I deleted my distfiles but that didn't clear up enough room.

So I used security/wipe, which is one of the first things I install before moving on to Xorg. I never really had the need to use it till then and it saved the day. I had some older Japanese movies in my Video directory so wiped all the .mp4 and .avi in the main Directory. Clearing enough space and not have touched the ones in sub-folders.
 
Back
Top