How to check if Compcache is enabled? - G1 Q&A, Help & Troubleshooting

I am running Cyanogen 4.0.4 and would like to know if compcache is enabled. Can someone confirm if my settings are alright?
I have the following details:
Code:
# free
total used free shared buffers
Mem: 97880 95340 2540 0 504
Swap: 24464 17408 7056
Total: 122344 112748 9596
Code:
# df
/dev: 48940K total, 0K used, 48940K available (block size 4096)
/sqlite_stmt_journals: 4096K total, 0K used, 4096K available (block size 4096)
/system: 92160K total, 73844K used, 18316K available (block size 4096)
/system/modules: 640K total, 640K used, 0K available (block size 131072)
/system/xbin: 3328K total, 3328K used, 0K available (block size 131072)
/data: 91904K total, 17680K used, 74224K available (block size 4096)
/cache: 30720K total, 1552K used, 29168K available (block size 4096)
/system/sd: 409986K total, 58588K used, 351398K available (block size 1024)
/data/dalvik-cache: 409986K total, 58588K used, 351398K available (block size 1024)
/sdcard: 15121920K total, 147688K used, 14974232K available (block size 8192)
Code:
# 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)
none on /dev/cpuctl type cgroup (rw,cpu)
/dev/block/mtdblock3 on /system type yaffs2 (ro)
/dev/block/loop0 on /system/modules type squashfs (ro)
/dev/block/loop1 on /system/xbin type squashfs (ro)
/dev/block/mtdblock5 on /data type yaffs2 (rw,nodev)
/dev/block/mtdblock4 on /cache type yaffs2 (rw,nosuid,nodev)
/dev/block/mmcblk0p2 on /system/sd type ext3 (rw,noatime,nodiratime,errors=continue,data=ordered)
/dev/block/mmcblk0p2 on /data/dalvik-cache type ext3 (rw,noatime,nodiratime,errors=continue,data=ordered)
/dev/block//vold/179:1 on /sdcard type vfat (rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1000,fmask=0711,dmask=0700,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)

if the only thing you have is compache and no linux-swap then compache is working because of the output from the free command

else you should be able to run the following with superuser access through terminal:
sh /system/bin/swap -s
It will show you the pre and post compression data size, as well as the compression rate under compcache.

Or simply use
Code:
# cat /proc/ramzswap
This file only exists when compcache is currently active. You will see its current settings and status:
Code:
DiskSize: 87040 kB
NumReads: 9509
NumWrites: 12188
FailedReads: 0
FailedWrites: 0
InvalidIO: 0
NotifyFree: 1300
ZeroPages: 410
GoodCompress: 78 %
NoCompress: 3 %
PagesStored: 10471
PagesUsed: 3598
OrigDataSize: 41884 kB
ComprDataSize: 13755 kB
MemUsedTotal: 14392 kB

Related

[Q] HELP Browser storage full / Insufficient storage

