File system full FreeBSD in VirtualBox...

exeter

Member

Reaction score: 2
Messages: 25

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.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 11,202
Messages: 37,355

You probably have to resize the (virtual) disk first. Then you resize the partition, only when that's done can you resize the filesystem.
 
OP
exeter

exeter

Member

Reaction score: 2
Messages: 25

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.
 
OP
exeter

exeter

Member

Reaction score: 2
Messages: 25

Haha, that's excellent. My Google-fu is clearly in need of some enhancing. Thanks again.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 11,202
Messages: 37,355

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.
 

Emrion

Aspiring Daemon

Reaction score: 176
Messages: 619

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.
 

ralphbsz

Son of Beastie

Reaction score: 2,097
Messages: 3,061

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.
 

mhc

New Member


Messages: 1

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
 

Emrion

Aspiring Daemon

Reaction score: 176
Messages: 619

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.
 

giffengrabber

New Member


Messages: 2

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...)
 

annika

New Member

Reaction score: 2
Messages: 1

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.
 

Trihexagonal

Daemon

Reaction score: 1,819
Messages: 2,390

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.
 
Top