ShiftPhone 8 sees only half of storage

Hello All,

I gifted myself with a Murena ShiftPhone 8 for Christmas. It’s all going well, but I found that /e/OS is seeing only 256GB of internal storage, although there should be 512GB. The phone is a ShiftPhone 8.1, which got a small hardware update compared to ShiftPhone 8 (not storage related) and for this model there is not even a 256GB option. There is 512Gb written on the sticker under the battery as well. So I’m pretty sure the phone should have 512GB. Is there anything that I could check myself? There is no SD-card in the phone and this issue was there for the initial /e/OS version and then for 3.3 too. I tried to reach support through the contact form already, but I got no answer.

Thanks,

Peter

what is the output for

adb shell df -h 

Hi,

Filesystem Size Used Avail Use% Mounted on
/dev/block/dm-9 1.4G 1.4G 0 100% /
tmpfs 5.5G 4.0M 5.5G 1% /dev
tmpfs 5.5G 0 5.5G 0% /mnt
/dev/block/dm-10 517M 515M 0 100% /system_ext
/dev/block/dm-11 758M 756M 0 100% /product
/dev/block/dm-12 589M 588M 0 100% /vendor
/dev/block/dm-13 1.2M 1.2M 0 100% /odm
tmpfs 5.5G 12K 5.5G 1% /apex
tmpfs 5.5G 4.0K 5.5G 1% /bootstrap-apex
/dev/block/loop1 38M 38M 0 100% /bootstrap-apex/com.android.i18n@1
/dev/block/loop2 10M 10M 0 100% /bootstrap-apex/com.android.runtime@1
/dev/block/loop0 760K 732K 16K 98% /bootstrap-apex/com.android.tzdata@350090000
tmpfs 5.5G 0 5.5G 0% /tmp
/dev/block/dm-46 200G 12G 188G 6% /data
/dev/block/loop7 38M 38M 0 100% /apex/com.android.i18n@1
/dev/block/loop3 5.5M 5.4M 0 100% /apex/com.android.devicelock@1
/dev/block/loop6 328K 296K 28K 92% /apex/com.android.virt@2
/dev/block/loop8 232K 152K 76K 67% /apex/com.android.hardware.cas@1
/dev/block/loop9 716K 688K 16K 98% /apex/com.android.sdkext@350090000
/dev/block/loop11 1.1M 1.1M 8.0K 100% /apex/com.android.rkpd@350090000
/dev/block/loop12 11M 11M 0 100% /apex/com.android.healthfitness@350090000
/dev/block/dm-35 23M 23M 0 100% /apex/com.android.extservices@350090000
/dev/block/loop10 22M 21M 0 100% /apex/com.android.btservices@350090000
/dev/block/loop5 760K 732K 16K 98% /apex/com.android.tzdata@350090000
/dev/block/dm-45 20M 20M 0 100% /apex/com.android.tethering@350090000
/dev/block/loop14 3.6M 3.6M 0 100% /apex/com.android.os.statsd@350090000
/dev/block/dm-41 232K 104K 124K 46% /apex/com.android.scheduling@350090000
/dev/block/loop15 10M 10M 0 100% /apex/com.android.runtime@1
/dev/block/dm-40 23M 23M 0 100% /apex/com.android.mediaprovider@350090000
/dev/block/dm-43 21M 21M 0 100% /apex/com.android.adservices@350090000
/dev/block/dm-33 3.7M 3.7M 0 100% /apex/com.android.appsearch@350090000
/dev/block/dm-27 7.2M 7.1M 0 100% /apex/com.android.neuralnetworks@350090000
/dev/block/dm-36 41M 41M 0 100% /apex/com.android.art@350090000
/dev/block/dm-30 552K 524K 20K 97% /apex/com.android.configinfrastructure@350090000
/dev/block/dm-31 4.1M 4.0M 0 100% /apex/com.android.resolv@350090000
/dev/block/dm-37 5.7M 5.7M 0 100% /apex/com.android.conscrypt@350090000
/dev/block/dm-34 3.9M 3.9M 0 100% /apex/com.android.uwb@350090000
/dev/block/dm-39 22M 22M 0 100% /apex/com.android.permission@350090000
/dev/block/dm-24 28M 28M 0 100% /apex/com.android.media.swcodec@350090000
/dev/block/loop33 232K 96K 132K 43% /apex/com.android.apex.cts.shim@1
/dev/block/dm-26 8.6M 8.6M 0 100% /apex/com.android.wifi@350090000
/dev/block/dm-20 6.1M 6.1M 0 100% /apex/com.android.media@350090000
/dev/block/dm-28 17M 17M 0 100% /apex/com.android.cellbroadcast@350090000
/dev/block/dm-23 7.9M 7.8M 0 100% /apex/com.android.adbd@350090000
/dev/block/dm-15 13M 13M 0 100% /apex/com.android.ondevicepersonalization@350090000
/dev/block/dm-16 756K 728K 16K 98% /apex/com.android.ipsec@350090000
/dev/fuse 200G 12G 188G 6% /storage/emulated

