[Q] How to increase internal phone storage? - G1 Q&A, Help & Troubleshooting

I know this is a total noob thing to be asking, but I have researched and tried out various solutions and am still running out of space on my internal phone storage. I've installed the CM6.1 Magpie on a partitioned 8GB SD card with all apps set to install to sd-ext. I partitioned off 1GB for sd-ext, which seems to have worked as I can see some apps installed there.
I think I must have it set up incorrectly or incompletely despite my best efforts, as from what I understand I should be seeing my internal phone storage as being larger than 91.75MB. It's a problem as I now only have 15MB free, and it seems to be causing phone crashes.
I followed my_former_self's cm6.1.0 ds guide with magpie successfully, as far as I can tell. I am not certain if I also need to be using Firerat's customMTD... Can anyone offer some advice? I've done a lot of searching, but the info is so fragmented that I'm at a bit of a loss. (fr'instance, on the customMTD page the version is 1.5.6., but in the download area I see there's a 1.5.8 version too...)
Thanks for any help or pointers to any threads!
Phone: T-Mobile G1
ROM: Magpie-DS-CM6.1
Recovery: Amon-Ra

Can you please go into a terminal session
(or use
Code:
adb shell
) and type
Code:
df -h
and send the output here?
Probably you have done right everything, but your internal space is used by data ...
Sent from my Gingerbread on Dream using XDA App

df -h
AndDiSa said:
Can you please go into a terminal session
(or use
Code:
adb shell
) and type
Code:
df -h
and send the output here?
Probably you have done right everything, but your internal space is used by data ...
Sent from my Gingerbread on Dream using XDA App
Click to expand...
Click to collapse
I managed to free up some space last night by using Titanium's "integrate updates into ROM". That resulted in me having to reinstall Google Maps, but it did free up some space.
Here's my disk space usage:
Code:
$ adb -s HT94PGZ05646 shell
# df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 55.0M 0 55.0M 0% /dev
tmpfs 55.0M 0 55.0M 0% /mnt/asec
/dev/block/mtdblock3 91.0M 90.8M 200.0K 100% /system
/dev/block/mtdblock5 91.8M 57.1M 34.7M 62% /data
/dev/block/loop0 4.0M 4.0M 0 100% /system/xbin
/dev/block/mmcblk0p2 915.1M 79.9M 786.4M 9% /sd-ext
/dev/block/mmcblk0p2 915.1M 79.9M 786.4M 9% /cache
/dev/block/mtdblock4 27.0M 1.1M 25.9M 4% /dev/cache
/dev/block/vold/179:1
6.5G 404.6M 6.1G 6% /mnt/sdcard
/dev/block/vold/179:1
6.5G 404.6M 6.1G 6% /mnt/secure/asec
"SD card & phone storage" shows internal phone storage available space as 34.67MB now, which seems to match /data.
I'm pretty sure I have all the pieces, I just can't put them together So if I *have* done things right, how do I get the system to mount /data elsewhere?

Custom MTD is not applied correctly, you have still a cache device with a size of 27 MB, which is unused at the moment.
To apply Custom MTD you should
Code:
echo "mtd 90 2" > /sdcard/mtdpartmap.txt
(probably mtd 91 2 would be better for you, because there are only 200kb free on /system)
then boot into recovery, do a nandroid+sd-ext or bart backup
then apply the recovery-v1.5.8-CustomMTD_S.zip
reboot to fastboot and do a
Code:
fastboot erase system -w
fastboot reboot recovery
then do a nandroid / bart restore
then flash the boot-v1.5.8-CustomMTD_S.zip
then reboot and you should be fine.

ah so!
AndDiSa said:
Custom MTD is not applied correctly, you have still a cache device with a size of 27 MB, which is unused at the moment.
To apply Custom MTD you should
Code:
echo "mtd 90 2" > /sdcard/mtdpartmap.txt
(probably mtd 91 2 would be better for you, because there are only 200kb free on /system)
then boot into recovery, do a nandroid+sd-ext or bart backup
then apply the recovery-v1.5.8-CustomMTD_S.zip
reboot to fastboot and do a
Code:
fastboot erase system -w
fastboot reboot recovery
then do a nandroid / bart restore
then flash the boot-v1.5.8-CustomMTD_S.zip
then reboot and you should be fine.
Click to expand...
Click to collapse
That's reassuring, your solutions reads like the general instructions I found on the firerat customMTD thread. That thread was a bit confusing and I was worried about mixing & matching things, especially given that the latest versions didn't match the versions in the thread. I shall report back!

