Need to find partition by-name of my OnePlus 3T rooted - OnePlus 3T Questions & Answers

Device: OnePlus 3t Rooted with magisk TWRP installed.
Android 8.0
BusyBox is installed
On PC I have Cygwin 64bit installed with util linux, pv, netcat packages installed, including platform tools.
I'm trying to get into my partition directory user data by-name as I want to make an image of my OnePlus Internal storage and copy it on PC.
I can view cat /proc/partitions
$ adb shell
OnePlus3T:/ # cat /proc/partitions
major minor #blocks name
8 0 119062528 sda
8 1 8 sda1
8 2 32768 sda2
8 3 262144 sda3
8 4 1024 sda4
8 5 512 sda5
8 6 128 sda6
8 7 128 sda7
8 8 512 sda8
8 9 10240 sda9
8 10 10240 sda10
8 11 1024 sda11
8 12 8096 sda12
8 13 16192 sda13
8 14 512 sda14
8 15 118718956 sda15
8 32 4096 sdc
8 33 4052 sdc1
8 64 4194304 sde
8 65 512 sde1
8 66 512 sde2
8 67 2048 sde3
8 68 2048 sde4
8 69 512 sde5
8 70 512 sde6
8 71 2048 sde7
8 72 16 sde8
8 73 512 sde9
8 74 512 sde10
8 75 97280 sde11
8 76 16384 sde12
8 77 1024 sde13
8 78 32768 sde14
8 79 8192 sde15
259 0 8192 sde16
259 1 16384 sde17
259 2 65536 sde18
259 3 65536 sde19
259 4 3080192 sde20
259 5 65536 sde21
259 6 4 sde22
259 7 1024 sde23
259 8 512 sde24
259 9 512 sde25
259 10 256 sde26
259 11 256 sde27
259 12 256 sde28
259 13 256 sde29
259 14 256 sde30
259 15 256 sde31
259 16 4 sde32
259 17 33424 sde33
259 18 2048 sde34
8 16 4096 sdb
8 17 4052 sdb1
8 80 1572864 sdf
8 81 2048 sdf1
8 82 2048 sdf2
8 83 4 sdf3
8 84 512 sdf4
8 48 131072 sdd
8 49 32 sdd1
8 50 4 sdd2
8 51 1024 sdd3
254 0 118718940 dm-0
Can anyone help me to find partition by-name lists on OnePlus 3t? I have also tried Diskinfo to find the details but it didn't helped me. I have also followed this https://forum.xda-developers.com/t/guide-internal-memory-data-deleted-files-recovery.3093292/ but it's getting hard for me to get into the b-name partition list of my device.
Or do you guys know any other alternatives on how to make an image of OnePlus internal storage to PC?
I'm stucked since days. Please need some help.

is there any genius who can help me on this matter?

Have a look at both of these commands:
Bash:
cat /proc/partitions
ls -l /dev/block/bootdevice/by-name

BillGoss said:
Have a look at both of these commands:
Bash:
cat /proc/partitions
ls -l /dev/block/bootdevice/by-name
Click to expand...
Click to collapse
after typing
ls -l /dev/block/bootdevice/by-name
it says system/bin/sh: 1s: not found.
I'm really stucked here.

Lol! The command is lower case L - ls. Not 1 - 1s.

BillGoss said:
Lol! The command is lower case L - ls. Not 1 - 1s.
Click to expand...
Click to collapse
thanks for the clarification bro..

Related

Format SD Card? How?

Hey,
i booted CM9 on my tablet. now it says "SD Card damaged". If i format it via CM9, it still says "SD CARD damaged..."...
Even CWM says that there was an error mounting SD Card when i want to mount it!
But i need it want to install CM10 on my touchpad...
i can access via adb, cat says:
~ # cat /proc/partitions
cat /proc/partitions
major minor #blocks name
179 0 31160320 mmcblk0
179 1 102400 mmcblk0p1
179 2 500 mmcblk0p2
179 3 1500 mmcblk0p3
179 4 1 mmcblk0p4
179 5 500 mmcblk0p5
179 6 750 mmcblk0p6
179 7 2500 mmcblk0p7
179 8 10240 mmcblk0p8
179 9 1500 mmcblk0p9
179 10 3072 mmcblk0p10
179 11 3072 mmcblk0p11
179 12 4096 mmcblk0p12
179 13 32768 mmcblk0p13
179 14 30504960 mmcblk0p14
254 0 581632 dm-0
254 1 65536 dm-1
254 2 16384 dm-2
254 3 24576 dm-3
254 4 262144 dm-4
254 5 139264 dm-5
254 6 26877952 dm-6
254 7 409600 dm-7
254 8 311296 dm-8
254 9 204800 dm-9
254 10 1572864 dm-10
~ #
How to format/mount the sd card via adb that it works with CM9 so that i can copy files on it for flashing?
Thanks!
You should be able to format it from CWM or TWRP recovery. If that doesn't work you could always run ACMEUninstaller which will reset all Android partitions and you'll have to reinstall using ACMEInstaller.
When you re-install, use acmeinstaller 3.
Edit : on rereading your post, you might have to use this : http://forum.xda-developers.com/showthread.php?t=1426244
If you're having trouble with novaterm, on page 12 of the thread there's a good work around for that.
I know doctoring is a PITA, but you can update from 3.0.0 to 3.0.5 (in webOs) OTA.
Just do not do it through windows
Sent from my SAMSUNG-SGH-T989 using xda premium
chicle_11 said:
When you re-install, use acmeinstaller 3.
Edit : on rereading your post, you might have to use this : http://forum.xda-developers.com/showthread.php?t=1426244
If you're having trouble with novaterm, on page 12 of the thread there's a good work around for that.
I know doctoring is a PITA, but you can update from 3.0.0 to 3.0.5 (in webOs) OTA.
Click to expand...
Click to collapse
Worked for me thanks! =)

[INFO] Partition List Nexus 5

Here is the partition list of all Nexus 5 partitions with parted:
Code:
C:\Users\cargo\tools>adb shell
~ # umount /cache
umount /cache
~ # umount /system
umount /system
~ # umount /data
umount /data
~ # parted /dev/block/mmcblk0
parted /dev/block/mmcblk0
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
print
print
Model: MMC SEM32G (sd/mmc)
Disk /dev/block/mmcblk0: 31.3GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 524kB 67.6MB 67.1MB fat16 modem
2 67.6MB 68.7MB 1049kB sbl1
3 68.7MB 69.2MB 524kB rpm
4 69.2MB 69.7MB 524kB tz
5 69.7MB 70.3MB 524kB sdi
6 70.3MB 70.8MB 524kB aboot
7 70.8MB 72.9MB 2097kB pad
8 72.9MB 73.9MB 1049kB sbl1b
9 73.9MB 74.4MB 524kB tzb
10 74.4MB 75.0MB 524kB rpmb
11 75.0MB 75.5MB 524kB abootb
12 75.5MB 78.6MB 3146kB modemst1
13 78.6MB 81.8MB 3146kB modemst2
14 81.8MB 82.3MB 524kB metadata
15 82.3MB 99.1MB 16.8MB misc
16 99.1MB 116MB 16.8MB ext4 persist
17 116MB 119MB 3146kB imgdata
18 119MB 142MB 23.1MB laf
19 142MB 165MB 23.1MB boot
20 165MB 188MB 23.1MB recovery
21 188MB 191MB 3146kB fsg
22 191MB 192MB 524kB fsc
23 192MB 192MB 524kB ssd
24 192MB 193MB 524kB DDR
25 193MB 1267MB 1074MB ext4 system
26 1267MB 1298MB 31.5MB crypto
27 1298MB 2032MB 734MB ext4 cache
28 2032MB 31.3GB 29.2GB ext4 userdata
29 31.3GB 31.3GB 5632B grow
(parted)
Here is a simple list:
Code:
C:\Users\cargo\tools>adb shell
cat /proc/partitions~ #
cat /proc/partitions
major minor #blocks name
179 0 30535680 mmcblk0
179 1 65536 mmcblk0p1
179 2 1024 mmcblk0p2
179 3 512 mmcblk0p3
179 4 512 mmcblk0p4
179 5 512 mmcblk0p5
179 6 512 mmcblk0p6
179 7 2048 mmcblk0p7
179 8 1024 mmcblk0p8
179 9 512 mmcblk0p9
179 10 512 mmcblk0p10
179 11 512 mmcblk0p11
179 12 3072 mmcblk0p12
179 13 3072 mmcblk0p13
179 14 512 mmcblk0p14
179 15 16384 mmcblk0p15
179 16 16384 mmcblk0p16
179 17 3072 mmcblk0p17
179 18 22528 mmcblk0p18
179 19 22528 mmcblk0p19
179 20 22528 mmcblk0p20
179 21 3072 mmcblk0p21
179 22 512 mmcblk0p22
179 23 512 mmcblk0p23
179 24 512 mmcblk0p24
179 25 1048576 mmcblk0p25
179 26 30720 mmcblk0p26
179 27 716800 mmcblk0p27
179 28 28551146 mmcblk0p28
179 29 5 mmcblk0p29
179 32 4096 mmcblk0rpmb
~ #
Can I somehow reformat /system & /cache partitions to F2FS? (For the speeeeed )
przemo_li said:
Can I somehow reformat /system & /cache partitions to F2FS? (For the speeeeed )
Click to expand...
Click to collapse
You won't get much speed out of a hosed phone. No you can't.
jd1639 said:
You won't get much speed out of a hosed phone. No you can't.
Click to expand...
Click to collapse
Meaning, kernel must support F2FS otherwise it wont boot? Obvious (for me at least) Just wanted to know if I can find such kernels (already build), and if there are tools to convert existing partitions. (So that changes performed are not too invasive )
Or if there are some mods that already employ F2FS.
(Moto G is my inspiration here, btw)
Any info and specs on the MMC model?
eng.stk said:
Any info and specs on the MMC model?
Click to expand...
Click to collapse
Do not know what MMC is, but if it was question for me I will just assume its hw question about storage specs for my phone.
1) I do not have that phone yet
2) It will be internetional version of Nexus 5 (16GB or 32GB).
eng.stk said:
Any info and specs on the MMC model?
Click to expand...
Click to collapse
Row 16 of the first output in post 1 identifies the model as as "SEM32G" which if you google, is SanDisk iNand... You can see it referenced in this datasheet:
http://omapworld.com/iNAND_e_MMC_4_41_IF_data_sheet_v1_0[1].pdf
rootSU said:
Row 16 of the first output in post 1 identifies the model as as "SEM32G" which if you google, is SanDisk iNand... You can see it referenced in this datasheet:
Click to expand...
Click to collapse
404 error
przemo_li said:
404 error
Click to expand...
Click to collapse
Because the url has [1] in it. Try and copy / paste
rootSU said:
Because the url has [1] in it. Try and copy / paste
Click to expand...
Click to collapse
Did that before I posted 404
No [1], and still 404
przemo_li said:
Did that before I posted 404
No [1], and still 404
Click to expand...
Click to collapse
It works, don't forget [1].pdf in the end.
przemo_li said:
Did that before I posted 404
No [1], and still 404
Click to expand...
Click to collapse
OK I fixed the link.
rootSU said:
Row 16 of the first output in post 1 identifies the model as as "SEM32G" which if you google, is SanDisk iNand... You can see it referenced in this datasheet:
http://omapworld.com/iNAND_e_MMC_4_41_IF_data_sheet_v1_0[1].pdf
Click to expand...
Click to collapse
Sustained Read:15 MB/s​Sustained Write:9 MB/s​
Biggest bottleneck of this great device
"Why Google?" or "Why LG?"
przemo_li said:
Can I somehow reformat /system & /cache partitions to F2FS? (For the speeeeed )
Click to expand...
Click to collapse
Lol, i do
http://forum.xda-developers.com/google-nexus-5/orig-development/nexus-5-f2fs-t2668486
dennes544 said:
Lol, i do
http://forum.xda-developers.com/google-nexus-5/orig-development/nexus-5-f2fs-t2668486
Click to expand...
Click to collapse
I know you're trying to be helpful but why revive and answer a thread that's been dead for 3 months?
Sent from my Nexus 5 using Tapatalk
Partition Stock
Hi I have a problem a wipe system VOL, I have /sdcard/ /sdcard/0/ /sdcard/0/0/ When I use usb have to goo /sdcard/0/0/ to much problem my question .. How I cant reset all partitions? and leave my fone like new..?? So I have 28 Gb free but I didnt put any file.. I wanna clean all fone and start with OEM partition, Thx ...sorry for english
how do you get parted on your N5? I only get sh: parted: not found lol
Can you please post the table again using bits or sectors as units? That will be very helpful.
jd1639 said:
You won't get much speed out of a hosed phone. No you can't.
Click to expand...
Click to collapse
Formatting cache and data DOES provide a speed boost but not with system. System should stay EXT4 because F2FS improves the performance of write operations the most and, typically, system is read only. Stick LineageOS 13 and 14.1 support data and cache as F2FS. Be aware though that switching data to F2FS WILL wipe internal storage so back it up. If you wish to keep your data the backup the data partition in TWRP and then backup the entire internal storage directory to a computer. After you've backed up everything you can go to wipe, advanced wipe and select data and hit repair or change and change it to F2FS. Once that is done you should reboot back into TWRP, open settings and enable "use rm -rf instead of formatting". When in recovery you can copy your entire internal storage back to your phone, ensure you copy it right, the TWRP directory should be in the root of your internal storage, this is important because it contains your precious data backup. After that reboot back into TWRP and you may have to enable rm -rf in settings, make sure that is enabled! These reboots are for good measure, it's best to just do them. After that you can go to restore and restore your data backup. After it is fully restored you may disable rm -rf in settings and format cache as F2FS. Then reboot to system and enjoy!
Sent from my Pixel using XDA Labs

Gear 2 Rom Firmware extracted

I have extracted the Gear 2 firmware to a zip so people can look at the structure and possibly start modding the device. Its extracted from the newest rom available on Sammobile. If you have any questions let me know.
htt p://bit.ly/1m4mj5m
Velrix said:
I have extracted the Gear 2 firmware to a zip so people can look at the structure and possibly start modding the device. Its extracted from the newest rom available on Sammobile. If you have any questions let me know.
htt p://bit.ly/1m4mj5m
Click to expand...
Click to collapse
Updates..
I am trying to backup the current partitions to see the kernel/recovery and not getting far. Has anyone else been working on this?
sh-3.2$ cat /proc/partitions
major minor #blocks name
7 0 19732 loop0
179 0 3817472 mmcblk0
179 1 4096 mmcblk0p1
179 2 4096 mmcblk0p2
179 3 8192 mmcblk0p3
179 4 8192 mmcblk0p4
179 5 8192 mmcblk0p5
179 6 8192 mmcblk0p6
179 7 8192 mmcblk0p7
259 0 8192 mmcblk0p8
259 1 16384 mmcblk0p9
259 2 12288 mmcblk0p10
259 3 8192 mmcblk0p11
259 4 65536 mmcblk0p12
259 5 131072 mmcblk0p13
259 6 2996224 mmcblk0p14
259 7 524288 mmcblk0p15
179 16 4096 mmcblk0boot1
179 8 4096 mmcblk0boot0
179:0 179:3 179:7 1:10 1:14 1:4 1:8 259:2 259:6 7:2 7:6
179:1 179:4 179:8 1:11 1:15 1:5 1:9 259:3 259:7 7:3 7:7
179:16 179:5 1:0 1:12 1:2 1:6 259:0 259:4 7:0 7:4
179:2 179:6 1:1 1:13 1:3 1:7 259:1 259:5 7:1 7:5
Current information I can receive from the watch.
If I try to make a backup obviously it fails with the following message..
D:\tizen-wearable-sdk\tools>sdb shell
sh-3.2$ chmod 755 /tmp/rkdump
sh-3.2$ /tmp/rkdump /dev/mmcblk0boot0 /tmp/update.img
/tmp/rkdump: /dev/mmcblk0boot0: Permission denied
sh-3.2$ /tmp/rkdump /dev/mmcblk0p1 /tmp/update.img
/tmp/rkdump: /dev/mmcblk0p1: Permission denied
sh-3.2$ /tmp/rkdump /dev/mmcblk0p2 /tmp/update.img
/tmp/rkdump: /dev/mmcblk0p2: Permission denied

Does the Nokia 8 use the A/B partition scheme (Seamless Updates) like Pixel?

HMD has been making a lot of noise about how "stock" their Nokia 8 is.
Does it use the A/B partition scheme (seamless updates) such as Pixel phones?
yes. afaik, all native 7.0 devices have to use it.
i left out the rest of partitioninfo:
NB1:/ $ cat /proc/partitions
major minor #blocks name
179 0 125026304 mmcblk0
179 1 125025280 mmcblk0p1
those are the biggest partitions containing both systems.
here is the full partitioninfo:
Code:
NB1:/ $ cat /proc/partitions
major minor #blocks name
1 0 8192 ram0
1 1 8192 ram1
1 2 8192 ram2
1 3 8192 ram3
1 4 8192 ram4
1 5 8192 ram5
1 6 8192 ram6
1 7 8192 ram7
1 8 8192 ram8
1 9 8192 ram9
1 10 8192 ram10
1 11 8192 ram11
1 12 8192 ram12
1 13 8192 ram13
1 14 8192 ram14
1 15 8192 ram15
253 0 524288 zram0
8 0 62193664 sda
8 1 40960 sda1
8 2 8192 sda2
8 3 256 sda3
8 4 16384 sda4
8 5 112640 sda5
8 6 65536 sda6
8 7 3670016 sda7
8 8 40960 sda8
8 9 8192 sda9
8 10 256 sda10
8 11 16384 sda11
8 12 112640 sda12
8 13 65536 sda13
8 14 3670016 sda14
8 15 8 sda15
259 0 32768 sda16
259 1 1024 sda17
259 2 512 sda18
259 3 512 sda19
259 4 8192 sda20
259 5 1024 sda21
259 6 4 sda22
259 7 65536 sda23
259 8 36864 sda24
259 9 16384 sda25
259 10 54202712 sda26
8 32 4096 sdc
8 33 3940 sdc1
8 16 4096 sdb
8 17 3940 sdb1
8 48 49152 sdd
8 49 4 sdd1
8 50 48992 sdd2
8 64 204800 sde
8 65 512 sde1
8 66 2048 sde2
8 67 512 sde3
8 68 512 sde4
8 69 1024 sde5
8 70 4096 sde6
8 71 32768 sde7
8 72 1024 sde8
8 73 512 sde9
8 74 512 sde10
8 75 512 sde11
8 76 128 sde12
8 77 36864 sde13
8 78 512 sde14
8 79 2048 sde15
259 11 512 sde16
259 12 512 sde17
259 13 1024 sde18
259 14 4096 sde19
259 15 32768 sde20
259 16 1024 sde21
259 17 512 sde22
259 18 512 sde23
259 19 512 sde24
259 20 128 sde25
259 21 36864 sde26
259 22 16 sde27
259 23 4 sde28
259 24 1024 sde29
259 25 256 sde30
259 26 256 sde31
259 27 4 sde32
259 28 4 sde33
259 29 1024 sde34
259 30 8192 sde35
259 31 2048 sde36
259 32 29768 sde37
8 80 32768 sdf
8 81 2048 sdf1
8 82 2048 sdf2
8 83 2044 sdf3
8 84 1024 sdf4
8 85 8192 sdf5
8 86 2048 sdf6
8 87 2048 sdf7
8 88 4096 sdf8
8 89 4096 sdf9
8 90 2048 sdf10
8 91 896 sdf11
179 0 125026304 mmcblk0
179 1 125025280 mmcblk0p1
252 0 3612732 dm-0
7 8 14512 loop8
Really? I'm not sure that's true. The only phones I know that use the A/B partition system are the Pixel and the new Xiaomi Android One phones. The likes of Galaxy S8 and LG G6 which all launched with Nougat do not have this.
Well... Nokia 8 does all the update work before reboot. The reboot after an update seems to boot just like a normal one. That would also be a indication of 2 partitions.
Sent from my TA-1004 using Tapatalk
swejuggalo said:
Well... Nokia 8 does all the update work before reboot. The reboot after an update seems to boot just like a normal one. That would also be a indication of 2 partitions.
Click to expand...
Click to collapse
I can second this. Had an OTA update yesterday and thought it had failed at first because I was expecting the restart to take longer and have cog-belly Android on the screen for a while
matthewsteeples said:
I can second this. Had an OTA update yesterday and thought it had failed at first because I was expecting the restart to take longer and have cog-belly Android on the screen for a while
Click to expand...
Click to collapse
Did you notice what the update was for? Size? Etc?
superleeds27 said:
Did you notice what the update was for? Size? Etc?
Click to expand...
Click to collapse
300 and something mb I think. Was the September security update
matthewsteeples said:
300 and something mb I think. Was the September security update
Click to expand...
Click to collapse
Wonder if it contained more than just that. Seems quite large for a security update!
superleeds27 said:
Wonder if it contained more than just that. Seems quite large for a security update!
Click to expand...
Click to collapse
Something else was in it too, Netflix now works, earlier it did only show on half a screen...

