[Android Q&A, Help & Troubleshooting] ShiningSpider:
Hello everyone, i am new here to ask for help. Before i start this thread, i have googled for several days for this and didn't get the answer i want.

here is my problem:

I have got a Nubia RedMagic 1 (6GB/64GB ver), and i want to play android mods with it.

Before i start flashing third party Packages, i hope i have unbricking tools for it, so i can play with it without worrying about bricking it.

After two or three days of googling, i couldn't find one. The Qualcomm Flash Tool is easy to get, but no ROM for my device. So i decided to fabricate one myself.

My strategy was to boot my device with TWRP, and use dd command (dd if=/dev/block/mmcblk0 of=MY_BACKUP_PATH ) to fully image the eMMC.

Then it would be pretty easy to build an unbricking package from that image, i thought.

Unfortunately, when i booted my device with TWRP, i found things that i didn't anticipated.

There are more than one *disks* in the /dev/block dir, i.e. sda sdb sdc all the way up to sdf, while there should be only one eMMC (or maybe UFS 2.1) in the device, isn't it?

And each *disk* has varies partitions, i.e. sda1 sda2 ... sde1 sde2....

here are partition names:

~/ls -lia /dev/block/bootdevice/by-name/
21530 drwxr-xr-x 2 root root 1220 Jan 1 1970 .
21529 drwxr-xr-x 4 root root 1380 Jan 1 1970 ..
21544 lrwxrwxrwx 1 root root 16 Jan 1 1970 abl -> /dev/block/sde16
548 lrwxrwxrwx 1 root root 16 Jan 1 1970 ablbak -> /dev/block/sde17
19221 lrwxrwxrwx 1 root root 16 Jan 1 1970 apdp -> /dev/block/sde29
10299 lrwxrwxrwx 1 root root 16 Jan 1 1970 bluetooth -> /dev/block/sde22
2129 lrwxrwxrwx 1 root root 16 Jan 1 1970 boot -> /dev/block/sde18
22551 lrwxrwxrwx 1 root root 15 Jan 1 1970 cache -> /dev/block/sda3
539 lrwxrwxrwx 1 root root 15 Jan 1 1970 cdt -> /dev/block/sdd1
20229 lrwxrwxrwx 1 root root 16 Jan 1 1970 cmnlib -> /dev/block/sde25
20193 lrwxrwxrwx 1 root root 16 Jan 1 1970 cmnlib64 -> /dev/block/sde27
22569 lrwxrwxrwx 1 root root 16 Jan 1 1970 cmnlib64bak -> /dev/block/sde28
2133 lrwxrwxrwx 1 root root 16 Jan 1 1970 cmnlibbak -> /dev/block/sde26
2120 lrwxrwxrwx 1 root root 15 Jan 1 1970 ddr -> /dev/block/sdd2
19225 lrwxrwxrwx 1 root root 16 Jan 1 1970 devcfg -> /dev/block/sde37
19217 lrwxrwxrwx 1 root root 16 Jan 1 1970 devinfo -> /dev/block/sde21
10295 lrwxrwxrwx 1 root root 16 Jan 1 1970 dip -> /dev/block/sde14
20512 lrwxrwxrwx 1 root root 16 Jan 1 1970 dpo -> /dev/block/sde31
20185 lrwxrwxrwx 1 root root 16 Jan 1 1970 dsp -> /dev/block/sde11
533 lrwxrwxrwx 1 root root 15 Jan 1 1970 embedlog -> /dev/block/sda8
20496 lrwxrwxrwx 1 root root 15 Jan 1 1970 frp -> /dev/block/sda6
566 lrwxrwxrwx 1 root root 15 Jan 1 1970 fsc -> /dev/block/sdf4
20238 lrwxrwxrwx 1 root root 15 Jan 1 1970 fsg -> /dev/block/sdf3
560 lrwxrwxrwx 1 root root 15 Jan 1 1970 hyp -> /dev/block/sde5
10292 lrwxrwxrwx 1 root root 15 Jan 1 1970 hypbak -> /dev/block/sde6
20508 lrwxrwxrwx 1 root root 16 Jan 1 1970 keymaster -> /dev/block/sde23
21548 lrwxrwxrwx 1 root root 16 Jan 1 1970 keymasterbak -> /dev/block/sde24
2141 lrwxrwxrwx 1 root root 15 Jan 1 1970 keystore -> /dev/block/sda5
20233 lrwxrwxrwx 1 root root 16 Jan 1 1970 limits -> /dev/block/sde33
10307 lrwxrwxrwx 1 root root 16 Jan 1 1970 logdump -> /dev/block/sde38
20197 lrwxrwxrwx 1 root root 16 Jan 1 1970 logfs -> /dev/block/sde35
20504 lrwxrwxrwx 1 root root 16 Jan 1 1970 mdtp -> /dev/block/sde15
22561 lrwxrwxrwx 1 root root 16 Jan 1 1970 mdtpsecapp -> /dev/block/sde12
19213 lrwxrwxrwx 1 root root 16 Jan 1 1970 mdtpsecappbak -> /dev/block/sde13
555 lrwxrwxrwx 1 root root 15 Jan 1 1970 misc -> /dev/block/sda4
2126 lrwxrwxrwx 1 root root 16 Jan 1 1970 modem -> /dev/block/sde10
20520 lrwxrwxrwx 1 root root 15 Jan 1 1970 modemst1 -> /dev/block/sdf1
21560 lrwxrwxrwx 1 root root 15 Jan 1 1970 modemst2 -> /dev/block/sdf2
10303 lrwxrwxrwx 1 root root 16 Jan 1 1970 msadp -> /dev/block/sde30
21531 lrwxrwxrwx 1 root root 15 Jan 1 1970 parameter -> /dev/block/sda7
20168 lrwxrwxrwx 1 root root 15 Jan 1 1970 persist -> /dev/block/sda2
21541 lrwxrwxrwx 1 root root 15 Jan 1 1970 pmic -> /dev/block/sde8
545 lrwxrwxrwx 1 root root 15 Jan 1 1970 pmicbak -> /dev/block/sde9
20189 lrwxrwxrwx 1 root root 16 Jan 1 1970 recovery -> /dev/block/sde19
22565 lrwxrwxrwx 1 root root 16 Jan 1 1970 recovery2 -> /dev/block/sde20
542 lrwxrwxrwx 1 root root 15 Jan 1 1970 rpm -> /dev/block/sde1
2123 lrwxrwxrwx 1 root root 15 Jan 1 1970 rpmbak -> /dev/block/sde2
20501 lrwxrwxrwx 1 root root 15 Jan 1 1970 sec -> /dev/block/sde7
21552 lrwxrwxrwx 1 root root 16 Jan 1 1970 splash -> /dev/block/sde32
2107 lrwxrwxrwx 1 root root 15 Jan 1 1970 ssd -> /dev/block/sda1
22573 lrwxrwxrwx 1 root root 16 Jan 1 1970 sti -> /dev/block/sde36
20516 lrwxrwxrwx 1 root root 16 Jan 1 1970 storsec -> /dev/block/sde39
21556 lrwxrwxrwx 1 root root 16 Jan 1 1970 storsecbak -> /dev/block/sde40
2111 lrwxrwxrwx 1 root root 15 Jan 1 1970 system -> /dev/block/sda9
2137 lrwxrwxrwx 1 root root 16 Jan 1 1970 toolsfv -> /dev/block/sde34
20181 lrwxrwxrwx 1 root root 15 Jan 1 1970 tz -> /dev/block/sde3
22558 lrwxrwxrwx 1 root root 15 Jan 1 1970 tzbak -> /dev/block/sde4
22554 lrwxrwxrwx 1 root root 16 Jan 1 1970 userdata -> /dev/block/sda11
20172 lrwxrwxrwx 1 root root 16 Jan 1 1970 vendor -> /dev/block/sda10
20176 lrwxrwxrwx 1 root root 15 Jan 1 1970 xbl -> /dev/block/sdb1
2117 lrwxrwxrwx 1 root root 15 Jan 1 1970 xblbak -> /dev/block/sdc1

