[Q] SYSTEM and DATA partition resizing? - Samsung Galaxy S (4G Model)

Hi, I'm writing because nor the xda search nor google could pinpoint if a thread for this on our sgs4g existed.
I want to know if anyone has tried resizing the default partition sizes, or if it is even possible. I remember on my memory-starved HTC Hero this would be the only way to install apps comfortably without a2sd.
Maybe putting the /system partition on a diet and getting of nonessential apps would give us a few megabytes on the /data partition.
I'm a little oblivious to the situation, not being a dev, but just a curiosity.
Thanks in advance.

overthinkingme said:
Hi, I'm writing because nor the xda search nor google could pinpoint if a thread for this on our sgs4g existed.
I want to know if anyone has tried resizing the default partition sizes, or if it is even possible. I remember on my memory-starved HTC Hero this would be the only way to install apps comfortably without a2sd.
Maybe putting the /system partition on a diet and getting of nonessential apps would give us a few megabytes on the /data partition.
I'm a little oblivious to the situation, not being a dev, but just a curiosity.
Thanks in advance.
Click to expand...
Click to collapse
me and krylon already researched this actually by lowering the cache size and extending it to the data parttion we had the phone up to 1.3 gb of storage the issue lies in resizing the parttion requires you to modifiy it and flash customized bootloaders as the parttion info is stored in the sbl and boot files. It can be done however if you need to odin back without a changed pitt file you run into a host of issues

Ah, this would get a lot of people bricked if ever they would try to odin back to stock..
Might cause more problems than solve right now..
Good to know it isn't impossible, thanks
Sent from my SGH-T959V using XDA App

overthinkingme said:
Ah, this would get a lot of people bricked if ever they would try to odin back to stock..
Might cause more problems than solve right now..
Good to know it isn't impossible, thanks
Sent from my SGH-T959V using XDA App
Click to expand...
Click to collapse
Its not impossable just not pratical
Sent from my GT-9101 using XDA Premium App

Related

[MOD]Creating EXT4 Partition for sgs4g