EDL partitions cloning

Hi,
As Redmi 4A are already pretty cheap I wanted to experiment a bit. I have two of them, which one of them had unlocked bootloader and second did not.
I used emmcdl.exe to dump all partitions from one with unlocked bootloader:
Code:
# PartNum PartName StartSec NumSecs
# PartNum PartName StartSec NumSecs
1 modem 131072 172032
2 fsc 393216 2
3 ssd 393218 16
4 sbl1 393234 1024
5 sbl1bak 394258 1024
6 rpm 395282 1024
7 rpmbak 396306 1024
8 tz 397330 4096
9 tzbak 401426 4096
10 devcfg 405522 512
11 devcfgbak 406034 512
12 dsp 406546 32768
13 modemst1 439314 3072
14 modemst2 442386 3072
15 DDR 524288 64
16 fsg 524352 3072
17 sec 527424 32
18 splash 655360 40960
19 aboot 786432 2048
20 abootbak 788480 2048
21 boot 790528 131072
22 recovery 921600 131072
23 devinfo 1052672 2048
24 system 1054720 6291456
25 cache 7471104 524288
26 persist 7995392 65536
27 misc 8060928 2048
28 keystore 8062976 1024
29 config 8064000 64
30 oem 8064064 131072
31 limits 8257536 64
32 mota 8388608 1024
33 dip 8389632 2048
34 mdtp 8391680 65536
35 syscfg 8457216 1024
36 mcfg 8458240 8192
37 lksecapp 8519680 256
38 lksecappbak 8519936 256
39 cmnlib 8520192 512
40 cmnlibbak 8520704 512
41 cmnlib64 8521216 512
42 cmnlib64bak 8521728 512
43 keymaster 8522240 512
44 keymasterbak 8522752 512
45 apdp 8650752 512
46 msadp 8651264 512
47 dpo 8651776 16
48 cust 8781824 1048576
49 userdata 9830400 51240927
and then I have written them to the second Redmi 4A (I dumped them again, checked CRC sums which were fine). I hoped I got clone of the phone. Unfortunately I did not. I lost imei's and what is more phone stopped charging. WiFi and other functions are working working.
Are persist and modemst partitions that contain information about sensors and imei's?
Do you have idea what may went wrong as clonning partitions went OK ?
.

Categories

Resources