Virtualbox disk resizing

I have a Virtualbox Vhd that initially was 7 gb.I resized it from Virtualbox so it will expand up to 25gb… The Haiku sees the old size though when doing a df.Do i need to reinstall the OS again from the beginning in order to see the new size or is there another way?

Short answer: BFS (the file system Haiku uses) currently can’t be resized.

There was a recent thread here on the forum on exactly your question where additional info is provided. Should be relatively easy to find using the search function on the forum.

1 Like

Off the top of my head (not having Haiku running ATM):

  • create a new disk in VB
  • in Haiku, partition & format it to BFS. Mount it
  • Now use the regular installer app to install, using your old disk as the source and the new one as the target. Everything in /boot/system will transfer, but you may want to double-check that /boot/home did so as well.
  • Exit Haiku and set VB to boot from the new disk.
  • Once you are happy that everything works, you can delete the old disk in VB.

The magic part here is that every Haiku installation can act as an installer.

2 Likes

I did it differently. I booted from CD-ROM and installed Haiku on the big disk.
I had to reinstall some stuff but nothing critical.
@michel your way seems more clever if it copies /boot/home too.

maybe you can use luckybackup for that (copy /boot/home)

1 Like

No, just use the Installer, this is exactly what it’s supposed to do.

1 Like

Not only that, but all your settings, packages installed, directories/files created etc, everything is transferred to the new installation.

What @michel recommended should work, but really, I still think if you can’t have a bare metal installation, at least install on a USB stick (you can even use your existing VB installation to do that). It is a far better experience compared to just a virtual machine.

Using a USB 2.0 Haiku installation was extremely slow for me compared to a VirtualBox VM machine.
Probably a USB 3.0 installation is better