More space with Home Assistant

Which version of system do you use? Khadas official images, self built images, or others?

Fenix 1.5.1 Debian GNU/Linux 11 (bullseye) Linux 5.4.180

Please describe your issue below:

Hi everyone, I’m using my Khadas VIM1S to work with Home Assistant and I want to use more space, so I insert a sd memory and try to use it but when I try to do it Home Assitant show my an error or warning and denay me the operation

Post a console log of your issue below:


'DataDisk.migrate_disk' blocked from execution, ho Home Assistant OS available

Hello @mirendrith

Could you check latest Armbian build HA system?

https://dl.armbian.com/khadas-vim1s/Bookworm_legacy_minimal-homeassistant

Hello,

I’m not sure what do you mean, I uploaded Home Assistant until I can’t because I haven’t got enough space. I also uploaded my Khadas board from oowow menu but i still have the problem.

Thank you

Hello @mirendrith

You can write this image to TF card, and insert the TF card to VIM1S and reboot, then HA will boot from the TF card.

Thank you for your help. I loaded that image to the card with Rufus, insert in the VIM1S but HA doesn’t load, I only get an screen asking me for and user and password. I tried to log with user: khadas and password khadas and it doesn’t work. I attach a capture.


Best regads

For the first bootup, you need to setup the password yourself:

Welcome to Armbian! 

Documentation: https://docs.armbian.com | Community support: https://forum.armbian.com

IP address: 192.168.30.62,172.17.0.1 

Create root password: ******
Repeat root password: ******

Creating a new user account. Press <Ctrl-C> to abort

Please provide a username (eg. your first name): khadas
Create user (khadas) password: ******
Repeat user (khadas) password: ******

Please provide your real name: Khadas

Dear Khadas, your account khadas has been created and is sudo enabled.
Please use this account for your daily work from now on.

BTW, for HA, you don’t need to login, just open the browser and access: http://X.X.X.X:8123.

X.X.X.X is your board IP.

Good morning, thank you again for your help

I created a password and login but HA


doesn’t load, maybe i have to install it or in this version of Armbian is already installed?

Thank you,

@mirendrith Could you please share the output of the following commands

$ sudo docker ps
$ ss -tlnp

@mirendrith Have you tried to login in a browser on a computer using url http://khadas-vim1s.local:8123/ or http://192.168.1.48:8123/

There won’t be a HA interface on the HDMI output of vim1s. You have to login over the network using a web browser

Yes, the board it’s not loading HA with SD card inserted. If I remove the SD card HA load.

Later i will do that now I’m not at home. Thank you.

'DataDisk.migrate_disk' blocked from execution, no Home Assistant OS available

Regarding this, based on what I can see on HA forum, moving data using ha cli or ui won’t work on HA Supervised system. You can try the following

  • mount your sdcard partition to /mnt.
  • copy everything from /usr/share/hassio to /mnt
  • unmount your card and add an entry in /etc/fstab to mount your card to /usr/share/hassio

Hope this can help you with your issue.

1 Like

I typed you said to me, this is what i got

Excuse me, my knowlege in Linux it’s very low. Could you help me to do that? I don’t know the comands. Thank you.

Try the following steps

  1. partition and format sdcard
$ sudo fdisk /dev/mmcblk1

Welcome to fdisk (util-linux 2.38.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): o
Created a new DOS (MBR) disklabel with disk identifier 0x628d6005.

Command (m for help): n
Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-62410751, default 2048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-62410751, default 62410751):

Created a new partition 1 of type 'Linux' and of size 29.8 GiB.

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

$ sudo mkfs.ext4 /dev/mmcblk1p1
mke2fs 1.47.0 (5-Feb-2023)
Discarding device blocks: done
Creating filesystem with 7801088 4k blocks and 1954064 inodes
Filesystem UUID: 521e136a-86d6-482c-adf6-d0f0f3fc2433
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000

Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
  1. Set sdcard to mount on boot
$ sudo nano /etc/fstab

Scroll to a empty line at the bottom using arrow keys and add the following

/dev/mmcblk1p1 /usr/share/hassio ext4 defaults,noatime 0 0

Press Ctrl+o to save and Ctrl+x to exit.

  1. Mount sdcard to /mnt
sudo mount /dev/mmcblk1p1 /mnt
  1. Copy the old files from /usr/share/hassio to /mnt
sudo rsync -av /usr/share/hassio/* /mnt/
  1. Reboot.
sudo reboot
2 Likes

Hello, I’m sorry I’m not lucky, I had some erros during the proccess, in this line:

$ sudo mkfs.ext4 /dev/mmcblk1p1

I got this:

/dev/mmcblk1p1 is mounted; will not make a filesystem here!

I attach captures of all that I typed.

Thank you.

Hmm, not sure why it got mounted automatically, but you can unmount it using

$ sudo umount /dev/mmcblk1p1

Hello again, sorry for disturb but when I try to umount the partition I got this: target is busy

Hmm, I shared the instructions on the assumption that you have flashed the HA image to emmc using OOWOW. The sdcard was not in use for me on a fresh emmc install done from oowow . I wonder what is different in your case.

Can you share some more details about your setup? Like whether you have installed it on sdcard or on emmc?

Also share output of lsblk and mount commands

Good morning,

Well I was told to this:

I did it flashing sdcard using Rufus and later inserting sdcard and later swich on the my VIM1S.