It was my first time with adb, I hope this it what we should look for. What I noticed is that /data and /storage/emulated are both 200-200GB in total, so it looks like the device has more than what it reports. I’m aware that there are some other partitions too that need space and the OS itself is relatively big too, but I would’ve imagined more available space. Is this something that I should go forward somehow?

Thanks,

Peter

piero@HP-p6-2038fr:~$ adb shell df -h 
Filesystem            Size Used Avail Use% Mounted on
/dev/block/mmcblk0p30 2.9G 2.7G  106M  97% /
tmpfs                 1.7G 4.0M  1.7G   1% /dev
tmpfs                 1.7G    0  1.7G   0% /mnt
/dev/block/mmcblk0p32 992M 505M  471M  52% /vendor
tmpfs                 1.7G  12K  1.7G   1% /apex
tmpfs                 1.7G 4.0K  1.7G   1% /bootstrap-apex
/dev/block/loop0      796K 764K   16K  98% /bootstrap-apex/com.android.tzdata@352090000
/dev/block/loop1       11M  10M     0 100% /bootstrap-apex/com.android.runtime@1
/dev/block/loop2       37M  37M     0 100% /bootstrap-apex/com.android.i18n@1
tmpfs                 1.7G    0  1.7G   0% /tmp
/dev/block/mmcblk0p62  19G  11G  7.7G  59% /data
/dev/block/loop5      796K 764K   16K  98% /apex/com.android.tzdata@352090000
/dev/block/loop4      5.9M 5.9M     0 100% /apex/com.android.devicelock@1
/dev/block/loop3       12M  12M     0 100% /apex/com.android.healthfitness@352090000
/dev/block/dm-14      7.8M 7.7M     0 100% /apex/com.android.neuralnetworks@352090000
/dev/block/loop7       22M  22M     0 100% /apex/com.android.btservices@352090000
/dev/block/loop8      1.2M 1.2M  8.0K 100% /apex/com.android.rkpd@352090000
/dev/block/loop11     736K 708K   16K  98% /apex/com.android.sdkext@352090000
/dev/block/loop10      11M  10M     0 100% /apex/com.android.runtime@1
/dev/block/loop9      2.9M 2.9M     0 100% /apex/com.android.os.statsd@352090000
/dev/block/dm-31       30M  30M     0 100% /apex/com.android.mediaprovider@352090000
/dev/block/loop13     232K 112K  116K  50% /apex/com.android.apex.cts.shim@1
/dev/block/loop12      37M  37M     0 100% /apex/com.android.i18n@1
/dev/block/dm-23      232K 104K  124K  46% /apex/com.android.scheduling@352090000
/dev/block/dm-28       25M  25M     0 100% /apex/com.android.permission@352090000
/dev/block/dm-29       24M  24M     0 100% /apex/com.android.extservices@352090000
/dev/block/dm-30      4.3M 4.3M     0 100% /apex/com.android.uwb@352090000
/dev/block/dm-24       22M  22M     0 100% /apex/com.android.adservices@352090000
/dev/block/dm-21      6.5M 6.5M     0 100% /apex/com.android.conscrypt@352090000
/dev/block/dm-26      780K 752K   12K  99% /apex/com.android.ipsec@352090000
/dev/block/dm-27       40M  40M     0 100% /apex/com.android.art@352090000
/dev/block/dm-17       28M  28M     0 100% /apex/com.android.media.swcodec@352090000
/dev/block/dm-16      8.6M 8.6M     0 100% /apex/com.android.adbd@352090000
/dev/block/dm-18       10M  10M     0 100% /apex/com.android.wifi@352090000
/dev/block/loop26     584K 556K   16K  98% /apex/com.android.virt@2
/dev/block/dm-13       18M  18M     0 100% /apex/com.android.cellbroadcast@352090000
/dev/block/dm-9       9.4M 9.3M     0 100% /apex/com.android.configinfrastructure@352090000
/dev/block/dm-8       4.0M 4.0M     0 100% /apex/com.android.resolv@352090000
/dev/block/dm-11      6.7M 6.7M     0 100% /apex/com.android.media@352090000
/dev/block/dm-0       1.7M 1.7M     0 100% /apex/com.android.profiling@352090000
/dev/block/dm-6        22M  22M     0 100% /apex/com.android.tethering@352090000
/dev/block/dm-3        13M  13M     0 100% /apex/com.android.ondevicepersonalization@352090000
/dev/block/dm-2       6.7M 6.6M     0 100% /apex/com.android.nfcservices@352090000
/dev/block/dm-15      4.6M 4.5M     0 100% /apex/com.android.appsearch@352090000
/dev/fuse              19G  11G  7.7G  59% /storage/emulated
/dev/fuse             119G  18M  119G   1% /storage/2C32-CEEB

