[Tutorial] Full Flash Backup And Restore

Search This thread

tranthnhdat

New member
Nov 21, 2018
4
1
This tutorial shows how to make a full backup of the phone flash and how to restore it. Codes fit LG G8 which with some minor modifications they can be used for any other Qualcomm based devices. If you provide me the "PartitionsList.xml" of other SDM855 devices maybe I'll modify codes for them too.

Be aware I'm not responsible if the phone gets harmed or backups get corrupted or harmful or any other jinx happens to the phone. You can just use the manual way to create backup, with the help of "partition manager".

Note 1: Phone must be in EDL mode. This is up to you to figure that out and get the phone into EDL mode. There are information in type of tubes and posts that tell how to do this.
Note 2: We can make backup of individual partitions or LUNs. In the process of restoring backup, the former can prove more efficient and I'd prepare such codes if OP partition didn't vary from one carrier/KDZ to another. So, thinking of a universal method, it will be concluded in making backup of LUNs. Since, some partitions are vital I prepared additional codes to create backup of them.
Note 3: There are 7 LUNs numbered from 0 to 6. The last LUN keeps FRP data and so is hidden; Qfil does not show any of this LUN. Be careful with that :D. There are some alignments and 4 other hidden partitions that are not shown in "partition manager". DevInfo and Limits in LUN4 whereas DDR and CDT in LUN3 are hidden. LUN3 itself is also completely hidden like LUN6. Anyway, in partition manager you can see what other LUNs are keeping. The provided codes make backup of all alignments and hidden partitions too.
Note 4: User data partition is not getting backed up due to the large size and yet not being necessary.
Note 5: The partition on the computer where QPST is installed should have at least 25GB free space.


Requisites
QPST and Qualcomm USB Driver (get)
LGE SM8150 Firehose (get)


Preparation
1. Install QPST and Qualcomm USB Driver.


Steps A
1. Open QFIL.
2. Change "Storage Type" to UFS.
3. Select "Flat Build".
4. Browse for "LGE SM8150 Firehose" and pick it.
5. Now, connect the phone to PC and boot into EDL mode.
6. Open "Select Port" and select the phone, press OK.
7. In "Tools" open the "Partition Manager". Keep the "Partition Manager" for the entire process.

Note 6: To dump partitions we use fh_loader which requires the "partition manager" to be opened so do not close it until after all get done, otherwise the phone may become bricked.
Note 7: In the following codes you need to add the port number of the phone right after "fh_loader.exe --port=\\.\COM". If yours is 3 then it should become "fh_loader.exe --port=\\.\COM3"

