• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Storage manager (SM) Partitioned Micro sd card but how to mount the extended partition

kumaranil13k

Well-Known Member
Question:- Storage manager (SM) Partitioned Micro sd card but how to mount the extended partition and use it as internal storage.?

I purchased 6 months before, Samsung Galaxy s20 Fe with android 12 with 128 GB internal memory and a 128 GB external Micro SD card. I am an IT freelancer professional, so I have a job is for testing daily 1000's of different android apps some I have keep installed to create logged reports either monthly weekly or quarterly and my other work is to do some short video advertisements or photo editing and some other GPS technical official apps to do my job in an instant go while traveling.

I want to set default installation of apps location to micro sd card, i tried but it only moves the main APK files, leaving ODBB file like data, cache, lib, and dex in internal memory thus occupying space in internal memory. I want to keep my internal memory free for output files of video editing to fast rendering of photo editing or video editing file on mobile.

I have tried Adoptable storage ( formatting external micro sd card as internal) without rooting once in my android 6.0 Marshemellow and thought it may work in android 12.0.

i tried following commands in following sequence

Code:
adb devices
adb shell

r8q:/ $ sm list-disks adoptable
   Disk: 179,0 (output of list-disk adoptable command)
r8q:/ $ sm has-adoptable
      false
r8q:/ $ sm partition disk:179:0 mixed 40
r8q:/ $ sm set-force-adoptable true
r8q:/ $ sm list-volumes all
        private mounted null
        public:179,1 mounted 5C8A-85AC
        private:179,3 unmountable
        emulated;0 mounted null
r8q:/ $sm format private:179,3
r8q:/ $sm mount private:179,3
r8q:/ $ sm has-adoptable
      false
r8q:/ $ sm list-volumes all
        private mounted null
        public:179,1 mounted 5C8A-85AC
        private:179,3 unmountable
        emulated;0 mounted null
r8q:/ $ ls -al /dev/block/platform/soc/
total 0
drwxr-xr-x 4 root root   80 2022-11-07 13:12 .
drwxr-xr-x 3 root root   60 2019-02-11 06:25 ..
drwxr-xr-x 3 root root 1680 2019-02-11 06:25 1d84000.ufshc
drwxr-xr-x 3 root root  140 2022-11-07 13:12 8804000.sdhci
r8q:/ $ ls -al /dev/block/platform/soc/8804000.sdhci
total 0
drwxr-xr-x 3 root root 140 2022-11-07 13:12 .
drwxr-xr-x 4 root root  80 2022-11-07 13:12 ..
drwxr-xr-x 2 root root 100 2022-11-07 13:12 by-name
lrwxrwxrwx 1 root root  18 2022-11-07 13:12 mmcblk0 -> /dev/block/mmcblk0
lrwxrwxrwx 1 root root  20 2022-11-07 13:12 mmcblk0p1 -> /dev/block/mmcblk0p1
lrwxrwxrwx 1 root root  20 2022-11-07 13:12 mmcblk0p2 -> /dev/block/mmcblk0p2
lrwxrwxrwx 1 root root  20 2022-11-07 13:12 mmcblk0p3 -> /dev/block/mmcblk0p3
r8q:/ $ ls -al /dev/block/platform/soc/8804000.sdhci/by-name/
total 0
drwxr-xr-x 2 root root 100 2022-11-07 13:12 .
drwxr-xr-x 3 root root 140 2022-11-07 13:12 ..
lrwxrwxrwx 1 root root  20 2022-11-07 13:12 android_expand -> /dev/block/mmcblk0p3
lrwxrwxrwx 1 root root  20 2022-11-07 13:12 android_meta -> /dev/block/mmcblk0p2
lrwxrwxrwx 1 root root  20 2022-11-07 13:12 shared -> /dev/block/mmcblk0p1

Result is fine with no errors, it partitioned the micro sd card and converted formatted and mounted my 128GB card to 2 parts ie.as in mobile phone settings>storage in android 12.0 its showing 47.63GB card after commands it means its mounted and the micro external card is parted 47.63 portable is showing. but second partition is not showing in android and the files apps moved is still saving in 47.63 gb public:179,1 mounted 5C8A-85AC not the other one which is private:179,3 unmountable and not being used and remaining 80.37 GB is unallocated and not usable
nsx8a.jpg


I rebooted my android phone twice still.

But internal its still showing 100GB remaining and its not added and why the remaining space partition of 80.37GB is its not showing in android device how to mount or show in GUI of android and how to now 80.37GB partition as adoptable storage or format remaining 80.37GB as internal memory and extend my internal memory storage and how to use the partition in micro sd card and remaining

i tried $sm mount private:179,3 to to mount 179,3 private sd card second parition but still its hidden and showing invisible

on command ls -al /dev/block/platform/soc/8804000.sdhci/by-name/
Code:
lrwxrwxrwx 1 root root  18 2022-11-07 13:12 mmcblk0 -> /dev/block/mmcblk0
lrwxrwxrwx 1 root root  20 2022-11-07 13:12 mmcblk0p1 -> /dev/block/mmcblk0p1
lrwxrwxrwx 1 root root  20 2022-11-07 13:12 mmcblk0p2 -> /dev/block/mmcblk0p2
lrwxrwxrwx 1 root root  20 2022-11-07 13:12 mmcblk0p3 -> /dev/block/mmcblk0p3

it showed 3 partitions of micro sd card ie /dev/block/mmcblk0p1 & p2 & p3 but how can we mount the undisplay partition by
mount /dev/block/mmcblk0p3 /data/sdext2 will it write in init.c so that its gets every time i reboot restart the android phone. by which command i can show the micro sd card hidden partition so that it can be displayed in settings-storage and works as adoptable internal storage

Thanks for giving time and reading my question and i will be obliged to get experts advice solution for my problem . Thanks a lot in advance for your precious time advice and knowledge sharing and help.
 
I only skim read that I'm afraid (wide text format is awkward to read on a phone), but there are a couple of observations I'd make:

1) When you set default install location to sd (fat32 format) all it ever moves is the apk and some of the shared object files. That's how that is designed, the bulk of the installed app will indeed remain in internal, this is normal.

2) I've never used adopted storage (format sd card as internal), but certainly the higher-end Samsungs don't support it, and I wasn't aware that any did. If you use some trick to enable it then as that is unsupported there can be no guarantees of it working correctly.

3) The phone software is written to mount a single sd partition on boot. If you partition the card it won't look for a second partition. This is how all android phones have always been. Mods that use a second partition include extra software to mount the additional partition (originally init.d scripts, though I think that was deprecated years ago), so if all you've done is add a partition it's no surprise if the phone doesn't use it. Unfortunately it's 5 years since I last played with root so I'm not up to date with such things these days (the things extra partitions were used for generally required root).
 
Back
Top Bottom