adb shell df -h give us the volume handled by the system
/storage/emulated (internal_storage) is the major part of /data witch is also contain the apps
it could be larger than 200GB as the device have a 512GB emmc

.

to highlight potential usused space, we need aditionnal tool named parted to read the partition table :

open a terminal from the folder were parted have been downloaded,
boot the phone into recovery mode, and in its advanced menu, enable adb,
then run

adb push parted /sbin
adb shell
chmod 777 /sbin/parted
parted /dev/block/dm
print free

.

you should see something like :

piero@HP-p6-2038fr:~/Téléchargements/bidoulles/parted_gdisk_fdisk_mkfs.ext4-armv8-64$ adb push parted /sbin
parted: 1 file pushed, 0 skipped. 175.7 MB/s (470788 bytes in 0.003s)

piero@HP-p6-2038fr:~/Téléchargements/bidoulles/parted_gdisk_fdisk_mkfs.ext4-armv8-64$ adb shell

FP3:/ # chmod 777 /sbin/parted
                     
FP3:/ # parted /dev/block/mmcblk0                                                                           
GNU Parted 3.2
Using /dev/block/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.

(parted) print free                                                       
Model: MMC RP64MB (sd/mmc)
Disk /dev/block/mmcblk0: 62.5GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name         Flags
        9216B   67.1MB  67.1MB  Free Space
 1      67.1MB  159MB   92.3MB  fat16        modem_a      msftdata
 2      159MB   252MB   92.3MB  fat16        modem_b
        252MB   268MB   16.8MB  Free Space
 3      268MB   268MB   1024B                fsc
        268MB   268MB   3072B   Free Space
 4      268MB   268MB   8192B                ssd
 5      268MB   269MB   524kB                sbl1_a
 6      269MB   269MB   524kB                sbl1_b
 7      269MB   270MB   524kB                rpm_a
 8      270MB   271MB   524kB                rpm_b
 9      271MB   273MB   2097kB               tz_a
10      273MB   275MB   2097kB               tz_b
11      275MB   275MB   262kB                devcfg_a
12      275MB   275MB   262kB                devcfg_b
13      275MB   292MB   16.8MB  ext4         dsp_a        msftdata
14      292MB   309MB   16.8MB  ext4         dsp_b
15      309MB   310MB   1573kB               modemst1
16      310MB   312MB   1573kB               modemst2
        312MB   336MB   23.6MB  Free Space
17      336MB   336MB   32.8kB               DDR
18      336MB   337MB   1573kB               fsg
19      337MB   337MB   16.4kB               sec
        337MB   403MB   65.5MB  Free Space
20      403MB   414MB   11.5MB               splash
        414MB   470MB   55.6MB  Free Space
21      470MB   473MB   3146kB               aboot_a
22      473MB   476MB   3146kB               aboot_b
23      476MB   484MB   8389kB               dtbo_a
24      484MB   493MB   8389kB               dtbo_b
25      493MB   493MB   65.5kB               vbmeta_a
26      493MB   493MB   65.5kB               vbmeta_b
27      493MB   560MB   67.1MB               boot_a
28      560MB   627MB   67.1MB               boot_b
29      627MB   628MB   1049kB               devinfo
30      628MB   3849MB  3221MB  ext2         system_a
31      3849MB  7071MB  3221MB  ext2         system_b
32      7071MB  8144MB  1074MB  ext2         vendor_a
33      8144MB  9218MB  1074MB  ext2         vendor_b
        9218MB  9261MB  42.9MB  Free Space
34      9261MB  9295MB  33.6MB  ext4         persist
35      9295MB  9296MB  1049kB               misc
36      9296MB  9296MB  524kB                keystore
37      9296MB  9298MB  2097kB               prodinfo
38      9298MB  9298MB  32.8kB               config
39      9298MB  9567MB  268MB                oem
        9567MB  9597MB  29.9MB  Free Space
40      9597MB  9597MB  32.8kB               limits
        9597MB  9664MB  67.1MB  Free Space