Hey, I am hoping somebody can help me out because I am having an issue I don't understand.
I have a Bell Samsung Galaxy S (i9000M) that I have updated to firmware revision I9000UGJH2 (the official firmware for my region), and which has 3 button recovery enabled (it was enabled by this software update).
I flashed the kernel oc120_voodoo_b4.2 onto it, and everything ran fine for about 4 days until last night. The following happened on my phone:
1) I noticed a red triangle exclamation mark in the notification area, it told me my browser storage was full
2) It gave me the option to launch an application to remedy the problem, which hung indefinitely on launching, and I was unable to even return to the home screen so I rebooted the device
3) On reboot, the back and menu capacitive buttons were both not responding (they would light up when touched, but took no action)
4) I rebooted again, and after a reboot the buttons work again now, but I am unable to install any packages, dolphin crashes repeatedly and many apps hang/won't open
I launched terminal and ran the df command to check for free space on each partition, and checked the mount status of each device, the results are posted below:
Code:
# df
df
/data: 1713424K total, 139808K used, 1573616K available (block size 4096)
/dev: 166580K total, 0K used, 166580K available (block size 4096)
/mnt/.lfs: Function not implemented
/sqlite_stmt_journals: 4096K total, 0K used, 4096K available (block size 4096)
/system: 282432K total, 252340K used, 30092K available (block size 4096)
/dbdata: 130280K total, 8404K used, 121876K available (block size 4096)
/cache: 30792K total, 2108K used, 28684K available (block size 4096)
/efs: 6064K total, 4103K used, 1961K available (block size 1024)
/sdcard: 13655888K total, 1544464K used, 12111424K available (block size 16384)
# mount
mount
rootfs / rootfs ro 0 0
proc /proc proc rw 0 0
sys /sys sysfs rw 0 0
/dev/block/mmcblk0p4 /data ext4 rw,noatime,nodiratime,barrier=1,data=ordered 0 0
tmpfs /dev tmpfs rw,mode=755 0 0
devpts /dev/pts devpts rw,mode=600 0 0
/dev/block/stl6 /mnt/.lfs j4fs rw 0 0
tmpfs /sqlite_stmt_journals tmpfs rw,size=4096k 0 0
none /dev/cpuctl cgroup rw,cpu 0 0
/dev/block/stl9 /system rfs rw,vfat,llw,check=no,gid/uid/rwx,iocharset=utf8 0 0
/dev/block/stl10 /dbdata rfs rw,nosuid,nodev,vfat,llw,check=no,gid/uid/rwx,iocha
rset=utf8 0 0
/dev/block/stl11 /cache rfs rw,nosuid,nodev,vfat,llw,check=no,gid/uid/rwx,iochar
set=utf8 0 0
/dev/block/stl3 /efs rfs rw,nosuid,nodev,vfat,llw,check=no,gid/uid/rwx,iocharset
=utf8 0 0
/dev/block//vold/179:1 /sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=
1015,fmask=0102,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,s
hortname=mixed,utf8,errors=remount-ro 0 0
As far as I can tell I have space available on every device. I tried to un-install and re-install dolphin, my phone hung for several minutes on the un-install, and on re-install it simply fails citing insufficient storage.
I could probably re-flash the phone to remedy this situation, but being a linux user and a programmer I really want to understand why it happened so I can try to avoid asking questions like this in the future (and instead, answer them).
Does anybody here know what is going on? Any help would be appreciated.
***EDIT***
I have checked dmesg and see the following:
Code:
<4>[15699.082459] mmc0: Too large timeout requested!
<4>[15699.091711] mmc0: Too large timeout requested!
<4>[15699.098380] mmc0: Too large timeout requested!
<4>[15699.104183] mmc0: Too large timeout requested!
<4>[15699.110192] mmc0: Too large timeout requested!
<4>[15699.120918] mmc0: Too large timeout requested!
<4>[15699.125812] mmc0: Too large timeout requested!
repeated MANY times, hundreds and hundreds of lines of it, with some touch notifications tucked in there which looked pretty normal.
Tell me this doesn't mean my internal SD is dead. I just answered the poll yesterday saying it wasn't
I turned off the voodoo lagfix and this appears to have corrected the issue for now. I see many people are able to run this lagfix without issues, and from the way the problem presented it seems to be a filesystem issue. Any ideas what went wrong here?

write error: No space left on device /system

Hello all,
I am trying to copy something to /system/lib and I am facing this error:
cp: write error: No space left on device
Code:
# mount
/dev/block/stl9 /system rfs rw,relatime,vfat,llw,gid/uid/rwx,iocharset=utf8 0 0
and
Code:
# df
/system: 282432K total, 282432K used, 0K available (block size 4096)
I have JPA with YA-OK and lagfix a=ext4
Searched and found this: http://forum.xda-developers.com/showthread.php?t=797730 but does not help.
Any ideas ?
Thanks

[Q] Q - no sdcard is mounted