Hello wonderful sgs4g community, i hope you are all excited about all our new stuff as i am. Anyways now that drhonk has built ext4 into our kernel we can now go ahead and do SOME ext4 mods. here is the guide on how to create an ext4 partition so that you can use the link2sd app so:
A:you can have an ext4 sdcard filesystem
B: create more internal space for your apps(takes away even more bloat)
Here is what you will need:
A computer
MICRO ADAPTER or USB CABLE to plug into the computer
drhonks new 2.1 bali kernel
mini tool partition wizard(or any other program that does this) you can find it here: http://download.cnet.com/Partition-...62200.html?part=dl-6285158&subj=dl&tag=button
link2sd apk you can find that here: http://forum.xda-developers.com/showthread.php?t=919326
Now go ahead and mount your sdcard to computer with the micro adapter
go into mini tool and click on your sdcard
press move/resize
go ahead and resize from 256mb 512mb or 1g off from your original size
THE UNALLOCATED WILL BE THE SIZE OF YOUR NEW PARTITION
now go to the unallocated amount and press create partition
make sure that you do ext4 and make sure it is PRIMARY not logical!!!
press apply!
bam you go ext4
now put your sdcard back in and go to link2sd
it will tell you to go into recovery and mount your sdcard
sooooo
go into cwm and go to mounts and storage then make sure you have your sdcard say UNMOUNT
reboot
go back into link2sd and click ext4 when it pops up,
NOW move all the files THAT ARE NOT SYSTEM FILES(which it wont let you do anyways) and your all done
afterwards you should have from 375mb to 440mb of free internal space
have fun
Thanks to:
Fknfocused for pushing me to do this
drhonk for the kernel ext4 patch
wizard(i saw he did the link2sd first so i decided to do it)
and the rest of the community for being awesome
Thanks brotha! im doing this right now.
fknfocused said:
Thanks brotha! im doing this right now.
Click to expand...
Click to collapse
lemme know if i missed something or, something went wrong
dsexton702 said:
lemme know if i missed something or, something went wrong
Click to expand...
Click to collapse
ok will do, did I need to assign a drive letter for this partition? it just defaulted to *
fknfocused said:
ok will do, did I need to assign a drive letter for this partition? it just defaulted to *
Click to expand...
Click to collapse
i just named my ext4 im not sure if it matters
dsexton702 said:
i just named my ext4 im not sure if it matters
Click to expand...
Click to collapse
got it, thanks again. should i stay away from linking widgets? does it break like moving the app to SD?
fknfocused said:
got it, thanks again. should i stay away from linking widgets? does it break like moving the app to SD?
Click to expand...
Click to collapse
it doesnt effect app2sd and to be honest you dont need app2sd after you do this trick, and im not positive about widgets i think they might be safe though
Uhh thank you for posting my name there )) well it works ... if you guys want and know how to use linux u can do it from there too ... if anyone needs help ley me know ...
Link2sd is only way I thought off to check if kernel mounts ext4 ...damn glad about that faulks
Sent from my SGH-T959V using XDA App
EXT4
I used ubuntu and gparted inserted the mini sd into the adaptor created the partitions then placed it back into the phone and ran links2sd worked like a champ did that this am your way seems easier good write up
mopar2ltr said:
I used ubuntu and gparted inserted the mini sd into the adaptor created the partitions then placed it back into the phone and ran links2sd worked like a champ did that this am your way seems easier good write up
Click to expand...
Click to collapse
thanks brotha i appreciate it!
and thanks for briefly explaining the ubuntu way of doing it
Its easier with linux as windows doednt have support for ext
Sent from my SGH-T959V using XDA App
wizardslovak said:
Its easier with linux as windows doednt have support for ext
Sent from my SGH-T959V using XDA App
Click to expand...
Click to collapse
im sure, windows can be a pain! but thats why minitool is needed
Dunno man I ditched windows few years back and ain't regretting it ....using xubuntu as desktop and ubuntu.srv ,debian and centos as servers
Sent from my SGH-T959V using XDA App
ok i did something all wackey... lol for some reason i can only see 1.89 gb of my sd card on my phone and on mini tool partition it shows that i have 12 gb in fat32 and 1.89 gb unallocated. there is nothing i can figure out on how to get the two partitions of the sd card to join back together. even the minitool thinks they are two seperate devices. does anyone know what i can do to fix this and start over from the beginning? sorry guys im a linux newbie but i am having fun while learning.
So will this work also on drhonks uv version too?
Sent from my SGH-T959V using XDA Premium App
Looks like your 12 gb is not mounted ...
Sent from my SGH-T959V using XDA App
Nice tutorial. @makavelicruz. ...of course. Why wouldn't it?
Sent from my SGH-T959V using XDA Premium App
wizardslovak said:
Looks like your 12 gb is not mounted ...
Sent from my SGH-T959V using XDA App
Click to expand...
Click to collapse
Ive tried mounting the sdcard from recovery and only one partition ever shows up.
Sent from my SGH-T959V using XDA App
farwek said:
Ive tried mounting the sdcard from recovery and only one partition ever shows up.
Sent from my SGH-T959V using XDA App
Click to expand...
Click to collapse
mind giving us a screenshot?
Sent from my SGH-T959V using XDA Premium App
I get an error each time i make an unallocated partition and click 'create'.. anyone else run into this?

[Utility] Format back to ext3....

