How to get the backup created by update from the 7.hassos-data.img file in a vdi container?

well, the subject says it all.

I have pulled the 7.hassos-data.img from the vdi VirtualBox file. But I cant open the image. how do I get any of my backups out from it?

thanks

Install the Samba share add-on in Home Assistant, then use any Windows PC or Mac to connect to the HA instance. Your backup files should be in the backup folder, and will be a bunch of .tar files.

ideed, if HA would start, I could do that, but alas it does not, so back to my question, how do I pull my backups form the 7.hassos-data.img from the vdi VirtualBox file

The Googles found this:

  1. Select a virtual machine by clicking its name in the VirtualBox window
  2. Click the Machine menu at the top of the VirtualBox window, and click Settings
  3. Click the Storage category in the Settings window
  4. Right-click in the storage tree pane, and click Add Floppy Controller
  5. Right-click the Floppy Controller device, and click Add Floppy Device
  6. Click the Choose Disk button in the prompt window that appears
  7. Navigate to the floppy disk image file (.IMG) on your computer and double-click it

If that doesn’t work, try renaming the .IMG as .ISO and mount it.

If that too doesn’t work, use VBoxManage’s convertfromraw command as follows:

VBoxManage convertfromraw --format VDI [filename].img [filename].vdi

Mount the VDI as a hard disk.

Wow I did not find that one.

I tried the floppy thing and got:

VirtualBox error: rc=0x80bb0001 Could not get the storage format of the medium '/srv/dev-disk-by-label-data/system/3.hassos-kernel1.img' (VERR_NOT_SUPPORTED) (0x80bb0005)

i tried the iso thing and winrar said its corupt, but it said so for all images form that vdi file. tried mounting the iso as optical drive on a windows vm, and that said the disc is damaged.

still working on the last one

that worked, as in the CLI did not report an error back, lets see if the resulting .vdi file is usable…

while waiting for the converter to do its magic, i examiend a stock .vdi file vs my corupted .vdi file. looks like my .vdi file lost its partition table, as gparted reads it as empty disc but with the stock .vdi it finds all partitions from sda1 to sda8

no dice, it seams the partition block is moved or erased, looks like i did run into a version issue with virtualbox and need to start from scratch.

https://forums.virtualbox.org/viewtopic.php?f=1&t=78963

it seams the disk is non recoverable.

well that sucks.