[Samsung Galaxy Note 8 ROMs, Kernels, Recoveries, &] BigCountry907:
I don't have a ton of time to detail every step right now.

But i will give you a quick guide.

#1 First get a list of all the partitions on the device.

Open terminal or a command prompt

start a adb shell session on the device.

adb shell
su

#2 We need to keep doing ls until we get to the by-name list.

so itl go like this

Start with

cd /dev/block/platform
ls

When you type ls it will list the directories.

The next dir i see is soc.0 ( On a different device than note 9. this is only example here. )

so next do

cd soc.0 (or use full path like next line)
cd /dev/block/platform/soc.0
ls

next directory i see is 7824900.sdhci

so next do

cd 7824900.sdhci (or use full path like next line)
cd /dev/block/platform/soc.0/7824900.sdhci
ls

Now i have a bunch of directories.

We are looking for by-name.

Once you see by-name cd to that directory.

So now my command line looks like this.

gtelwifiue:/dev/block/platform/soc.0/7824900.sdhci/by-name

Now just do

ls -al

That is the list of all the partitions by-name and by block number.

Copy and paste it into a text file or a spreadsheet. I like the spreadsheet.

Here is a copy of my terminal screen. NOTICE THIS IS NOT A NOTE 8 !!!!

Microsoft Windows [Version 10.0.17134.523]

(c) 2018 Microsoft Corporation. All rights reserved.

C:\Users\Big-C>adb shell

* daemon not running. starting it now at tcp:5037 *

* daemon started successfully *

gtelwifiue:/ $ su

gtelwifiue:/ # cd/dev/block/platform

/system/bin/sh: cd/dev/block/platform: not found

127|gtelwifiue:/ # cd /dev/block/platform

gtelwifiue:/dev/block/platform # ls

soc.0

gtelwifiue:/dev/block/platform # cd soc.0

gtelwifiue:/dev/block/platform/soc.0 # ls

7824900.sdhci

gtelwifiue:/dev/block/platform/soc.0 # ls

7824900.sdhci

gtelwifiue:/dev/block/platform/soc.0 # cd 7824900.sdhci

gtelwifiue:/dev/block/platform/soc.0/7824900.sdhci # ls

by-name mmcblk0p1 mmcblk0p12 mmcblk0p15 mmcblk0p18 mmcblk0p20 mmcblk0p23 mmcblk0p26 mmcblk0p3 mmcblk0p6 mmcblk0p9

by-num mmcblk0p10 mmcblk0p13 mmcblk0p16 mmcblk0p19 mmcblk0p21 mmcblk0p24 mmcblk0p27 mmcblk0p4 mmcblk0p7 mmcblk0rpmb

mmcblk0 mmcblk0p11 mmcblk0p14 mmcblk0p17 mmcblk0p2 mmcblk0p22 mmcblk0p25 mmcblk0p28 mmcblk0p5 mmcblk0p8

gtelwifiue:/dev/block/platform/soc.0/7824900.sdhci # cd by-name

gtelwifiue:/dev/block/platform/soc.0/7824900.sdhci/by-name # ls -al

total 0

drwxr-xr-x 2 root root 600 2015-01-26 20:37 .

drwxr-xr-x 4 root root 680 2015-01-26 20:37 ..

lrwxrwxrwx 1 root root 20 2015-01-26 20:37 aboot -> /dev/block/mmcblk0p5

lrwxrwxrwx 1 root root 20 2015-01-26 20:37 apnhlos -> /dev/block/mmcblk0p1

lrwxrwxrwx 1 root root 21 2015-01-26 20:37 backup -> /dev/block/mmcblk0p19

lrwxrwxrwx 1 root root 21 2015-01-26 20:37 boot -> /dev/block/mmcblk0p16

lrwxrwxrwx 1 root root 21 2015-01-26 20:37 cache -> /dev/block/mmcblk0p26