Just flash in clockwork and it will format your system and data partitions back to ext3. Faster than dealing with nandroid restores.
Useful for reverting from installs using Dragon or Trinity kernels that convert you to ext4.
NOTE: This FORMATS your partitions, you WILL lose all data held on them. Your phone will NOT boot until you install a ROM ZIP file or restore a nandroid backup. YOU HAVE BEEN WARNED.
CREDIT: @paulobrien from Modaco wrote this for the O2x. I just changed the partition names to match our setup. I left his original banner in there as a result. My change amounts to about 4 bytes. If you have issues, please don't bother him, post here.
This is great...I always hesitate trying out updated or experimental kernels because of the amount of time it takes to nandroid....the cm7 kernel has been really good as of late so I've been sticking with that
Sent from my LG-P999 using XDA App
Hmmm Let the confusing questions begin in 5,4,3,2....
Thanks man!
Sent From My Stock G2x
Reminder: NONE of my kernels and ROMs require the use of this utility. All of my kernels and ROMs are ALL NATIVE EXT3 only mounted as ext4.
faux123 said:
Reminder: NONE of my kernels and ROMs require the use of this utility. All of my kernels and ROMs are ALL NATIVE EXT3 only mounted as ext4.
Click to expand...
Click to collapse
wow, i never knew that. so if we are using one of your cm7 ext4 kernels and then flash a new nightly/kang we could go back to using the stock cm kernel and wouldn't have to necessarily flash your kernel again?
mattyg151 said:
wow, i never knew that. so if we are using one of your cm7 ext4 kernels and then flash a new nightly/kang we could go back to using the stock cm kernel and wouldn't have to necessarily flash your kernel again?
Click to expand...
Click to collapse
Yeap... should be no issues.
Is there a difference between this and just wiping, formating system and data, in cwm?
Sent from my LG-P999 using Tapatalk
billydroid said:
Is there a difference between this and just wiping, formating system and data, in cwm?
Sent from my LG-P999 using Tapatalk
Click to expand...
Click to collapse
cwm is set up to keep whatever format you have at the time you run it, so if you are on ext4, the format command will format to ext4. It makes sense, you wouldn't want to write an ext4 fs onto a partition with vfat on it, for example. Not automatically anyway. And most users wouldn't know what to tell it to use if it were to give you the option. The forum would be full of "What file system do I use?!?!?"... The usual method is to restore a nandroid backup from stock or a stock file system. This is significantly faster.
It is of somewhat limited usefulness as many kernels/roms don't change the filesystem. However, as I switch around a lot with running tests for the cm guys, my own stuff, etc., it's nice to have a fast way to deal with it.
ttabbal said:
cwm is set up to keep whatever format you have at the time you run it, so if you are on ext4, the format command will format to ext4. It makes sense, you wouldn't want to write an ext4 fs onto a partition with vfat on it, for example. Not automatically anyway. And most users wouldn't know what to tell it to use if it were to give you the option. The forum would be full of "What file system do I use?!?!?"... The usual method is to restore a nandroid backup from stock or a stock file system. This is significantly faster.
It is of somewhat limited usefulness as many kernels/roms don't change the filesystem. However, as I switch around a lot with running tests for the cm guys, my own stuff, etc., it's nice to have a fast way to deal with it.
Click to expand...
Click to collapse
Thanks
Sent from my LG-P999 using Tapatalk
EDIT: nvm. looked over the files and got my answer.
Works great thanks for putting this together. Will come in handy.
Sent from my LG-P999 using XDA App
is this utility gonna wipe out all my data (meaning I will have to install all the apps again, setting up my phone again, signing in to google again and stuff) ?
te_quiero_forever_girl said:
is this utility gonna wipe out all my data (meaning I will have to install all the apps again, setting up my phone again, signing in to google again and stuff) ?
Click to expand...
Click to collapse
Yes it will wipe.
Upgrading EXT3 to EXT4 will preserve data but downgrading from EXT4 to EXT3 won't.
With cm going ext4 this is priceless.
Sent from my LG-P999 using xda premium
xsteven77x said:
With cm going ext4 this is priceless.
Sent from my LG-P999 using xda premium
Click to expand...
Click to collapse
A nandroid of ext3 is the same thing also I have installed an ext3 rom over ext4 works great
Sent from my LG-P999 using XDA App
Why do we people want to go back to ext3 when ext4 is much faster and stable than all the other filesystems.
Sent from my LG-P999 using xda premium

[Q] - Move to SD enabled for (almost) all apps by?

