Allow to move data to a smaller capacity disk

Currently Home Assistant allows you to move the data disk out to another disk of larger capacity.

It would be able to allow moving to a smaller disk if required.

I was planning to do a number of things with HA, so I installed a large size SSD and moved the data disk to it. Then I decided I would go in a different direction, and the only way to move to a smaller disk would be to rebuild the system user a smaller disk.

Thank you!

Agreed. I have just changed my PiHA SD card to a new one (64Gb which was cheapest) but also bought a small usb to use as the data storage vs the SD (32Gb) but it won’t let me use the data storage even though the actual current installation is only 10% ( so what , 6.4Gb? ) and the data portion should easily fit on the 32Gb.

1 Like

Ok this is ridiculous. I bought a 64Gb transcend usb stick to try and get this move working. Now when I tried it, the usb is STILL smaller, supposedly by a couple megabytes, can we please get some option to work around this as I’ve now bought two sticks and can"t use them for this.

Today I took the plunge and did a fresh backup of my install of HA, rebuilt the system, restored and moved the data to the smaller drive.

It’s always quite cringy doing that, but the backup/restore function worked a treat.

Cheers

1 Like

Can I move the data to an equal size disk? Also, what happens if I do a backup up my system, where the data disk is an external USB disk of 1 TB, and then do a fresh installation of HA and restore the backup? Can I restore the backup to my internal disk or do I still need to restore it to the external disk?

I’m not sure about the equal size disk. I would try and if it doesn’t work, back up and restore.

As far as restoring to the internal disk, I believe you can, as long as all your data fits. Otherwise, you would have to install, move the data disk, and then restore from your backup.

Thanks, it worked to just do a restore to a new internal disk.

The backup/restore feature of HA is great. Very easy to use and takes no time to get right back where you were.

I did the same. Use backup, create new ha on a smaller SD, restore the backup, add the 80GB SSD and move the data to the SSD. The led on the SSD shows clearly how often it is writing.
Worked fine.

1 Like

Hi could you please help to explain more on how to create new ha on a smaller SD? I inserted a SSD and moved the data to it, but now i want to swap to a smaller SSD. Can I backup then download the backup file, then create new ha on the HA yellow disk itself?

This is the process:

  • Backup Home Assistant
  • Turn off and swap the SSD for the smaller size
  • Use the install USB drive to start a fresh session of Home Assistant
  • Migrate the data to SSD
  • Restore your Home Assistant backup

Cheers

Thank you Chris for the reply! I’ve successfully downgraded the disk.

sorry very old link, but how do I : " Use the install USB drive to start a fresh session of Home Assistant "
i tried restarting but noithing is working