Definitely an improvement!
AndDiSa said:
Custom MTD is not applied correctly, you have still a cache device with a size of 27 MB, which is unused at the moment.
To apply Custom MTD you should
Code:
echo "mtd 90 2" > /sdcard/mtdpartmap.txt
(probably mtd 91 2 would be better for you, because there are only 200kb free on /system)
then boot into recovery, do a nandroid+sd-ext or bart backup
then apply the recovery-v1.5.8-CustomMTD_S.zip
reboot to fastboot and do a
Code:
fastboot erase system -w
fastboot reboot recovery
then do a nandroid / bart restore
then flash the boot-v1.5.8-CustomMTD_S.zip
then reboot and you should be fine.
Click to expand...
Click to collapse
Excellent! I am now seeing 117MB for total space and 59.66MB free. However, I worry that this won't be enough in the future. Can you advise me on how to create more space? Or will it do so automagically?

mtdpartmap.txt not read?
AndDiSa said:
Custom MTD is not applied correctly, you have still a cache device with a size of 27 MB, which is unused at the moment.
To apply Custom MTD you should
Code:
echo "mtd 90 2" > /sdcard/mtdpartmap.txt
(probably mtd 91 2 would be better for you, because there are only 200kb free on /system)
then boot into recovery, do a nandroid+sd-ext or bart backup
then apply the recovery-v1.5.8-CustomMTD_S.zip
reboot to fastboot and do a
Code:
fastboot erase system -w
fastboot reboot recovery
then do a nandroid / bart restore
then flash the boot-v1.5.8-CustomMTD_S.zip
then reboot and you should be fine.
Click to expand...
Click to collapse
Hm... I am not sure it is reading mtdpartmap.txt, as the /system partition seems to be the same size:
Code:
# cat /sdcard/mtdpartmap.txt
mtd 91 2
# df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 55.0M 0 55.0M 0% /dev
tmpfs 55.0M 0 55.0M 0% /mnt/asec
/dev/block/mtdblock3 91.0M 90.8M 200.0K 100% /system
/dev/block/mtdblock5 116.8M 57.1M 59.6M 49% /data
/dev/block/loop0 4.0M 4.0M 0 100% /system/xbin
/dev/block/mmcblk0p2 915.1M 79.9M 786.4M 9% /sd-ext
/dev/block/mmcblk0p2 915.1M 79.9M 786.4M 9% /cache
/dev/block/mtdblock4 2.0M 776.0K 1.2M 38% /dev/cache
/dev/block/vold/179:1
6.5G 807.9M 5.7G 12% /mnt/sdcard
/dev/block/vold/179:1
6.5G 807.9M 5.7G 12% /mnt/secure/asec
Any thoughts on that?

Hmm ... creating more internal space will be difficult, because the G1 has only 196MB
The only chance you have, if this isn't sufficient for you: use a2ext, i.e. put all applications to sd card and keep only the data ofthe applications on internal memory. I am doing so (~100 application installed) and normally I've still around 30MB free.
If that is still not sufficient for you, you can use data2sd. Firerat's all in one patch should work with your rom. Choosing the ddb option will move app data to sd-ext and will free internal space. Disadvantage of this option: if you have a slow sd card you will notice a performance decrease.

AndDiSa said:
Hmm ... creating more internal space will be difficult, because the G1 has only 196MB
The only chance you have, if this isn't sufficient for you: use a2ext, i.e. put all applications to sd card and keep only the data ofthe applications on internal memory. I am doing so (~100 application installed) and normally I've still around 30MB free.
If that is still not sufficient for you, you can use data2sd. Firerat's all in one patch should work with your rom. Choosing the ddb option will move app data to sd-ext and will free internal space. Disadvantage of this option: if you have a slow sd card you will notice a performance decrease.
Click to expand...
Click to collapse
Thanks for the info. I'm already using a2ext, as it's built into Magpie and I've locked app installations to ext in the cyanogen mod settings. However, if you're running 100+ apps and having no probs, I doubt I will either. Thanks again!

Related

quick ? about arom's partition steps.