Noticed today I'm able to move almost all of my apps to SD and not just the supported ones without having done anything but installing a rooted stock ROM and some standard goodies (SU, BusyBox, ROM Manager and Titanium Backup). Wondering if it was enabled by any of the above? the rooted ROM? or the stock ROM?
any takers?
Titanium backup, in "batch", has option to move all apps to either sd or internal memory.
Sent from my myTouch_4G_Slide using xda premium
It's not true A2SD. Just a bunch of buggy symlinks in /data and incomprehensible files in /sdcard/.android-secure that Google is trying to pass off as A2SD.
Sent from a message in a bottle.
blackknightavalon said:
It's not true A2SD. Just a bunch of buggy symlinks in /data and incomprehensible files in /sdcard/.android-secure that Google is trying to pass off as A2SD.
Sent from a message in a bottle.
Click to expand...
Click to collapse
thanks. i rooted my phone right after the first stock boot so i couldn't tell if it came that way. It's just odd coming from 2.2 that everything all of a sudden is now movable, despite being not true a2sd.
psychedel!k said:
thanks. i rooted my phone right after the first stock boot so i couldn't tell if it came that way. It's just odd coming from 2.2 that everything all of a sudden is now movable, despite being not true a2sd.
Click to expand...
Click to collapse
I know. Just because a bunch of people find hitting "partition SD card" in ClockworkMod Recovery too difficult doesn't mean those of us who want the full potential of our phones unlocked should suffer, but we're stuck until someone finds us the mountpoint for sd-ext.
blackknightavalon said:
I know. Just because a bunch of people find hitting "partition SD card" in ClockworkMod Recovery too difficult doesn't mean those of us who want the full potential of our phones unlocked should suffer, but we're stuck until someone finds us the mountpoint for sd-ext.
Click to expand...
Click to collapse
you all need to check out link2sd (free app) it will let you install apps to ext partition. I myself use it and have a 8gb ext3 partition with over 550+ apps/games installed. It also lets you decide if you want to move dalvikcache and library files to ext to save more internal space. I used mini tool partition app on my pc to create a larger ext partition then cwm would allow.
Sent from my LG-P999 using xda premium
d12unk13astard said:
you all need to check out link2sd (free app) it will let you install apps to ext partition. I myself use it and have a 8gb ext3 partition with over 550+ apps/games installed. It also lets you decide if you want to move dalvikcache and library files to ext to save more internal space. I used mini tool partition app on my pc to create a larger ext partition then cwm would allow.
Sent from my LG-P999 using xda premium
Click to expand...
Click to collapse
I'll try it on my days off. Thanks for the tip!
Sent from a message in a bottle.
blackknightavalon said:
..we're stuck until someone finds us the mountpoint for sd-ext.
Click to expand...
Click to collapse
sorry can you explain how and where we're stuck on and is that specific to our device?
blackknightavalon said:
I know. Just because a bunch of people find hitting "partition SD card" in ClockworkMod Recovery too difficult doesn't mean those of us who want the full potential of our phones unlocked should suffer, but we're stuck until someone finds us the mountpoint for sd-ext.
Click to expand...
Click to collapse
psychedel!k said:
sorry can you explain how and where we're stuck on and is that specific to our device?
Click to expand...
Click to collapse
WIP Memory Address Listing
You need to know where to put and access the data, explicitly, in order to be able to use that location.
Android does this by using mount-points, which translates to the memory address where it should be looking for the information.
The thread I linked to is one I started so that we can discover them all, and what mount points correspond to what memory address.
Please make sure to read post number 8 in the thread by dhkr234 which spells out a good caution about using memory addresses directly and why you should be using mount points instead.
If anyone makes any headway in learning anything we don't know so far, please post it in that thread so we can get a comprehensive listing of mount points and what memory addresses they correspond to.
I've been extremely busy on other projects, but if someone is going to come by and make A2SD available for us, having a road-map for them to follow already sitting here will make their life a lot easier. ( ...and maybe encourage someone to do it because the info is sitting there. )
...and yes, it is specific to our device. Every device addresses the internal memory differently and that makes the mount-points unique to each and every device.
gotcha, so...piecing this all together, does that mean that a true A2SD shouldn't rely on symlink at all and Link2SD (what d12unk13astard recommended) is essentially just another hack?
psychedel!k said:
gotcha, so...piecing this all together, does that mean that a true A2SD shouldn't rely on symlink at all and Link2SD (what d12unk13astard recommended) is essentially just another hack?
Click to expand...
Click to collapse
The real A2SD is not "just another hack," it's one of the ORIGINAL post-root hacks pioneers like JesusFreke came up with. It allows you to put your apps on an EXT partition of your SD card, and you can resize that partition if your computer runs a Linux distribution.
blackknightavalon said:
The real A2SD is not "just another hack," it's one of the ORIGINAL post-root hacks pioneers like JesusFreke came up with. It allows you to put your apps on an EXT partition of your SD card, and you can resize that partition if your computer runs a Linux distribution.
Click to expand...
Click to collapse
that i got, and sorry for being a pain..so then what difference does having a mountpoint or not make?
psychedel!k said:
that i got, and sorry for being a pain..so then what difference does having a mountpoint or not make?
Click to expand...
Click to collapse
Read the previous posts.
psychedel!k said:
that i got, and sorry for being a pain..so then what difference does having a mountpoint or not make?
Click to expand...
Click to collapse
Either:
blackknightavalon said:
Read the previous posts.
Click to expand...
Click to collapse
Or read this one again:
http://forum.xda-developers.com/showpost.php?p=19163237&postcount=8
dhkr234 said it good there.
I linked so someone who wants more of an explanation can follow and read up.
In short, you can very easily write to the wrong memory address.
This means:
Installing some silly game over parts of both your boot partition and recovery partition would give you a cool slide-paperweight.
Mount points prevent this from happening by ensuring the data is written to the proper memory addresses.

