In its context-menu “Resize/Move” and also in “Advanced” the size can’t be changed.
except one partition (unallocated, Type: unknown; Size: 1,00 MB) that could not be deleted, I deleted all partitions;
then I created one partition with 500mb Fat32; then I applied the operations; then the one file (unallocated) disappeared; in Flags I activated boot; then I created a second partition with ext4; then I applied the operations; the creation stopped quickly after 40% (the command was mkfs.ext4 -qF /dev/mmcblk0p2); then I tried to cancel the process, but it was not possible
Yes, it was a long shot. It is probably the same i/o failure.
Since you have nothing to lose, you could repeat with a bigger fat32 size and hope for the best.
Or
you can run some lengthy tests to confirm your worst fears; sudo mkfs.ext4 -c /dev/mmcblk0p2 1G
creates a 1G partition with read bad block test
(takes a long time)
sudo mkfs.ext4 -c -c /dev/mmcblk0p2 1G
creates a 1G partition with read+write bad block test
(takes forever)
Or
You can try ‘oldskool’ fdisk instead
sudo fdisk /dev/mmcblk0
p (prints the table)
d (delete the 2nd partition if it exists)
n (add the 2nd partition if it does not exist)
p (print table again to confirm you have 2 partitions)
w (save your edits)
then format the 2nd partition with sudo mkfs.ext4 /dev/mmcblk0p2
(don’t use -qF)
Thank you for your help. But I didn’t try your last comment because I gave it up. The vendor has accepted that I can give back the computer without Windows. One thing is sure: I will never buy again a computer with eMMC and I will never buy again a computer where Windows is already installed. I got my lesson.
This is the world we live in with cheap parts. There will be faulty parts. This can happen with any computer with or without Windows.
I will say if you would prefer to pay little more and get much better parts / computer go with large name brand that is sold to business. Why ? Because business pay a fee for no cost replacements. Those computer manufactures have LOTS of financial incentive to have much better parts if most of the customers pay a fee for no cost replacement and there are very few replacements! It is just simple economics.