how to check how much space on ext3 left on hero - G1 Q&A, Help & Troubleshooting

I know on cyan it says how much you have left but how to you check on hero.

from console
df
Will show what is left on all drives

Related

can someone tell me if my thinking is correct

ok so i didnt really know what swap was or compcache with backing was so i spent the day lookin it up and i just want to know if what im getting out of my info is correct.
swap, basically instead of your phone just seeing ram it also sees your swap partition as part of the ram. so it stores app data and etc. to the swap partition thus making your phone run faster and not taking up all your internal ram and make it run slower. and it is managed by linux. by changing your swappiness setting either higher or lower will change how often swap is used.
compcache, basically creates a sort of swap partition inside the ram itself. it compresses what it swaps into this partition to create more space in the ram. im guessing people like this with backing swap because the compressed info can be brought up quicker because its compressed in the phones ram rather than like swap were its on the sd.
backing swap, when compcache is full it uses the swap partition on my sd. but rather than being like linux swap were its controlled by linux, backing swap is managed by compcahe wich works together better than compcache and linux swap.
im a complete noob here lol so if i got something wrong you gotta explain it to me in laymans terms thanx for the help
Yes, that's right. Did you copy and paste those definitions lol?
lol no i did a lot of google searching its all other peoples info but i put it into words that i can understand.lol
Amack that almost deserve a sticky
this post help me understand the way the partition works alittle better now, thanks!

SD card partition

ok my turn to ask a question and get raped.
I am repartitioning my card for more ext3 space and I'm having trouble. I've never seen this before. My card shows 4100MB and here are the commands I'm using:
mkpartfs primary fat32 0 3504
mkpartfs primary ext2 3504 4004
mkpartfs primary linux-swap 4004 4100
now the results from a print command:
Number Start End Size
1 512B 3504MB 3504MB
2 3504MB 4004MB 500MB
3 4005MB 4100MB 95MB
WTF?
It skips 1MB between part 2 and 3
Try
Code:
print 2
then
Code:
print 3
and see what it says.
Edit: Sorry I don't think that'll help actually, was wanting it to give exact figures.
Just start typing random numbers and you will be perfect
What are you some kind of idiot. Don't ever ask a question again.
ok I removed all parts, booted phone, when I got the blank sdcard notification I allowed the phone to part and format.
went back to recovery and removed the new part
remade my parts
and now the linux-swap shows correct start and stop but size is 96.5
damn gremlins
Sorry brain overload
What's 2+2 again
im no mathmagician but i think its 22
HEY GRIDLOCK!!!!!!!!
/jedi mind trick
send me your userinit and comp files.
obviously I forgot to back them up, but my MP3 directory and nudies are safely on my desktop.
PRIORITIES MAN
Don't remind me, I lost all my nudies of me in a cape when my sd corrupted. I was gonna send them into playgirl and see if I could get a modeling career going

Compcache + Swap - Sorry guys....

Sorry for posting another question relating to this.. I'm having a heck of a time trying to wrap me head around...
ROM: Cyanogen 4.2.10.1
I have a 4GB class 6 SD card in my phone partitioned (rounded):
3300MB fat32
500MB ext3
200MB swap
I'm have the userinit.sh in /system/sd as
Code:
#!/system/bin/bash
#
partition=3 #partition number of swap partition. Change if swap is not partition 3.
mem_limit_kb=14688 #default 14688 (15%). Range 0 - [size of swap partition], larger number = less 'normal' RAM, more 'swap' RAM
swappy=30 #swappiness. larger number = more likely to swap, smaller number = less likely to swap
modprobe ramzswap;
rzscontrol /dev/block/ramzswap0 --backing_swap=/dev/block/mmcblk0p$partition --memlimit_kb=$mem_limit --init;
swapon /dev/block/ramzswap0;
sysctl -w vm.swappiness=$swappy;
exit 0;
as per the Cyanogen wiki...
If I run "free" from the terminal I get
Code:
free
total used free shared buffers
Mem: 97924 96448 1476 0 2940
Swap: 24472 12940 11532
Total: 122396 109388 13008
What I'm having trouble understanding is "mem_limit_kb=14688". What memory is it referring to? The built in RAM?
If so, does that mean to put active programs into the remaning 80MB of RAM and store the "images/pages" of inactive applications into the 14688KB of reserved RAM for Compcache? After the 14688KB of Compcache is filled, should it not then dump everything to the Swap?
The reason I'm confused is that I have 200MB of swap partition, and yet I still load up the browser from memory and it reloads pages... Or is it reloading the page, just this time from a local cache (which would be silly)?
Finally, what exactly does "swappiness. larger number = more likely to swap, smaller number = less likely to swap" actually mean? I don't really understand that at all...
Its not a good idea having both enabled in the user.conf..One will be set as back swap while the other is be set to 1.
To be honest I have no idea.. heh. I just copied it from the Wiki.. To me it made a bit of sense running both... Compache to be first since it should be a bit faster than swap... Atleast that's how I saw it...