Hi.
I had rooted (CF-Root-XW_XEN_JS5-v1.3) galaxy i9000 and I updated it with CF-Root-XW_XEE_JVB-v3.1-CWM3RFS. Odin said - successful, but phone after that never boot up successfully, just showed 'Galaxy S ...' on the screen.
Via recovery, using adb shell is see now:
$ busybox df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 169.5M 0 169.5M 0% /dev
nodev 169.5M 8.0K 169.5M 0% /tmp
df: /mnt/.lfs: Function not implemented
tmpfs 169.5M 0 169.5M 0% /mnt/asec
/dev/block/stl9 275.8M 274.2M 1.6M 99% /system
/dev/block/stl3 5.9M 5.0M 933.0K 85% /efs
/dev/block/stl11 30.1M 4.0M 26.1M 13% /cache
Before update it showed:
tmpfs 169.5M 0 169.5M 0% /dev
df: /mnt/.lfs: Function not implemented
tmpfs 169.5M 0 169.5M 0% /mnt/asec
/dev/block/stl9 275.8M 274.2M 1.7M 99% /system
/dev/block/mmcblk0p2 1.9G 354.3M 1.5G 18% /data
/dev/block/stl10 127.2M 12.4M 114.8M 10% /dbdata
/dev/block/stl11 30.1M 4.0M 26.1M 13% /cache
/dev/block/stl3 5.9M 5.0M 935.0K 85% /efs
/dev/block/vold/179:1 13.4G 4.0G 9.4G 30% /mnt/sdcard
Any suggestions, how could I get my sdcard and data volumes again mounted? Somehow via adb mount or should I use Odin with repartition?

[Q] SD card not working