lrwxrwxrwx 1 root root 20 2015-01-26 20:37 ddr -> /dev/block/mmcblk0p4

lrwxrwxrwx 1 root root 21 2015-01-26 20:37 efs -> /dev/block/mmcblk0p13

lrwxrwxrwx 1 root root 21 2015-01-26 20:37 fota -> /dev/block/mmcblk0p18

lrwxrwxrwx 1 root root 21 2015-01-26 20:37 fsc -> /dev/block/mmcblk0p20

lrwxrwxrwx 1 root root 20 2015-01-26 20:37 fsg -> /dev/block/mmcblk0p9

lrwxrwxrwx 1 root root 21 2015-01-26 20:37 hidden -> /dev/block/mmcblk0p27

lrwxrwxrwx 1 root root 20 2015-01-26 20:37 modem -> /dev/block/mmcblk0p2

lrwxrwxrwx 1 root root 21 2015-01-26 20:37 modemst1 -> /dev/block/mmcblk0p14

lrwxrwxrwx 1 root root 21 2015-01-26 20:37 modemst2 -> /dev/block/mmcblk0p15

lrwxrwxrwx 1 root root 21 2015-01-26 20:37 pad -> /dev/block/mmcblk0p11

lrwxrwxrwx 1 root root 21 2015-01-26 20:37 param -> /dev/block/mmcblk0p12

lrwxrwxrwx 1 root root 21 2015-01-26 20:37 persdata -> /dev/block/mmcblk0p24

lrwxrwxrwx 1 root root 21 2015-01-26 20:37 persist -> /dev/block/mmcblk0p22

lrwxrwxrwx 1 root root 21 2015-01-26 20:37 persistent -> /dev/block/mmcblk0p23

lrwxrwxrwx 1 root root 20 2015-01-26 20:37 qhee -> /dev/block/mmcblk0p8

lrwxrwxrwx 1 root root 20 2015-01-26 20:37 qsee -> /dev/block/mmcblk0p7

lrwxrwxrwx 1 root root 21 2015-01-26 20:37 recovery -> /dev/block/mmcblk0p17

lrwxrwxrwx 1 root root 20 2015-01-26 20:37 rpm -> /dev/block/mmcblk0p6

lrwxrwxrwx 1 root root 20 2015-01-26 20:37 sbl1 -> /dev/block/mmcblk0p3

lrwxrwxrwx 1 root root 21 2015-01-26 20:37 sec -> /dev/block/mmcblk0p10

lrwxrwxrwx 1 root root 21 2015-01-26 20:37 ssd -> /dev/block/mmcblk0p21

lrwxrwxrwx 1 root root 21 2015-01-26 20:37 system -> /dev/block/mmcblk0p25

lrwxrwxrwx 1 root root 21 2015-01-26 20:37 userdata -> /dev/block/mmcblk0p28

gtelwifiue:/dev/block/platform/soc.0/7824900.sdhci/by-name #

This is the list of partitions for u-2 bootloader.

name	path

/dev/block/sdc

sdc1	/dev/block/sdc1

/dev/block/sdb

xbl	/dev/block/sdb1

/dev/block/sdd

rpm	/dev/block/sdd1

tz	/dev/block/sdd2

hyp	/dev/block/sdd3

fsg	/dev/block/sdd4

sec	/dev/block/sdd5

pmic	/dev/block/sdd6

dsp	/dev/block/sdd7

abl	/dev/block/sdd8

devinfo	/dev/block/sdd9

bluetooth	/dev/block/sdd10

bksecapp	/dev/block/sdd11

keymaster	/dev/block/sdd12

cmnlib	/dev/block/sdd13

cmnlib64	/dev/block/sdd14

apdp	/dev/block/sdd15

msadp	/dev/block/sdd16

dpo	/dev/block/sdd17

limits	/dev/block/sdd18

devcfg	/dev/block/sdd19

storesec	/dev/block/sdd20

ddr	/dev/block/sdd21

pad	/dev/block/sdd22

