guys need help how do i overwrite my hw partition? - Moto G4 Questions & Answers

how do i overwrite my hw partition and what is dd ??
i am following this thread
https://forum.xda-developers.com/mo...luss-model-changed-to-g4-lost-t3496912/page10

Related

[Q] Defy Swap Partition

Please can some one who succeeded to enable Swap on defy can explain me how did he did.
I have my sd card partitioned on a normal fat32 partition and a linux swap partition
Im on cm7.2 defy+ nightly 06.5.2012 with the cm9 kernel as a base with walter's 4.5.2_DHT-22_kernel on top.
solution
kHron0S said:
Please can some one who succeeded to enable Swap on defy can explain me how did he did.
I have my sd card partitioned on a normal fat32 partition and a linux swap partition
Im on cm7.2 defy+ nightly 06.5.2012 with the cm9 kernel as a base with walter's 4.5.2_DHT-22_kernel on top.
Click to expand...
Click to collapse
Well last night i just installed this app on my defy mb525 running cm10 2ndboot latest build and quarx kernel and it worked for me just install this app and then open it click on help and you will understand the whole thing! it works for me now i got 1 gb memory
Internal Swap
You can create a swap file inside your /data partition (faster than SD Card) and enable it (I've tested it on my Galaxy 5 but never on my Defy+).
Create the file: (131072/1024=128MiB)
dd if=/dev/zero of=/data/internal_swapfile bs=1024 count=131072
Prepare the file:
mkswap /data/internal_swapfile
Activate swap:
swapon /data/internal_swapfile
rafaelsoaresbr said:
You can create a swap file inside your /data partition (faster than SD Card) and enable it (I've tested it on my Galaxy 5 but never on my Defy+).
Create the file: (131072/1024=128MiB)
dd if=/dev/zero of=/data/internal_swapfile bs=1024 count=131072
Prepare the file:
mkswap /data/internal_swapfile
Activate swap:
swapon /data/internal_swapfile
Click to expand...
Click to collapse
It works! Thanks :laugh: :highfive:
rafaelsoaresbr said:
You can create a swap file inside your /data partition (faster than SD Card) and enable it (I've tested it on my Galaxy 5 but never on my Defy+).
Create the file: (131072/1024=128MiB)
dd if=/dev/zero of=/data/internal_swapfile bs=1024 count=131072
Prepare the file:
mkswap /data/internal_swapfile
Activate swap:
swapon /data/internal_swapfile
Click to expand...
Click to collapse
diamond_lover said:
It works! Thanks :laugh: :highfive:
Click to expand...
Click to collapse
hi mate .. i was just goin trough this post and i am like interested in doing this ... can you help me pliz
i create the file 128mb ... ( can i create a bigger one Example: 256mb or 512 mb ????
and do i need to type those commands in terminal ???
if yes .. then just by typing this command the Rom Just start using the file...
But y do we need a swap file .. please any1 answer me post
Thanks
mRibti
ibtihaaz said:
hi mate .. i was just goin trough this post and i am like interested in doing this ... can you help me pliz
i create the file 128mb ... ( can i create a bigger one Example: 256mb or 512 mb ????
and do i need to type those commands in terminal ???
if yes .. then just by typing this command the Rom Just start using the file...
But y do we need a swap file .. please any1 answer me post
Thanks
mRibti
Click to expand...
Click to collapse
you can set any size just replace the count with the amount of swap you want (for 256Mb it would be 256*1024=262144)
however,
i'm no expert but i would seriously consider using data partition for swap as i don't think it's suitable for continous reading and writing which can decrease your internal memory's lifetime. i'd choose to create swap partition on sdcard if it's class is good enough rather than using internal memory as the sdcards can be easily replaced contrarary to nand memory.

Data recovery internal storage - how to create image with dd of /storage/emulate/0

Hello!
Unfortunately I have deleted internal storage in TWRP recovery.
Now I want to try to restore the files using Testdisk / Photorec.
The directory of interest is: /storage/emulated/0/DCIM
Is this directory located on a specific partition?
If yes, which partition?
And can I create an image of this partition with dd?

Need hw partition image for xt1626

My device get hw partition corrupted and now my sims not working, are recognized but not signal. And the only way is restoring hw partiton from a working phone.
PLease can someone with rooted device sent me this file? Is only 8mb.
which file do you need? is it not the gpt.bin file in the stock files?

Can someone please lend me a give me a backup of their efs/pds partition

I accidentally flashed the wrong stock firmware, wiping my EFS/PDS/persist partition, which means that my IMEI and WiFi are wiped. Can someone please give me a backup of theirs to modify and restore?
Yes, I have tried flashing the correct stock firmware.
My device is the XT1926-7 (RETLA), although any other pds partition from other dual sim model might work.
Also, just having the file structure and the files of the /persist folder would help.
/pds = /persist (symlink)
You can't restore your IMEI with a backup of another persist partition. You need your own persist. Read this:
https://forum.xda-developers.com/g5-plus/how-to/fix-persist-resolve-imei0-explanation-t3825147
https://forum.xda-developers.com/g5-plus/how-to/dev-fixing-baseband-t3806064
Although it's for Moto g5 these threads can give you detailed information about your issue. The file structure is the same for both.

How big is the persist partition?

I've done a dd of my persist partition in TWRP and backed it up off of the phone. It came out at 64mb. Is this the correct size?
nikc0069 said:
I've done a dd of my persist partition in TWRP and backed it up off of the phone. It came out at 64mb. Is this the correct size?
Click to expand...
Click to collapse
Yes.

Categories

Resources