Android phone shell help /semi screwed help

Soldato
Joined
30 Jan 2007
Posts
15,505
Location
PA, USA (Orig UK)
Hi chaps,

I'm really not sure what happened, possibly a bad flash... but.. I can no longer run CWM on my phone, and I cannot download any apps due to there "insufficient space on device". I have removed a crap load on the internal memory, I have done a whole host of things like rerooting, retried putting CWM on the phone etc.

Basically.. It's possible that my system partition on the phone is full up (At a very wide guess because I'm linux clueless). I can 'pull' stuff from the system directory (in fact I pulled the whole directory and all sub directories off), but I would guess I need to try and delete something to make room?

Alternatively.. how do I check the remaining space on that partition? I really need help as I can't do anything on my phone now, I've removed all the app I can, and can't even install a file explorer to try and help out :-(

I can get shell access...but somethings are permission denied.


As info I have been looking around and used the 'df' command to get this:

# df system
df system
Filesystem Size Used Free Blksize
system 338M 327M 11M 1024

# df root
df root
Filesystem Size Used Free Blksize
root 0K 0K 0K 4096

# df
df
Filesystem Size Used Free Blksize
/dev 185M 64K 185M 4096
/mnt/asec 185M 0K 185M 4096
/mnt/obb 185M 0K 185M 4096
/system 338M 327M 11M 1024 <---- is this the issue here 11M free ?
/data 1G 136M 1G 4096
/mnt/extasec 185M 0K 185M 4096
/lgdrm 2M 2M 398K 2048
/mnt/sdcard 5G 2M 5G 4096
/mnt/secure/asec 5G 2M 5G 4096
/mnt/sdcard/_ExternalSD 7G 2G 4G 32768
/mnt/extsecure/extasec 7G 2G 4G 32768
 
Last edited:
LG Optimus 2X

I've had a look through the pulled (copied) system directories, and to be totally honest, I'm struggling to see what I could possibly take off!

Most of it is the standard stuff, and then a load of lib files. Is it possible to increase the partition size perhaps?
 
Last edited:
Have you got a custom recovery installed?
If so, try clearing cache & davlik cache from there.

If you haven't, then you should have a cache folder somewhere, which is what's full. Not familiar with the Optimus 2x, but this is usually in /cache, which may well be residing on the /system device, but they might have moved it. You probably need to remount the root filesystem as rw and from there clear out.

-Leezer-
 
Yes, I do.. but I cannot get into it.

I see the dalvik cache folder under /data/dalvik-cache/ and it has a lot of "dex" files in it.

Note: I am a little clueless on how to do this stuff, this is literally the first time I've looked at this structure, and I'm toying around with the commands. Guidance would be appreciated.

EDIT: I just downloaded Android Commander for windows.. so that might help things out a bit.

Hmm.. I have just taken a risk (bad thing) and deleted the dalvik cache (75MB ish)... let's see if phone turns on again! (And phew.. it turns on.) Will try to reinstall CWM again. and CWM didn't work... bah.

Beginning to thing I might need to risk copying stuff off that's important just to free up space.
 
Last edited:
What happens if you run reboot recovery from the shell?
If you can't get into recovery, then aren't quite as simple as they seem (In theory, this should be entirely independant of OS issues when using the button combo)

I'm not convinced clearing dalvik-cache will help in this specific case mind, as it's located on the /data partition, which has 136 odd mb free :)
(Dalvik-cache and cache are separate, but similar in purpose)

To dalvik-cache from the terminal:
Code:
su
mount -o rw,remount /data
cd /data/dalvik-cache
rm *

Other stuff you *may* be able to remove is some of the preinstalled apps. These are probably under /system/app.
To delete one of these (Backup first!)-
Code:
su
mount -o rw,remount /system
cd /system/app
rm <app-name>.apk

-Leezer-
 
Just backing those up now :-) (Actually... just seeing if I can backup/copy the whole system using Android Commander)

Thanks for helping btw.

What would be helpful would be to resize the partition.. but maybe I'll wait to see if this works first.
 
Last edited:
All I can say is that I hope I don't make it worse :p

Plenty of experience in both Linux and Android, but remote help is never as good as having the offending article in your hand :D

Edit:
This may be a dense suggestion, but can I just check you've rebooted after clearing some of the apps off?
It may take a reboot for things to clear up, but that's a folorn hope.

-Leezer-
 
All I can say is that I hope I don't make it worse :p

Plenty of experience in both Linux and Android, but remote help is never as good as having the offending article in your hand :D

-Leezer-

lol, I know exactly what you mean. If it all goes pete tong... I'll be a very expensive phone down, and have to get something budget lol. (obviously i hope it doesn't go wrong!!!)

EDIT: yes I rebooted.
 
I'm on XDA already, so did post there in the LG Optimus 2X. It can however be slow at times. The dev's are the best to help out as they know what they are doing, but I'd probably pee them off asking for such a lot of there time.

Deleted a few APK's, but doesn't seem to have a made a blind bit of difference to whether CWM loads :-( Mega bummer.

I tried manually copying the clockwork mod file across as well, but it didn't work. It's like my permissions have been revoked :-( Phone is defo rooted.
 
Last edited:
Looks like I might be trying NVFlash in APX recovery mode later. Seems a bit severe to try this, but I don't know what else I can try.. I don't seem to be able to identify the problem. (Not being able to get CWM on the phone, and not being able to add any apps even though there is space).
 
Are you sure the recovery partition isn't seperate?

Normally when you can't boot to recovery it means something has gone awry with the recovery partition.
 
I meant normally for Android but from looking more it appears getting CWM on it is a hack involving the partitions which appears to have gone awry for your phone.

So something has likely gone wrong with the file system or partitions and I think the easiest solution is as you said to NVFlash a stock rom and start again.
 
Well.. I am now running NVFlash on my phone. TBH I have no idea what it's doing at present.. it's just displaying S/W Update Please wait while upgrading.... think I may give it 30 mins. so max 9:30.

And at the advice of Rusty on xda (VERY helpful chap to be honest), removed cord after NV flash, but still getting a blank screen when it comes to trying to boot CWM :-( My partitions appear to be ext3, but something must be rather screwed for this not to be taking.

EDIT: Managed to flash V10b from Paul O'Brian's NVFLash on Modaco. Hopefully the phone will work as expected now (it formatted all the partitions etc).

Update: And I've got CWM back. Had to reroot using superoneclick (highly recommended app!!), then using a custom cwm installer as my phone has permission issues (some people get this). Then rebooted, got CWM back up (THANK THE LORD!!!), and now reflashing V20Q rom lol. (well, I can't have plain froyo!!! lmao)

Thank you to all those that offered advise, I really appreciate it :-) Thank you.
 
Last edited:
Yes. I flashed a stock rom that I got of Modaco. It booted up, I immediately rooted, and CWM'd, rebooted and flashed the latest official (but rebuilt) LG ROM (Not available in the UK yet, but in Italy), and then a tweak pack. Have yet to put on a different kernel again. As a side note: the V20Q rom fixes a shed load of issues, included the wifi memory leak, and the bad GPS performance. My GPS was excellent on this ROM :-)

It's working perfectly again now thank goodness. I think that I just tried to apply a ROM, a tweak pack, a cache wipe and a data wipe and a new kernel all in the same CWM session. I think that's what screwed it lol. I have downloaded all my apps again now just fine, and even some new ones. VERY happy I have my phone back :-D
 
Last edited:
Back
Top Bottom