[Q] partition sd card

sorry for noob post but i havnt been able to understand all this with all the posts iv read
Iv been looking into installing apps on the external sd card and i came across "partitioning sd card" and a whole bunch of other vocabulary, so iv got a couple of questions.
1. can someone explain to me the basics of this?
2. define ext2, ext3, ext4, fat32, swap size, (there might be a bit more i jsut cant think of any right now)
3. do u reccomend doing this with cwm? iv come across a few posts where people have been saying thing could brick your phone
4. apperntly cwm has some built in partition? i dont really know..
5. how would I do this this with cwm?
Boot into recovery and look for partition sd option, follow instructions.
NVIDIA NEVER AGAIN!
fcisco13 said:
Boot into recovery and look for partition sd option, follow instructions.
NVIDIA NEVER AGAIN!
Click to expand...
Click to collapse
thanks but is it safe? and what do i put for each option?
Make sure you backup your sdcard before you partition or you'll lose your important files.
Sent from my LG-P999 using xda premium
maxesxp said:
thanks but is it safe? and what do i put for each option?
Click to expand...
Click to collapse
Is it safe?
Don't know i have 20 apps installed so dont need more space, it was safe on n1.
NVIDIA NEVER AGAIN!
d12unk13astard said:
Make sure you backup your sdcard before you partition or you'll lose your important files.
Sent from my LG-P999 using xda premium
Click to expand...
Click to collapse
yes iv already done that I just wanna know what the procedure is
Sent from my LG-P999 using Tapatalk
maxesxp said:
sorry for noob post but i havnt been able to understand all this with all the posts iv read
Iv been looking into installing apps on the external sd card and i came across "partitioning sd card" and a whole bunch of other vocabulary, so iv got a couple of questions.
1. can someone explain to me the basics of this?
Click to expand...
Click to collapse
Try this link. Very simple.
http://forum.xda-developers.com/wiki/index.php?title=SD_card_partitioning
jcbofkc said:
Try this link. Very simple.
http://forum.xda-developers.com/wiki/index.php?title=SD_card_partitioning
Click to expand...
Click to collapse
thank you but iv come across ext4? whats that? and what is swap? theres some vocabulary words in there i dont sorry for all the questions lol
maxesxp said:
thank you but iv come across ext4? whats that? and what is swap? theres some vocabulary words in there i dont sorry for all the questions lol
Click to expand...
Click to collapse
EXT4 is the file system (like FAT or NTFS but for Linux based). Swap is the partition used sort of like ram (just slower) in the way that temporary files are stored there for quick access.
Sent from my LG-P999 using XDA App
redmonke255 said:
EXT4 is the file system (like FAT or NTFS but for Linux based). Swap is the partition used sort of like ram (just slower) in the way that temporary files are stored there for quick access.
Sent from my LG-P999 using XDA App
Click to expand...
Click to collapse
Okay thanks can you give me a procedure to how to partition you sd card? Thanks in advance
Sent from my LG-P999 using Tapatalk
I think people mentioned to do it through clockword mod? I think I've seen an option down there.
I have no idea why you'd want to, though. I can't really see any benefit and it would only complicate things.
Only reason to partition sdcard to have an ext partition is for people like me that have way too many apps to install that normally wouldn't fit on the g2x's internal storage. Even putting apps to SD wouldn't allow my setup of over 600 apps to my phone without an app called link2sd, currently rocking a 12gb ext3 partition on my 32gb class 10 Lexar sdcard. Call me crazy but I love having all my apps available any time I need, my phone is a beast I tell ya, with all the stress I put in it its still blazingly quick!
Sent from my LG-P999 using xda premium
redmonke255 said:
I think people mentioned to do it through clockword mod? I think I've seen an option down there.
I have no idea why you'd want to, though. I can't really see any benefit and it would only complicate things.
Click to expand...
Click to collapse
yupp thats what i wanted to do lol but it says swag size and stuff and i got confused... and ppl hav said clockworkmod is ddangourous when it comes to partitioning soo im a bit scared
d12unk13astard said:
Only reason to partition sdcard to have an ext partition is for people like me that have way too many apps to install that normally wouldn't fit on the g2x's internal storage. Even putting apps to SD wouldn't allow my setup of over 600 apps to my phone without an app called link2sd, currently rocking a 12gb ext3 partition on my 32gb class 10 Lexar sdcard. Call me crazy but I love having all my apps available any time I need, my phone is a beast I tell ya, with all the stress I put in it its still blazingly quick!
Sent from my LG-P999 using xda premium
Click to expand...
Click to collapse
yupp lol iv filled my sd card up so thats how i stumbles across this

