Userdata flash failed [answered]
Hello everyone,
I am trying to flash Sailfish OS on a Sony Xperia 10 dual sim that previously had Lineage OS running. I followed the tutorial with the exception that the driver Sony sa0114 wouldn't be updated and shows up as Android device bootloader instead. But fastboot is running fine anyway.
The flash of the userdata via fastboot fails (see output below). I assume that the phone doesn't have enough storage left. Am I right and if yes how can I safely remedy this? Note that I have to replug the phone in order to get fastboot running again.
D:\CloudStation\SonyCustomROM\Sailfish_OS-Jolla-3.3.0.16-i4113-0.0.4.6>fastboot.exe -s CQ30022HSH flash userdata sailfish.img001
Sending sparse 'userdata' 1/3 (523679 KB) OKAY [ 11.673s]
Writing 'userdata' OKAY [ 0.000s]
Sending sparse 'userdata' 2/3 (523507 KB) OKAY [ 12.062s]
Writing 'userdata' OKAY [ 0.000s]
Sending sparse 'userdata' 3/3 (333601 KB) FAILED (Error reading sparse file)
fastboot: error: Command failed
ERROR: Failed to execute 'fastboot.exe -s CQ30022HSH flash userdata sailfish.img001'.
FLASHING FAILED
Please go to https://together.jolla.com/ and ask for guidance.
EDIT: Editing the package size with an additional -S option seemed to do the trick. I flashed the remaining partitions manually similarly to the command below
fastboot flash -s CQ30022HSH -S 256M userdata .\sailfish.img001
I am not an expert, but it doesn't seems like an issue with phone storage. Plus, why would it be, if you're flashing it new, whatever's on it should be wiped... Also, the error mentions a problem reading the file, not writing it. Maybe just try to reboot computer and try again... Fastboot can be finicky sometimes. I have heard about things like ``
Levone1 ( 2020-05-02 13:52:20 +0200 )editfastboot flash –S 256M userdata...
but that seems like it addresses the writing of the info also, so not sure if it would apply here...Wow, thanks a lot! The 256M package size seems to have done the trick! No idea why it struggles with the default though.
doudoune ( 2020-05-02 15:39:52 +0200 )edit