was running cm's newest rom but decided to try out kings new 1.9 rom that just came out.
booted into recovery, factory wiped, then i did the "wipe sd:ext partition. after doing this i did "partition sdcard", after that was done i did "ext2 to ext3" then "ext3 to ext4" as the rom suggested.
After this was done i rebooted recovery and connect the usb and installed the rom and flashed it. it runs good but the only thing is that the ap2sd will not work.
It shows me this:
total space: 6.88gb
available space: 6.81bg
SD card secondary:
total space: unavailable
available space: unavailable
internal phone storage:
available space: 81.84mb
where did i go wrong?
I'm not familiar with that rom but does it support ext4? You may need to use ext3.
You may need to re-partition again, something may have gone wrong... who knows.
Type this in terminal
Code:
busybox df -h
and post your results here when you have a chance.
filesystem size used available use% mounsted on
tmpfs 52.4m 0 52.4m 0 /dev
tmpfs 4.0m 0 4.0m 0 /sqlite_stmt
_journals
/dev/block/mtdblock3 90.0m 82.0m 8.0m 91% /system
/dev/block/mtdblock5 89.8m 15.5m 74.3m 17% /data
/dev/block/mtdblock4 30.0m 1.1m 28.9m 4% /cache
/dev/block/mtcblkop2 800.8m 46.1m 712.0m 6% /system/sd
/dev/block/mtcblkop2 800.8m 46.1m 712.0m 6% /data/dalvik-cache
/dev/block//vold/179:1 6.6g 708.0k 6.6g 0% /sdcard
this is what shows up. help? lol
/dev/block/mtcblkop2 800.8m 46.1m 712.0m 6% /system/sd
This is your apps2sd partition. Your next step is to download couple of big apps and check that again. If the your % went up - then it's working, just not showing up in the settings (I know few roms did a while ago, including CM cupcake roms). Remember, not everything goes on SD when you install an app, only and actual APK and dalvik-cache file. Other data stays in the phone so the phone's internal memory will go down a bit after install.
You can also try
Code:
ls /system/sd/app
ls /system/sd/app-private
ls /system/sd/dalvik-cache
to see what is in those directories before and after install. If you install an app and it shows up in one of the app dir's and in dalvik dir - then you're in the clear.
Good luck.
negative, i've installed a few apps and they all go to the internal memory. might be that the sd card is defective.

Need Some More Help Partitioned and loaded rom but internal mem is still under 32 sho