/dev/block/sda

modemst1	/dev/block/sda1

modemst2	/dev/block/sda2

fsc	/dev/block/sda3

ssd	/dev/block/sda4

persist	/dev/block/sda5

efs	/dev/block/sda6

param	/dev/block/sda7

misc	/dev/block/sda8

keystore	/dev/block/sda9

bota	/dev/block/sda10

fota	/dev/block/sda11

persistent	/dev/block/sda12

steady	/dev/block/sda13

dqmdbg	/dev/block/sda14

nad_refer	/dev/block/sda15

apnhlos	/dev/block/sda16

modem	/dev/block/sda17

boot	/dev/block/sda18

recovery	/dev/block/sda19

system	/dev/block/sda20

cache	/dev/block/sda21

carrier	/dev/block/sda22

omr	/dev/block/sda23

debug	/dev/block/sda24

userdata	/dev/block/sda25

Now to backup i just use the device internal storage.

In windows you can open up the folder and copy and paste.

You can't backup /data this way. It will get corrupted.

/system is big also so if you back it up do it seperatly.

All the rest you can do in one shot.

You might need to restart the device before windows explorer will show the new files.

Now from the list of partitions we make a dd command for each one.

This is for rev2 bootloader.

Other revisions may have the same partitions but its best to check.

Here is my list of backup commands.

dd if=/dev/block/sdc1 of=/sdcard/xbl.bin

dd if=/dev/block/sdb1 of=/sdcard/xblbak.bin

dd if=/dev/block/sdd1 of=/sdcard/rpm.bin

dd if=/dev/block/sdd2 of=/sdcard/tz.bin

dd if=/dev/block/sdd3 of=/sdcard/hyp.bin

dd if=/dev/block/sdd4 of=/sdcard/fsg.bin

dd if=/dev/block/sdd5 of=/sdcard/sec.bin

dd if=/dev/block/sdd6 of=/sdcard/pmic.bin

dd if=/dev/block/sdd7 of=/sdcard/dsp.bin

dd if=/dev/block/sdd8 of=/sdcard/abl.bin

dd if=/dev/block/sdd9 of=/sdcard/devinfo.bin

dd if=/dev/block/sdd10 of=/sdcard/bluetooth.bin

dd if=/dev/block/sdd11 of=/sdcard/bksecapp.bin

dd if=/dev/block/sdd12 of=/sdcard/keymaster.bin

dd if=/dev/block/sdd13 of=/sdcard/cmnlib.bin

dd if=/dev/block/sdd14 of=/sdcard/cmnlib64.bin

dd if=/dev/block/sdd15 of=/sdcard/apdp.bin

dd if=/dev/block/sdd16 of=/sdcard/msadp.bin

dd if=/dev/block/sdd17 of=/sdcard/dpo.bin

dd if=/dev/block/sdd18 of=/sdcard/limits.bin

dd if=/dev/block/sdd19 of=/sdcard/devcfg.bin

dd if=/dev/block/sdd20 of=/sdcard/storesec.bin

dd if=/dev/block/sdd21 of=/sdcard/ddr.bin

dd if=/dev/block/sdd22 of=/sdcard/pad.bin

dd if=/dev/block/sda1 of=/sdcard/modemst1.bin

dd if=/dev/block/sda2 of=/sdcard/modemst2.bin

dd if=/dev/block/sda3 of=/sdcard/fsc.bin

dd if=/dev/block/sda4 of=/sdcard/ssd.bin

dd if=/dev/block/sda5 of=/sdcard/persist.bin

dd if=/dev/block/sda6 of=/sdcard/efs.bin

dd if=/dev/block/sda7 of=/sdcard/param.bin

dd if=/dev/block/sda8 of=/sdcard/misc.bin

dd if=/dev/block/sda9 of=/sdcard/keystore.bin

dd if=/dev/block/sda10 of=/sdcard/bota.bin

