[DEV]System format in updater-script - Huawei Ascend P6, Mate

Just to warn the other ROM creators, if you unmount and format the system partition in the updater-script you will get a bootlop. Delete the system forlder recursively, DON'T TRY TO UNMOUNT, FORMAT AND REMOUNT /system PARTITION

Related

Issue with wiping/factory reset on ext3

I am currently on leedroid and clockwork recovery
i am trying to switch to neophyte cause the apps2sd i just cant sort it out.
when i installed leedroid i did not had ext3
now i used gparded live cd and created fat32 and ext3
i ran this command on terminal
Code:
adb shell ls -l /data
and i did not find a symlink.
now through clockwork recovery i do a full factory reset to install neophyte
i am getting this error
Code:
----wiping data...
Formatting data..
Formatting cache....
Formatting SDEXT...
[COLOR="Red"]E: Cant mount /dev/block/mmcblk0p2
(File Exists)
Error mounting /sd-ext/[/COLOR]
Skipping format...
Formatting Sdcard:.android_Secure...
Data Wipe complete...
Why cant it format ext?
why cant i use apps2sd?
never mind i have sorted it out.
Please delete thread

[Q] Cannot boot by /system on SDCard

I had move the /system partition on sd card, and modified the init file to mount sdcard partition when booting. But it failed and the phone stayed at logo screen.
I create a FAT32 partition and ext4 partitions on sd card with MiniTool partition Wizard, and mount them under /mnt directory.
Then, copy /system partition to sdcard, by cp -a /system /mnt/system.
Finally, I extract the boot partition, modified the init file in ramdisk directory, repack and flash back to internal memory.
The mount info located in init.smdk4x12.rc as mount_all fstab.smdk4x12. So I modify the mount point of /system as sdcard partition.
The phone cannot boot, and stay at logo screen.
However, I use the same method to /cache and /data partitions, it works very well.
So, is there anything wrong with this method for /system partition?
Thanks for your help!!!

[IDEA] Android without SD. S8500

Hello. I can see that Android use Kernel on SD but write NAND Partitions (Data/Cache/System). It is Possible to make fota BOOTING from zImage ,,pushed" into any of this tree partitions, without SD? Not LOOP or Emulated NAND. Three Partitions, NO BADA, No SD. Possible?
ghoslslender124 said:
Hello. I can see that Android use Kernel on SD but write NAND Partitions (Data/Cache/System). It is Possible to make fota BOOTING from zImage ,,pushed" into any of this tree partitions, without SD? Not LOOP or Emulated NAND. Three Partitions, NO BADA, No SD. Possible?
Click to expand...
Click to collapse
FOTA can't read zImage from ext4 partitions as far as i know
We still have no any way to flash zImage(boot.img) as RAW to Onenand via Multiloader, and then need changes to FOTA
 @adfree maybe you know how to flash zImage this way by multiloader? Something like you did with LK_boot for wave3, but we need app_compressed.bin for our FOTA
@volk204
From ext4 NO
but FAT32 like SD YES
Maybe make 4'th partition (FAT32 where we copy zImage) next to data( Now /data /cache and /system ) like /boot or something? 10mb is all what we need, we can cut it from Data (about 1550mb)
ghoslslender124 said:
@volk204
From ext4 NO
but FAT32 like SD YES
Maybe make 4'th partition (FAT32 where we copy zImage) next to data( Now /data /cache and /system ) like /boot or something? 10mb is all what we need, we can cut it from Data (about 1550mb)
Click to expand...
Click to collapse
Yeah, or keep one bada fat16 partition and put /cache on img file on it. Or put /cache and /data in the same ext4 partition.
Problem : path for kernel change depending on partition layout.
ex :
Code:
kernelImage = L"/e/boot_2.img"
for 1st fat partition of SDcard
Code:
kernelImage = L"/g/boot_2.img"
for 2nd fat partition of internal memory
But what is path for 1st fat partition of internal memory ?
Maybe someone want to try all alphabet letters... not me
Maybe someone know how these partition are mounted and labelled...

Unable to format using twrp - Unable to format to remove encryption

Hello everybody. I need Your help.
Last days i tried some ROMs. I have TWRP and before every new upload i FORMAT DATA(Wipe) and of course wipe cache, system
Today when I try to format I have error:
Unable to wipe '/data' -- unknown file system 'auto'
Unable to format to remove encryption
when i typed :
cat /etc/fstab
i got:
/dev/block/mmcblk0p56 /data ext4 rw 0 0
I read some posts of forum and ?solution? to repair is to type this:
make_ext4fs /dev/block/mmcblk0p56
after this i had 0MB Internal Storage and many errors when try to format any data, cache, internal....
So i changed to f2fs and back to ext4 and Internal Storage is OK but still can't format data
Now I can upload ROM but when it starting i have monit "Encryption unsuccessful and interrupted"
PLEASE HELP i can't use my Lenovo :crying:
btw. my linux knowledge is not very well

will formatting /data from TWRP/heimdall recreate sdcard ?

I am trying to install postmarketos on /data partition on Galaxy Tab 3 7.0. I am trying to use /data for installation rather /system as /data is much bigger.
While installing postmarketos, /data will be reformatted. I know /sdcard is a special mount inside /data. If after installing postmarketos I want to come back to AOSP/Lineage, will formatting /data in TWRP or via heimdall recreate /sdcard properly. I am not sure if /sdcard is just a inode/path reference or a particular sector reference inside /data.

Categories

Resources