Space missing after DotOS installing - Android General

Recently I installed DotOS on my Samsung SM-J320F. All good but internal space was reduced. This phone have 8 GB but I receive this when I run df:
~ # ←[6ndf
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 696068 204 695864 0% /dev
tmpfs 696068 28 696040 0% /tmp
/dev/block/mmcblk0p27
5027508 4601436 409688 92% /data
/dev/block/mmcblk0p27
5027508 4601436 409688 92% /sdcard
/dev/block/mmcblk0p24
197472 276 193100 0% /cache
/dev/block/mmcblk1p1 24862304 13880880 10981424 56% /extSdCard
~ # ←[6n
Also Windows says I have only 4.79GB
How can I recover 3GB of space?

No one know to solve my problem ?

Related

HOWTO: Automated APPS to SD (EASY!!!!)

NOTE:
1. Must have a rooted phone
2. Must have two partitions on the sd card (fat32 for everything, and ext2 for "expanding" the phone's memory).
3. Must have Android SDK installed (so that adb will work)
Ok.. So I got sick of all the commands running back and forth. I found that I'm wiping my phone several times testing out new things and didn't want to continuously put in all these commands to get the apps to sd thing to work.
Therefore, I created a file to automatically do it for me!!! I just run this file with the usb connected to the phone, and let it run all the commands.
I've attached a file "tmp.zip". Download this file and extract it to your c:
The folder it extracts NEEDS to be at c:/tmp
After extracting, navigate to the folder and double click on "appsToSD1.bat". Follow the instructions and you'll be on your way.
I hope this helps!!!!
egyptianbman said:
NOTE:
1. Must have a rooted phone
2. Must have two partitions on the sd card (fat32 for everything, and ext2 for "expanding" the phone's memory).
3. Must have Android SDK installed (so that adb will work)
Ok.. So I got sick of all the commands running back and forth. I found that I'm wiping my phone several times testing out new things and didn't want to continuously put in all these commands to get the apps to sd thing to work.
Therefore, I created a file to automatically do it for me!!! I just run this file with the usb connected to the phone, and let it run all the commands.
I've attached a file "tmp.zip". Download this file and extract it to your c:
The folder it extracts NEEDS to be at c:/tmp
After extracting, navigate to the folder and double click on "appsToSD1.bat". Follow the instructions and you'll be on your way.
I hope this helps!!!!
Click to expand...
Click to collapse
EXCELLENT!!! I have already set my apps to sd... but I always welcome alternatives. Good work. I can't wait to try it out some time.
Thanks!
looking at the bat, it looks just like the commands from that other thread. Any1 game to try and share if it it works =]?
Nice, I might finally try this when I get home today...
Anyone try this out yet?
Just tried it
Failure, after last reboot i am stuck at the flashing android loader.
I did verify i was all the stuff the bat file said to look for
# busybox df -h
busybox df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 48.4M 0 48.4M 0% /dev
tmpfs 4.0M 0 4.0M 0% /sqlite_stmt_journals
/dev/block/mtdblock3 67.5M 67.1M 456.0K 99% /system
/dev/block/loop0 1.5M 1.5M 0 100% /system/modules
/dev/block/loop1 3.1M 3.1M 0 100% /system/xbin
/dev/block/mtdblock5 74.8M 20.9M 53.8M 28% /data
/dev/block/mtdblock4 67.5M 1.1M 66.4M 2% /cache
/dev/block/mmcblk0p1 978.6M 4.0K 978.6M 0% /sdcard
is my card partitioned I did it through paragon, but It only shows the one partition here what am I doing wrong its a 2 gig card, Ill try if I can get my damn card partioned lol.
Thanks it worked for me.... ...but Im not sure if ext2 patitioon should be primary
http://forum.xda-developers.com/showthread.php?p=3483058#post3483058
...I made it primary and it worked...
$ df
/dev: 49520K total, 0K used, 49520K available (block size 4096)
/sqlite_stmt_journals: 4096K total, 0K used, 4096K available (block size 4096)
/system: 69120K total, 66180K used, 2940K available (block size 4096)
/system/modules: 1532K total, 1532K used, 0K available (block size 4096)
/system/xbin: 3172K total, 3172K used, 0K available (block size 4096)
/system/sd: 1033712K total, 5116K used, 1028596K available (block size 4096)
/data: 76544K total, 21760K used, 54784K available (block size 4096)
/cache: 69120K total, 1160K used, 67960K available (block size 4096)
/sdcard: 6172916K total, 588568K used, 5584348K available (block size 4096)
sdcard - 6GB
sd - 1GB
$ mount
rootfs on / type rootfs (ro)
tmpfs on /dev type tmpfs (rw,mode=755)
devpts on /dev/pts type devpts (rw,mode=600)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /sqlite_stmt_journals type tmpfs (rw,size=4096k)
/dev/block/mtdblock3 on /system type yaffs2 (ro)
/dev/block/loop0 on /system/modules type cramfs (ro)
/dev/block/loop1 on /system/xbin type cramfs (ro)
/dev/mmcblk0p2 on /system/sd type ext2 (rw,noatime,nodiratime,errors=continue)
/dev/block/mtdblock5 on /data type yaffs2 (rw,nosuid,nodev)
/dev/block/mtdblock4 on /cache type yaffs2 (rw,nosuid,nodev)
/dev/block/mmcblk0p1 on /sdcard type vfat (rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1000,fmask=0711,dmask=0700,codepage=cp437,iocharset=iso8859-1,utf8)
$ cd /data
$ ls -al
ls: can't open '.': Permission denied
$ su
# ls -al
drwxrwx--x 1 1000 1000 2048 Oct 5 07:41 .
drwxr-xr-x 12 0 0 0 Mar 18 17:31 ..
drwxrwxrwx 1 1000 1000 2048 Oct 5 07:41 anr
lrwxrwxrwx 1 0 0 14 Mar 18 17:30 app -> /system/sd/app
lrwxrwxrwx 1 0 0 22 Mar 18 17:30 app-private -> /system/sd/app-private
drwxrwx--x 1 1000 1000 2048 Oct 5 07:41 dalvik-cache
drwxrwx--x 1 1000 1000 2048 Oct 5 07:41 data
drwxrwx--x 1 2000 2000 2048 Oct 5 07:41 local
drwxrwx--- 1 0 0 2048 Oct 5 07:41 lost+found
drwxrwx--t 1 1000 9998 2048 Oct 5 07:41 misc
drwx------ 1 0 0 2048 Oct 5 07:41 property
drwxrwxr-x 1 1000 1000 2048 Oct 5 07:41 system
drwxr-xr-x 1 1000 1000 2048 Mar 15 12:15 tombstones
#
russenreaktor said:
Thanks it worked for me.... ...but Im not sure if ext2 patitioon should be primary
http://forum.xda-developers.com/showthread.php?p=3483058#post3483058
...I made it primary and it worked...
$ df
/dev: 49520K total, 0K used, 49520K available (block size 4096)
/sqlite_stmt_journals: 4096K total, 0K used, 4096K available (block size 4096)
/system: 69120K total, 66180K used, 2940K available (block size 4096)
/system/modules: 1532K total, 1532K used, 0K available (block size 4096)
/system/xbin: 3172K total, 3172K used, 0K available (block size 4096)
/system/sd: 1033712K total, 5116K used, 1028596K available (block size 4096)
/data: 76544K total, 21760K used, 54784K available (block size 4096)
/cache: 69120K total, 1160K used, 67960K available (block size 4096)
/sdcard: 6172916K total, 588568K used, 5584348K available (block size 4096)
sdcard - 6GB
sd - 1GB
$ mount
rootfs on / type rootfs (ro)
tmpfs on /dev type tmpfs (rw,mode=755)
devpts on /dev/pts type devpts (rw,mode=600)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /sqlite_stmt_journals type tmpfs (rw,size=4096k)
/dev/block/mtdblock3 on /system type yaffs2 (ro)
/dev/block/loop0 on /system/modules type cramfs (ro)
/dev/block/loop1 on /system/xbin type cramfs (ro)
/dev/mmcblk0p2 on /system/sd type ext2 (rw,noatime,nodiratime,errors=continue)
/dev/block/mtdblock5 on /data type yaffs2 (rw,nosuid,nodev)
/dev/block/mtdblock4 on /cache type yaffs2 (rw,nosuid,nodev)
/dev/block/mmcblk0p1 on /sdcard type vfat (rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1000,fmask=0711,dmask=0700,codepage=cp437,iocharset=iso8859-1,utf8)
$ cd /data
$ ls -al
ls: can't open '.': Permission denied
$ su
# ls -al
drwxrwx--x 1 1000 1000 2048 Oct 5 07:41 .
drwxr-xr-x 12 0 0 0 Mar 18 17:31 ..
drwxrwxrwx 1 1000 1000 2048 Oct 5 07:41 anr
lrwxrwxrwx 1 0 0 14 Mar 18 17:30 app -> /system/sd/app
lrwxrwxrwx 1 0 0 22 Mar 18 17:30 app-private -> /system/sd/app-private
drwxrwx--x 1 1000 1000 2048 Oct 5 07:41 dalvik-cache
drwxrwx--x 1 1000 1000 2048 Oct 5 07:41 data
drwxrwx--x 1 2000 2000 2048 Oct 5 07:41 local
drwxrwx--- 1 0 0 2048 Oct 5 07:41 lost+found
drwxrwx--t 1 1000 9998 2048 Oct 5 07:41 misc
drwx------ 1 0 0 2048 Oct 5 07:41 property
drwxrwxr-x 1 1000 1000 2048 Oct 5 07:41 system
drwxr-xr-x 1 1000 1000 2048 Mar 15 12:15 tombstones
#
Click to expand...
Click to collapse
Ive been struggling with this for three days, using paragon how exactly do you partition a card it says mines has been partitioned and showes the ext2 and the fat32 both as being primary but It wont show on busybox as my previous post above states, from there how do I go on to complete apps on sd card, it just aint working for me Im getting frustrated
Joeriginal said:
Ive been struggling with this for three days, using paragon how exactly do you partition a card it says mines has been partitioned and showes the ext2 and the fat32 both as being primary but It wont show on busybox as my previous post above states, from there how do I go on to complete apps on sd card, it just aint working for me Im getting frustrated
Click to expand...
Click to collapse
Since ext2 is a linux partition I would use a Live Ubunut CD to partition the card. This is the safest bet.
androidmonkey said:
Since ext2 is a linux partition I would use a Live Ubunut CD to partition the card. This is the safest bet.
Click to expand...
Click to collapse
I have read how people do it through paragon Id rather not download a 700mb file just to format my card, but thanks for the suggestion.
Joeriginal said:
I have read how people do it through paragon Id rather not download a 700mb file just to format my card, but thanks for the suggestion.
Click to expand...
Click to collapse
If you have a good net connection it will download in 10-15 minutes. Worth the time knowing that method works
Also, having a Live CD is a good troubleshooting tool for future issues.
androidmonkey said:
If you have a good net connection it will download in 10-15 minutes. Worth the time knowing that method works
Also, having a Live CD is a good troubleshooting tool for future issues.
Click to expand...
Click to collapse
Im at work on a dialup network if I start downloading I should finish by dinner time.....Friday.
Joeriginal said:
Im at work on a dialup network if I start downloading I should finish by dinner time.....Friday.
Click to expand...
Click to collapse
ah, i see.
Well there are many small linux distros. Puppy Linux is one, only 98MB
http://www.puppylinux.org/
androidmonkey said:
If you have a good net connection it will download in 10-15 minutes. Worth the time knowing that method works
Also, having a Live CD is a good troubleshooting tool for future issues.
Click to expand...
Click to collapse
Excellent points.
modem_over said:
Failure, after last reboot i am stuck at the flashing android loader.
I did verify i was all the stuff the bat file said to look for
Click to expand...
Click to collapse
More than likely because you didn't have the partitions on SD correct. READ THE NOTE FIRST!
I think you're going to have to clear the phone. You might even need to re-install an update.
Joeriginal said:
# busybox df -h
busybox df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 48.4M 0 48.4M 0% /dev
tmpfs 4.0M 0 4.0M 0% /sqlite_stmt_journals
/dev/block/mtdblock3 67.5M 67.1M 456.0K 99% /system
/dev/block/loop0 1.5M 1.5M 0 100% /system/modules
/dev/block/loop1 3.1M 3.1M 0 100% /system/xbin
/dev/block/mtdblock5 74.8M 20.9M 53.8M 28% /data
/dev/block/mtdblock4 67.5M 1.1M 66.4M 2% /cache
/dev/block/mmcblk0p1 978.6M 4.0K 978.6M 0% /sdcard
is my card partitioned I did it through paragon, but It only shows the one partition here what am I doing wrong its a 2 gig card, Ill try if I can get my damn card partioned lol.
Click to expand...
Click to collapse
Nope, I'm not seeing a "/system/sd" partition on your phone.
Don't know how easy using LiveCD Ubuntu is... but there's no way it's easier than Paragon Partitioner...
I dl'ed it, Personal Trial version.
Inserted my G1 via USB.
Create partition.
Select sd card.
Choose size.
DONE!
That's it. Voila. Sd card partitioned into 2 parts.
xdavidn88 said:
Don't know how easy using LiveCD Ubuntu is... but there's no way it's easier than Paragon Partitioner...
I dl'ed it, Personal Trial version.
Inserted my G1 via USB.
Create partition.
Select sd card.
Choose size.
DONE!
That's it. Voila. Sd card partitioned into 2 parts.
Click to expand...
Click to collapse
I ended up having to use Ubuntu. I'm not sure why, I installed Paragon on my work computer (new, running Vista x64) and it couldn't create the partitions correctly... kept on giving me some error. I think it had something to do with mounting... So I thought maybe it's because I was on an x64. Took it home to my laptop running Windows XP and had the same problem. I finally got tired of it and got Ubuntu who worked like a charm
egyptianbman said:
I finally got tired of it and got Ubuntu who worked like a charm
Click to expand...
Click to collapse
Yep, Ubuntu will work every time. Since EXT2 is a linux format, having Windows create it is a mixed bag. I tried creating windows partitions on my Mac awhile back and it was a disaster.

[Q] Where's the mount point for the root file system?

On my G1, I know that the internal flash memory is divided into several partitions used by the system. Running the busybox shell on a terminal emulator on the phone or through adb, I can run df and get the following:
Code:
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 48852 0 48852 0% /dev
tmpfs 48852 0 48852 0% /mnt/asec
/dev/block/mtdblock3 92160 89048 3112 97% /system
/dev/block/mtdblock5 91904 77792 14112 85% /data
/dev/block/loop0 4096 4096 0 100% /system/xbin
/dev/block/mtdblock4 30720 1160 29560 4% /cache
/dev/block/vold/179:1
15541688 12742232 2799456 82% /mnt/sdcard
/dev/block/vold/179:1
15541688 12742232 2799456 82% /mnt/secure/asec
But strangely there's no mount point for /, the root file system. Yet there are lot of other files and directories directly in the root file system, like init scripts. Could anyone explain to me how this is? Is the root file system hidden somehow from df?

[Q] Insufficient Storage Available

I'm getting insufficient storage available errors when upgrading applications. What is causing this? Only the cache partition appears to have space issues:
[email protected]:/ $ df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 404.8M 76.0K 404.8M 0% /dev
tmpfs 404.8M 0 404.8M 0% /mnt/asec
tmpfs 404.8M 0 404.8M 0% /mnt/obb
/dev/block/mmcblk0p9 818.9M 795.2M 23.7M 97% /system
/dev/block/mmcblk0p7 196.8M 6.2M 190.6M 3% /cache
/dev/block/mmcblk0p1 19.7M 8.1M 11.6M 41% /efs
/dev/block/mmcblk0p10
27.2G 26.6G 571.9M 98% /data
/dev/fuse 27.2G 26.6G 571.9M 98% /mnt/sdcard
/dev/block/vold/179:9
14.9G 11.2G 3.7G 75% /mnt/sdcard/extStorages/SdCard
[email protected]:/ $
Sent from my GT-P6800 using xda app-developers app
I was using multiple apps. I've rebooted and managed to install the apps.
Sent from my GT-P6800 using xda app-developers app

Extending vendor partition

How can I extend the vendor partition?
I am building the ROM from AOSP. Can I increase the partition size of vendor in the AOSP somewhere?
Code:
Filesystem Size Used Avail Use% Mounted on
/dev/root 2.4G 1.0G 1.4G 43% /
tmpfs 1.7G 572K 1.7G 1% /dev
tmpfs 1.7G 0 1.7G 0% /mnt
/dev/block/sdd3 27M 3.4M 24M 13% /persist
/dev/block/sda41 492M 345M 147M 71% /vendor
/dev/block/sda28 80M 59M 21M 74% /firmware
/dev/block/sda45 52G 145M 52G 1% /data
/data/media 52G 145M 52G 1% /mnt/runtime/default/emulated
I need a couple of 100M more in /vendor to store a debug version of a library.
Thanks for any help!
jocken said:
How can I extend the vendor partition?
I am building the ROM from AOSP. Can I increase the partition size of vendor in the AOSP somewhere?
Code:
Filesystem Size Used Avail Use% Mounted on
/dev/root 2.4G 1.0G 1.4G 43% /
tmpfs 1.7G 572K 1.7G 1% /dev
tmpfs 1.7G 0 1.7G 0% /mnt
/dev/block/sdd3 27M 3.4M 24M 13% /persist
/dev/block/sda41 492M 345M 147M 71% /vendor
/dev/block/sda28 80M 59M 21M 74% /firmware
/dev/block/sda45 52G 145M 52G 1% /data
/data/media 52G 145M 52G 1% /mnt/runtime/default/emulated
I need a couple of 100M more in /vendor to store a debug version of a library.
Thanks for any help!
Click to expand...
Click to collapse
Messing with partition size is risky business. I'm not sure how to do it with a dual slot device and it may not even work. I have only done it once on an old device. Look for Gparted and do a lot of research. I'm not a developer but pretty sure you can't do it within aosp.

[Android10 / Samsung] Partitions messed up?

Hi there,
after giving up on rooting my Samsung Galaxy XCover Pro (No TWRP / Magisk ending in Bootloop/All other tools failing) I reinstalled stock firmware with december security update on the phone and began with setting up stuff, deleting bloatware etc. for the last hours.
Now, before installing new apps, I wanted to copy back the files I previously saved from user directory (as far as it is exposed on Windows in Debug mode) and had to see, that my 64GB devices shows only 2GB available (from 4GB total), which is of cource far too low for my backuped files.
In system settings it says there are 14.1GB of 16GB in use. 12.1GB are marked as used for system memory.
Deleting logs with *#9900# didn't do anything remarkable.
Because I have no root and can't get root, I have limited options to see what went wrong, but if I look at 'df -h' on adb shell I get the following output:
Code:
xcoverpro:/ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/block/dm-4 4.3G 4.2G 22M 100% /
tmpfs 1.7G 0.9M 1.7G 1% /dev
tmpfs 1.7G 0 1.7G 0% /mnt
tmpfs 1.7G 0 1.7G 0% /apex
/dev/block/dm-5 500M 497M 2.6M 100% /vendor
/dev/block/dm-6 648M 647M 0.9M 100% /product
/dev/block/dm-7 3.9M 32K 3.9M 1% /odm
/dev/block/dm-8 533M 428M 105M 81% /prism
/dev/block/dm-9 19M 1.6M 18M 9% /optics
tmpfs 1.7G 0 1.7G 0% /mnt/sde
/dev/block/sda29 16M 24K 16M 1% /omr
/dev/block/sda28 193M 4.8M 188M 3% /cache
/dev/block/sda2 16M 452K 15M 3% /efs
/dev/block/sda32 3.9G 1.9G 1.9G 51% /data
/dev/block/loop2 21M 5.1M 16M 25% /apex/[email protected]
/dev/block/loop3 21M 21M 32K 100% /apex/[email protected]
/dev/block/loop4 114M 96M 18M 85% /apex/[email protected]
/dev/block/loop5 17M 1.5M 15M 10% /apex/[email protected]
/dev/block/loop6 5.2M 5.2M 32K 100% /apex/[email protected]
/dev/block/loop7 836K 808K 28K 97% /apex/[email protected]
/dev/block/loop8 232K 36K 196K 16% /apex/[email protected]
/data/knox/secure_fs/enc_media 3.8G 1.9G 1.9G 52% /mnt/shell/enc_emulated
/data/media 3.8G 1.9G 1.9G 52% /storage/emulated
Summing everything up I end with only about 25GB of partitioned space for my 64GB device.
Something is very wrong I guess, but I don't know what exactly and how to fix it.
Can you help?
Thanks/regards,
rund3
Btw. Please don't tell me that I have to do all setup/configuration stuff again ;(

Categories

Resources