VirtualBox virtual hard drive

Hello, I made a 2GB virtual hard drive for Haiku in VirtualBox.

This virtual hard drive is now full, so I increased the disk size to 20GB in the virtualbox settings.

But Haiku does not see the added disk size and still think he’s full.

Can I resolve this issue ?

1 Like

Haiku uses the BFS file system which currently can’t be resized. (there are old patches around that implemented this function but they were never merged for some reason).

So you have to create a new disk, add it to the machine and format it with BFS (with the DriveSetup app). Then you can use the installer from your existing installation to install Haiku on the new disk. As far as I remember the installer should transfer any setting changes that you made to the system.

3 Likes

Thanks, it worked !

I created a disk named VBOX HARDDISK2 and installed Haiku on it. Can I now erase the initial VBOX HARDDISK limited to 2 GB ?

2 Likes

If you can boot from the second drive, you can delete the old one.

Alternatively, you can reformat it and then use it to house the virtual memory, browser caches, user settings directory and so on. symlinks are your friends!

Yes of course. Just make sure you can boot from the newly created installation on the new drive. I would just remove the 2G from the VM first. If the new installation boots you can delete the old drive.

The reason is that the work was not complete, and it would leave you with a corrupt, half-resized disk. It seems better to finish it before merging it, otherwise people would (rightfully) complain that they tried to use it and it ate all their data.

2 Likes

I fully agree, I just couldn’t remember what the exact reason was. Thanks for the explanation.
Btw, where can I find these patches? Not that I’ll be of much help, my knowledge of file system internals is very rudimentary.

https://review.haiku-os.org/q/topic:bfsresize

1 Like

Thanks @Diver !

I can’t update Haiku any more since I changed DISK. When pkgman full-sync, I got checksum errors.

Is this related ? I’m not even sure.

Checksum errors are often caused by the server (outdated packages in the CDN cache).
Can you please share the terminal output you got when running pkgman?

Can you explain me how to do that or point me some ressource ?

Pronlem solved itself.

I like when that happen.