Pixel (2016) Partition Names, Numbers and Sizes

Search This thread

aljomaz

Member
May 7, 2020
16
1
74
Bury St Edmunds
I thought it might be helpful to others to document some test results after rooting my Google Pixel (2016) phone with Magisk (v20.4) and Magisk Manager (v8.0.4), and using various commands with a terminal emulator (Termux) on my phone, and with terminal and adb on my Linux (Ubuntu) computer with phone connected.

Command outputs appear to refer to the number (#) of blocks. By presupposing that each of these blocks has 1,024 bytes, I calculated partition sizes in MB and GB, and compared the values to the sizes of the files copied using adb pull /dev/block/bootdevice/by-name. The values matched exactly, and the total size of all of the partitions came to 32 GB, which is the size of my phone’s internal storage.

I found 62 different partitions on my phone, and combining several command outputs enabled me to produce the following table.


Partition NamePartition NumberNumber of BlocksPartition Size MBPartition Size GB
aboot_asda174,0964.2
aboot_bsda184,0964.2
apdp_asda292560.3
apdp_bsda302560.3
board_infosdf1160.0
boot_asda1932,76833.6
boot_bsda2032,76833.6
bootlocker_asda15120.5
bootlocker_bsda25120.5
cdtsdd1240.0
cmnlib32_asda132560.3
cmnlib32_bsda142560.3
cmnlib64_asda152560.3
cmnlib64_bsda162560.3
ddrsdd111,0241.0
devcfg_asda231280.1
devcfg_bsda241280.1
devinfosdf440.0
devinfobaksdd540.0
dipsdd71,0241.0
dposdd640.0
frpsde15120.5
fscsdd840.0
fsgsdf32,0482.1
hosd_asda2132,76833.6
hosd_bsda2232,76833.6
hyp_asda115120.5
hyp_bsda125120.5
keymaster_asda35120.5
keymaster_bsda45120.5
metadatasde516,38416.8
mfgsdf22360.3
miscsdd11,0241.0
modem_asda2571,68073.4
modem_bsda2671,76073.4
modemst1sdd92,0482.1
modemst2sdd102,0482.1
msadp_asda272560.3
msadp_bsda282560.3
persistsdd332,76833.6
pg1fssde34,0964.2
pg2fssde42,0482.1
pmic_asda95120.5
pmic_bsda105120.5
ramdumpsde26,1446.3
reserve0sda364,8204.9
reserve3sdd139,0209.2
reserve4sde67,6367.8
reserve5sdf55,8246.0
rpm_asda75120.5
rpm_bsda85120.5
secsdd41280.1
ssdsdd280.0
system_asda332,097,1522,147.52.1 GB
system_bsda342,097,1522,147.52.1 GB
tz_asda52,0482.1
tz_bsda62,0482.1
userdatasda3526,038,27226,663.226.7 GB
vendor_asda31307,200314.60.3 GB
vendor_bsda32307,200314.60.3 GB
xbl_asdb14,0524.1
xbl_bsdc14,0524.1
TOTALS-31,248,12031,998.132 GB

Partition NamePartition NumberNumber of BlocksPartition Size MBPartition Size GB
sda-31,145,98431,893.531.9 GB
sdb-4,0964.2
sdc-4,0964.2
sdd-49,15250.3
sde-36,86437.7
sdf-8,1928.4
TOTALS-31,248,38431,998.332 GB

The sda partition is the main part of the phone's internal storage, but could sdb, sdc, sdd, sde and sdf partitions be held on separate disks or boards?

Commands used via Phone and Terminal Emulator:

uname (with -a appended)

sudo cat /proc/partitions

tsu
sudo cat /proc/partitions


su
cd /dev/block/bootdevice/by-name
ls -all


Commands used via Computer Terminal and ADB: (I found it easier to temporarily boot TWRP using fastboot boot twrp-3.4.0-0-sailfish.img).

adb ls /dev/block/bootdevice/by-name

adb shell ls /dev/block/bootdevice/by-name

adb shell ls -all /dev/block/bootdevice/by-name


adb pull /dev/block/bootdevice/by-name (see below)

adb shell uname (with -a appended)

adb shell
cat /proc/partitions


The adb pull command copied 34.5 GB files (took 18 mins) into a ‘by-name’ file in my adb folder. The files in 'by-name' included boot (33.6 MB), system (2.1 GB) and vendor (314.6 MB) files (approx 2.5 GB) that were not included in the command outputs, which instead had similarly sized boot_a, boot_b, system_a, system_b, vendor_a and vendor_b files.