Steps B (Using fh_loader)
1. Go to QPST installation folder then go to bin folder.
2. Open CMD there.
3. In "partition manager" hit on "save partition file".
4. Go to "C:\Users\YOUR_USER_NAME\AppData\Roaming\Qualcomm\QFIL".
5. Open file named "COM#_PartitionsList.xml". (# is your phone port number)
6. Find the phrase "userdata" using search tool.
7. In this line, find "start_sector". There is a number in front of it, subtract 1 from this number and put it in place of "???????" in the code for LUN0.
For example: In VRZ a10, we see the number in front of "userdata" is 5285640 which we subtract 1 from it. The result will be 5285639 which we use in place of "???????" in LUN0 Code.
8. Put the following codes in CMD (make sure your phone's port number is added to codes).

Creating LUNs Backup
LUN 0
fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN0_Complete.bin --start_sector=0 --lun=0 --num_sectors=??????? --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

LUN1
fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN1_Complete.bin --start_sector=0 --lun=1 --num_sectors=2048 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

LUN2
fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN2_Complete.bin --start_sector=0 --lun=2 --num_sectors=2048 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

LUN3
fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN3_Complete.bin --start_sector=0 --lun=3 --num_sectors=2048 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

LUN4
fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN4_Complete.bin --start_sector=0 --lun=4 --num_sectors=383995 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

LUN5
fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN5_Complete.bin --start_sector=0 --lun=5 --num_sectors=3072 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

LUN6
fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN6_Complete.bin --start_sector=0 --lun=6 --num_sectors=1024 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

Note 8: Restoration process is the same as the making backup process, in preparation and all other stuff. All backup files should be placed in bin folder of QPST installation folder before running codes.

Restoring LUNs Backup
LUN0
fh_loader.exe --port=\\.\COM --sendimage=LUN0_Complete.bin --start_sector=0 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

LUN1
fh_loader.exe --port=\\.\COM --sendimage=LUN1_Complete.bin --start_sector=0 --lun=1 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

LUN2
fh_loader.exe --port=\\.\COM --sendimage=LUN2_Complete.bin --start_sector=0 --lun=2 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

LUN3
fh_loader.exe --port=\\.\COM --sendimage=LUN3_Complete.bin --start_sector=0 --lun=3 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

LUN4
fh_loader.exe --port=\\.\COM --sendimage=LUN4_Complete.bin --start_sector=0 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

LUN5
fh_loader.exe --port=\\.\COM --sendimage=LUN5_Complete.bin --start_sector=0 --lun=5 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

LUN6
fh_loader.exe --port=\\.\COM --sendimage=LUN6_Complete.bin --start_sector=0 --lun=6 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

Creating Backup of Vital Partitions (FTM, Modemst1, Modemst2, FSG, FSC)
FTM
fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=ftm.bin --start_sector=23816 --lun=0 --num_sectors=8192 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

Modemst1
fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=modemst1.bin --start_sector=32 --lun=5 --num_sectors=512 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

Modemst2
fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=modemst2.bin --start_sector=544 --lun=5 --num_sectors=512 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

FSG
fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=fsg.bin --start_sector=1056 --lun=5 --num_sectors=512 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

FSC
fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=fsc.bin --start_sector=1568 --lun=5 --num_sectors=32 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

Restoring Partitions
FTM
fh_loader.exe --port=\\.\COM --sendimage=ftm.bin --start_sector=23816 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

Modemst1
fh_loader.exe --port=\\.\COM --sendimage=modemst1.bin --start_sector=32 --lun=5 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

Modemst2
fh_loader.exe --port=\\.\COM --sendimage=modemst2.bin --start_sector=544 --lun=5 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

FSG
fh_loader.exe --port=\\.\COM --sendimage=fsg.bin --start_sector=1056 --lun=5 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

FSC
fh_loader.exe --port=\\.\COM --sendimage=fsc.bin --start_sector=1568 --lun=5 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

Note 9: Where are the backup files stored? QPST installation folder/bin.
Note10: Can I restore my phone's backup to my friend's phone? Yes, but do not expect it to cure IMEI problems of the second phone.


And, that's it =)
I'll see you around ;)
please give me a video tutotiol
 

mycom

Member
Jan 3, 2015
18
0
Ho Chi Minh City
I do not have the requirements to make video.
@netmsm hi bro, i have just made a backup of LG v60 (L51a) on A12 from LUN 0 to LUN 6.after that i restored a backup that made on A11 before (LUN 0 to LUN 5, LUN 6 was not backup) but i can not bootup (was stucked at LG V60 Thinq logos.finally, i have restored backup of A12 (LUN 0 to LUN 6), what a surprise, it was booted and did not any error (like NT code,..).so, on A11 LUN 6 maybe need i think.Finally, can you show me how to fix bootloop on A11 ?thanks bro.
 
Last edited:

netmsm

Senior Member
Oct 3, 2010
559
265
Esfahan
LG V30
@netmsm hi bro, i have just made a backup of LG v60 (L51a) on A12 from LUN 0 to LUN 6.after that i restored a backup that made on A11 before (LUN 0 to LUN 5, LUN 6 was not backup) but i can not bootup (was stucked at LG V60 Thinq logos.finally, i have restored backup of A12 (LUN 0 to LUN 6), what a surprise, it was booted and did not any error (like NT code,..).so, on A11 LUN 6 maybe need i think.Finally, can you show me how to fix bootloop on A11 ?thanks bro.
Hi =)
Flash it to A11 then restore A11 backup.
 

netmsm

Senior Member
Oct 3, 2010
559
265
Esfahan
LG V30
just done ! bro...it's still also..but userdata in internal storage will not backup ? bro
I didn't get that. Flashed it to A11 and still no chance?
We do not make backup of user data partition.
Restore the attached file into LUN6 and see if it is working.

P.S
If it's still not working try the attached FTM.
 

Attachments

  • 4mb.bin
    4 MB · Views: 5
  • ftm.zip
    32.5 KB · Views: 4
  • Like
Reactions: mycom

korzh_kv

New member
Jun 22, 2023
1
0
Note 7: In the following codes you need to add the port number of the phone right after "fh_loader.exe --port=\\.\COM". If yours is 3 then it should become "fh_loader.exe --port=\\.\COM3"
Hello. I don't understand where to write "fh_loader.exe --port=\\.\COM16" when following note 7. Do I need to find the saved codes in the QFIL files and write them somewhere?
 
Feb 11, 2023
10
1
🐐🐐🐐

lol I was about to PM you for this actually.
Thank you.

I will successfull rstore to android 10,i restored lun5 and ftm with my backup, but you now the finger print sensor its not work?do you know how fix it,

thanks for your help
Try the solution mentioned here
 

King2230

New member
Jun 25, 2023
3
0
This tutorial shows how to make a full backup of the phone flash and how to restore it. Codes fit LG G8 which with some minor modifications they can be used for any other Qualcomm based devices. If you provide me the "PartitionsList.xml" of other SDM855 devices maybe I'll modify codes for them too.

Be aware I'm not responsible if the phone gets harmed or backups get corrupted or harmful or any other jinx happens to the phone. You can just use the manual way to create backup, with the help of "partition manager".

Note 1: Phone must be in EDL mode. This is up to you to figure that out and get the phone into EDL mode. There are information in type of tubes and posts that tell how to do this.
Note 2: We can make backup of individual partitions or LUNs. In the process of restoring backup, the former can prove more efficient and I'd prepare such codes if OP partition didn't vary from one carrier/KDZ to another. So, thinking of a universal method, it will be concluded in making backup of LUNs. Since, some partitions are vital I prepared additional codes to create backup of them.
Note 3: There are 7 LUNs numbered from 0 to 6. The last LUN keeps FRP data and so is hidden; Qfil does not show any of this LUN. Be careful with that :D. There are some alignments and 4 other hidden partitions that are not shown in "partition manager". DevInfo and Limits in LUN4 whereas DDR and CDT in LUN3 are hidden. LUN3 itself is also completely hidden like LUN6. Anyway, in partition manager you can see what other LUNs are keeping. The provided codes make backup of all alignments and hidden partitions too.
Note 4: User data partition is not getting backed up due to the large size and yet not being necessary.
Note 5: The partition on the computer where QPST is installed should have at least 25GB free space.


Requisites
QPST and Qualcomm USB Driver (get)
LGE SM8150 Firehose (get)


Preparation
1. Install QPST and Qualcomm USB Driver.


Steps A
1. Open QFIL.
2. Change "Storage Type" to UFS.
3. Select "Flat Build".
4. Browse for "LGE SM8150 Firehose" and pick it.
5. Now, connect the phone to PC and boot into EDL mode.
6. Open "Select Port" and select the phone, press OK.
7. In "Tools" open the "Partition Manager". Keep the "Partition Manager" for the entire process.

Note 6: To dump partitions we use fh_loader which requires the "partition manager" to be opened so do not close it until after all get done, otherwise the phone may become bricked.
Note 7: In the following codes you need to add the port number of the phone right after "fh_loader.exe --port=\\.\COM". If yours is 3 then it should become "fh_loader.exe --port=\\.\COM3"

Steps B (Using fh_loader)
1. Go to QPST installation folder then go to bin folder.
2. Open CMD there.
3. In "partition manager" hit on "save partition file".
4. Go to "C:\Users\YOUR_USER_NAME\AppData\Roaming\Qualcomm\QFIL".
5. Open file named "COM#_PartitionsList.xml". (# is your phone port number)
6. Find the phrase "userdata" using search tool.
7. In this line, find "start_sector". There is a number in front of it, subtract 1 from this number and put it in place of "???????" in the code for LUN0.
For example: In VRZ a10, we see the number in front of "userdata" is 5285640 which we subtract 1 from it. The result will be 5285639 which we use in place of "???????" in LUN0 Code.
8. Put the following codes in CMD (make sure your phone's port number is added to codes).

Creating LUNs Backup
LUN 0
fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN0_Complete.bin --start_sector=0 --lun=0 --num_sectors=??????? --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

LUN1
fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN1_Complete.bin --start_sector=0 --lun=1 --num_sectors=2048 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

LUN2
fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN2_Complete.bin --start_sector=0 --lun=2 --num_sectors=2048 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

LUN3
fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN3_Complete.bin --start_sector=0 --lun=3 --num_sectors=2048 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

LUN4
fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN4_Complete.bin --start_sector=0 --lun=4 --num_sectors=383995 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

LUN5
fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN5_Complete.bin --start_sector=0 --lun=5 --num_sectors=3072 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

LUN6
fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN6_Complete.bin --start_sector=0 --lun=6 --num_sectors=1024 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

Note 8: Restoration process is the same as the making backup process, in preparation and all other stuff. All backup files should be placed in bin folder of QPST installation folder before running codes.

Restoring LUNs Backup
LUN0
fh_loader.exe --port=\\.\COM --sendimage=LUN0_Complete.bin --start_sector=0 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

LUN1
fh_loader.exe --port=\\.\COM --sendimage=LUN1_Complete.bin --start_sector=0 --lun=1 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

LUN2
fh_loader.exe --port=\\.\COM --sendimage=LUN2_Complete.bin --start_sector=0 --lun=2 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

LUN3
fh_loader.exe --port=\\.\COM --sendimage=LUN3_Complete.bin --start_sector=0 --lun=3 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

LUN4
fh_loader.exe --port=\\.\COM --sendimage=LUN4_Complete.bin --start_sector=0 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

LUN5
fh_loader.exe --port=\\.\COM --sendimage=LUN5_Complete.bin --start_sector=0 --lun=5 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

LUN6
fh_loader.exe --port=\\.\COM --sendimage=LUN6_Complete.bin --start_sector=0 --lun=6 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

Creating Backup of Vital Partitions (FTM, Modemst1, Modemst2, FSG, FSC)
FTM
fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=ftm.bin --start_sector=23816 --lun=0 --num_sectors=8192 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

Modemst1
fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=modemst1.bin --start_sector=32 --lun=5 --num_sectors=512 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

Modemst2
fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=modemst2.bin --start_sector=544 --lun=5 --num_sectors=512 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

FSG
fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=fsg.bin --start_sector=1056 --lun=5 --num_sectors=512 --noprompt --showpercentagecomplete --zlpawarehost=1 -- nombre de memoria = ufs

FSC
fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=fsc.bin --start_sector=1568 --lun=5 --num_sectors=32 --noprompt --showpercentagecomplete --zlpawarehost=1 -- nombre de memoria = ufs
[/REVELACIÓN]

Restauración de particiones
[REVELACIÓN]
FTM
fh_loader.exe --port=\\.\COM --sendimage=ftm.bin --start_sector=23816 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

módem1
fh_loader.exe --port=\\.\COM --sendimage=modemst1.bin --start_sector=32 --lun=5 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

módem2
fh_loader.exe --port=\\.\COM --sendimage=modemst2.bin --start_sector=544 --lun=5 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

FSG
fh_loader.exe --port=\\.\COM --sendimage=fsg.bin --start_sector=1056 --lun=5 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

FSC
fh_loader.exe --port=\\.\COM --sendimage=fsc.bin --start_sector=1568 --lun=5 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs
[/REVELACIÓN]

Nota 9 : ¿Dónde se almacenan los archivos de copia de seguridad? Carpeta/bin de instalación de QPST.
Nota 10 : ¿Puedo restaurar la copia de seguridad de mi teléfono en el teléfono de mi amigo? Sí, pero no esperes que solucione los problemas de IMEI del segundo teléfono.


Y eso es todo =)
I te veré por ahí;)
ame a parece un error cuando habro el terminal, como lo arregglo
 

Attachments

  • Captura de pantalla (5).png
    Captura de pantalla (5).png
    185.2 KB · Views: 22

Bronnel

Senior Member
Nov 14, 2015
323
110
Iraq
How to backup LUN3 and LUN6 individual bin files? is there a way?

Update:
it can be enabled in firehose preferences
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 19
    This tutorial shows how to make a full backup of the phone flash and how to restore it. Codes fit LG G8 which with some minor modifications they can be used for any other Qualcomm based devices. If you provide me the "PartitionsList.xml" of other SDM855 devices maybe I'll modify codes for them too.

    Be aware I'm not responsible if the phone gets harmed or backups get corrupted or harmful or any other jinx happens to the phone. You can just use the manual way to create backup, with the help of "partition manager".

    Note 1: Phone must be in EDL mode. This is up to you to figure that out and get the phone into EDL mode. There are information in type of tubes and posts that tell how to do this.
    Note 2: We can make backup of individual partitions or LUNs. In the process of restoring backup, the former can prove more efficient and I'd prepare such codes if OP partition didn't vary from one carrier/KDZ to another. So, thinking of a universal method, it will be concluded in making backup of LUNs. Since, some partitions are vital I prepared additional codes to create backup of them.
    Note 3: There are 7 LUNs numbered from 0 to 6. The last LUN keeps FRP data and so is hidden; Qfil does not show any of this LUN. Be careful with that :D. There are some alignments and 4 other hidden partitions that are not shown in "partition manager". DevInfo and Limits in LUN4 whereas DDR and CDT in LUN3 are hidden. LUN3 itself is also completely hidden like LUN6. Anyway, in partition manager you can see what other LUNs are keeping. The provided codes make backup of all alignments and hidden partitions too.
    Note 4: User data partition is not getting backed up due to the large size and yet not being necessary.
    Note 5: The partition on the computer where QPST is installed should have at least 25GB free space.


    Requisites
    QPST and Qualcomm USB Driver (get)
    LGE SM8150 Firehose (get)


    Preparation
    1. Install QPST and Qualcomm USB Driver.


    Steps A
    1. Open QFIL.
    2. Change "Storage Type" to UFS.
    3. Select "Flat Build".
    4. Browse for "LGE SM8150 Firehose" and pick it.
    5. Now, connect the phone to PC and boot into EDL mode.
    6. Open "Select Port" and select the phone, press OK.
    7. In "Tools" open the "Partition Manager". Keep the "Partition Manager" for the entire process.

    Note 6: To dump partitions we use fh_loader which requires the "partition manager" to be opened so do not close it until after all get done, otherwise the phone may become bricked.
    Note 7: In the following codes you need to add the port number of the phone right after "fh_loader.exe --port=\\.\COM". If yours is 3 then it should become "fh_loader.exe --port=\\.\COM3"

    Steps B (Using fh_loader)
    1. Go to QPST installation folder then go to bin folder.
    2. Open CMD there.
    3. In "partition manager" hit on "save partition file".
    4. Go to "C:\Users\YOUR_USER_NAME\AppData\Roaming\Qualcomm\QFIL".
    5. Open file named "COM#_PartitionsList.xml". (# is your phone port number)
    6. Find the phrase "userdata" using search tool.
    7. In this line, find "start_sector". There is a number in front of it, subtract 1 from this number and put it in place of "???????" in the code for LUN0.
    For example: In VRZ a10, we see the number in front of "userdata" is 5285640 which we subtract 1 from it. The result will be 5285639 which we use in place of "???????" in LUN0 Code.
    8. Put the following codes in CMD (make sure your phone's port number is added to codes).

    Creating LUNs Backup
    LUN 0
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN0_Complete.bin --start_sector=0 --lun=0 --num_sectors=??????? --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN1
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN1_Complete.bin --start_sector=0 --lun=1 --num_sectors=2048 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN2
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN2_Complete.bin --start_sector=0 --lun=2 --num_sectors=2048 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN3
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN3_Complete.bin --start_sector=0 --lun=3 --num_sectors=2048 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN4
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN4_Complete.bin --start_sector=0 --lun=4 --num_sectors=383995 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN5
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN5_Complete.bin --start_sector=0 --lun=5 --num_sectors=3072 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN6
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN6_Complete.bin --start_sector=0 --lun=6 --num_sectors=1024 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    Note 8: Restoration process is the same as the making backup process, in preparation and all other stuff. All backup files should be placed in bin folder of QPST installation folder before running codes.

    Restoring LUNs Backup
    LUN0
    fh_loader.exe --port=\\.\COM --sendimage=LUN0_Complete.bin --start_sector=0 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN1
    fh_loader.exe --port=\\.\COM --sendimage=LUN1_Complete.bin --start_sector=0 --lun=1 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN2
    fh_loader.exe --port=\\.\COM --sendimage=LUN2_Complete.bin --start_sector=0 --lun=2 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN3
    fh_loader.exe --port=\\.\COM --sendimage=LUN3_Complete.bin --start_sector=0 --lun=3 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN4
    fh_loader.exe --port=\\.\COM --sendimage=LUN4_Complete.bin --start_sector=0 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN5
    fh_loader.exe --port=\\.\COM --sendimage=LUN5_Complete.bin --start_sector=0 --lun=5 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN6
    fh_loader.exe --port=\\.\COM --sendimage=LUN6_Complete.bin --start_sector=0 --lun=6 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    Creating Backup of Vital Partitions (FTM, Modemst1, Modemst2, FSG, FSC)
    FTM
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=ftm.bin --start_sector=23816 --lun=0 --num_sectors=8192 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    Modemst1
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=modemst1.bin --start_sector=32 --lun=5 --num_sectors=512 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    Modemst2
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=modemst2.bin --start_sector=544 --lun=5 --num_sectors=512 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    FSG
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=fsg.bin --start_sector=1056 --lun=5 --num_sectors=512 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    FSC
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=fsc.bin --start_sector=1568 --lun=5 --num_sectors=32 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    Restoring Partitions
    FTM
    fh_loader.exe --port=\\.\COM --sendimage=ftm.bin --start_sector=23816 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    Modemst1
    fh_loader.exe --port=\\.\COM --sendimage=modemst1.bin --start_sector=32 --lun=5 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    Modemst2
    fh_loader.exe --port=\\.\COM --sendimage=modemst2.bin --start_sector=544 --lun=5 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    FSG
    fh_loader.exe --port=\\.\COM --sendimage=fsg.bin --start_sector=1056 --lun=5 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    FSC
    fh_loader.exe --port=\\.\COM --sendimage=fsc.bin --start_sector=1568 --lun=5 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    Note 9: Where are the backup files stored? QPST installation folder/bin.
    Note10: Can I restore my phone's backup to my friend's phone? Yes, but do not expect it to cure IMEI problems of the second phone.


    And, that's it =)
    I'll see you around ;)
    5
    Use the following codes to create backup of LG V60. You need more than 60GB of free space on the drive Qfil is installed.
    LUN0
    fh_loader.exe --port=\\.\COM8 --convertprogram2read --sendimage=LUN0_Complete.bin --start_sector=0 --lun=0 --num_sectors=5910055 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN1
    fh_loader.exe --port=\\.\COM8 --convertprogram2read --sendimage=LUN1_Complete.bin --start_sector=0 --lun=1 --num_sectors=2048 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN2
    fh_loader.exe --port=\\.\COM8 --convertprogram2read --sendimage=LUN2_Complete.bin --start_sector=0 --lun=2 --num_sectors=2048 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN3
    fh_loader.exe --port=\\.\COM8 --convertprogram2read --sendimage=LUN3_Complete.bin --start_sector=0 --lun=3 --num_sectors=2048 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN4
    fh_loader.exe --port=\\.\COM8 --convertprogram2read --sendimage=LUN4_Complete.bin --start_sector=0 --lun=4 --num_sectors=383995 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN5
    fh_loader.exe --port=\\.\COM8 --convertprogram2read --sendimage=LUN5_Complete.bin --start_sector=0 --lun=5 --num_sectors=4096 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs
    4
    I wrote a small console app, based on your guide.
    QFIL Helper v1.0.0.61

    In its current state It’s capable of:
    • Making a fully automated backup of all visible partitions
    • Looking for hidden partitions (still in testing stages)
    • Making automated LUN backup for LUNs: 0,1,2,4,5
    • Making manual LUN backup for LUNs: 3 and 6
    I left the backup of LUN #3 and LUN #6 in the capable hands of the user, since there’s no way for me to calculate the exact sizes of those partitions based on the PartitionsList.xml alone, and because they’d probably differ for every Android version and phone model.

    The app was tested with:
    • Android 9 / LG v50 (V450PM Sprint)
    • Qualcomm USB Driver v1.00.37
    • QPST v2.7.496
    I haven't upgraded my phone yet, so I can't guarantee that this app will work with Android 10 or above.
    2
    For the V60 I was pulling the same under the XML file.I've always used this under userdata,and the backups always work 100% for LUNS 0.This was pulled from an AT&T variant, and it starts at 5924904 and of course subtract 1?
    Subtract 1 from "start_sector" of the "user data" partition when creating a backup of LUN0 excluding the "user data" partition.
    2
    This tutorial shows how to make a full backup of the phone flash and how to restore it. Codes fit LG G8 which with some minor modifications they can be used for any other Qualcomm based devices. If you provide me the "PartitionsList.xml" of other SDM855 devices maybe I'll modify codes for them too.

    Be aware I'm not responsible if the phone gets harmed or backups get corrupted or harmful or any other jinx happens to the phone. You can just use the manual way to create backup, with the help of "partition manager".

    Note 1: Phone must be in EDL mode. This is up to you to figure that out and get the phone into EDL mode. There are information in type of tubes and posts that tell how to do this.
    Note 2: We can make backup of individual partitions or LUNs. In the process of restoring backup, the former can prove more efficient and I'd prepare such codes if OP partition didn't vary from one carrier/KDZ to another. So, thinking of a universal method, it will be concluded in making backup of LUNs. Since, some partitions are vital I prepared additional codes to create backup of them.
    Note 3: There are 7 LUNs numbered from 0 to 6. The last LUN keeps FRP data and so is hidden; Qfil does not show any of this LUN. Be careful with that :D. There are some alignments and 4 other hidden partitions that are not shown in "partition manager". DevInfo and Limits in LUN4 whereas DDR and CDT in LUN3 are hidden. LUN3 itself is also completely hidden like LUN6. Anyway, in partition manager you can see what other LUNs are keeping. The provided codes make backup of all alignments and hidden partitions too.
    Note 4: User data partition is not getting backed up due to the large size and yet not being necessary.
    Note 5: The partition on the computer where QPST is installed should have at least 25GB free space.


    Requisites
    QPST and Qualcomm USB Driver (get)
    LGE SM8150 Firehose (get)


    Preparation
    1. Install QPST and Qualcomm USB Driver.


    Steps A
    1. Open QFIL.
    2. Change "Storage Type" to UFS.
    3. Select "Flat Build".
    4. Browse for "LGE SM8150 Firehose" and pick it.
    5. Now, connect the phone to PC and boot into EDL mode.
    6. Open "Select Port" and select the phone, press OK.
    7. In "Tools" open the "Partition Manager". Keep the "Partition Manager" for the entire process.

    Note 6: To dump partitions we use fh_loader which requires the "partition manager" to be opened so do not close it until after all get done, otherwise the phone may become bricked.
    Note 7: In the following codes you need to add the port number of the phone right after "fh_loader.exe --port=\\.\COM". If yours is 3 then it should become "fh_loader.exe --port=\\.\COM3"

    Steps B (Using fh_loader)
    1. Go to QPST installation folder then go to bin folder.
    2. Open CMD there.
    3. In "partition manager" hit on "save partition file".
    4. Go to "C:\Users\YOUR_USER_NAME\AppData\Roaming\Qualcomm\QFIL".
    5. Open file named "COM#_PartitionsList.xml". (# is your phone port number)
    6. Find the phrase "userdata" using search tool.
    7. In this line, find "start_sector". There is a number in front of it, subtract 1 from this number and put it in place of "???????" in the code for LUN0.
    For example: In VRZ a10, we see the number in front of "userdata" is 5285640 which we subtract 1 from it. The result will be 5285639 which we use in place of "???????" in LUN0 Code.
    8. Put the following codes in CMD (make sure your phone's port number is added to codes).

    Creating LUNs Backup
    LUN 0
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN0_Complete.bin --start_sector=0 --lun=0 --num_sectors=??????? --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN1
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN1_Complete.bin --start_sector=0 --lun=1 --num_sectors=2048 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN2
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN2_Complete.bin --start_sector=0 --lun=2 --num_sectors=2048 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN3
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN3_Complete.bin --start_sector=0 --lun=3 --num_sectors=2048 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN4
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN4_Complete.bin --start_sector=0 --lun=4 --num_sectors=383995 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN5
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN5_Complete.bin --start_sector=0 --lun=5 --num_sectors=3072 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN6
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN6_Complete.bin --start_sector=0 --lun=6 --num_sectors=1024 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    Note 8: Restoration process is the same as the making backup process, in preparation and all other stuff. All backup files should be placed in bin folder of QPST installation folder before running codes.

    Restoring LUNs Backup
    LUN0
    fh_loader.exe --port=\\.\COM --sendimage=LUN0_Complete.bin --start_sector=0 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN1
    fh_loader.exe --port=\\.\COM --sendimage=LUN1_Complete.bin --start_sector=0 --lun=1 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN2
    fh_loader.exe --port=\\.\COM --sendimage=LUN2_Complete.bin --start_sector=0 --lun=2 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN3
    fh_loader.exe --port=\\.\COM --sendimage=LUN3_Complete.bin --start_sector=0 --lun=3 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN4
    fh_loader.exe --port=\\.\COM --sendimage=LUN4_Complete.bin --start_sector=0 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN5
    fh_loader.exe --port=\\.\COM --sendimage=LUN5_Complete.bin --start_sector=0 --lun=5 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN6
    fh_loader.exe --port=\\.\COM --sendimage=LUN6_Complete.bin --start_sector=0 --lun=6 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    Creating Backup of Vital Partitions (FTM, Modemst1, Modemst2, FSG, FSC)
    FTM
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=ftm.bin --start_sector=23816 --lun=0 --num_sectors=8192 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    Modemst1
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=modemst1.bin --start_sector=32 --lun=5 --num_sectors=512 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    Modemst2
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=modemst2.bin --start_sector=544 --lun=5 --num_sectors=512 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    FSG
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=fsg.bin --start_sector=1056 --lun=5 --num_sectors=512 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    FSC
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=fsc.bin --start_sector=1568 --lun=5 --num_sectors=32 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    Restoring Partitions
    FTM
    fh_loader.exe --port=\\.\COM --sendimage=ftm.bin --start_sector=23816 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    Modemst1
    fh_loader.exe --port=\\.\COM --sendimage=modemst1.bin --start_sector=32 --lun=5 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    Modemst2
    fh_loader.exe --port=\\.\COM --sendimage=modemst2.bin --start_sector=544 --lun=5 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    FSG
    fh_loader.exe --port=\\.\COM --sendimage=fsg.bin --start_sector=1056 --lun=5 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    FSC
    fh_loader.exe --port=\\.\COM --sendimage=fsc.bin --start_sector=1568 --lun=5 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    Note 9: Where are the backup files stored? QPST installation folder/bin.
    Note10: Can I restore my phone's backup to my friend's phone? Yes, but do not expect it to cure IMEI problems of the second phone.


    And, that's it =)
    I'll see you around ;)
    I have edited your write up to make it more noob friendly. I hope I am posting this in a way it will not be annoying. I think some may find this usefull.

    Requisites
    QPST and Qualcomm USB Driver (get)
    LGE SM8150 Firehose.elf (get)


    Preparation
    1. Install Qualcomm USB Driver (QUD.WIN.1.1_Installer-10037.3_Setup.exe)
    2. Install QPST (QPST_2.7.496.exe)


    Part 1
    1. Open QFIL from start menu. (Using version 2.0.3.5 for this tutorial)
    2. Change "Storage Type" to UFS at bottom right corner of QFIL window.
    3. Up top in "Select Build Type" choose "Flat Build".
    4. In "Select Programmer" browse for "LGE SM8150 Firehose.elf" you downloaded and pick it.
    5. Now, connect the phone to PC and boot into EDL mode. Youtube how to boot into EDL mode for your phone.
    6. Up top click "Select Port" and select the phone, (Should read Qualcomm HS-USB QDLoader 9008 for LG G8) press OK.
    7. In "Tools" open the "Partition Manager". Keep the "Partition Manager" open for this entire process. Do not close it before finishing or you run the risk of a bricking your device.


    Part 2 (Using fh_loader from the bin folder)
    1. Open CMD. use "cd C:\Program Files (x86)\Qualcomm\QPST\bin" to navigate to the QPST/bin folder.
    2. Back in "Partition Manager" click on "Save Partition File".
    3. Go to "C:\Users\YOUR_USER_NAME\AppData\Roaming\Qualcomm\QFIL".
    4. Open file named "COM#_PartitionsList.xml". (# is your phone port number)
    5. Find the phrase "userdata" using search tool.
    6. In this line, find "start_sector". Subtract 1 from the number it ='s and put it in place of "???????" in the code for LUN0 below.

    *For example: In VRZ a10, we see the number in front of "userdata" is 5285640 which we subtract 1 from it. The result will be 5285639 which we use in place of "???????" in LUN0 Code.*

    *In the following codes you need to add the port number of the phone right after "fh_loader.exe --port=\\.\COM". If yours is 3 then it should become "fh_loader.exe --port=\\.\COM3"*

    7. Add your phone's port number to all the codes below and right click paste them into the CMD window pointed to the QPST/bin folder.


    --------------------
    Creating LUNs Backup
    --------------------
    LUN 0
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN0_Complete.bin --start_sector=0 --lun=0 --num_sectors=??????? --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN1
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN1_Complete.bin --start_sector=0 --lun=1 --num_sectors=2048 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN2
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN2_Complete.bin --start_sector=0 --lun=2 --num_sectors=2048 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN3
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN3_Complete.bin --start_sector=0 --lun=3 --num_sectors=2048 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN4
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN4_Complete.bin --start_sector=0 --lun=4 --num_sectors=383995 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN5
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN5_Complete.bin --start_sector=0 --lun=5 --num_sectors=3072 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN6
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=LUN6_Complete.bin --start_sector=0 --lun=6 --num_sectors=1024 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs


    -----------------------------------------------------------------------
    Creating Backup of Vital Partitions (FTM, Modemst1, Modemst2, FSG, FSC)
    -----------------------------------------------------------------------
    FTM
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=ftm.bin --start_sector=23816 --lun=0 --num_sectors=8192 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    Modemst1
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=modemst1.bin --start_sector=32 --lun=5 --num_sectors=512 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    Modemst2
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=modemst2.bin --start_sector=544 --lun=5 --num_sectors=512 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    FSG
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=fsg.bin --start_sector=1056 --lun=5 --num_sectors=512 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    FSC
    fh_loader.exe --port=\\.\COM --convertprogram2read --sendimage=fsc.bin --start_sector=1568 --lun=5 --num_sectors=32 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs


    ------------
    Backup Notes
    ------------
    *All backups will be created in the QPST/bin folder where CMD ran fh_loader.exe from.*

    *Their names will be: "LUN 0_Complete.bin", "LUN1_Complete.bin", "LUN2_Complete.bin", "LUN3_Complete.bin", "LUN4_Complete.bin", "LUN5_Complete.bin", "LUN6_Complete.bin", "ftm.bin", "modemst1.bin", "modemst2.bin", "fsg.bin", and "fsc.bin".*

    *You will also have a log file called "port_trace".*


    ---------------
    Restoring Notes
    ---------------
    *Restoration process is the same as the making backup process, in preparation and all other stuff.*

    *All backup files should be placed in bin folder of QPST installation folder before running codes.*

    *The codes to restore are different than backing up, be sure to use the correct codes.*


    ---------------------
    Restoring LUNs Backup
    ---------------------

    LUN0
    fh_loader.exe --port=\\.\COM --sendimage=LUN0_Complete.bin --start_sector=0 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN1
    fh_loader.exe --port=\\.\COM --sendimage=LUN1_Complete.bin --start_sector=0 --lun=1 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN2
    fh_loader.exe --port=\\.\COM --sendimage=LUN2_Complete.bin --start_sector=0 --lun=2 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN3
    fh_loader.exe --port=\\.\COM --sendimage=LUN3_Complete.bin --start_sector=0 --lun=3 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN4
    fh_loader.exe --port=\\.\COM --sendimage=LUN4_Complete.bin --start_sector=0 --lun=4 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN5
    fh_loader.exe --port=\\.\COM --sendimage=LUN5_Complete.bin --start_sector=0 --lun=5 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    LUN6
    fh_loader.exe --port=\\.\COM --sendimage=LUN6_Complete.bin --start_sector=0 --lun=6 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs


    --------------------
    Restoring Partitions
    --------------------
    FTM
    fh_loader.exe --port=\\.\COM --sendimage=ftm.bin --start_sector=23816 --lun=0 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    Modemst1
    fh_loader.exe --port=\\.\COM --sendimage=modemst1.bin --start_sector=32 --lun=5 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    Modemst2
    fh_loader.exe --port=\\.\COM --sendimage=modemst2.bin --start_sector=544 --lun=5 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    FSG
    fh_loader.exe --port=\\.\COM --sendimage=fsg.bin --start_sector=1056 --lun=5 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs

    FSC
    fh_loader.exe --port=\\.\COM --sendimage=fsc.bin --start_sector=1568 --lun=5 --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=ufs


    ---------------------------
    Finishing Notes & Questions
    ---------------------------
    *You may close CMD, Partition Manager, and exit QPST when finished*

    *Hold power and vol- until your phone boots. It may take a moment, wait til the phone turns on and release.*

    *Can I restore my phone's backup to my friend's phone? Yes, but do not expect it to cure IMEI problems of the second phone.*