Partition resize help request.

Anybody wanna help me resize my data and system partitions? I can't figure out how to do it myself, the closest thing I found was for evo 4G, but I'd rather not take the risk of blocking my phone using that method. http://forum.xda-developers.com/showthread.php?t=1077426
Question I have to ask is why ?
Garridon said:
Anybody wanna help me resize my data and system partitions? I can't figure out how to do it myself, the closest thing I found was for evo 4G, but I'd rather not take the risk of blocking my phone using that method. http://forum.xda-developers.com/showthread.php?t=1077426
Click to expand...
Click to collapse
It can't be done with this method, it looks like that's firerats custom MTD partitions and the Shift is EMMC partitioned which means no one has even thought about that.
prboy1969 said:
Question I have to ask is why ?
Click to expand...
Click to collapse
The reason this mod came about was because the older phones like the hero and whatnot had very little system memory, but after running firerats script it would give the hero like 300mb of system memory on Sense, so its a major memory increase and it would most likely eliminate the need for a2sd
Sent from my myTouch_4G_Slide using Tapatalk 2
Might be a better idea to do use a sd-ext rom with a partition on your sdcard. The shift has so little internal space in general, it might be a better idea to do that if your looking to get space.
Also, the OG Evo has a MTD memory, and the Shift has EMMc, which I believe is a lot less flexable to being changed than MTD is. Tell me if I'm wrong though.
Thanks for the quick response guys, I was really hoping to increase my data partition. There's so much room left untouched in the system folder. So no hope in doing this I assume your saying?
Sd_ext or move trusted apps from /data to /system
Garridon said:
Thanks for the quick response guys, I was really hoping to increase my data partition. There's so much room left untouched in the system folder. So no hope in doing this I assume your saying?
Click to expand...
Click to collapse
You really wouldn't get much more outta system for data as you would a ext partition. Sd-ext is virtually unlimited depending on the size of your sdcard.
Not to mention you would have to revert back to the stock settings in order to install a sense rom for updating prl and such things. This could be very tedious.
Firerat's initial custom mtd was for the G1, which is a aosp phone stock and does not need tons of system/rom space.
Sent from my PG06100 using xda premium

Categories

Resources