dd if=/dev/block/sda11 of=/sdcard/fota.bin

dd if=/dev/block/sda12 of=/sdcard/persistent.bin

dd if=/dev/block/sda13 of=/sdcard/steady.bin

dd if=/dev/block/sda14 of=/sdcard/dqmdbg.bin

dd if=/dev/block/sda15 of=/sdcard/nad_refer.bin

dd if=/dev/block/sda16 of=/sdcard/apnhlos.bin

dd if=/dev/block/sda17 of=/sdcard/modem.bin

dd if=/dev/block/sda18 of=/sdcard/boot.bin

dd if=/dev/block/sda19 of=/sdcard/recovery.bin

dd if=/dev/block/sda20 of=/sdcard/system.bin

dd if=/dev/block/sda21 of=/sdcard/cache.bin

dd if=/dev/block/sda22 of=/sdcard/carrier.bin

dd if=/dev/block/sda23 of=/sdcard/omr.bin

dd if=/dev/block/sda24 of=/sdcard/debug.bin

dd if=/dev/block/sda25 of=/sdcard/userdata.bin

That's almost everything.

You really should backup the GPT as well.

For the primary gpt tables the first 24kb is the gpt.

So to back up the primary gpt

dd if=/dev/sda of=/sdcard/gpt_main0.bin bs=1024 count=24

dd if=/dev/sdb of=/sdcard/gpt_main1.bin bs=1024 count=24

dd if=/dev/sdc of=/sdcard/gpt_main2.bin bs=1024 count=24

dd if=/dev/sdd of=/sdcard/gpt_main3.bin bs=1024 count=24

The backup gpt is a little harder.

First you have to get the full disk size.

For u-2 bootloader.

/dev/block/sda
Command to get size ( busybox fdisk -l /dev/block/sda )

size MB	size BYTES	# OF SECTORS	# OF CYLINDERS
60gb	63916998656	124837888	487648

calculate to last 20 kb of partition
20kb = 20 * 1024 = 20480
size in bytes - 20480 = backup_gpt0.bin
63916998656 - 20480 = 63916978176

Command to create backup
dd if=/dev/block/sda of=/sdcard/backup-sda-gpt.bin bs=1 skip=63916978176

-------------------------------------------------------------------------

/dev/block/sdb
Command to get size ( busybox fdisk -l /dev/block/sdb )

size MB	size BYTES	# OF SECTORS	# OF CYLINDERS
4mb	4194304	8192	128

calculate to last 20 kb of partition
20kb = 20 * 1024 = 20480
size in bytes - 20480 = backup_gpt1.bin
4194304 - 20480 = 4173824

Command to create backup
dd if=/dev/block/sdb of=/sdcard/backup-sdb-gpt.bin bs=1 skip=4173824

-------------------------------------------------------------------------

/dev/block/sdc
Command to get size ( busybox fdisk -l /dev/block/sdc )

size MB	size BYTES	# OF SECTORS	# OF CYLINDERS
4mb	4194304	8192	128

calculate to last 20 kb of partition
20kb = 20 * 1024 = 20480
size in bytes - 20480 = backup_gpt2.bin
4194304 - 20480 = 4173824

Command to create backup
dd if=/dev/block/sdc of=/sdcard/backup-sdc-gpt.bin bs=1 skip=4173824

-------------------------------------------------------------------------

/dev/block/sdd
Command to get size ( busybox fdisk -l /dev/block/sdd )

size MB	size BYTES	# OF SECTORS	# OF CYLINDERS
60mb	62914560	122880	256

calculate to last 20 kb of partition
20kb = 20 * 1024 = 20480
size in bytes - 20480 = backup_gpt2.bin
63916998656 - 20480 = 62894080

Command to create backup
dd if=/dev/block/sdd of=/sdcard/backup-sdd-gpt.bin bs=1 skip=62894080

-------------------------------------------------------------------------

If you get all those files YOU WILL be able to UNBRICK !!!!!:cool: