FORUMS
Remove All Ads from XDA

My phone shows storage size 16 GB, but partition USERDATA is 27 GB - what to believe?

21 posts
Thanks Meter: 2
 
By JuhaniJ, Junior Member on 18th July 2019, 08:12 AM
Post Reply Email Thread
I have Soyes XS phone. I bought a version with 2GB RAM and 16 GB internal storage. And when I look at Settings > Storage it shows Total space 16.00 GB. So far everything is logical.

But then I used SP Flash Tool and used Read Back to download partition PGPT to my PC. That partition contains the partition table for the internal storage. Program sgdisk shows that partition USERDATA alone is bigger that 16 GB:

Code:
Number  Start (sector)    End (sector)  Size       Code  Name
  22         6422528        61037567   26.0 GiB    0700  userdata
Then I downloaded partition USERDATA to my Linux PC. According to program tune2fs, the partition size is 6826880 blocks * 4096 bytes/block = 27962900480 bytes! I checked the file system with fsck, and it found no errors.

Code:
[[email protected] Soyes-XS]$ ls -l
-rw-r--r--. 1 root root 27962900480 Jul 17 02:43 USERDATA

[[email protected] Soyes-XS]$ file *
USERDATA:    Linux rev 1.0 ext4 filesystem data, UUID=c25d03d9-ea27-3358-873e-b911bfaab62b, volume name "data" (extents) (large files)

[[email protected] ~]# mount -r -o loop /d0/tmp/Soyes-XS/USERDATA /mnt/
[[email protected] ~]# fsck -n /dev/loop0
fsck from util-linux 2.33.2
e2fsck 1.44.6 (5-Mar-2019)
Warning!  /dev/loop0 is mounted.
data: clean, 1980/1712128 files, 253823/6826880 blocks
[[email protected] ~]# tune2fs -l /dev/loop0
tune2fs 1.44.6 (5-Mar-2019)
Filesystem volume name:   data
Last mounted on:          /data
Filesystem UUID:          c25d03d9-ea27-3358-873e-b911bfaab62b
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode filetype extent sparse_super large_file uninit_bg
Filesystem flags:         unsigned_directory_hash 
Default mount options:    (none)
Filesystem state:         clean
Errors behavior:          Remount read-only
Filesystem OS type:       Linux
Inode count:              1712128
Block count:              6826880
Reserved block count:     4096
Free blocks:              6573057
Free inodes:              1710148
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      126
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
Last mount time:          Tue Jul 16 12:07:14 2019
Last write time:          Tue Jul 16 12:07:14 2019
Mount count:              27
Maximum mount count:      -1
Last checked:             Thu Jan  1 02:00:00 1970
Check interval:           0 (<none>)
Lifetime writes:          79 GB
Reserved blocks uid:      10010 (user unknown)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:	          256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
Default directory hash:   tea
Journal backup:           inode blocks
What is the real size of my internal storage? If the size is only 16 GB, is there a danger that the phone will eventually try to write beyond the 16 GB and fail?
10th December 2019, 02:44 PM |#2  
Junior Member
Flag Banda Aceh
Thanks Meter: 1
 
More
I though u r lucky
Yesterday, 07:12 PM |#3  
Junior Member
Thanks Meter: 0
 
More
It's possible that your original partition has hard links and they were copied over as separate files by the backup tool. You can use the du program to check the size of the original partition properly without counting hard links more than once.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes