Step3 I get this when I run "sudo mount -t ext4 -o loop system.img system"
mount: system: failed to setup loop device for system.img.
Step3 I get this when I run "sudo mount -t ext4 -o loop system.img system"
I tried fedora linux and it was able to mount f2fsHi, It says system.img is F2FS filesystem. I googled 'how to convert f2fs to ext4' but there was no useful information...
How do you obtain that information?3)--device super: The size of the “super” partition on the device. It must match exactly, and it must be evenly divisible by the sector size (512 bytes).
Why would you even want to do that in the first place? No you can't either. I'm sorry, but that was probably the dumbest question I've read on here for a while.This is for android 10 custom os. Or it will work on all android 10 mobile. Can we modify FRP partition using this.
No you can't. You need to modify the boot image's fstab as fast as I'm concerned.Can I make (super.bin) file readwriteable with this? From (read only to read write). Please reply me!
Android 10
lpmake --metadata-size 65536 --super-name super --metadata-slots 1
--device super:4831838208 --group main:3253381856
--partition system:readonly:1470657484:main --image system=./system1.img
--partition vendor:readonly:446656512:main --image vendor=./vendor1.img
--partition product:readonly:1338654504:main --image product=./product1.img --sparse
--output ./super.new.img
lpmake I 07-12 01:01:38 22864 22864 builder.cpp:1012] [liblp]
Partition system will resize from 0 bytes to 1470660608 bytes
lpmake I 07-12 01:01:38 22864 22864 builder.cpp:1012] [liblp]
Partition vendor will resize from 0 bytes to 446656512 bytes
lpmake E 07-12 01:01:38 22864 22864 builder.cpp:599] [liblp]
Partition product is part of group main which does not have enough space free
(1338654720 requested, 1917317120 used out of 3253381856)
Not enough space on device for partition product with size 1338654504
Hi, I may be a little out of context. I'm trying to flash this system-squeak-arm32_binder64-ab-vndklite-gogapps.img to a Calypso U318AA phone from ATT.system.img is only 682 MiB can't be true. unsparse system.img with simg2img first
$ ls -lh
$ file system-*.img
$ simg2img system-squeak-arm32_binder64-ab-vndklite-gogapps.img system2.img
$ file system2.img
$ ls -l
Hmm here's what i got.unsparse with simg2img first
Code:$ ls -lh $ file system-*.img $ simg2img system-squeak-arm32_binder64-ab-vndklite-gogapps.img system2.img $ file system2.img $ ls -l
RunStep3 I get this when I run "sudo mount -t ext4 -o loop system.img system"
mount: system: failed to setup loop device for system.img.
dmesg
and it will probably give you a slightly better error message.dmesg
(I guess code 4000 refers to the "shared blocks" feature, but I couldn't find anything about this in the e2fsck documentation):EXT4-fs (loop*): couldn't mount RDWR because of unsupported optional features (4000)`.
e2fsck -E unshare_blocks <your .img file or loop device>
and after that you will be able to mount as R/W.mount -o ro
), but then obviously you can't change anything.RunStep3 I get this when I run "sudo mount -t ext4 -o loop system.img system"
mount: system: failed to setup loop device for system.img.
dmesg
and it will probably give you a slightly better error message.dmesg
(I guess code 4000 refers to the "shared blocks" feature, but I couldn't find anything about this in the e2fsck documentation):EXT4-fs (loop*): couldn't mount RDWR because of unsupported optional features (4000)`.
e2fsck -E unshare_blocks <your .img file or loop device>
and after that you will be able to mount as R/W.mount -o ro
), but then obviously you can't change anything.simg2img super.img super.ext4.img
./imjtool.ELF64 super.img extract
sudo ./imjtool.ELF64 super.img extract
./lpunpack super.ext4.img
fallocate -l 2G system.img
resize2fs system.img 2G
mkdir system
sudo mount -t ext4 -o loop system.img system
sudo nautilus
cd ..
sudo umount system
e2fsck -yf system.img
resize2fs -M system.img
e2fsck -yf system.img
stat -c '%n %s' system.img
./lpmake --metadata-size 65536 --super-name super --metadata-slots 1 --device super:4294967296 --group main:3139354624 --partition system:readonly:1434726400:main --image system=./system.img --partition vendor:readonly:330866688:main --image vendor=./vendor.img --partition product:readonly:1373761536:main --image product=./product.img --sparse --output ./super.new.img
fastboot flashing unlock
fastboot flash super super.new.img
Hey dear thank you for the compliment, please tell me more about how did you flash the new image.
hey dear did you flash it by using sp flash tool? did you unlocked the bootloader? did you see orange state warning when the device booted after flashing?
RunStep3 I get this when I run "sudo mount -t ext4 -o loop system.img system"
mount: system: failed to setup loop device for system.img.
dmesg
and it will probably give you a slightly better error message.dmesg
(I guess code 4000 refers to the "shared blocks" feature, but I couldn't find anything about this in the e2fsck documentation):EXT4-fs (loop*): couldn't mount RDWR because of unsupported optional features (4000)`.
e2fsck -E unshare_blocks <your .img file or loop device>
and after that you will be able to mount as R/W.mount -o ro
), but then obviously you can't change anything.