hey all, i'm having some issues with my phone - it's having issues saving certain data.
Widget will randomly go missing/fail to load, wallpaper would be forgotten, default launcher, default keyboard with default to rom defaults etc.
wiping and trying different ROMs has no cure
I'm on hboot 3.01.
i saw one post to run 'fdisk -l /dev/block/mmcblk0', so i tried it - it doesn't all look right to me with 60 partitions!
c:\...\fastboot>adb shell
~ # ←[6nfdisk -l /dev/block/mmcblk0
fdisk -l /dev/block/mmcblk0
Warning: deleting partitions after 60
Disk /dev/block/mmcblk0: 15.7 GB, 15758000128 bytes
1 heads, 16 sectors/track, 1923584 cylinders
Units = cylinders of 16 * 512 = 8192 bytes
Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 * 1 17 128 4d Unknown
Partition 1 does not end on cylinder boundary
/dev/block/mmcblk0p2 17 49 256 51 Unknown
Partition 2 does not end on cylinder boundary
/dev/block/mmcblk0p3 49 4094 32367 5d Unknown
Partition 3 does not end on cylinder boundary
/dev/block/mmcblk0p4 4094 1923584 15355920 5 Extended
Partition 4 does not end on cylinder boundary
/dev/block/mmcblk0p5 4095 4096 16 5a Unknown
/dev/block/mmcblk0p6 4097 4129 256 73 Unknown
/dev/block/mmcblk0p7 4129 6684 20442+ 0 Empty
/dev/block/mmcblk0p8 6684 6716 256 0 Empty
/dev/block/mmcblk0p9 6716 6844 1024 45 Unknown
/dev/block/mmcblk0p10 6844 6876 256 47 Unknown
/dev/block/mmcblk0p11 6876 7132 2048 46 Unknown
/dev/block/mmcblk0p12 7132 7260 1024 4c Unknown
/dev/block/mmcblk0p13 7260 7264 32 0 Empty
/dev/block/mmcblk0p14 7264 8032 6144 34 Unknown
/dev/block/mmcblk0p15 8032 8160 1024 36 Unknown
/dev/block/mmcblk0p16 8161 8192 256 76 Unknown
/dev/block/mmcblk0p17 8193 13313 40960 77 Unknown
/dev/block/mmcblk0p18 13313 14336 8190+ 74 Unknown
/dev/block/mmcblk0p19 14337 16384 16384 0 Empty
/dev/block/mmcblk0p20 16385 18433 16384 48 Unknown
/dev/block/mmcblk0p21 18433 20480 16383 71 Unknown
/dev/block/mmcblk0p22 20481 20608 1022+ 76 Unknown
/dev/block/mmcblk0p23 20608 21120 4096 4a Unknown
/dev/block/mmcblk0p24 21121 21632 4096 4b Unknown
/dev/block/mmcblk0p25 21633 24193 20480 19 Unknown
/dev/block/mmcblk0p26 24193 24193 4 0 Empty
/dev/block/mmcblk0p27 24193 24225 256 23 Unknown
/dev/block/mmcblk0p28 24225 24227 16 0 Empty
/dev/block/mmcblk0p29 24227 24387 1280+ 33 Unknown
/dev/block/mmcblk0p30 24387 24395 64 90 Unknown
/dev/block/mmcblk0p31 24396 36864 99752 0 Empty
/dev/block/mmcblk0p32 36865 249856 1703935 83 Linux
/dev/block/mmcblk0p33 249857 282624 262143+ 83 Linux
/dev/block/mmcblk0p34 282625 593920 2490367+ 83 Linux
/dev/block/mmcblk0p35 593921 1896192 10418176 c Win95 FAT32 (LB
A)
/dev/block/mmcblk0p36 4095 4096 16 5a Unknown
/dev/block/mmcblk0p37 4097 4129 256 73 Unknown
/dev/block/mmcblk0p38 4129 6684 20442+ 0 Empty
/dev/block/mmcblk0p39 6684 6716 256 0 Empty
/dev/block/mmcblk0p40 6716 6844 1024 45 Unknown
/dev/block/mmcblk0p41 6844 6876 256 47 Unknown
/dev/block/mmcblk0p42 6876 7132 2048 46 Unknown
/dev/block/mmcblk0p43 7132 7260 1024 4c Unknown
/dev/block/mmcblk0p44 7260 7264 32 0 Empty
/dev/block/mmcblk0p45 7264 8032 6144 34 Unknown
/dev/block/mmcblk0p46 8032 8160 1024 36 Unknown
/dev/block/mmcblk0p47 8161 8192 256 76 Unknown
/dev/block/mmcblk0p48 8193 13313 40960 77 Unknown
/dev/block/mmcblk0p49 13313 14336 8190+ 74 Unknown
/dev/block/mmcblk0p50 14337 16384 16384 0 Empty
/dev/block/mmcblk0p51 16385 18433 16384 48 Unknown
/dev/block/mmcblk0p52 18433 20480 16383 71 Unknown
/dev/block/mmcblk0p53 20481 20608 1022+ 76 Unknown
/dev/block/mmcblk0p54 20608 21120 4096 4a Unknown
/dev/block/mmcblk0p55 21121 21632 4096 4b Unknown
/dev/block/mmcblk0p56 21633 24193 20480 19 Unknown
/dev/block/mmcblk0p57 24193 24193 4 0 Empty
/dev/block/mmcblk0p58 24193 24225 256 23 Unknown
/dev/block/mmcblk0p59 24225 24227 16 0 Empty
/dev/block/mmcblk0p60 24227 24387 1280+ 33 Unknown
Partition table entries are not in disk order
~ # ←[6n
Click to expand...
Click to collapse
from what i've read on other phones, i doubt i can do much with the partitions are there is no S-Off for the s3...
whaddya think - fixable or warranty repair?
Guys,
Need some help. When my device failed to boot(not able to mount /cache, /data) I researched ways to resolve the issue and eventually ended up using parted and fdisk. As a result found that partition no 4 was faulty..
-------------------------------------------------------------------------------------------
~ # parted /dev/block/mmcblk0p4
parted /dev/block/mmcblk0p4
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0p4
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
print
print
Error: Can't have a partition outside the disk!
fdisk gave the following output
------------------------------------------------------------------------
~ # fdisk -ul /dev/block/mmcblk0
fdisk -ul /dev/block/mmcblk0
Warning: deleting partitions after 60
Disk /dev/block/mmcblk0: 2415 MB, 2415919104 bytes
1 heads, 16 sectors/track, 294912 cylinders, total 4718592 sectors
Units = sectors of 1 * 512 = 512 bytes
Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 * 1 256 128 4d Unknown
Partition 1 does not end on cylinder boundary
/dev/block/mmcblk0p2 257 768 256 51 Unknown
Partition 2 does not end on cylinder boundary
/dev/block/mmcblk0p3 769 65502 32367 5d Unknown
Partition 3 does not end on cylinder boundary
/dev/block/mmcblk0p4 65503 4718590 2326544 5 Extended
Partition 4 does not end on cylinder boundary
/dev/block/mmcblk0p5 65504 65535 16 5a Unknown
/dev/block/mmcblk0p6 65537 66048 256 73 Unknown
/dev/block/mmcblk0p7 66050 106934 20442+ 0 Empty
/dev/block/mmcblk0p8 106936 107447 256 0 Empty
/dev/block/mmcblk0p9 107449 109496 1024 45 Unknown
/dev/block/mmcblk0p10 109498 110009 256 47 Unknown
/dev/block/mmcblk0p11 110011 114106 2048 46 Unknown
/dev/block/mmcblk0p12 114108 116155 1024 4c Unknown
/dev/block/mmcblk0p13 116157 116220 32 0 Empty
/dev/block/mmcblk0p14 116222 128509 6144 34 Unknown
/dev/block/mmcblk0p15 128511 130558 1024 36 Unknown
/dev/block/mmcblk0p16 130560 131071 256 76 Unknown
/dev/block/mmcblk0p17 131073 212992 40960 77 Unknown
/dev/block/mmcblk0p18 212994 229374 8190+ 74 Unknown
/dev/block/mmcblk0p19 229376 262143 16384 0 Empty
/dev/block/mmcblk0p20 262145 294912 16384 48 Unknown
/dev/block/mmcblk0p21 294914 327679 16383 71 Unknown
/dev/block/mmcblk0p22 327681 1966078 819199 83 Linux
/dev/block/mmcblk0p23 1966080 4412897 1223409 83 Linux
/dev/block/mmcblk0p24 4412899 4658576 122839 83 Linux
/dev/block/mmcblk0p25 4658578 4658641 32 90 Unknown
/dev/block/mmcblk0p26 4658643 4666834 4096 4a Unknown
/dev/block/mmcblk0p27 4666836 4675027 4096 4b Unknown
/dev/block/mmcblk0p28 4675029 4715988 20480 19 Unknown
/dev/block/mmcblk0p29 4715990 4715997 4 0 Empty
/dev/block/mmcblk0p30 4715999 4716510 256 23 Unknown
/dev/block/mmcblk0p31 4716512 4716543 16 0 Empty
/dev/block/mmcblk0p32 4716545 4718589 1022+ 76 Unknown
/dev/block/mmcblk0p33 65504 65535 16 5a Unknown
/dev/block/mmcblk0p34 65537 66048 256 73 Unknown
/dev/block/mmcblk0p35 66050 106934 20442+ 0 Empty
/dev/block/mmcblk0p36 106936 107447 256 0 Empty
/dev/block/mmcblk0p37 107449 109496 1024 45 Unknown
/dev/block/mmcblk0p38 109498 110009 256 47 Unknown
/dev/block/mmcblk0p39 110011 114106 2048 46 Unknown
/dev/block/mmcblk0p40 114108 116155 1024 4c Unknown
/dev/block/mmcblk0p41 116157 116220 32 0 Empty
/dev/block/mmcblk0p42 116222 128509 6144 34 Unknown
/dev/block/mmcblk0p43 128511 130558 1024 36 Unknown
/dev/block/mmcblk0p44 130560 131071 256 76 Unknown
/dev/block/mmcblk0p45 131073 212992 40960 77 Unknown
/dev/block/mmcblk0p46 212994 229374 8190+ 74 Unknown
/dev/block/mmcblk0p47 229376 262143 16384 0 Empty
/dev/block/mmcblk0p48 262145 294912 16384 48 Unknown
/dev/block/mmcblk0p49 294914 327679 16383 71 Unknown
/dev/block/mmcblk0p50 327681 1966078 819199 83 Linux
/dev/block/mmcblk0p51 1966080 4412897 1223409 83 Linux
/dev/block/mmcblk0p52 4412899 4658576 122839 83 Linux
/dev/block/mmcblk0p53 4658578 4658641 32 90 Unknown
/dev/block/mmcblk0p54 4658643 4666834 4096 4a Unknown
/dev/block/mmcblk0p55 4666836 4675027 4096 4b Unknown
/dev/block/mmcblk0p56 4675029 4715988 20480 19 Unknown
/dev/block/mmcblk0p57 4715990 4715997 4 0 Empty
/dev/block/mmcblk0p58 4715999 4716510 256 23 Unknown
/dev/block/mmcblk0p59 4716512 4716543 16 0 Empty
/dev/block/mmcblk0p60 4716545 4718589 1022+ 76 Unknown
Partition table entries are not in disk order
--------------------------------------------------------------------
So i went ahead and deleted partition 4 using fdisk and then parted gave out the partition table as below
~ # 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 MLL00M (sd/mmc)
Disk /dev/block/mmcblk0: 2416MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 512B 132kB 131kB primary boot
2 132kB 394kB 262kB primary
3 394kB 33.5MB 33.1MB primary
--------------------------------------------------------------------------
I then re-booted the phone in bootloader and it never came back up - ofcourse what i missed was to move all other partitions up... 5 to 4, 6 to 5 etc..
I downloaded QPST as the device is now only connecting in download mode and need an Partition image file to download on the device. Can somebody please use QPST and backup partition image file and share please. I believe the same can be downloaded to the phone using QPST.
Please guide / advice if there are any other options. Have checked the full thread of HTC Unbriking project but no luck.
I was on hboot 1.29 and S-OFF.
Please help.
Missed to mention that device is Sensation XE.
Sent from my Nexus 7 using XDA Free mobile app
The partition table was fine. You nuked it. JTAG time
Keep in mind, I'm a Linux user, but just jumping blindly into Android. I have rooted the device and am running these commands with ADB (with TWRP running on the phone) as root.
When I try to run the command parted /dev/block/mmcblk0, and then print out the partition details, I get the following error message:
Code:
~ # 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
Error: Can't have overlapping partitions.
(parted)
How can I read the partition in parted, and more importantly, why am I getting this error message?
The thing is, the phone seems to be working just fine, so if there is any damage to the partition table, it does not seem to be affecting phone function in any way.
If it makes a difference, the phone is an HTC One V with firmware tailored for the Cricket wireless company, but I asked this in the general Q&A because I'm assuming this isn't phone specific, but a general Android issue.
Just in case someone needs the additional information, the phone doesn't seem to have lsblk built in, but this is the output from fdisk (and gives more warning messages that I'm not entirely familiar with):
Code:
~ # fdisk -l -u /dev/block/mmcblk0
Warning: deleting partitions after 60
Disk /dev/block/mmcblk0: 2432 MB, 2432696320 bytes
1 heads, 16 sectors/track, 296960 cylinders, total 4751360 sectors
Units = sectors of 1 * 512 = 512 bytes
Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 * 1 1000 500 4d Unknown
Partition 1 does not end on cylinder boundary
/dev/block/mmcblk0p2 1001 1128 64 45 Unknown
Partition 2 does not end on cylinder boundary
/dev/block/mmcblk0p3 1129 10128 4500 46 Unknown
Partition 3 does not end on cylinder boundary
/dev/block/mmcblk0p4 10129 4751358 2370615 5 Extended
Partition 4 does not end on cylinder boundary
/dev/block/mmcblk0p5 10130 70129 30000 49 Unknown
/dev/block/mmcblk0p6 70131 95130 12500 50 Unknown
/dev/block/mmcblk0p7 95132 99227 2048 51 Unknown
/dev/block/mmcblk0p8 99229 105372 3072 52 Unknown
/dev/block/mmcblk0p9 105374 109469 2048 53 Unknown
/dev/block/mmcblk0p10 109471 111518 1024 54 Unknown
/dev/block/mmcblk0p11 111520 113567 1024 56 Unknown
/dev/block/mmcblk0p12 113569 131071 8751+ 55 Unknown
/dev/block/mmcblk0p13 131073 139264 4096 4a Unknown
/dev/block/mmcblk0p14 139266 147457 4096 4b Unknown
/dev/block/mmcblk0p15 147459 149506 1024 74 Unknown
/dev/block/mmcblk0p16 149508 163326 6909+ 75 Unknown
/dev/block/mmcblk0p17 163328 163839 256 76 Unknown
/dev/block/mmcblk0p18 163841 165888 1024 47 Unknown
/dev/block/mmcblk0p19 165890 167937 1024 34 Unknown
/dev/block/mmcblk0p20 167939 170498 1280 36 Unknown
/dev/block/mmcblk0p21 170500 187901 8701 71 Unknown
/dev/block/mmcblk0p22 187903 196094 4096 48 Unknown
/dev/block/mmcblk0p23 196096 196607 256 73 Unknown
/dev/block/mmcblk0p24 196609 200702 2047 26 Unknown
/dev/block/mmcblk0p25 200704 1835006 817151+ 83 Linux
/dev/block/mmcblk0p26 1835008 3833854 999423+ 83 Linux
/dev/block/mmcblk0p27 3833856 4095998 131071+ 83 Linux
/dev/block/mmcblk0p28 4096000 4452350 178175+ 83 Linux
/dev/block/mmcblk0p29 4452352 4456446 2047+ 33 Unknown
/dev/block/mmcblk0p30 4456448 4504942 24247+ 19 Unknown
/dev/block/mmcblk0p31 4504944 4505085 71 90 Unknown
/dev/block/mmcblk0p32 4505087 4505598 256 23 Unknown
/dev/block/mmcblk0p33 4505600 4702191 98296 c Win95 FAT32 (LBA)
/dev/block/mmcblk0p34 10130 70129 30000 49 Unknown
/dev/block/mmcblk0p35 70131 95130 12500 50 Unknown
/dev/block/mmcblk0p36 95132 99227 2048 51 Unknown
/dev/block/mmcblk0p37 99229 105372 3072 52 Unknown
/dev/block/mmcblk0p38 105374 109469 2048 53 Unknown
/dev/block/mmcblk0p39 109471 111518 1024 54 Unknown
/dev/block/mmcblk0p40 111520 113567 1024 56 Unknown
/dev/block/mmcblk0p41 113569 131071 8751+ 55 Unknown
/dev/block/mmcblk0p42 131073 139264 4096 4a Unknown
/dev/block/mmcblk0p43 139266 147457 4096 4b Unknown
/dev/block/mmcblk0p44 147459 149506 1024 74 Unknown
/dev/block/mmcblk0p45 149508 163326 6909+ 75 Unknown
/dev/block/mmcblk0p46 163328 163839 256 76 Unknown
/dev/block/mmcblk0p47 163841 165888 1024 47 Unknown
/dev/block/mmcblk0p48 165890 167937 1024 34 Unknown
/dev/block/mmcblk0p49 167939 170498 1280 36 Unknown
/dev/block/mmcblk0p50 170500 187901 8701 71 Unknown
/dev/block/mmcblk0p51 187903 196094 4096 48 Unknown
/dev/block/mmcblk0p52 196096 196607 256 73 Unknown
/dev/block/mmcblk0p53 196609 200702 2047 26 Unknown
/dev/block/mmcblk0p54 200704 1835006 817151+ 83 Linux
/dev/block/mmcblk0p55 1835008 3833854 999423+ 83 Linux
/dev/block/mmcblk0p56 3833856 4095998 131071+ 83 Linux
/dev/block/mmcblk0p57 4096000 4452350 178175+ 83 Linux
/dev/block/mmcblk0p58 4452352 4456446 2047+ 33 Unknown
/dev/block/mmcblk0p59 4456448 4504942 24247+ 19 Unknown
/dev/block/mmcblk0p60 4504944 4505085 71 90 Unknown
Partition table entries are not in disk order
Hello
I Found this tutorial for resizing Android partition but nothing happens:
I followed all the steps but I am missing something and cant get it work
So far I have
/system 1.6GB
/cache 255MB
/data (userdata) 2.4 GB
/sdcard 9.9GB
What I want is to give to the /data partition more 3 GB to became 5.4 GB
and /sdcard will be 6.9 GB
SystemR89 said:
[size=+2]Are you annoyied to move your apps on SD?
Are you experiencing slow down on your phone 'cause too many apps out of internal memory?
That's the solution![/size]
Code:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead pets, thermonuclear
* war, or the current economic crisis caused by you following these
* directions. YOU are choosing to make these modificiations, and
* if you point your finger at me for messing up your device, We will
* laugh at you. Loud and hard.
*/
YOU ARE GOING TO MODIFY PHONE'S PARTITION TABLE, A WRONG STEP COULD BRICK YOUR PHONE.
PREREQUISITES:
Linux computer with Android SDK installed or a mind in order to use these instructions in a different way (different OS, partial SDK installation, ecc...)
30-60min
Backup of your apps, data and your internal memory, you have to re-flash your rom. If needed backup your "sdcard" partition (you are going to loose everything in, so also apps on sd card), maybe you could consider a nandroid backup for a disaster recovery and/or titanium backup (or equivalent) to restore your apps and settings.
INSTRUCTIONS:
Install and boot TWRP
Get a shell:
Code:
(PC) adb shell
Umount sdcard
Code:
(ADB SHELL) umount /sdcard
Open fdisk
Code:
(ADB SHELL) fdisk /dev/block/mmcblk0
Print current partition table (and save the output somewhere)
Code:
(ADB SHELL/fdisk) p
Remove sdcard and data partition:
Code:
(ADB SHELL/fdisk) d
(ADB SHELL/fdisk) 15
(ADB SHELL/fdisk) d
(ADB SHELL/fdisk) 14
Create new data partition
Code:
(ADB SHELL/fdisk) n
(First cylinder) -> you have to indicate the same start cylinder of partition 14 read in step 6
(Last cylinder) -> +8192M (this will create a 8gB partition)
Check new partition table
Code:
(ADB SHELL/fdisk) p
Create new sd partition
Code:
(ADB SHELL/fdisk) n
(First cylinder) -> you have to indicate the stop cylinder of partition 14 read in step 8 +1. If you read 292945 as stop cylinder you have to write 292946.
(Last cylinder) -> just press enter
(ADB SHELL/fdisk) t
(ADB SHELL/fdisk) 15
(ADB SHELL/fdisk) c
Write changes to partition table
Code:
(ADB SHELL/fdisk) w
"wipe" data and sdcard to format your new partitions
Push your ROM and gapps
Code:
(PC) adb push myrom.zip /sdcard/
(PC) adb push gapps.zip /sdcard/
Flash ROM and gapps
Reboot
...if everything was going successfully...
Eventually restore sdcard data
Done!
Enjoy your new big data partiton
Click to expand...
Click to collapse
----------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------
What I did is to follow the instructions
from 1 to 10 from the first post
Here the partition from df command
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 405576 20 405556 0% /dev
tmpfs 405576 16 405560 0% /tmp
/dev/block/mmcblk0p34 258012 4296 253716 2% /cache
/dev/block/mmcblk0p36 10405888 2256776 8149112 22% /sdcard
/dev/block/mmcblk0p36 10405888 2256776 8149112 22% /and-sec
~ # umount -a
umount: can't umount /tmp: Device or resource busy
umount: can't umount /sys/fs/selinux: Device or resource busy
umount: can't umount /sys: Device or resource busy
umount: can't umount /dev/pts: Device or resource busy
umount: can't umount /dev: Device or resource busy
~ # df
Filesystem 1K-blocks Used Available Use% Mounted on
df: /proc/mounts: No such file or directory
~ # fdisk /dev/block/mmcblk0
1. umount -a
2. fdisk /dev/block/mmcblk0
then type p
Disk /dev/block/mmcblk0: 15.6 GB, 15634268160 bytes
1 heads, 16 sectors/track, 1908480 cylinders
Units = cylinders of 16 * 512 = 8192 bytes
Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 * 1 17 128 4d Unknown
Partition 1 does not end on cylinder boundary
/dev/block/mmcblk0p2 17 49 256 51 Unknown
Partition 2 does not end on cylinder boundary
/dev/block/mmcblk0p3 49 16382 130671 5d Unknown
Partition 3 does not end on cylinder boundary
/dev/block/mmcblk0p4 16382 1908480 15136784 5 Extended
Partition 4 does not end on cylinder boundary
/dev/block/mmcblk0p5 16383 16384 16 5a Unknown
/dev/block/mmcblk0p6 16385 16417 256 73 Unknown
/dev/block/mmcblk0p7 16417 18364 15577+ 5b Unknown
/dev/block/mmcblk0p8 18364 18396 256 5c Unknown
/dev/block/mmcblk0p9 18396 18524 1024 45 Unknown
/dev/block/mmcblk0p10 18524 18556 256 47 Unknown
/dev/block/mmcblk0p11 18556 18812 2048 46 Unknown
/dev/block/mmcblk0p12 18812 18940 1024 4c Unknown
/dev/block/mmcblk0p13 18940 18944 32 0 Empty
/dev/block/mmcblk0p14 18944 19712 6144 34 Unknown
/dev/block/mmcblk0p15 19712 19840 1024 36 Unknown
/dev/block/mmcblk0p16 19840 19968 1024 0 Empty
/dev/block/mmcblk0p17 19968 25728 46080 77 Unknown
/dev/block/mmcblk0p18 25729 27008 10240 7a Unknown
/dev/block/mmcblk0p19 27009 27649 5120 0 Empty
/dev/block/mmcblk0p20 27649 28672 8190+ 74 Unknown
/dev/block/mmcblk0p21 28673 30720 16384 48 Unknown
/dev/block/mmcblk0p22 30721 32768 16383+ 71 Unknown
/dev/block/mmcblk0p23 32769 32896 1022+ 76 Unknown
/dev/block/mmcblk0p24 32896 33408 4096 4a Unknown
/dev/block/mmcblk0p25 33409 33920 4096 4b Unknown
/dev/block/mmcblk0p26 33921 36481 20480 19 Unknown
/dev/block/mmcblk0p27 36481 36481 4 0 Empty
/dev/block/mmcblk0p28 36481 36513 256 23 Unknown
/dev/block/mmcblk0p29 36513 36515 16 0 Empty
/dev/block/mmcblk0p30 36515 36675 1280+ 0 Empty
/dev/block/mmcblk0p31 36675 36683 64 0 Empty
/dev/block/mmcblk0p32 36684 49152 99752 0 Empty
/dev/block/mmcblk0p33 49153 262144 1703935 83 Linux
/dev/block/mmcblk0p34 262145 294912 262143+ 83 Linux
/dev/block/mmcblk0p35 294913 606208 2490367+ 83 Linux
/dev/block/mmcblk0p36 606209 1908480 10418176 c Win95 FAT32 (LBA)
/dev/block/mmcblk0p37 16383 16384 16 5a Unknown
/dev/block/mmcblk0p38 16385 16417 256 73 Unknown
/dev/block/mmcblk0p39 16417 18364 15577+ 5b Unknown
/dev/block/mmcblk0p40 18364 18396 256 5c Unknown
/dev/block/mmcblk0p41 18396 18524 1024 45 Unknown
/dev/block/mmcblk0p42 18524 18556 256 47 Unknown
/dev/block/mmcblk0p43 18556 18812 2048 46 Unknown
/dev/block/mmcblk0p44 18812 18940 1024 4c Unknown
/dev/block/mmcblk0p45 18940 18944 32 0 Empty
/dev/block/mmcblk0p46 18944 19712 6144 34 Unknown
/dev/block/mmcblk0p47 19712 19840 1024 36 Unknown
/dev/block/mmcblk0p48 19840 19968 1024 0 Empty
/dev/block/mmcblk0p49 19968 25728 46080 77 Unknown
/dev/block/mmcblk0p50 25729 27008 10240 7a Unknown
/dev/block/mmcblk0p51 27009 27649 5120 0 Empty
/dev/block/mmcblk0p52 27649 28672 8190+ 74 Unknown
/dev/block/mmcblk0p53 28673 30720 16384 48 Unknown
/dev/block/mmcblk0p54 30721 32768 16383+ 71 Unknown
/dev/block/mmcblk0p55 32769 32896 1022+ 76 Unknown
/dev/block/mmcblk0p56 32896 33408 4096 4a Unknown
/dev/block/mmcblk0p57 33409 33920 4096 4b Unknown
/dev/block/mmcblk0p58 33921 36481 20480 19 Unknown
/dev/block/mmcblk0p59 36481 36481 4 0 Empty
/dev/block/mmcblk0p60 36481 36513 256 23 Unknown
Partition table entries are not in disk order
And see the partition I need to delete
/dev/block/mmcblk0p35 294913 606208 2490367+ 83 Linux
/dev/block/mmcblk0p36 606209 1908480 10418176 c Win95 FAT32 (LBA)
---------------------------------
/data partition is 2.4 GB so dev/block/mmcblk0p35
/storage partition is 9.9 GB /dev/block/mmcblk0p36
then d
35
d
35
Because when I first delete 35 partition 36 became 35...
Next thing I am adding new parttion
after adding new partition
/dev/block/mmcblk0p59 294913 929679 5078128+ 83 Linux
This is for sd card parttion:
Command (m for help): n
First cylinder (18941-1908480, default 18941): 929680
Sector 14874864 is already allocated
First cylinder (929681-1908480, default 929681):
Using default value 929681
Last cylinder or +size or +sizeM or +sizeK (929681-1908480, default 1908480):
Using default value 1908480
And I get this
/dev/block/mmcblk0p60 929681 1908480 7830399+ 83 Linux
Then I did
Command (m for help): t
Partition number (1-60): 60
Hex code (type L to list codes): c
Changed system type of partition 60 to c (Win95 FAT32 (LBA))
And Finally I have
/dev/block/mmcblk0p59 294913 929679 5078128+ 83 Linux ===> should be /data
/dev/block/mmcblk0p60 929681 1908480 7830399+ c Win95 FAT32 (LBA) => should be /sdcard
And then I did
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table
Everything so far is good
The problem now is how to deal with step 11 ===> "wipe" data and sdcard to format your new partitions
I have searched in the forum and I found this comment http://forum.xda-developers.com/show...&postcount=446
It says 8) "wipe" data and sdcard to format your new partitions. (May require to mount the SDCARD)
I am trying to mount the partitions
~ # mount -a
mount: mounting /dev/block/mmcblk0p34 on /cache failed: No such file or directory
mount: mounting /dev/block/mmcblk0p35 on /data failed: No such file or directory
mount: mounting /dev/block/mmcblk0p33 on /system failed: No such file or directory
mount: mounting /dev/block/mmcblk0p36 on /sdcard failed: No such file or directory
mount: mounting /usb-otg on vfat failed: No such file or directory
When I check back
Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 * 1 17 128 4d Unknown
Partition 1 does not end on cylinder boundary
/dev/block/mmcblk0p2 17 49 256 51 Unknown
Partition 2 does not end on cylinder boundary
/dev/block/mmcblk0p3 49 16382 130671 5d Unknown
Partition 3 does not end on cylinder boundary
/dev/block/mmcblk0p4 16382 1908480 15136784 5 Extended
Partition 4 does not end on cylinder boundary
/dev/block/mmcblk0p5 16383 16384 16 5a Unknown
/dev/block/mmcblk0p6 16385 16417 256 73 Unknown
/dev/block/mmcblk0p7 16417 18364 15577+ 5b Unknown
/dev/block/mmcblk0p8 18364 18396 256 5c Unknown
/dev/block/mmcblk0p9 18396 18524 1024 45 Unknown
/dev/block/mmcblk0p10 18524 18556 256 47 Unknown
/dev/block/mmcblk0p11 18556 18812 2048 46 Unknown
/dev/block/mmcblk0p12 18812 18940 1024 4c Unknown
/dev/block/mmcblk0p13 18940 18944 32 0 Empty
/dev/block/mmcblk0p14 18944 19712 6144 34 Unknown
/dev/block/mmcblk0p15 19712 19840 1024 36 Unknown
/dev/block/mmcblk0p16 19840 19968 1024 0 Empty
/dev/block/mmcblk0p17 19968 25728 46080 77 Unknown
/dev/block/mmcblk0p18 25729 27008 10240 7a Unknown
/dev/block/mmcblk0p19 27009 27649 5120 0 Empty
/dev/block/mmcblk0p20 27649 28672 8190+ 74 Unknown
/dev/block/mmcblk0p21 28673 30720 16384 48 Unknown
/dev/block/mmcblk0p22 30721 32768 16383+ 71 Unknown
/dev/block/mmcblk0p23 32769 32896 1022+ 76 Unknown
/dev/block/mmcblk0p24 32896 33408 4096 4a Unknown
/dev/block/mmcblk0p25 33409 33920 4096 4b Unknown
/dev/block/mmcblk0p26 33921 36481 20480 19 Unknown
/dev/block/mmcblk0p27 36481 36481 4 0 Empty
/dev/block/mmcblk0p28 36481 36513 256 23 Unknown
/dev/block/mmcblk0p29 294913 929679 5078128+ 83 Linux
/dev/block/mmcblk0p30 929681 1908480 7830399+ c Win95 FAT32 (LBA)
When I flash with again I am with 2.4 GB /data and 9.9GB /sdcard
Can someone help me out with this, because I am sure that I am missing something little thing to get it work
If you're re-flashing using the HTC RUU's, it will override any chances you've made.
Renan Lazarotto said:
If you're re-flashing using the HTC RUU's, it will override any chances you've made.
Click to expand...
Click to collapse
I reflash the with TWRP version 3....
The problem I have after step 10, I am not able to mount back to follwing partitions, to be able to format it with the changed partition table.....
/dev/block/mmcblk0p33 49153 262144 1703935 83 Linux ====> /system
/dev/block/mmcblk0p34 262145 294912 262143+ 83 Linux ====> /cache
/dev/block/mmcblk0p35 294913 606208 2490367+ 83 Linux ====> /data
/dev/block/mmcblk0p36 606209 1908480 10418176 c Win95 FAT32 (LBA) ====> /sdcard
Regarding Pixel 32GB, I want to know the size of each partition(boot, system etc).
Please show below via adb shell.
cat /proc/partitions
ls -l /dev/block/platform/soc/7824900.sdhci/by-name
notice: "7824900.sdhci" is diffirent name folder.
Sorry, the following path is correct.
ls -l /dev/block/bootdevice/by-name
Can't list the /dev directory due to lack of permissions. Best I can give you is /proc/partitions:
Code:
sailfish:/ $ cat /proc/partitions
major minor #blocks name
254 0 524288 zram0
8 0 31145984 sda
8 1 512 sda1
8 2 512 sda2
8 3 512 sda3
8 4 512 sda4
8 5 2048 sda5
8 6 2048 sda6
8 7 512 sda7
8 8 512 sda8
8 9 512 sda9
8 10 512 sda10
8 11 512 sda11
8 12 512 sda12
8 13 256 sda13
8 14 256 sda14
8 15 256 sda15
259 0 256 sda16
259 1 4096 sda17
259 2 4096 sda18
259 3 32768 sda19
259 4 32768 sda20
259 5 32768 sda21
259 6 32768 sda22
259 7 128 sda23
259 8 128 sda24
259 9 71680 sda25
259 10 71680 sda26
259 11 256 sda27
259 12 256 sda28
259 13 256 sda29
259 14 256 sda30
259 15 307200 sda31
259 16 307200 sda32
259 17 2097152 sda33
259 18 2097152 sda34
259 19 26038272 sda35
259 20 4820 sda36
8 32 4096 sdc
8 33 4052 sdc1
8 16 4096 sdb
8 17 4052 sdb1
8 48 49152 sdd
8 49 1024 sdd1
8 50 8 sdd2
8 51 32768 sdd3
8 52 128 sdd4
8 53 4 sdd5
8 54 4 sdd6
8 55 1024 sdd7
8 56 4 sdd8
8 57 2048 sdd9
8 58 2048 sdd10
8 59 1024 sdd11
8 60 4 sdd12
8 61 9020 sdd13
8 64 36864 sde
8 65 512 sde1
8 66 6144 sde2
8 67 4096 sde3
8 68 2048 sde4
8 69 16384 sde5
8 70 7636 sde6
8 80 8192 sdf
8 81 16 sdf1
8 82 256 sdf2
8 83 2048 sdf3
8 84 4 sdf4
8 85 5824 sdf5
253 0 2064396 dm-0
253 1 302360 dm-1
Thank you so much for reply!
I have a another request.
Please show below via adb shell.
df
mount
tatsu_vel said:
Thank you so much for reply!
I have a another request.
Please show below via adb shell.
df
mount
Click to expand...
Click to collapse
Here you go:
sailfish:/ $ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 1999708 1484912 498412 75% /
tmpfs 1898468 440 1898028 1% /dev
tmpfs 1898468 0 1898468 0% /mnt
/dev/block/dm-1 292868 223040 63784 78% /vendor
/dev/block/bootdevice/by-name/userdata 25497924 8109564 17371976 32% /data
/dev/fuse 25497924 8109564 17371976 32% /storage/emulated
sailfish:/ $ mount
rootfs on / type rootfs (rw,seclabel)
/dev/root on / type ext4 (ro,seclabel,relatime,data=ordered)
tmpfs on /dev type tmpfs (rw,seclabel,nosuid,relatime,size=1898468k,nr_inodes=474617,mode=755)
devpts on /dev/pts type devpts (rw,seclabel,relatime,mode=600)
proc on /proc type proc (rw,relatime,gid=3009,hidepid=2)
sysfs on /sys type sysfs (rw,seclabel,relatime)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,seclabel,relatime)
none on /acct type cgroup (rw,relatime,cpuacct)
none on /dev/stune type cgroup (rw,relatime,schedtune)
tmpfs on /mnt type tmpfs (rw,seclabel,relatime,size=1898468k,nr_inodes=474617,mode=755,gid=1000)
none on /config type configfs (rw,relatime)
none on /dev/cpuctl type cgroup (rw,relatime,cpu)
none on /dev/cpuset type cgroup (rw,relatime,cpuset,noprefix,release_agent=/sbin/cpuset_release_agent)
pstore on /sys/fs/pstore type pstore (rw,seclabel,relatime)
/dev/block/dm-1 on /vendor type ext4 (ro,seclabel,relatime,discard,data=ordered)
/dev/block/bootdevice/by-name/modem_a on /firmware/radio type vfat (ro,context=ubject_r:firmware_file:s0,relatime,uid=1000,fmask=0337,dmask=0227,codepage=437,iocharset=iso8859-1,shortname=lower,errors=remount-ro)
/dev/block/bootdevice/by-name/userdata on /data type ext4 (rw,seclabel,nosuid,nodev,relatime,noauto_da_alloc,data=ordered)
/dev/block/bootdevice/by-name/persist on /persist type ext4 (rw,seclabel,nosuid,nodev,relatime,data=ordered)
tmpfs on /storage type tmpfs (rw,seclabel,relatime,size=1898468k,nr_inodes=474617,mode=755,gid=1000)
adb on /dev/usb-ffs/adb type functionfs (rw,relatime)
/dev/fuse on /mnt/runtime/default/emulated type fuse (rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other)
/dev/fuse on /storage/emulated type fuse (rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other)
/dev/fuse on /mnt/runtime/read/emulated type fuse (rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other)
/dev/fuse on /mnt/runtime/write/emulated type fuse (rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other)
Click to expand...
Click to collapse