Guys, i need help here..
My 8GB SD card is not working right after i install GingerDX V010
anyone can help?
i really can't live with a phone with no SD card..
Well what's the problem?, be more precise.
Sent from my X8 using XDA Premium App
it said that there is no SD card inserted in the phone even though the SD card is really in the phone..
everything in my SD can't be used including the backups..
Do you have any ext partition?
Sent from my X8 using XDA Premium App
I have the same problem!!! I have Xperia X8 with gingerdx v011... My sd card has three partitions... 1. primary fat32 6.88 GB 2. Primary EXT2 512MB 3.Linux SWAP 50MB... What did I do wrong???? Please Help!!!!!
i'm sorry, i'm a noob..
i don't really know what are ext partition..
antonis980 said:
I have the same problem!!! I have Xperia X8 with gingerdx v011... My sd card has three partitions... 1. primary fat32 6.88 GB 2. Primary EXT2 512MB 3.Linux SWAP 50MB... What did I do wrong???? Please Help!!!!!
Click to expand...
Click to collapse
Sorry for the noob question but what particularly is the advantage of this partitions? I'm just a little curious.
Sent from my X8 using XDA App
Well it's a little bit faster i think,but delete swap partition,only fat32 and ext partitition remain,or u cand use only fat32.I had almost the same problem,so it did the trick.
Edit:try to delete ext2 and make ext3
Edit2: doka,have u formatted ur card?ext partitions it's for an app called app2sd so u can store app on the ext partition,but u don't really need an ext partition.
Sent from my Xperia X8 using XDA Premium App
Thanks dotsen9 it did for me too!!!!
Np bro:>
Everybody Lies...even SE too
I've formatted the SD card but still the result is the same..
when i go to Music, it says "Your phone does not have an SD card inserted."
What are the partitions of your card?
Sent from my E15i using XDA Premium App
The advantage of partitions:
Creating an ext partition on the sd card can, depending on the sd card, speed up apps and also frees up space in the /data partition. Instead of moving only some of the apps into the sd card, most custom roms have a script that moves all the apps on the /data partition and the dalvik-cache to the ext partition on the sd card. This means that the /data partition will never run out of space unless if the ext partition is filled up or something bad happened.
The fastest partition is ext2, but it is unsafe particularly during unclean shutdowns as it doesn't incorporate journaling and the entire partition might become corrupted. Ext3 is a middleground between ext2 and ext4. ext3 incorporates journaling and some other added features which makes it safer, but writing to it is slower than writing to ext2. ext4 incorporates the most features but it is still slower than ext2. Thus, users with ext3 partitions might choose to upgrade to ext4 if they wish. The benefits of partitioning is usually only evident with sd cards of class 4 and above.
NOTE TO ALL: Don't get a swap partition on your sd card!
CWM recovery can partition the sd card if you are interested.
dotsen9 said:
What are the partitions of your card?
Sent from my E15i using XDA Premium App
Click to expand...
Click to collapse
How to check the partitions?
agai, I'm sorry, it looks like i'm super noob..
DokaponKingdom said:
How to check the partitions?
agai, I'm sorry, it looks like i'm super noob..
Click to expand...
Click to collapse
type this commands in terminal emulator:
su #hit enter#
parted /dev/block/mmcblk0 print quit #hit enter#
__________________________________
And then you can see the no. of partitions, the partitions sizes and types etc.
SpyderX said:
type this commands in terminal emulator:
su #hit enter#
parted /dev/block/mmcblk0 print quit #hit enter#
__________________________________
And then you can see the no. of partitions, the partitions sizes and types etc.
Click to expand...
Click to collapse
i've type the command in the terminal emulator and this is what came out.
Model: SD SU08G ( sd/mmc)
Disk /dev/block/mmcblk0: 7948MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
#
That's all.. the partitions and etc. is not stated..
DokaponKingdom said:
i've type the command in the terminal emulator and this is what came out.
Model: SD SU08G ( sd/mmc)
Disk /dev/block/mmcblk0: 7948MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
#
That's all.. the partitions and etc. is not stated..
Click to expand...
Click to collapse
That's strange. Try typing
mount
In terminal emulator and paste the results here.
_________________
My results after using parted /dev/block/mmcblk0 print quit
$su
# parted /dev/block/mmcblk0 print quit
Model: SD SU08G (sd/mmc)
Disk /dev/block/mmcblk0: 7948MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 7436MB 7436MB primary fat32 lba
2 7436MB 7948MB 513MB primary ext4
#
Results after mount command
$ export PATH=/data/local/bin:$PATH
$ mount
rootfs on / type rootfs (rw)
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/mtdblock0 on /system type yaffs2 (rw)
tmpfs on /dev type tmpfs (rw,noatime,nodiratime,mode=755)
devpts on /dev/pts type devpts (rw,noatime,nodiratime,mode=600)
proc on /proc type proc (rw,noatime,nodiratime)
sysfs on /sys type sysfs (rw,noatime,nodiratime)
tmpfs on /mnt/asec type tmpfs (rw,noatime,nodiratime,mode=755,gid=1000)
tmpfs on /mnt/obb type tmpfs (rw,noatime,nodiratime,mode=755,gid=1000)
/dev/block/mtdblock3 on /data type yaffs2 (rw,nosuid,nodev,noatime,nodiratime)
/dev/block/mtdblock1 on /cache type yaffs2 (rw,nosuid,nodev,noatime,nodiratime)
/dev/block/mmcblk0p2 on /sd-ext type ext4 (rw,noatime,nodiratime,barrier=1,data=ordered)
none on /sys/kernel/debug type debugfs (rw,noatime,nodiratime)
/dev/block/vold/179:1 on /mnt/sdcard type vfat (rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/block/vold/179:1 on /mnt/secure/asec type vfat (rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
tmpfs on /mnt/sdcard/.android_secure type tmpfs (ro,size=0k,mode=000)
$
SpyderX said:
That's strange. Try typing
mount
In terminal emulator and paste the results here.
_________________
My results after using parted /dev/block/mmcblk0 print quit
$su
# parted /dev/block/mmcblk0 print quit
Model: SD SU08G (sd/mmc)
Disk /dev/block/mmcblk0: 7948MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 7436MB 7436MB primary fat32 lba
2 7436MB 7948MB 513MB primary ext4
#
Results after mount command
$ export PATH=/data/local/bin:$PATH
$ mount
rootfs on / type rootfs (rw)
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/mtdblock0 on /system type yaffs2 (rw)
tmpfs on /dev type tmpfs (rw,noatime,nodiratime,mode=755)
devpts on /dev/pts type devpts (rw,noatime,nodiratime,mode=600)
proc on /proc type proc (rw,noatime,nodiratime)
sysfs on /sys type sysfs (rw,noatime,nodiratime)
tmpfs on /mnt/asec type tmpfs (rw,noatime,nodiratime,mode=755,gid=1000)
tmpfs on /mnt/obb type tmpfs (rw,noatime,nodiratime,mode=755,gid=1000)
/dev/block/mtdblock3 on /data type yaffs2 (rw,nosuid,nodev,noatime,nodiratime)
/dev/block/mtdblock1 on /cache type yaffs2 (rw,nosuid,nodev,noatime,nodiratime)
/dev/block/mmcblk0p2 on /sd-ext type ext4 (rw,noatime,nodiratime,barrier=1,data=ordered)
none on /sys/kernel/debug type debugfs (rw,noatime,nodiratime)
/dev/block/vold/179:1 on /mnt/sdcard type vfat (rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/block/vold/179:1 on /mnt/secure/asec type vfat (rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
tmpfs on /mnt/sdcard/.android_secure type tmpfs (ro,size=0k,mode=000)
$
Click to expand...
Click to collapse
This is my result:
$ export PATH=/data/local/bin:$PATH
$ mount
rootfs on / type rootfs (rw)
tmpfs on /dev type tpmfs (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/mtdblock0 on /data type yaffs2 (rw,nosuid,nodev)
/dev/block/mtdblock0 on /system type yaffs2 (rw)
tmpfs on /dev type tmpfs (rw,mode=755)
devpts on /dev/pts type devpts (rw,mode=600)
proc on /proc type proc (rw)
sysfs / sys type sysfs (rw)
tmpfs on /mnt/asec type tmpfs (rw,mode=755,gid=1000)
tmpfs on /mnt/obb type tmpfs (rw,mode=755,gid=1000)
/dev/block/mtdblock2 on /data type yaffs2 (rw,nosuid,nodev)
/dev/block/mtdblock2 on /cache type yaffs2 (rw,nosuid,nodev)
SpyderX said:
The advantage of partitions:
Creating an ext partition on the sd card can, depending on the sd card, speed up apps and also frees up space in the /data partition. Instead of moving only some of the apps.. (edited for more space)
Click to expand...
Click to collapse
Thanks. I get it. But I'll stick to normal sdcard I guess, its a little complicated for me. Again, thanks for the info.
Sent from my X8 using XDA App
just found a post in this forum of someone who solved this issue upgrading the sd card to one above class4, i'll probably buy a new one tomorrow, hopefully that will do the trick.
good luck!!

CM10 - Issue with /data partiton

After installing the latest CM10 Nightly 20121002 it would appear that the /datadata partition is back however my apps are still trying to install themselves to /data which has been reduced to ~80MB and as a result I get a messsage soon after the market restore begins that space is low.
I went back to CM10-20120919 and I have 422MB available in the /data partition as expected.
I tried to post to the CM10 Nightly thread but I'm still less than 10 posts old on XDA, I posted the partition layout in 20121002 on the Cyanogen forums, can't post links, too noobish for XDA yet again.
Is this expected behaviour in CM10? Do we now how to put everything on the SD card?
Hi,
I'm on CM10 1002 and I have 1G free in /data (and 472M used). In /datadata I have 218M free and 203M used.
All my apps are on the phone, i didn't moved anything on sd card.
I think it was something wrong with your install, you should try flashing it again.
Aviatoru said:
Hi,
I'm on CM10 1002 and I have 1G free in /data (and 472M used). In /datadata I have 218M free and 203M used.
All my apps are on the phone, i didn't moved anything on sd card.
I think it was something wrong with your install, you should try flashing it again.
Click to expand...
Click to collapse
I have downloaded the latest nightly 20121003 and I still have the same issue.
Here is what I see in ADB:
1|[email protected]:/ # df
df
Filesystem Size Used Free Blksize
/dev 184M 48K 184M 4096
/mnt/asec 184M 0K 184M 4096
/mnt/obb 184M 0K 184M 4096
/cache 17M 2M 14M 4096
/radio 16M 15M 760K 4096
/datadata 422M 17M 404M 4096
/system 393M 229M 164M 4096
/data 81M 46M 35M 4096
/efs 12M 5M 6M 4096
/storage/sdcard1 7G 822M 6G 32768
/storage/sdcard0 14G 11G 3G 8192
/mnt/secure/asec 14G 11G 3G 8192
[email protected]:/ # mount
mount
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/mtdblock3 /cache yaffs2 rw,nosuid,nodev,relatime 0 0
/dev/block/mtdblock5 /radio yaffs2 rw,relatime 0 0
/dev/block/mtdblock2 /datadata yaffs2 rw,relatime 0 0
/dev/lvpool/system /system ext4 ro,relatime,barrier=1,data=ordered 0 0
/dev/lvpool/userdata /data ext4 rw,nosuid,nodev,noatime,errors=panic,barrier=1,n
omblk_io_submit,data=ordered 0 0
/dev/block/mtdblock4 /efs yaffs2 rw,relatime 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
/dev/block/vold/179:9 /storage/sdcard1 vfat rw,dirsync,nosuid,nodev,noexec,relat
ime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,ioch
arset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:1 /storage/sdcard0 vfat rw,dirsync,nosuid,nodev,noexec,relat
ime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,ioch
arset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:1 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relat
ime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,ioch:angel:
arset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /storage/sdcard0/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
[email protected]:/ #
Everything checks out except the /data LV, it's only been created as 81MB!
Something has gone wrong in LVM:
--- Volume group ---
VG Name lvpool
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 484.00 MiB
PE Size 4.00 MiB
Total PE 121
Alloc PE / Size 121 / 484.00 MiB
Free PE / Size 0 / 0
VG UUID buUfFr-wHCP-0WaI-theX-LYHJ-WIB3-CvBIW0
--- Logical volume ---
LV Path /dev/lvpool/system
LV Name system
VG Name lvpool
LV UUID KyabDe-sf7A-eVsT-S0ay-XenC-Yvyk-QuStAC
LV Write Access read/write
LV Creation host, time localhost, 2012-10-05 19:18:17 +0000
LV Status available
# open 1
LV Size 400.00 MiB
Current LE 100
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:0
--- Logical volume ---
LV Path /dev/lvpool/userdata
LV Name userdata
VG Name lvpool
LV UUID zIQCKS-O3sA-QqJa-6FCb-dw0A-mvSV-5nAcH0
LV Write Access read/write
LV Creation host, time localhost, 2012-10-05 19:18:17 +0000
LV Status available
# open 1
LV Size 84.00 MiB
Current LE 21
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:1
[EDIT]
Partition list on mmcblk0
[email protected]:/ # fdisk -l /dev/block/mmcblk0
fdisk -l /dev/block/mmcblk0
Disk /dev/block/mmcblk0: 16.0 GB, 16005464064 bytes
255 heads, 63 sectors/track, 1945 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 1 1868 15004678+ c Win95 FAT32 (LB
A)
/dev/block/mmcblk0p2 1869 1931 500173 83 Linux
/dev/block/mmcblk0p3 1931 1946 125453 82 Linux swap
Anybody know how to fix this?
infecticide said:
I have downloaded the latest nightly 20121003 and I still have the same issue.
Here is what I see in ADB:
1|[email protected]:/ # df
df
Filesystem Size Used Free Blksize
/dev 184M 48K 184M 4096
/mnt/asec 184M 0K 184M 4096
/mnt/obb 184M 0K 184M 4096
/cache 17M 2M 14M 4096
/radio 16M 15M 760K 4096
/datadata 422M 17M 404M 4096
/system 393M 229M 164M 4096
/data 81M 46M 35M 4096
/efs 12M 5M 6M 4096
/storage/sdcard1 7G 822M 6G 32768
/storage/sdcard0 14G 11G 3G 8192
/mnt/secure/asec 14G 11G 3G 8192
[email protected]:/ # mount
mount
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/mtdblock3 /cache yaffs2 rw,nosuid,nodev,relatime 0 0
/dev/block/mtdblock5 /radio yaffs2 rw,relatime 0 0
/dev/block/mtdblock2 /datadata yaffs2 rw,relatime 0 0
/dev/lvpool/system /system ext4 ro,relatime,barrier=1,data=ordered 0 0
/dev/lvpool/userdata /data ext4 rw,nosuid,nodev,noatime,errors=panic,barrier=1,n
omblk_io_submit,data=ordered 0 0
/dev/block/mtdblock4 /efs yaffs2 rw,relatime 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
/dev/block/vold/179:9 /storage/sdcard1 vfat rw,dirsync,nosuid,nodev,noexec,relat
ime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,ioch
arset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:1 /storage/sdcard0 vfat rw,dirsync,nosuid,nodev,noexec,relat
ime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,ioch
arset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:1 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relat
ime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,ioch:angel:
arset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /storage/sdcard0/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
[email protected]:/ #
Everything checks out except the /data LV, it's only been created as 81MB!
Something has gone wrong in LVM:
--- Volume group ---
VG Name lvpool
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 484.00 MiB
PE Size 4.00 MiB
Total PE 121
Alloc PE / Size 121 / 484.00 MiB
Free PE / Size 0 / 0
VG UUID buUfFr-wHCP-0WaI-theX-LYHJ-WIB3-CvBIW0
--- Logical volume ---
LV Path /dev/lvpool/system
LV Name system
VG Name lvpool
LV UUID KyabDe-sf7A-eVsT-S0ay-XenC-Yvyk-QuStAC
LV Write Access read/write
LV Creation host, time localhost, 2012-10-05 19:18:17 +0000
LV Status available
# open 1
LV Size 400.00 MiB
Current LE 100
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:0
--- Logical volume ---
LV Path /dev/lvpool/userdata
LV Name userdata
VG Name lvpool
LV UUID zIQCKS-O3sA-QqJa-6FCb-dw0A-mvSV-5nAcH0
LV Write Access read/write
LV Creation host, time localhost, 2012-10-05 19:18:17 +0000
LV Status available
# open 1
LV Size 84.00 MiB
Current LE 21
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:1
[EDIT]
Partition list on mmcblk0
[email protected]:/ # fdisk -l /dev/block/mmcblk0
fdisk -l /dev/block/mmcblk0
Disk /dev/block/mmcblk0: 16.0 GB, 16005464064 bytes
255 heads, 63 sectors/track, 1945 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 1 1868 15004678+ c Win95 FAT32 (LB
A)
/dev/block/mmcblk0p2 1869 1931 500173 83 Linux
/dev/block/mmcblk0p3 1931 1946 125453 82 Linux swap
Anybody know how to fix this?
Click to expand...
Click to collapse
So I think I found the problem and, possibly, the solution.
I noticed on my internal SD card that there is a swap parititon that wasn't being used, as confirmed by 'free' in ADB. Swap shouldn't be there so I deleted it Reflashed, hoping it would recreate the internal partitioning to right size. Nope, same issue.
Deleted the linux partition (mmcblk0p2) hoping that during the reflash it would recreate it. Nope, almost bricked the phone until I discovered that ADB is available in recovery.
Re-created said partition with remaining space, I now have ~360MB of "internal storage". So it would appear that the internal card is partitioned wrong.
Could the helpful person from before, go into ADB shell and run fdisk -l /dev/block/mmcblk0 and post the results so I can see what I should have for unit numbers?
Thanks!

Categories

Resources