41      9664MB  9664MB  524kB                mota         msftdata
42      9664MB  9665MB  1049kB               dip
43      9665MB  9699MB  33.6MB               mdtp_a
44      9699MB  9732MB  33.6MB               mdtp_b
45      9732MB  9733MB  524kB                syscfg
46      9733MB  9737MB  4194kB               mcfg         msftdata
        9737MB  9798MB  60.8MB  Free Space
47      9798MB  9798MB  131kB                lksecapp_a
48      9798MB  9798MB  131kB                lksecapp_b
49      9798MB  9799MB  1049kB               cmnlib_a
50      9799MB  9800MB  1049kB               cmnlib_b
51      9800MB  9801MB  1049kB               cmnlib64_a
52      9801MB  9802MB  1049kB               cmnlib64_b
53      9802MB  9803MB  1049kB               keymaster_a
54      9803MB  9804MB  1049kB               keymaster_b
        9804MB  9865MB  60.6MB  Free Space
55      9865MB  9865MB  262kB                apdp
56      9865MB  9866MB  262kB                msadp
57      9866MB  9866MB  8192B                dpo
58      9866MB  9933MB  67.1MB               logdump
59      9933MB  9933MB  524kB                frp
60      9933MB  10.1GB  134MB                product_a
61      10.1GB  10.2GB  134MB                product_b
62      10.2GB  62.5GB  52.3GB  ext4         userdata
        62.5GB  62.5GB  8192B   Free Space



.

i got the same interrogation as you because parted find

userdata size 52.3GB

when adb shell df -h find

/data size  19G

Is this foolproof stuff? :slight_smile: Again, I’ve run CLI stuff before, but I have no knowledge about adb, nor parted, nothing.

Thanks,

Peter

here we will just watching, no changes will be done
we will use the print free command that is :
display the partition table, and available free space

even if the tool is expected to have feature to make change :

Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) help                                                             
  align-check TYPE N                        check partition N for TYPE(min|opt)
        alignment
  help [COMMAND]                           print general help, or help on
        COMMAND
  mklabel,mktable LABEL-TYPE               create a new disklabel (partition
        table)
  mkpart PART-TYPE [FS-TYPE] START END     make a partition
  name NUMBER NAME                         name partition NUMBER as NAME
  print [devices|free|list,all|NUMBER]     display the partition table,
        available devices, free space, all found partitions, or a particular
        partition
  quit                                     exit program
  rescue START END                         rescue a lost partition near START
        and END
  resizepart NUMBER END                    resize partition NUMBER
  rm NUMBER                                delete partition NUMBER
  select DEVICE                            choose the device to edit
  disk_set FLAG STATE                      change the FLAG on selected device
  disk_toggle [FLAG]                       toggle the state of FLAG on selected
        device
  set NUMBER FLAG STATE                    change the FLAG on partition NUMBER
  toggle [NUMBER [FLAG]]                   toggle the state of FLAG on partition
        NUMBER
  unit UNIT                                set the default unit to UNIT
  version                                  display the version number and
        copyright information of GNU Parted
(parted) 

It gave me this error:

adb: error: failed to copy ‘parted’ to ‘/sbin’: remote couldn’t create file: Read-only file system

Is there anything special that I should enable under development options? USB debugging is on, I didn’t change anything else.

Thanks,

Peter

right, but also :

1 Like

if the factory reset doesn’t help I’d file this with the backlog, but also make a photo of your early fastboot screen (will show flash disk size) to exclude the issue of a wrongly shipped unit.

Partition sizes are handled through BoardConfig.mk in the device repo, but the variable BOARD_USERDATAIMAGE_PARTITION_SIZE isn’t set (removed from most repos), so I guess it’s handled at time of flash but don’t know better.

1 Like

Sorry for overlooking. After restarting into the “Android” menu, I see Advanced, but that only has the following options:

  • Enter fastboot
  • Reboot to bootloader
  • Reboot to recovery
  • View recovery logs
  • Power off

I tried Reboot to recovery, but that brings me back to the same menu. In the main menu, there is Apply update, there I can select Apply from ADB, under that there is ADB Sideload, is that what I should look for? There are no other options for me mentioning ADB anywhere in the menu.

Thanks,

Peter

NOT Apply from ADB

but :

recovery-e → advanced → enable adb

OK, now I’m sure I don’t have the “Enable ADB” under Advanced. Is there any setting anywhere for that?

If nothing’s left, I’ll give it a go, but I read this in this post:

Does this mean anything that I should care about? As long as I know, there is a factory reset through Settings → System → Reset options → Erase all data (factory reset), and another one is under the Recovery menu (or whatever Power+Volume down called).

Thanks,

Peter

having bought the unit through murena, I’d first contact them

For what it’s worth, I used the factory reset of the recovery successfully back when I had to do this.