adamoutler / HassOSConfigurator

A set of Add-Ons to configure HassOS For various platforms and development purposes.
187 stars 43 forks source link

SSH Configurator not working on Odroid M1S #45

Open TimSoethout opened 2 months ago

TimSoethout commented 2 months ago

Addon log messages:

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[skip] /dev/vda1 does not exist.
[skip] /dev/sda1 does not exist.
[skip] /dev/sdb1 does not exist.
[skip] /dev/mmcblk1p1 does not exist.
[skip] /dev/nvme0n1p1 does not exist.
=============================================================
=    #     #    #    ######  #     # ### #     #  #####     =
=    #  #  #   # #   #     # ##    #  #  ##    # #     #    =
=    #  #  #  #   #  #     # # #   #  #  # #   # #          =
=    #  #  # #     # ######  #  #  #  #  #  #  # #  ####    =
=    #  #  # ####### #   #   #   # #  #  #   # # #     #    =
=    #  #  # #     # #    #  #    ##  #  #    ## #     #    =
=     ## ##  #     # #     # #     # ### #     #  #####     =
=============================================================
=
=   Issue: Failed to mount all attempted partitions (1 partition(s)).
=
=   Possible Solution: Ensure that 'Protection mode' is disabled in the 'Info' tab of this Add-On.
=
=============================================================
[FAILURE] Configurator failed. Please follow the steps above, then restart this Add-On.

It seems my M1S (bought as packaged with HA from odroid.uk, https://www.odroid.co.uk/M1S-HA-8GB) with embedded eMMC has a similar problem to #8 .

Devices:

brw-rw----    1 root     disk      179,   0 Aug 18 19:04 mmcblk0
brw-rw----    1 root     disk      179,  32 Aug 18 19:04 mmcblk0boot0
brw-rw----    1 root     disk      179,  64 Aug 18 19:04 mmcblk0boot1
brw-rw----    1 root     disk      179,   1 Aug 18 19:04 mmcblk0p1
brw-rw----    1 root     disk      179,   2 Aug 18 19:04 mmcblk0p2
brw-rw----    1 root     disk      179,   3 Aug 18 19:04 mmcblk0p3
brw-rw----    1 root     disk      179,   4 Aug 18 19:04 mmcblk0p4
brw-rw----    1 root     disk      179,   5 Aug 18 19:04 mmcblk0p5
brw-rw----    1 root     disk      179,   6 Aug 18 19:04 mmcblk0p6
brw-rw----    1 root     disk      179,   7 Aug 18 19:05 mmcblk0p7
brw-rw----    1 root     disk      179,   8 Aug 18 19:04 mmcblk0p8
brw-rw----    1 root     disk      179,   9 Aug 18 19:04 mmcblk0p9
crw-------    1 root     root      237,   0 Aug 18 19:04 mmcblk0rpmb

Any ideas?

adamoutler commented 2 months ago

Disable protection mode.

TimSoethout commented 2 months ago

Disable protection mode.

Thanks for the swift response. Of course I already tried this. ;) Sorry for not mentioning explicitly.

It seems from the output, the addon only tries mmcblk1p1, and not mmcblk0p1. Never mind. It only prints the skipped devices. mmcblk0p1 seems to be present in the code in this repo. :-/

adamoutler commented 2 months ago

No. It located and attempted to mount 1 partition but it failed to mount the expected folder. Please ensure protection mode is disabled. I don't have one of these units but they work.

TimSoethout commented 2 months ago

Protection mode is disabled. I was able to docker exec into the addon container. This is in dmesg:

[17945.445354] F2FS-fs (mmcblk0p1): Magic Mismatch, valid(0xf2f52010) - read(0x3000000)
[17945.445377] F2FS-fs (mmcblk0p1): Can't find valid F2FS filesystem in 1th superblock
[17945.445572] F2FS-fs (mmcblk0p1): Magic Mismatch, valid(0xf2f52010) - read(0xffffffff)
[17945.445580] F2FS-fs (mmcblk0p1): Can't find valid F2FS filesystem in 2th superblock
[17945.446751] erofs: (device mmcblk0p1): erofs_read_superblock: cannot find valid erofs superblock
# mount -vvv /dev/mmcblk0p1 /tmp/mmcblk0p1
mount: mount('/dev/mmcblk0p1','/tmp/mmcblk0p1','ext3',0x00008000,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0p1','/tmp/mmcblk0p1','ext4',0x00008000,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0p1','/tmp/mmcblk0p1','ext2',0x00008000,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0p1','/tmp/mmcblk0p1','squashfs',0x00008000,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0p1','/tmp/mmcblk0p1','vfat',0x00008000,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0p1','/tmp/mmcblk0p1','msdos',0x00008000,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0p1','/tmp/mmcblk0p1','fuseblk',0x00008000,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0p1','/tmp/mmcblk0p1','f2fs',0x00008000,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0p1','/tmp/mmcblk0p1','erofs',0x00008000,'(null)'):-1: Invalid argument
mount: mounting /dev/mmcblk0p1 on /tmp/mmcblk0p1 failed: Invalid argument
# fdisk -l /dev/mmcblk0
Disk /dev/mmcblk0: 58 GB, 62537072640 bytes, 122142720 sectors
1908480 cylinders, 4 heads, 16 sectors/track
Units: sectors of 1 * 512 = 512 bytes

Device       Boot StartCHS    EndCHS        StartLBA     EndLBA    Sectors  Size Id Type
/dev/mmcblk0p1    2,10,9      4,20,16          32768      65535      32768 16.0M  c Win95 FAT32 (LBA)
/dev/mmcblk0p2    0,0,2       0,0,34               1         33         33 16896 ee EFI GPT

Partition table entries are not in disk order

I don't get where mmcblk0p3-mmcblk0p9 are...

Other /dev/XXX give similar issues:

2ad4c73a-hassos-ssh-configurator-addon:/tmp# mount -vvv /dev/mmcblk0boot0 /tmp/mmcblk0p1
mount: mount('/dev/mmcblk0boot0','/tmp/mmcblk0p1','ext3',0x00008000,'(null)'):-1: Permission denied
mount: mount('/dev/mmcblk0boot0','/tmp/mmcblk0p1','ext3',0x00008001,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0boot0','/tmp/mmcblk0p1','ext4',0x00008000,'(null)'):-1: Permission denied
mount: mount('/dev/mmcblk0boot0','/tmp/mmcblk0p1','ext4',0x00008001,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0boot0','/tmp/mmcblk0p1','ext2',0x00008000,'(null)'):-1: Permission denied
mount: mount('/dev/mmcblk0boot0','/tmp/mmcblk0p1','ext2',0x00008001,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0boot0','/tmp/mmcblk0p1','squashfs',0x00008000,'(null)'):-1: Permission denied
mount: mount('/dev/mmcblk0boot0','/tmp/mmcblk0p1','squashfs',0x00008001,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0boot0','/tmp/mmcblk0p1','vfat',0x00008000,'(null)'):-1: Permission denied
mount: mount('/dev/mmcblk0boot0','/tmp/mmcblk0p1','vfat',0x00008001,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0boot0','/tmp/mmcblk0p1','msdos',0x00008000,'(null)'):-1: Permission denied
mount: mount('/dev/mmcblk0boot0','/tmp/mmcblk0p1','msdos',0x00008001,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0boot0','/tmp/mmcblk0p1','fuseblk',0x00008000,'(null)'):-1: Permission denied
mount: mount('/dev/mmcblk0boot0','/tmp/mmcblk0p1','fuseblk',0x00008001,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0boot0','/tmp/mmcblk0p1','f2fs',0x00008000,'(null)'):-1: Permission denied
mount: mount('/dev/mmcblk0boot0','/tmp/mmcblk0p1','f2fs',0x00008001,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0boot0','/tmp/mmcblk0p1','erofs',0x00008000,'(null)'):-1: Permission denied
mount: mount('/dev/mmcblk0boot0','/tmp/mmcblk0p1','erofs',0x00008001,'(null)'):-1: Invalid argument
mount: mounting /dev/mmcblk0boot0 on /tmp/mmcblk0p1 failed: Invalid argument
2ad4c73a-hassos-ssh-configurator-addon:/tmp# mount -vvv /dev/mmcblk0boot1 /tmp/mmcblk0p1
mount: mount('/dev/mmcblk0boot1','/tmp/mmcblk0p1','ext3',0x00008000,'(null)'):-1: Permission denied
mount: mount('/dev/mmcblk0boot1','/tmp/mmcblk0p1','ext3',0x00008001,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0boot1','/tmp/mmcblk0p1','ext4',0x00008000,'(null)'):-1: Permission denied
mount: mount('/dev/mmcblk0boot1','/tmp/mmcblk0p1','ext4',0x00008001,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0boot1','/tmp/mmcblk0p1','ext2',0x00008000,'(null)'):-1: Permission denied
mount: mount('/dev/mmcblk0boot1','/tmp/mmcblk0p1','ext2',0x00008001,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0boot1','/tmp/mmcblk0p1','squashfs',0x00008000,'(null)'):-1: Permission denied
mount: mount('/dev/mmcblk0boot1','/tmp/mmcblk0p1','squashfs',0x00008001,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0boot1','/tmp/mmcblk0p1','vfat',0x00008000,'(null)'):-1: Permission denied
mount: mount('/dev/mmcblk0boot1','/tmp/mmcblk0p1','vfat',0x00008001,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0boot1','/tmp/mmcblk0p1','msdos',0x00008000,'(null)'):-1: Permission denied
mount: mount('/dev/mmcblk0boot1','/tmp/mmcblk0p1','msdos',0x00008001,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0boot1','/tmp/mmcblk0p1','fuseblk',0x00008000,'(null)'):-1: Permission denied
mount: mount('/dev/mmcblk0boot1','/tmp/mmcblk0p1','fuseblk',0x00008001,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0boot1','/tmp/mmcblk0p1','f2fs',0x00008000,'(null)'):-1: Permission denied
mount: mount('/dev/mmcblk0boot1','/tmp/mmcblk0p1','f2fs',0x00008001,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0boot1','/tmp/mmcblk0p1','erofs',0x00008000,'(null)'):-1: Permission denied
mount: mount('/dev/mmcblk0boot1','/tmp/mmcblk0p1','erofs',0x00008001,'(null)'):-1: Invalid argument
mount: mounting /dev/mmcblk0boot1 on /tmp/mmcblk0p1 failed: Invalid argument
2ad4c73a-hassos-ssh-configurator-addon:/tmp# mount -vvv /dev/mmcblk0p2 /tmp/mmcblk0p1
mount: mount('/dev/mmcblk0p2','/tmp/mmcblk0p1','ext3',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p2','/tmp/mmcblk0p1','ext4',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p2','/tmp/mmcblk0p1','ext2',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p2','/tmp/mmcblk0p1','squashfs',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p2','/tmp/mmcblk0p1','vfat',0x00008000,'(null)'):0
2ad4c73a-hassos-ssh-configurator-addon:/tmp# mount -vvv /dev/mmcblk0p3 /tmp/mmcblk0p1
mount: mount('/dev/mmcblk0p3','/tmp/mmcblk0p1','ext3',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p3','/tmp/mmcblk0p1','ext4',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p3','/tmp/mmcblk0p1','ext2',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p3','/tmp/mmcblk0p1','squashfs',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p3','/tmp/mmcblk0p1','vfat',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p3','/tmp/mmcblk0p1','msdos',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p3','/tmp/mmcblk0p1','fuseblk',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p3','/tmp/mmcblk0p1','f2fs',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p3','/tmp/mmcblk0p1','erofs',0x00008000,'(null)'):-1: Resource busy
mount: mounting /dev/mmcblk0p3 on /tmp/mmcblk0p1 failed: Resource busy
2ad4c73a-hassos-ssh-configurator-addon:/tmp# mount -vvv /dev/mmcblk0p4 /tmp/mmcblk0p1
mount: mount('/dev/mmcblk0p4','/tmp/mmcblk0p1','ext3',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p4','/tmp/mmcblk0p1','ext4',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p4','/tmp/mmcblk0p1','ext2',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p4','/tmp/mmcblk0p1','squashfs',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p4','/tmp/mmcblk0p1','vfat',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p4','/tmp/mmcblk0p1','msdos',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p4','/tmp/mmcblk0p1','fuseblk',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p4','/tmp/mmcblk0p1','f2fs',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p4','/tmp/mmcblk0p1','erofs',0x00008000,'(null)'):-1: Resource busy
mount: mounting /dev/mmcblk0p4 on /tmp/mmcblk0p1 failed: Resource busy
2ad4c73a-hassos-ssh-configurator-addon:/tmp# mount -vvv /dev/mmcblk0p5 /tmp/mmcblk0p1
mount: mount('/dev/mmcblk0p5','/tmp/mmcblk0p1','ext3',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p5','/tmp/mmcblk0p1','ext4',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p5','/tmp/mmcblk0p1','ext2',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p5','/tmp/mmcblk0p1','squashfs',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p5','/tmp/mmcblk0p1','vfat',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p5','/tmp/mmcblk0p1','msdos',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p5','/tmp/mmcblk0p1','fuseblk',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p5','/tmp/mmcblk0p1','f2fs',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p5','/tmp/mmcblk0p1','erofs',0x00008000,'(null)'):-1: Resource busy
mount: mounting /dev/mmcblk0p5 on /tmp/mmcblk0p1 failed: Resource busy
2ad4c73a-hassos-ssh-configurator-addon:/tmp# mount -vvv /dev/mmcblk0p6 /tmp/mmcblk0p1
mount: mount('/dev/mmcblk0p6','/tmp/mmcblk0p1','ext3',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p6','/tmp/mmcblk0p1','ext4',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p6','/tmp/mmcblk0p1','ext2',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p6','/tmp/mmcblk0p1','squashfs',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p6','/tmp/mmcblk0p1','vfat',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p6','/tmp/mmcblk0p1','msdos',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p6','/tmp/mmcblk0p1','fuseblk',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p6','/tmp/mmcblk0p1','f2fs',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p6','/tmp/mmcblk0p1','erofs',0x00008000,'(null)'):-1: Resource busy
mount: mounting /dev/mmcblk0p6 on /tmp/mmcblk0p1 failed: Resource busy
2ad4c73a-hassos-ssh-configurator-addon:/tmp# mount -vvv /dev/mmcblk0p7 /tmp/mmcblk0p1
mount: mount('/dev/mmcblk0p7','/tmp/mmcblk0p1','ext3',0x00008000,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0p7','/tmp/mmcblk0p1','ext4',0x00008000,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0p7','/tmp/mmcblk0p1','ext2',0x00008000,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0p7','/tmp/mmcblk0p1','squashfs',0x00008000,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0p7','/tmp/mmcblk0p1','vfat',0x00008000,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0p7','/tmp/mmcblk0p1','msdos',0x00008000,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0p7','/tmp/mmcblk0p1','fuseblk',0x00008000,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0p7','/tmp/mmcblk0p1','f2fs',0x00008000,'(null)'):-1: Invalid argument
mount: mount('/dev/mmcblk0p7','/tmp/mmcblk0p1','erofs',0x00008000,'(null)'):-1: Invalid argument
mount: mounting /dev/mmcblk0p7 on /tmp/mmcblk0p1 failed: Invalid argument
2ad4c73a-hassos-ssh-configurator-addon:/tmp# mount -vvv /dev/mmcblk0p /tmp/mmcblk0p1
mmcblk0p1  mmcblk0p2  mmcblk0p3  mmcblk0p4  mmcblk0p5  mmcblk0p6  mmcblk0p7  mmcblk0p8  mmcblk0p9
2ad4c73a-hassos-ssh-configurator-addon:/tmp# mount -vvv /dev/mmcblk0p8 /tmp/mmcblk0p1
mount: mount('/dev/mmcblk0p8','/tmp/mmcblk0p1','ext3',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p8','/tmp/mmcblk0p1','ext4',0x00008000,'(null)'):0
2ad4c73a-hassos-ssh-configurator-addon:/tmp# mount -vvv /dev/mmcblk0p9 /tmp/mmcblk0p1
mount: mount('/dev/mmcblk0p9','/tmp/mmcblk0p1','ext3',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0p9','/tmp/mmcblk0p1','ext4',0x00008000,'(null)'):0
2ad4c73a-hassos-ssh-configurator-addon:/tmp# mount -vvv /dev/mmcblk0 /tmp/mmcblk0p1
mmcblk0       mmcblk0boot1  mmcblk0p2     mmcblk0p4     mmcblk0p6     mmcblk0p8     mmcblk0rpmb
mmcblk0boot0  mmcblk0p1     mmcblk0p3     mmcblk0p5     mmcblk0p7     mmcblk0p9
2ad4c73a-hassos-ssh-configurator-addon:/tmp# mount -vvv /dev/mmcblk0 /tmp/mmcblk0p1
mmcblk0       mmcblk0boot1  mmcblk0p2     mmcblk0p4     mmcblk0p6     mmcblk0p8     mmcblk0rpmb
mmcblk0boot0  mmcblk0p1     mmcblk0p3     mmcblk0p5     mmcblk0p7     mmcblk0p9
2ad4c73a-hassos-ssh-configurator-addon:/tmp# mount -vvv /dev/mmcblk0rpmb /tmp/mmcblk0p1
mount: mount('/dev/mmcblk0rpmb','/tmp/mmcblk0p1','ext3',0x00008000,'(null)'):-1: Block device required
mount: mount('/dev/mmcblk0rpmb','/tmp/mmcblk0p1','ext4',0x00008000,'(null)'):-1: Block device required
mount: mount('/dev/mmcblk0rpmb','/tmp/mmcblk0p1','ext2',0x00008000,'(null)'):-1: Block device required
mount: mount('/dev/mmcblk0rpmb','/tmp/mmcblk0p1','squashfs',0x00008000,'(null)'):-1: Block device required
mount: mount('/dev/mmcblk0rpmb','/tmp/mmcblk0p1','vfat',0x00008000,'(null)'):-1: Block device required
mount: mount('/dev/mmcblk0rpmb','/tmp/mmcblk0p1','msdos',0x00008000,'(null)'):-1: Block device required
mount: mount('/dev/mmcblk0rpmb','/tmp/mmcblk0p1','fuseblk',0x00008000,'(null)'):-1: Block device required
mount: mount('/dev/mmcblk0rpmb','/tmp/mmcblk0p1','f2fs',0x00008000,'(null)'):-1: Block device required
mount: mount('/dev/mmcblk0rpmb','/tmp/mmcblk0p1','erofs',0x00008000,'(null)'):-1: Block device required
mount: mounting /dev/mmcblk0rpmb on /tmp/mmcblk0p1 failed: Block device required
2ad4c73a-hassos-ssh-configurator-addon:/tmp# mount -vvv /dev/mmcblk0 /tmp/mmcblk0p1
mount: mount('/dev/mmcblk0','/tmp/mmcblk0p1','ext3',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0','/tmp/mmcblk0p1','ext4',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0','/tmp/mmcblk0p1','ext2',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0','/tmp/mmcblk0p1','squashfs',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0','/tmp/mmcblk0p1','vfat',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0','/tmp/mmcblk0p1','msdos',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0','/tmp/mmcblk0p1','fuseblk',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0','/tmp/mmcblk0p1','f2fs',0x00008000,'(null)'):-1: Resource busy
mount: mount('/dev/mmcblk0','/tmp/mmcblk0p1','erofs',0x00008000,'(null)'):-1: Resource busy
mount: mounting /dev/mmcblk0 on /tmp/mmcblk0p1 failed: Resource busy
adamoutler commented 2 months ago

Looks like dev/mmcblk0p2 mounted as vfat. Can you examine this filesystem for me? This may or may not be the one.

TimSoethout commented 2 months ago
# lsblk -a
NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
loop0          7:0    0    0B  0 loop
loop1          7:1    0    0B  0 loop
loop2          7:2    0    0B  0 loop
loop3          7:3    0    0B  0 loop
loop4          7:4    0    0B  0 loop
loop5          7:5    0    0B  0 loop
loop6          7:6    0    0B  0 loop
loop7          7:7    0    0B  0 loop
mmcblk0      179:0    0 58.2G  0 disk
├─mmcblk0p1  179:1    0    8M  0 part
├─mmcblk0p2  179:2    0   16M  0 part
├─mmcblk0p3  179:3    0   24M  0 part
├─mmcblk0p4  179:4    0  256M  0 part
├─mmcblk0p5  179:5    0   24M  0 part
├─mmcblk0p6  179:6    0  256M  0 part
├─mmcblk0p7  179:7    0    8M  0 part
├─mmcblk0p8  179:8    0   96M  0 part
└─mmcblk0p9  179:9    0 57.6G  0 part /var/log/journal
                                      /etc/pulse/client.conf
                                      /etc/hosts
                                      /etc/hostname
                                      /etc/resolv.conf
                                      /etc/asound.conf
                                      /run/audio
                                      /homeassistant
                                      /share
                                      /backup
                                      /ssl
                                      /media
                                      /data
                                      /addons
                                      /addon_configs
mmcblk0boot0 179:32   0    4M  1 disk
mmcblk0boot1 179:64   0    4M  1 disk
zram0        253:0    0    0B  0 disk
zram1        253:1    0   32M  0 disk
zram2        253:2    0   16M  0 disk
# parted /dev/mmcblk0
Error: Error opening /dev/mmcblk0: Operation not permitted

Not sure what else I can try. ~I can't mount it unfortunately.~ It was actually mounted without me noticing:

/dev/mmcblk0p2 on /tmp/mmcblk0p2 type vfat (rw,sync,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/mmcblk0p8 on /tmp/mmcblk0p8 type ext4 (rw,relatime)
/dev/mmcblk0p9 on /tmp/mmcblk0p9 type ext4 (rw,relatime,commit=30)

mmcblk0p2

2ad4c73a-hassos-ssh-configurator-addon:/data# ls -al /tmp/mmcblk0p2/
total 138
drwxr-xr-x    3 root     root         16384 Jan  1  1970 .
drwxrwxrwt    1 root     root          4096 Aug 19 20:28 ..
drwxr-xr-x    2 root     root          2048 Jul 29 15:35 System Volume Information
-rwxr-xr-x    1 root     root          3577 Aug 19 10:14 boot.scr
-rwxr-xr-x    1 root     root            13 Aug 19 10:14 cmdline.txt
-rwxr-xr-x    1 root     root             0 Aug 19 10:14 haos-config.txt
-rwxr-xr-x    1 root     root        112464 Aug 19 10:14 rk3566-odroid-m1s.dtb

mmcblk0p8

2ad4c73a-hassos-ssh-configurator-addon:/data# ls -al /tmp/mmcblk0p8/
total 20
drwxr-xr-x    6 root     root          1024 Jan 24  2024 .
drwxrwxrwt    1 root     root          4096 Aug 19 20:30 ..
drwxr-xr-x    8 root     root          1024 Jan 24  2024 etc
drwx------    2 root     root         12288 Jun 18 15:58 lost+found
drwxr-xr-x    4 root     root          1024 Jan 24  2024 root
drwxr-xr-x    3 root     root          1024 Jan 24  2024 var

mmcblk0p9

2ad4c73a-hassos-ssh-configurator-addon:/data# ls -al /tmp/mmcblk0p9/
total 2599072
drwxr-xr-x    6 root     root          4096 Aug 19 10:30 .
drwxrwxrwt    1 root     root          4096 Aug 19 20:30 ..
-rw-r--r--    1 root     root             0 Aug 13 15:55 .hassos-supervisor-version
drwx--x---   13 root     root          4096 Aug 19 10:30 docker
drwxr-sr-x    3 root     104           4096 Jan 24  2024 logs
drwx------    2 root     root         16384 Jun 18 15:55 lost+found
-rw-r--r--    1 root     root          1557 Aug 19 10:30 rauc.db
drwxr-xr-x   16 root     root          4096 Aug 19 20:06 supervisor
-rw-------    1 root     root     2661404672 Jan 24  2024 swapfile

I was able to mount the others (except for 1 and 7 readonly with mount -o ro):

2ad4c73a-hassos-ssh-configurator-addon:/tmp/mmcblk0p2# ls -al /tmp/mmcblk0p3
total 28193
drwxrwxrwx    2 1001     127             28 Jun 18 15:58 .
drwxrwxrwt    1 root     root          4096 Aug 19 20:30 ..
-rw-r--r--    1 1001     127       30720512 Jun 18 15:53 Image
2ad4c73a-hassos-ssh-configurator-addon:/tmp/mmcblk0p2# ls -al /tmp/mmcblk0p4
total 4
drwxr-xr-x   14 root     root           222 Jun 18 15:57 .
drwxrwxrwt    1 root     root          4096 Aug 19 20:30 ..
lrwxrwxrwx    1 root     root             7 Jun 18 15:17 bin -> usr/bin
drwx------    2 root     root             3 Jun 18 15:57 boot
drwxr-xr-x    2 root     root            66 Jun 18 15:03 dev
drwxr-xr-x   31 root     root          1190 Jun 18 15:57 etc
drwxr-xr-x    2 root     root             3 Jun 18 15:17 home
lrwxrwxrwx    1 root     root             7 Jun 18 15:17 lib -> usr/lib
lrwxrwxrwx    1 root     root             3 Jun 18 15:17 lib64 -> lib
drwxr-xr-x    6 root     root            68 Jun 18 15:03 mnt
drwxr-xr-x    2 root     root             3 Jun 18 15:03 proc
drwx------    4 root     root            42 Jun 18 15:03 root
drwxr-xr-x    2 root     root             3 Jun 18 15:57 run
lrwxrwxrwx    1 root     root             8 Jun 18 15:17 sbin -> usr/sbin
drwxr-xr-x    2 root     root             3 Jun 18 15:03 sys
drwxrwxrwt    2 root     root             3 Jun 18 15:03 tmp
drwxr-xr-x    7 root     root           126 Jun 18 15:57 usr
drwxr-xr-x    8 root     root           108 Jun 18 15:57 var
2ad4c73a-hassos-ssh-configurator-addon:/tmp/mmcblk0p2# ls -al /tmp/mmcblk0p5
total 28791
drwxrwxrwx    2 1001     127             28 Aug 13 18:15 .
drwxrwxrwt    1 root     root          4096 Aug 19 20:30 ..
-rw-r--r--    1 1001     127       30788096 Aug 13 18:02 Image
2ad4c73a-hassos-ssh-configurator-addon:/tmp/mmcblk0p2# ls -al /tmp/mmcblk0p6
total 72
drwxr-xr-x   14 root     root           274 Aug 13 18:12 .
drwxrwxrwt    1 root     root          4096 Aug 19 20:30 ..
lrwxrwxrwx    1 root     root             7 Aug 13 16:10 bin -> usr/bin
drwx------    2 root     root            27 Aug 13 18:12 boot
drwxr-xr-x    2 root     root            94 Aug 13 15:55 dev
drwxr-xr-x   31 root     root          1426 Aug 13 18:12 etc
drwxr-xr-x    2 root     root            27 Aug 13 16:10 home
lrwxrwxrwx    1 root     root             7 Aug 13 16:10 lib -> usr/lib
lrwxrwxrwx    1 root     root             3 Aug 13 16:10 lib64 -> lib
drwxr-xr-x    6 root     root            96 Aug 13 15:55 mnt
drwxr-xr-x    2 root     root            27 Aug 13 15:55 proc
drwx------    4 root     root            62 Aug 13 15:55 root
drwxr-xr-x    2 root     root            27 Aug 13 18:12 run
lrwxrwxrwx    1 root     root             8 Aug 13 16:10 sbin -> usr/sbin
drwxr-xr-x    2 root     root            27 Aug 13 15:55 sys
drwxrwxrwt    2 root     root            27 Aug 13 15:55 tmp
drwxr-xr-x    7 root     root           126 Aug 13 18:12 usr
drwxr-xr-x    8 root     root           152 Aug 13 18:12 var
2ad4c73a-hassos-ssh-configurator-addon:/tmp/mmcblk0p2# blkid
/dev/zram1: LABEL="hassos-var" UUID="ded539aa-ec78-4e7a-b9de-a1903de8013c" TYPE="ext4"
/dev/zram2: LABEL="hassos-tmp" UUID="db8a16cd-6edf-43b3-a916-55900f919f8b" TYPE="ext4"
/dev/mmcblk0p2: LABEL="hassos-boot" UUID="2726-FDF4" TYPE="vfat"
/dev/mmcblk0p3: TYPE="squashfs"
/dev/mmcblk0p4: TYPE="squashfs"
/dev/mmcblk0p5: TYPE="squashfs"
/dev/mmcblk0p6: UUID="ac35933b-bffa-4f0b-873e-86c97b9972ae" TYPE="erofs"
/dev/mmcblk0p8: LABEL="hassos-overlay" UUID="18616d1e-4abe-43b9-b2b9-ee593a60727c" TYPE="ext4"
/dev/mmcblk0p9: LABEL="hassos-data" UUID="c7123f74-1df5-4a42-803a-9461fb7b1130" TYPE="ext4"
TimSoethout commented 2 months ago

Any ideas based on the directory listings?