stock sd card, hidden stuff?

i might be way off on this but im just being cautious. I decided i was gonna replace the 4gig class 2 sd that comes w/ the nexus with the 4gig class 6 i had in my g1. i decided to use my g1 to format the nexus sd card but noticed 1 thing i guess i just dont understand. When i dropped into parted with the nexus sd card i typed "print" just to see if it was only 1 partition but what i seen was this
Number___Start_______End_________Size______Type_____File System
___1____4194kB_____3965MB_____3961MB_____Primary______fat32
can someone explain to me what would be from 0-4194kB and also how the end size is bigger than the complete size. If that is how its supp to be and im just misunderstanding then please update me on how it actually works or if ive noticed something that needed to be pointed out.
Thanks, veritasaequita
3961MB + 4194kb = 3965MB, the "End" Size is just an Index. Partition starts at 4M, is 3961 MB in size, so it ends at 3965M
About the missing 4M at the start, I'll take a quick look at it.
EDIT:
Looks like all zero to me, if you substract the mbr from the first 4MB. Perhaps somebody at google did some clever aligning? but then 4mb would be huuuuuge
thats kinda what i was thinking, actually my first thought was if it was a 4mb sorta kinda "swap type partition" for performance....prolly not though. im a perfectionist so im not gonna swap cards until i can fig out what or where those 4mb are and have them on my new card....i dunno my ears are smoking now...lol
veritas
well you can always just dd the old card to the new one and then enlarge the fat partition (or in your case: just omit the last step )
but why make such a fuss about 4mb of zeros? i've seen lots of strangely partitioned usb-sticks/flash disks --and-- a lot of people use other cards in ther n1's (because of the crappy size the n1 ships with). if you must you can always make a dd to a new card or store the dump somewhere for restore later (or just put the old card somewhere safe?).
but still, that seems paranoid and not perfectionistic... don't worry so much
ps: yeah, swap with 4mb wouldn't help much and on the other hand they would just mark it as "swap" in the partition table if it were the case.
im following, thanks for the insight bro
veritas
Just a guess, but most modern hard drives have a hardware cache at the start of the disk. i.e 8MB, 16MB, 32MB etc.
Maybe your SD card uses 4MB.
Also, the manufacturers use the non-technical "Billion Bytes" instead of "Giga Bytes" in the fine print. 4000000000 B (Billion Bytes) = 3814 MB
nope, cache would be invisible by definition.
also the 4mb are there just not allocated to any partition. this has nothing to do with how you calculate the size of the disk.
Just out of curiosity could there ever be a possible way someone like perhaps google could store something hidden to everyone else in that 4mb for maybe like a factory backup of the file system or a backup bootloader? Just exercising my brain, thats all...lol
It's nothing basically, all the hard drives in your PC will have a few meg space you can't partition.
veritasaequita said:
Just out of curiosity could there ever be a possible way someone like perhaps google could store something hidden to everyone else in that 4mb for maybe like a factory backup of the file system or a backup bootloader? Just exercising my brain, thats all...lol
Click to expand...
Click to collapse
well of course you can store something there and if the IPL of the phone can access the sd card it certainly could execute that or flash something. there is a broad range of possibilities what you could and couldn't to with the 4 meg (a factory backup would be a little bigger ) and a backup bootloader wouldn't make sense, because you can feed something to the current loader directly. if you do anything worse to the phone like erasing the IPL, well thats what JTAG is for, just program the chips directly.
so of course this could be an evil tracking cookie and we all could get even more paranoid, but still its all zero's and not really "hidden" in any way, just not allocated and directly visible.
what i want to say: every facebook or other kind of web 2.0 shouldn't be worried about 4 unexplainable megs on some sd card

[Q] Virtual memory?

Sry if this has been asked before as I'm a newb but is there a way to use virtual memory or create a swap partition like in ubuntu to be used when memory runs low. My wife has this phone (htc hero-cdma) and is always complaining how it's so slow and how much she hates it. i believe it is due to ram running low as I have already overclocked to 768 mhz and running froyo which did make it faster but it still slows down. And untill I have the money to get her own htc evo I at least want to make it bareable. any help would be appreciated.
You have to be running a rom that supports it - read each ones details and it will tell you. I think most of the 2.1's do.
But to set it up - when you are in recovery partition your SDCard. It asks how much for Swap/Ext remainder is Fat.
Too much Swap tends to slow things down though.
Kcarpenter said:
You have to be running a rom that supports it - read each ones details and it will tell you. I think most of the 2.1's do.
But to set it up - when you are in recovery partition your SDCard. It asks how much for Swap/Ext remainder is Fat.
Too much Swap tends to slow things down though.
Click to expand...
Click to collapse
Thanks for the reply. She is running cyanogen 6.0.0 rc1. Ill look into the notes to see if there is anything about adding a swap file under cyanogen. Btw if I add a partition for swap what should it be? Ext2 or ext3, how much is recommended and once done will the phone reconize automaticly? Thanks for help.

Categories

Resources