i used amon ra v1,5,2 because it is stable but i checked my internal mem and it says 32mb which is still regular phone mem
do i need ap2sd to get my 96mb or do i need to convert ex3 to ex4 or is there something im missing
What spl are you using?
Also, type
Code:
busybox df -h
in terminal and let us know the output.
I don't know how to tell which spl
But this is the output
My busy box kmoo sd Details $ su# busybox df -h Filesystem*************** Size***** Used Available Use% Mounted on tmpfs******************* 47.8M**** 12.0K**** 47.8M** 0% /dev tmpfs******************** 4.0M******** 0***** 4.0M** 0% /sqlite_stmt_journals/dev/block/mtdblock3 AO
So what do I do next
DroidFreek said:
I don't know how to tell which spl
But this is the output
My busy box kmoo sd Details $ su# busybox df -h Filesystem*************** Size***** Used Available Use% Mounted on tmpfs******************* 47.8M**** 12.0K**** 47.8M** 0% /dev tmpfs******************** 4.0M******** 0***** 4.0M** 0% /sqlite_stmt_journals/dev/block/mtdblock3 AO
So what do I do next
Click to expand...
Click to collapse
Doesn't look right . Your df -h output should look something like this
Code:
Filesystem Size Used Available Use% Mounted on
tmpfs 47.9M 12.0K 47.8M 0% /dev
tmpfs 4.0M 0 4.0M 0% /sqlite_st
/dev/block/mtdblock3 90.0M 66.4M 23.6M 74% /system
/dev/block/loop0 512.0K 512.0K 0 100% /system/modules
/dev/block/loop1 2.8M 2.8M 0 100% /system/xb
/dev/block/mtdblock5 89.8M 27.4M 62.4M 30% /data
/dev/block/mtdblock4 30.0M 24.1M 5.9M 80% /cache
/dev/block/mmcblk0p2 457.3M 33.0M 400.0M 8% /system/sd
/dev/block/mmcblk0p2 457.3M 33.0M 400.0M 8% /data/dalv
/dev/block//vold/179:1
6.9G 6.3G 670.3M 91% /sdcard
where /system/sd is your apps2sd partition (if you have it) and /data is your internal storage.
I have 62megs free in my data, I'm not sure where you hear 96 megs but its complete unnecessary to have that much space free. I've yet to experience any slowdowns or low mem warnings. Also remember.... some devs put parts of their rom on /data partition and that will decrease your available space.
Also, there's absolutely NO WAY you should be getting low mem warning with 34 megs free. That only happens when you have less then 10 megs available. Apps2sd is the obvious choice if you want to have as much phone mem available as possible.
Your a real geniuos ty I got it to work but what is the secondary sd for what does it store and how can I access it I am currently using estrongs explorer
Don't know about estrongs... never used it. Rule of thumb, if it asks for SU access the first time you run it - then it will be able to access it.
I'll break it down for ya
Internal memory:
/system - your rom
/system/app - system files (google apps, dialer, contacts etc)
/system/**** - extra stuff that our devs include (thanks to them)
/data/app - non-protected apps
/data/app-private - protected apps
/data/dalvik-cache - working files for all apps
/data/data - your settings
/system/sd - aka your secondary partition, aka apps2sd is a part of your sdcard. Only accessible in Linux or in terminal. When you have apps2sd set up, your phone will bypass /data/app, data/app-private and /data/dalvik-cache and forward those files to /system/sd/app, /system/sd/app-private and /system/sd/dalvik-cache. It will still use /data/data for all of your settings. I know it's a lot of slashes there but it will start making sense as you progress with Android hacking.
If you want to see what's on secondary sd just type this in terminal
Code:
ls /system/sd
This will give you a print-out of the apps that are on your sd.
Anything else I'm forgeting?
Ok this is the new output
$ su# busybox df -h Filesystem*************** Size***** Used Available Use% Mounted on tmpfs******************* 47.8M**** 12.0K**** 47.8M** 0% /dev tmpfs******************** 4.0M******** 0***** 4.0M** 0% /sqlite_stmt_journals/dev/block/mtdblock3**** 67.5M**** 61.8M***** 5.7M* 92% /system/dev/block/loop0
Is it possible you can give me a list of all the commands for terminal
http://www.droidforums.net/forum/droid-hacks/26036-linux-commands-android.html
Try this, some basics.
want to make exact image of my whole os and all apps in it
Is it possible to make an exact image of of my whole os including the apps web bookmarks and etc
sort of like the program iamgeburn does for pc
yea a nandroid back up. check your recovery for a back up option
So i just head to recovery and choose nanodroid then choose backup right
after soing so where does it save to and how can i retrieve it after a complete wipe of sd and system
saved on your sdcard under nandroid.
To use it, in recovery select restore and choose the nadroid that you want to recover. Your now back to exactly where you were when you created it.
easy peasy.

A2SD Error?

Been searching tons of forums for answer, seems like no ones problem is quite like mine though, so...Time to ask you guys
I'm running newest RA-Amon Recovery
I'm running Damage Control 2.09.01
I have been TRYING to get A2SD working correctly for a few days now with no luck....
I've formatted my card, wiped my phone, partitioned SD as follows:
Swap 32mb
Ext 2 512mb (Changed to Ext 3)
Fat32 Remainder
Not sure if it matters, but I have a 32GB SD card...
When I run busybox df -h this is what I get:
C:\AndroidSDK\tools>adb shell
# busybox df -h
busybox df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 95.5M 0 95.5M 0% /dev
tmpfs 4.0M 4.0K 4.0M 0% /sqlite_stmt_journals
/dev/block/mtdblock3 170.0M 141.6M 28.4M 83% /system
/dev/block/mtdblock5 159.5M 67.1M 92.4M 42% /data
/dev/block/mtdblock4 130.0M 1.1M 128.9M 1% /cache
/dev/block/mmcblk0p2 457.4M 5.0K 433.0M 0% /system/sd
/dev/block//vold/179:1
30.7G 31.5M 30.7G 0% /sdcard
Also, if I try to install a program from Market, it downloads fine, but Fails to Install due to Insufficient Storage
If anyone has any ideas or would like me to try something else, I'm all ears. Phone starting to frustrate me
Don't know if this will work, but try this:
Go into an adb shell. Type this:
cd /data/data/com.android.vending/cache
rm -f *
reboot
This will clear the market cache and reboot your phone.
Let me know if that works.
kronik03 said:
Been searching tons of forums for answer, seems like no ones problem is quite like mine though, so...Time to ask you guys
I'm running newest RA-Amon Recovery
I'm running Damage Control 2.09.01
I have been TRYING to get A2SD working correctly for a few days now with no luck....
I've formatted my card, wiped my phone, partitioned SD as follows:
Swap 32mb
Ext 2 512mb (Changed to Ext 3)
Fat32 Remainder
Not sure if it matters, but I have a 32GB SD card...
When I run busybox df -h this is what I get:
C:\AndroidSDK\tools>adb shell
# busybox df -h
busybox df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 95.5M 0 95.5M 0% /dev
tmpfs 4.0M 4.0K 4.0M 0% /sqlite_stmt_journals
/dev/block/mtdblock3 170.0M 141.6M 28.4M 83% /system
/dev/block/mtdblock5 159.5M 67.1M 92.4M 42% /data
/dev/block/mtdblock4 130.0M 1.1M 128.9M 1% /cache
/dev/block/mmcblk0p2 457.4M 5.0K 433.0M 0% /system/sd
/dev/block//vold/179:1
30.7G 31.5M 30.7G 0% /sdcard
Also, if I try to install a program from Market, it downloads fine, but Fails to Install due to Insufficient Storage
If anyone has any ideas or would like me to try something else, I'm all ears. Phone starting to frustrate me
Click to expand...
Click to collapse

Low Space / Memory even after a hard reset

Hi
I recently acquired a Nexus One that I'm having memory issues with. I'm running Gingerbread 2.3.4 (GRJ22). I've tried all sorts of options in erasing / clearing memory. After each of these attempts, it always only shows 13MB free. No extra applications are even installed!
I've done the following:
* Factory Data Reset
* Clear Storage during HBOOT
* Wipe data/factory reset during RECOVERY
* Wipe cache partition during RECOVERY
Any other ideas? I've recently rooted it too.
What does it read if you do
Code:
df -h | grep /data
in the terminal? (The line is called a pipe and on the computer is located on the backslash key '\' and comes up when you use shift. I don't know where it is on the stock keyboard, but on swype, it is under the 'D' key if you use shift and long press on 'D'.
There is a possibility that your internal memory is filled with bad sectors.
As noted above, please post the output of the "df -h" command, so it'll be more clear.
I have 19.45kb free with CM7 + gapps only (edit - that is for /system and that too only 40KB free).
when I give that df command in terminal I get
/dev/block/mtdblock5 196.3M 41.1M 155.2M 21% /data
what does that mean?
munchy_cool said:
I have 19.45kb free with CM7 + gapps only
when I give that df command in terminal I get
/dev/block/mtdblock5 196.3M 41.1M 155.2M 21% /data
what does that mean?
Click to expand...
Click to collapse
Just do
df -h
and you'll see the headings...
filesystem size used available use% mounted
/dev/block/mtdblock5 196.3M 41.1M 155.2M 21% /data
so that means I have 155.2M free on /data.
that's good but my /system is only 40.0k free (cm 7 +gapps) only ..bad sectors?
bassmadrigal said:
What does it read if you do
Code:
df -h | grep /data
in the terminal? (The line is called a pipe and on the computer is located on the backslash key '\' and comes up when you use shift. I don't know where it is on the stock keyboard, but on swype, it is under the 'D' key if you use shift and long press on 'D'.
Click to expand...
Click to collapse
I can't seem to install terminal thru the marketplace. I think the low memory is preventing any additional application installs. Is that possible?
Is there another method to access a shell prompt on the device?
im sure you can use adb so plug it in!
daftsynth said:
I can't seem to install terminal thru the marketplace. I think the low memory is preventing any additional application installs. Is that possible?
Is there another method to access a shell prompt on the device?
Click to expand...
Click to collapse
Doesn't CM7 already come with Terminal installed...check your app drawer.
What gapps are you using? Because CM7 on mine has 8.56MB free after having gapps installed and DarkTremor's a2sd. If you are using one of the gapps that adds gmail, maps, facebook, etc... then that is probably your problem. That is why we have the smaller gapps (and to have gapps that are independent of the screen resolution). All those separate apps can be downloaded from the market. The tiny gapps gives you all the apps and framework needed to get onto the market so you can download the other apps.
And yes, Terminal is normally included with CM7...
You should definitely have more free on /system on a CM7 install with gapps.
bassmadrigal said:
You should definitely have more free on /system on a CM7 install with gapps.
Click to expand...
Click to collapse
How much is CM 7 + gapps from CM team on the /system (coz I use gapps which has gmail etc).
I don't know as I also have DarkTremor's a2sd installed, but I still have over 8.5MB available... so I would guess just over 10MB free.
I had low space problems on my old Eris. I just rooted & installed GingerShedBread (CM7) & have over 100MB free after installing 45 apps to internal storage.
GSB also supports moving all apps to sd including system.
Sent from my Vortex using XDA App
bassmadrigal said:
What does it read if you do
Code:
df -h | grep /data
in the terminal? (The line is called a pipe and on the computer is located on the backslash key '\' and comes up when you use shift. I don't know where it is on the stock keyboard, but on swype, it is under the 'D' key if you use shift and long press on 'D'.
Click to expand...
Click to collapse
running df, I get this:
Filesystem Size Used Free Blksize
/dev 192M 32K 192M 4096
/mnt/asec 192M 0K 192M 4096
/mnt/obb 192M 0K 192M 4096
/system 145M 128M 16M 4096
/data 196M 183M 12M 4096
/cache 95M 2M 92M 4096
/mnt/sdcard 1G 536K 1G 4096
/mnt/secure/asec 1G 536K 1G 4096
I can't seem to run "df -h". I get this error:
-h: No such file or directory
tsaxda said:
I had low space problems on my old Eris. I just rooted & installed GingerShedBread (CM7) & have over 100MB free after installing 45 apps to internal storage.
GSB also supports moving all apps to sd including system.
Sent from my Vortex using XDA App
Click to expand...
Click to collapse
I've just done some partition tweaks and now have 200+ apps with 118 mb free... xD
daftsynth said:
running df, I get this:
Filesystem Size Used Free Blksize
/dev 192M 32K 192M 4096
/mnt/asec 192M 0K 192M 4096
/mnt/obb 192M 0K 192M 4096
/system 145M 128M 16M 4096
/data 196M 183M 12M 4096
/cache 95M 2M 92M 4096
/mnt/sdcard 1G 536K 1G 4096
/mnt/secure/asec 1G 536K 1G 4096
I can't seem to run "df -h". I get this error:
-h: No such file or directory
Click to expand...
Click to collapse
That is weird that the -h option isn't working. It works on mine. Anyway, I guess it is the default with the df command (designed to show things in MB or GB instead of just bytes).
Now we will figure out what is using all the space in your /data directory.
Code:
su
cd /data
du -hd 1
This will show a listing of your data directory with sizes next to each folder. Normally the data and app directories will be your largest (maybe app-private if you have a lot of private apps installed). You can cd into each of the directories and run the same command and if you add "| grep M" it will only show items that have a capital 'M' in it which will show you all the files that are rated in MB vs KB.
So the command would read
Code:
du -hd 1 | grep M
Hopefully you can then figure out what is taking up all your space.
bassmadrigal said:
That is weird that the -h option isn't working. It works on mine. Anyway, I guess it is the default with the df command (designed to show things in MB or GB instead of just bytes).
Now we will figure out what is using all the space in your /data directory.
Code:
su
cd /data
du -hd 1
This will show a listing of your data directory with sizes next to each folder. Normally the data and app directories will be your largest (maybe app-private if you have a lot of private apps installed). You can cd into each of the directories and run the same command and if you add "| grep M" it will only show items that have a capital 'M' in it which will show you all the files that are rated in MB vs KB.
So the command would read
Code:
du -hd 1 | grep M
Hopefully you can then figure out what is taking up all your space.
Click to expand...
Click to collapse
It appears that I have bad sectors. The actual total size of /data is less than what shows up in "df". Any ideas on how I would repair the bad blocks?
I was able to run Ubuntu and get my Nexus One recognized by it. How do I fix the nexus one /data partition from Ubuntu? I'm assuming I would need to mount it.
I'm able to mount the /sd partition but can't see the other partitions. GParted only sees the SD partition as well when its attached with USB Storage turned on.
I don't have my Ubuntu box to confirm, but you should be able to mount /data as rw through adb (you only need the Linux adb, not the whole sdk).
Should look something like:
$ adb-linux shell
$ su
# mount /dev/block/mtdblock5 /data yaffs2 rw
...I'm sure someone will correct me if I'm wrong.
danger-rat said:
I don't have my Ubuntu box to confirm, but you should be able to mount /data as rw through adb (you only need the Linux adb, not the whole sdk).
Should look something like:
$ adb-linux shell
$ su
# mount /dev/block/mtdblock5 /data yaffs2 rw
...I'm sure someone will correct me if I'm wrong.
Click to expand...
Click to collapse
I will try this when I get home. But when you execute the mount cmd above, wouldnt that just mount the partition locally on the nexus one?
daftsynth said:
I will try this when I get home. But when you execute the mount cmd above, wouldnt that just mount the partition locally on the nexus one?
Click to expand...
Click to collapse
Yes it would mount it locally. I don't know if you would be able to mount the data partition onto the computer due to it not passing any disc info other than the sdcard. But, while in adb, you could try and run an e2fsck. I am not sure on the exactness of these commands, but I think it would be something like this in adb while in recovery.
Code:
adb-linux shell
mount system
e2fsck -pcfv /dev/block/mtdblock5
You may need to issue an 'su' command, but I think when you use adb it automatically logs in as root.

/datadata (/dev/block/mtdblock6) has 100 mb used (64 free) even after formatting

Hi
I'm using CM9 on SGS i9000 and after so many messages of low space, I found that /dev/block/mtdblock6 was almost full with 100 mb used even after deleting every single folder but lost+found:
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 189444 32 189412 0% /dev
/dev/block/mtdblock2 256000 240312 15688 94% /system
/dev/block/mtdblock3 17920 2336 15584 13% /cache
/dev/block/mmcblk0p2 1935192 276228 1658964 14% /data
/dev/block/mtdblock6 176128 111872 64256 64% /datadata
/dev/block/mmcblk0p1 5913120 3036544 2876576 51% /sdcard
~ # cd /datadata
/datadata # ls
lost+found
/datadata # rm -R lost\+found/
rm: can't remove 'lost+found': Directory not empty
I've tried formatting from CWM but that folder is still there and it complains of being non empty but (a ls on it shows nothing)
¿How could I recover that phantom used space so my apps doesn't complain?
Thanks in advance
Found it!
Flashing a new image (stock one), then reflashing CM fixed it, it appears that the problem was just with the FS and not with the flash memory.
It's a pitty than CWM format option did not fixed it :/
But at least it works
Hi,
Glad you fix your issue, can I barrow your thread? The issue is not exactly the same (at least I think) but the title fit so well with the problem and it is in the good category/section.
I have 60mb of unused/unusable/missing space in /datadata.
If I compare the result of command DU vs DF I got a difference of 59M for what is supposed to be the space “used”.
Command: du -sch /datadata
Result: 104.1M /datadata
Command: df /datadata
Result:
Filesystem Size Used Free Blksize
/datadata 172M 163M 8M 4096
The application DiskUsage give me a mysterious “System Data” of 62Mb.
Lost+Found folder is empty but I cannot delete it. Thought I don’t think it’s the issue... Lost+Found folder was showing up with DiskUsage when I got corruption on my emmc. So the situation is different.
I manage to put e2fsck in bin, but my adb don’t connect in download mode… and when the system is up it is impossible to umount “/dev/block/mtdblock6 /datadata yaffs2 rw,relatime 0 0” and neither it is to scan it with e2fsck.
I would like to find a rapid fix for that in case it would re-occur in the future. If we don’t find one I will probably Reset Data/Factory and wipe everything before flashing the rom again and restore with Titanium…
Searching for this issue always lead to either LOST.DIR LOST+FOUND or format, but everybody seems to have that issue on sdcard which is easier to move data,format then move data back…
Is there somebody else have this issue on /datadata? Do you think it may be fix by e2fsck? If yes then how can I run it? Do you have any idea on how to fix that?
Thanks you,
Model : GT-i9000M
Rom : CM9 nighties
Kernel : CM9 stock or Semaphore
Others :
- Restoring with Titanium backup if necessary (did not since a while)
- Using Wendigogo Datafix http://forum.xda-developers.com/showthread.php?p=26375859
EDIT: Welcome to this forum. At least now your first 2 post have an reply
That goes way over my skill.
Can somebody adapt this to our i9000?
http://forum.xda-developers.com/showthread.php?p=17752957
The e2fsck I have is coming from that zip. I can try to adapt in the script all /dev reference to our phone. But even with that, I think there a part that need to be compiled no? I don't know anything about these binary that are used for CW....
Edit : let me guess, YAFFS file system cannot be fix by e2fsck?! Anyway, if that could not help for my specific issue maybe it can be useful for other situations...
Envoyé depuis mon GT-I9000 avec Tapatalk
Silentbob999 said:
That goes way over my skill.
Can somebody adapt this to our i9000?
http://forum.xda-developers.com/showthread.php?p=17752957
The e2fsck I have is coming from that zip. I can try to adapt in the script all /dev reference to our phone. But even with that, I think there a part that need to be compiled no? I don't know anything about these binary that are used for CW....
Edit : let me guess, YAFFS file system cannot be fix by e2fsck?! Anyway, if that could not help for my specific issue maybe it can be useful for other situations...
Envoyé depuis mon GT-I9000 avec Tapatalk
Click to expand...
Click to collapse
I was not able to find on Linux any repairing tool, that's why I finally used a full image restore and repartition to have the FS recreated and usable again... CWM, CM9 and TitaniumBackup did the rest...
is that ok for you if I try to get support by using your thread or you prefer that I create a new one for my problem ?
For recap: I try to understand why /datadata is always full while CM9 is suppose to clean cache in there automatically. I think this is coming from that mysterious "System Data" that now taking 64.1Mo on my /datadata partition. That seems to correspond with the difference between result given by DU and DF command.
Code:
DF (153220) - DU (91836) = 61384 (59.9Mo)
Code:
***************************
* DU result *
***************************
Result of Data usage
Total : 172.5M (176656)
Data/data : 80.5M (82420)
Datadata : 89.7M (91836)
Libs Total : 41.2M (42144)
Libs in /Data/data : 38.2M (39080)
Libs in /Datadata : 0 (0)
Cache Total : 69.6M (71247)
Cache in /Data/data : 35.9M (36784)
Cache in /Datadata : 33.7M (34467)
Databases Total : 30.9M (31657)
Databases in /Data/data : 5.4M (5544)
Databases in /Datadata : 25.5M (26137)
Free space in /datadata : 83164
***************************
* DF result *
***************************
Filesystem Size Used Free Blksize
/datadata 172M 149M 22M 4096
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/block/mtdblock6 176128 153220 22908 87% /datadata
Filesystem Size Used Available Use% Mounted on
/dev/block/mtdblock6 172.0M 149.6M 22.4M 87% /datadata
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/block/mtdblock6 172 150 22 87% /datadata
***************************
*** TYPES ***
***************************
1206 - app_appcache
3969 - app_databases
23432 - files
31681 - databases
39080 - lib
71251 - cache
***************************
*** Cache ***
*** TOP 20 ***
***************************
44 /datadata/com.smartandroidapps.audiowidget/cache
61 /datadata/com.google.android.youtube/cache
72 /data/data/ca.lapresse.android.lapressemobile/cache
72 /data/data/com.aurorasoftworks.quadrant.ui.standard/cache
96 /datadata/com.mikersmicros.fm_li/cache
112 /data/data/com.mobilityflow.torrent/cache
152 /data/data/com.pelmorex.WeatherEyeAndroid/cache
1617 /datadata/com.eolwral.osmonitor/cache
3106 /datadata/com.estrongs.android.pop/cache
4692 /data/data/com.artelplus.howtotie/cache
4692 /data/data/com.et.easy.download/cache
4704 /data/data/com.koushikdutta.rommanager/cache
4724 /data/data/os.tools.scriptmanager/cache
5139 /datadata/com.android.vending/cache
5713 /datadata/ccc71.bmw/cache
5713 /datadata/com.aor.droidedit/cache
5724 /data/data/com.unit.convert/cache
5760 /data/data/ds.cpuoverlay/cache
5972 /data/data/com.android.email/cache
12532 /datadata/com.quoord.tapatalkpro.activity/cache
***************************
*** Database ***
*** TOP 10 ***
***************************
615 /datadata/com.android.providers.telephony/databases
634 /datadata/com.google.android.apps.plus/databases
823 /datadata/com.google.android.apps.docs/databases
1168 /datadata/com.android.providers.contacts/databases
1379 /datadata/dk.tacit.android.foldersync.full/databases
1532 /datadata/com.dropbox.android/databases
3354 /datadata/com.kiragames.unblockmefree/databases
4315 /datadata/com.android.email/databases
5520 /data/data/ca.lapresse.android.lapressemobile/databases
6404 /datadata/com.android.providers.media/databases
***************************
***************************
Silentbob999 said:
is that ok for you if I try to get support by using your thread or you prefer that I create a new one for my problem ?
For recap: I try to understand why /datadata is always full while CM9 is suppose to clean cache in there automatically. I think this is coming from that mysterious "System Data" that now taking 64.1Mo on my /datadata partition. That seems to correspond with the difference between result given by DU and DF command.
Code:
DF (153220) - DU (91836) = 61384 (59.9Mo)
[/CODE]
Click to expand...
Click to collapse
From my understanding /datadata should not be always full, and even if cache is supposed to be cleaned automatically, system will complain if under some MB theresold.
If DU + DF != Total then you may have the same problem I had (reported at dmesg as corruption or failing NAND) which was marking blocks as bad /unusable thus consuming the available disk space.
lost+found
thatś the problem
lost+found directory
i try to see inside with ls -l command
there was plenty hidden files
it was for me quite difficult to dellete all
at last i managed to clean nearly everything
now i have just lost+found directory with aparently no files
but imposible to delete directory
my whole sd card is 3 gb and was fully occupied by this lost+found
if possible the best solution should be to format this sd card....but i don t know how...
thanks

Categories

Resources