here is a part of bootlog:

<3>[ 1.367680] ufshcd-qcom 1da4000.ufshc: ufshcd_print_pwr_info:[RX, TX]: gear=[3, 3], lane[2, 2], pwr[FAST MODE, FAST MODE], rate = 2
<5>[ 1.368299] scsi 0:0:0:49488: Well-known LUN SAMSUNG KLUCG4J1ED-B0C1 0200 PQ: 0 ANSI: 6
<5>[ 1.368950] scsi 0:0:0:49456: Well-known LUN SAMSUNG KLUCG4J1ED-B0C1 0200 PQ: 0 ANSI: 6
<5>[ 1.369591] scsi 0:0:0:49476: Well-known LUN SAMSUNG KLUCG4J1ED-B0C1 0200 PQ: 0 ANSI: 6
<5>[ 1.370337] scsi 0:0:0:0: Direct-Access SAMSUNG KLUCG4J1ED-B0C1 0200 PQ: 0 ANSI: 6
<5>[ 1.370855] scsi 0:0:0:1: Direct-Access SAMSUNG KLUCG4J1ED-B0C1 0200 PQ: 0 ANSI: 6
<5>[ 1.371317] scsi 0:0:0:2: Direct-Access SAMSUNG KLUCG4J1ED-B0C1 0200 PQ: 0 ANSI: 6
<5>[ 1.371749] scsi 0:0:0:3: Direct-Access SAMSUNG KLUCG4J1ED-B0C1 0200 PQ: 0 ANSI: 6
<5>[ 1.372189] scsi 0:0:0:4: Direct-Access SAMSUNG KLUCG4J1ED-B0C1 0200 PQ: 0 ANSI: 6
<5>[ 1.372633] scsi 0:0:0:5: Direct-Access SAMSUNG KLUCG4J1ED-B0C1 0200 PQ: 0 ANSI: 6
<6>[ 1.376435] sdb: sdb1
<6>[ 1.376681] sdc: sdc1
<6>[ 1.379318] sde: sde1 sde2 sde3 sde4 sde5 sde6 sde7 sde8 sde9 sde10 sde11 sde12 sde13 sde14 sde15 sde16 sde17 sde18 sde19 sde20 sde21 sde22 sde23 sde24 sde25 sde26 sde27 sde28 sde29 sde30 sde31 sde32 sde33 sde34 sde35 sde36 sde37 sde38 sde39 sde40
<6>[ 1.379460] sdf: sdf1 sdf2 sdf3 sdf4
<6>[ 1.379802] sda: sda1 sda2 sda3 sda4 sda5 sda6 sda7 sda8 sda9 sda10 sda11
<6>[ 1.380950] sdd: sdd1 sdd2

My question is, why there are several *disks*, are they just virtual devices?

Then how can i fully image the eMMC (or maybe UFS 2.1)?

How can i build my unbrick package after all?