pimpimmi / LibreAlarm

https://plus.google.com/communities/118306966582165178782
GNU General Public License v3.0
52 stars 48 forks source link

NFC enabling: problem and suggestion #38

Open th122 opened 6 years ago

th122 commented 6 years ago

reformatting the userdata partition failed:

fastboot format userdata
Creating filesystem with parameters:
    Size: 2873864192
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 7984
    Inode size: 256
    Journal blocks: 10962
    Label: 
    Blocks: 701627
    Block groups: 22
    Reserved block group size: 175
Created filesystem with 11/175648 inodes and 23049/701627 blocks
error: file_write: write: No space left on device
target reported max download size of 425721856 bytes
erasing 'userdata'...
OKAY [  9.258s]
sending 'userdata' (42088 KB)...
OKAY [  1.861s]
writing 'userdata'...
FAILED (remote: unknown chunk type in sparse image)
finished.

The error message No space left on device makes me wonder if the available space for the partition might actually be smaller than it used to be - maybe due to remapped/defective blocks?

Currently it looks as if (due to the defective/missing /data partition), the watch doesn't boot up completely.

To give others who are experiencing problems prior to reflashing, It might help to add an optional step after unlocking the bootloader, suggesting to reboot and enable/allow usb debugging. Also, it probably isn't necessary to reformat the partitions, wiping them should be sufficient?

After recovery (following the second procedure described here, the partition seems to be there:

1|shell@tetra:/ $ df
Filesystem               Size     Used     Free   Blksize
/dev                   224.9M    24.0K   224.9M   4096
/sys/fs/cgroup         224.9M    12.0K   224.9M   4096
/mnt                   224.9M     0.0K   224.9M   4096
/system                495.9M   483.2M    12.8M   4096
/cache                 348.7M   204.0K   348.5M   4096
/data                    2.6G    27.4M     2.6G   4096
/storage               224.9M     0.0K   224.9M   4096
/mnt/runtime/default/emulated: Permission denied
/storage/emulated        2.6G    27.4M     2.6G   4096
/mnt/runtime/read/emulated: Permission denied
/mnt/runtime/write/emulated: Permission denied