[Q] Just an idea: repartitioning with some tools - Galaxy S I9000 Q&A, Help & Troubleshooting

I had an idea this minute
if we are using images with a size of 1,7GB or what else... why aren't we using some tools like resize_reiserfs and so on to repartition the Internal SD and creating a new partition with native yaffs2 or ext4 on it?
I dont't really know where our ext2 images are laying but if this could be possible it should be much faster right?

That's the thing - it won't be faster. The internal SD card is pretty slow. That's why the original lagfix used a repartitioned external SD card..

r3loaded2010 said:
That's the thing - it won't be faster. The internal SD card is pretty slow. That's why the original lagfix used a repartitioned external SD card..
Click to expand...
Click to collapse
Actually, it IS faster... That's why the newer lag fix uses an image on the internal SD card
I'm also wondering why nobody's trying to mount the internal SD with ext or yaffs2 instead of rfs...
EDIT : some answers : http://forum.xda-developers.com/showthread.php?t=750663

That's right !!!
We are using a mounted image with a filesystem laying on a native filesystem.
The reason why we aren't using the whole internal SD card with yaffs2 or ext4... is we cannot partition the whole internal SD card and copy our files afterwards.
BUT... we are able to compile some tools like "fdisk", "resize_[filesystem]" for ARM to use them direcly on the system for resizing (smaller) -> creating a new one -> and format it with yaffs2 for example.
After that we have the ability to use this partition like the ones in all other lagfixes mounting, symlinking...
That's the Idea

DasLeo said:
That's right !!!
We are using a mounted image with a filesystem laying on a native filesystem.
The reason why we aren't using the whole internal SD card with yaffs2 or ext4... is we cannot partition the whole internal SD card and copy our files afterwards.
BUT... we are able to compile some tools like "fdisk", "resize_[filesystem]" for ARM to use them direcly on the system for resizing (smaller) -> creating a new one -> and format it with yaffs2 for example.
After that we have the ability to use this partition like the ones in all other lagfixes mounting, symlinking...
That's the Idea
Click to expand...
Click to collapse
Did you read what's already been written in this thread: http://forum.xda-developers.com/showthread.php?p=7739573 ??
It's been tried by mimocan already, but didn't give a better result. Please do not start new threads on topics that's already been discussed elsewhere.

okay then close this

Related

Formatting SD card? Ext3

So I have had my memory card get corrupted twice here recently, probably within two weeks. It caused me to have to reformat my SD card entirely. I was wondering if I format the SD card to be Ext3 completely, would I still be able to save everything on it as usual? I know I won't be able to use it on a windows machine, but I don't really care about that. I am just wondering if the phone needs it to be formatted to Fat32. I don't use A2SD, compcache, swap, or anything else. Just storage.
It might work if u make changes in init.rc to specify the file system type when it mounts it on boot up...
craigacgomez said:
It might work if u make changes in init.rc to specify the file system type when it mounts it on boot up...
Click to expand...
Click to collapse
Hmm, well I may have to give that a try. Does the int.rc already specify the existing file system (just so I can find it easier, or will I have to create something new)?
I had a spare micro SD card laying around and formatted it to Ext3. None of the apps I had recognized it.

[Q] nookie froyo 0.6.8 custom dumb question

I am gonna state that obviously this is a dumb question. I have flashed the custom froyo but can't figure out how to access the 8gb of internal storage. Can anbody point me in the right direction?
sd card or emmc?
You'll have to resize a partition on the card. I don't know if the windows partitioning tool can handle this, but i would think it would. Gparted on linux is nice for this and comes with basically every linux ever, including the ones that boot off of a cd.
The partition you want to size is probably the last one, and it's probably fat32. It is on HC anyhow. Haven't messed with froyo though so ymmv.
by internal storage i think he meant emmc
it is mounted at /media and you can access it through Astro file manager
what's annoying is that the browser doesn't want to save any files onto it.
sorry guys, it is emmc, i have the sd card partition thing down. looking for info on getting the full 8gb of internal storage available on emmc
i just need to have it available, phone storage says 793 mb available. i just want the whole 8gb to put stuff on
I was looking into this myself awhile ago. Specifically I wanted to reformat the ~5GB /media partition from FAT32 -> ext3 and mount that on /data. Unfortunately I gave up because the mount points are defined in the ROM and they can't be changed without rebuilding the ROM.
But, its still there. Like aijaja said, its in /media. You can use the NookColorUMS utility to mount it to a LUN and access it via USB. Think of it as an "internal SD card" for the time being.

[Q] Swap Area / EXT2 partitions - Help needed.

Hello, I'm hoping someone can answer a few questions I have regarding the format of the SD Card for the Android system. - Apologies if this has already been explained on this forum, I did a search but didn't find anything too useful that answered my questions.
(I have knowledge of the linux file-system and swap drives, just unsure of the benifits of this for android).
Currently using a 16GB SanDisk Class4 SD Card.
I'm aware that you can format the SD Card to use as a swap-drive and for use of ext2 file-system.
While searching for info on this I found the following xda link which simply explains how to do this:
http://forum.xda-developers.com/wiki/SD_card_partitioning
My questions are:
1. What are the benifits of having the ext2 file-system? (Would apps stored on SD Card run faster etc?)
2. Do I need to keep a FAT32 partition (as opposed to just having a swap and ext2 partitions without any FAT partition).
3. Does the swap drive greatly improve performance. And is this worth doing on a Class4 SD Card?
Thanks in advance!
Hi.
at the first I must say swat will decrease SD card life.
i recommond you to create EXT3 or EXT4 partition.
1)one of the benefit of EXT partition is your phone storage will not full and its help your phone performance.
2)yes.of course you should have fat32 partition for eg:music-movies...and other files.
3)yes.swap is a very good.and it helps your phone ram.eg:when you play plants vs zombie at the first screen game will exit because of ram and swap will use like ram and its good for gaming.
Thanks for the reply, much apprecaited.
Are you sure I need a FAT32 partition though? Videos, music etc etc can all be saved to ext2/3/4 on a linux OS so I just assumed I could just do away with FAT32 all together?
Is the following just not the same as using an App2SD app?
"1)one of the benefit of EXT partition is your phone storage will not full and its help your phone performance."
Sorry for being a bit fussy but I'd like to fully understand what the Ext/2/3/4 partition is actually used for. Is it just used purely for storage?
Thanks again!
In a short summary (and assuming you are using a Kernel and ROM supporting the features) ...
- "Swap" on a swap partition has its own own "filesystem". The data structures are actually created by "mkswap" and the partition is not directly accessible by the user. If your phone runs low on physical memory unused parts of the memory will be swapped out into the virtual memory to make room for other apps.
Note that this is no "magically increase your RAM" solution. Once swapping occurs it actually slows down the system as the swapped out memory regions need to be copied back into physical memory, sooner or later. It may only help to run "RAM hungry" applications.
- "SD-Ext" is a, most likely, ext2 formatted partition to where Apps you move to the SD (either by Android or App2SD) will go. This increases the amount of apps you can possibly install, but doesn't resolve the problem that apps having widgets or apps that are started during Android boot-up need to reside in the internal phone memory.
- The /sdcard partition where all your user data is being stored should be kept FAT32 (for the simple reason of making a backup of your data by slapping the card into card reader easier - Windows can't read Linux filesystems by default). Some ROMs will allow you to format /sdcard ext3 or ext4 ... the advantage is that ext3/4 (if the mount options are correctly set) may perform a lot better than FAT32, though your mileage may vary.
Roger? ...or do is something still unclear?
Many thanks B.Jay - I'll hit the thanks button after I post this reply! You cleared up all my questions, but just going back to the FAT32 partition;
I use linux as my main OS, so accessing the EXT format partition wouldn't be a problem; Do you know if all ROMs would work without a FAT32 partition and replace it with EXT2/3/4 partition? If you're unsure I can always find out by formatting and loading a rom.
Thanks again, you've been most helpful!
Agenty1609 said:
going back to the FAT32 partition;
I use linux as my main OS, so accessing the EXT format partition wouldn't be a problem; Do you know if all ROMs would work without a FAT32 partition and replace it with EXT2/3/4 partition? If you're unsure I can always find out by formatting and loading a rom.
Thanks again, you've been most helpful!
Click to expand...
Click to collapse
Linux would, of course, be able to mount a ext partition (even on a SD card put into a card reader).
As for the ROM ... it depends.
The Stock Kernel Modules AddOn of GingerDX introduces ext3 and ext4 modules for the SEMC Stock Kernel, so in theory (I didn't test it!) you should be able to access /sdcard when being formatted ext3/4 - though it could be that you might need to adjust the vold script to properly mount the partition. The modules are mainly for supporting the sd-ext partition for "Apps-to-ext3/4-partition-on-mSD".
There's also alfsamsung's Alfs Kernel which is compatible with GingerDX and some other ROMs. That would be something you could try as well.
Simply look through the ROM threads ... I think MiniCM7 (+nAa's Kernel) should be able to support it, though this could involve some tinkering.
Personally speaking, I only have a ~2GB sd-ext on the SD in my X8 and the rest is a normal FAT32 partition (/sdcard).
yes you need a FAT32 partition.
when you partition your SD card you can move moveable app and games to ext partition.
please dont move app wich they cant move to ext partition.
cause after restart app that you moved to ext will corrupted.
good luck.
Thanks again! I think I'll follow your trend and try the 2GB SD-ext and the rest FAT32.
sd-ext missing!!
hey guys!! I've a small prob, would appreciate some tips. I normally move apps to sd card, if the app is movable by default. if the app is not movable by default, i use this app2sd by droidsail (available in the market) which force moves parts of the app 2 sd card. When I make back ups using xrecovery, i have no problem.
but when I use cwm for back ups, it gives an error saying sd-ext not found and it skips that part of the back up!! so any app I've moved by default or forced moved to sd card doesn't get backed up!! So I presume I have to create a sd-ext partition manually? How do I do it? I do have an sd-ext folder. but its not in sd card. it's in the root. (never had this prob with xrecovery though)
thanks in advance!!
neo_na said:
hey guys!! I've a small prob, would appreciate some tips. I normally move apps to sd card, if the app is movable by default. if the app is not movable by default, i use this app2sd by droidsail (available in the market) which force moves parts of the app 2 sd card. When I make back ups using xrecovery, i have no problem.
but when I use cwm for back ups, it gives an error saying sd-ext not found and it skips that part of the back up!! so any app I've moved by default or forced moved to sd card doesn't get backed up!! So I presume I have to create a sd-ext partition manually? How do I do it? I do have an sd-ext folder. but its not in sd card. it's in the root. (never had this prob with xrecovery though)
thanks in advance!!
Click to expand...
Click to collapse
Which version of CWM would that be?
Saipro said:
Which version of CWM would that be?
Click to expand...
Click to collapse
It's cwm 4.0.1.5

[Q] Sd partion??

Hey guys ... I am noob at android so please! !!!bear with it..
just wanted to know...
what is SD partion???
how to go about it??
hoe to check it's working??
what are the benefits? ??
is it ok to do it with 4gb class 4 card???
Thanks for reading ..
noobismyname said:
Hey guys ... I am noob at android so please! !!!bear with it..
just wanted to know...
what is SD partion???
Click to expand...
Click to collapse
As with every storage media you can actually partition the mSD. By default it ships as a single partition that is FAT32 formatted (otherwise Microsoft couldn't play Mafia and press license fees out of Android phone manufacturers as the FAT file format is copyrighted by Microsoft).
noobismyname said:
how to go about it??
Click to expand...
Click to collapse
You can partition the mSD in either ClockworkMod recovery or you can turn off your phone, take the mSD out of the phone and put it into a card reader and then partition the card on your computer by i.e. EASEUS Partition Manager (Windows) or gparted (Linux).
noobismyname said:
hoe to check it's working??
Click to expand...
Click to collapse
I don't know how you usually check if your hoe is working (oh how I love typos), but you can check if the SD card partitions are working this way:
- Boot the phone
- Once it's booted up and you have no warning about the SD card then the partition mounted at /mnt/sdcard works. To check if /mnt/sd-ext is also working either open the "Terminal", type "su" (without the quotes) followed by "mount" which will return all currently mounted devices.
noobismyname said:
what are the benefits? ??
Click to expand...
Click to collapse
If you create a sd-ext partition (USE SEARCH to know what this means!) you can move your apps out of the internal phone memory onto the sdcard (this actually even works without a designated sd-ext partition). However, you can't move each and every app to the SD ... apps coming with widgets, apps that start automatically upon boot, a widget or a live wallpaper can't be moved to the SD as it will stop working.
Swap on the SD (to have virtual memory - much like the "pagefile.sys" of Windows or the swap partition of Linux) only decreases the lifespan of your SD most likely considerably when there's a whole lotta swapping going on - apart from needing a custom kernel as the Stock doesn't support swap.
noobismyname said:
is it ok to do it with 4gb class 4 card???
Click to expand...
Click to collapse
A Class 4 mSD isn't blazing fast, but it should be about sufficient. In general, the higher the number of the Class, the faster the card, the more fluid the I/O transfers.
B.Jay said:
As with every storage media you can actually partition the mSD. By default it ships as a single partition that is FAT32 formatted (otherwise Microsoft couldn't play Mafia and press license fees out of Android phone manufacturers as the FAT file format is copyrighted by Microsoft).
You can partition the mSD in either ClockworkMod recovery or you can turn off your phone, take the mSD out of the phone and put it into a card reader and then partition the card on your computer by i.e. EASEUS Partition Manager (Windows) or gparted (Linux).
I don't know how you usually check if your hoe is working (oh how I love typos), but you can check if the SD card partitions are working this way:
- Boot the phone
- Once it's booted up and you have no warning about the SD card then the partition mounted at /mnt/sdcard works. To check if /mnt/sd-ext is also working either open the "Terminal", type "su" (without the quotes) followed by "mount" which will return all currently mounted devices.
If you create a sd-ext partition (USE SEARCH to know what this means!) you can move your apps out of the internal phone memory onto the sdcard (this actually even works without a designated sd-ext partition). However, you can't move each and every app to the SD ... apps coming with widgets, apps that start automatically upon boot, a widget or a live wallpaper can't be moved to the SD as it will stop working.
Swap on the SD (to have virtual memory - much like the "pagefile.sys" of Windows or the swap partition of Linux) only decreases the lifespan of your SD most likely considerably when there's a whole lotta swapping going on - apart from needing a custom kernel as the Stock doesn't support swap.
A Class 4 mSD isn't blazing fast, but it should be about sufficient. In general, the higher the number of the Class, the faster the card, the more fluid the I/O transfers.
Click to expand...
Click to collapse
eh!! thanks a ton ..
How to partion using Cwm???
noobismyname said:
How to partion using Cwm???
Click to expand...
Click to collapse
Look into the "Advanced settings" menu - and note that not each version of CWM contains that functionality. CWM 4.0.1.5 that is in some thread around here does not have the partitioning capabilities, CWM 3.2.0.0 (as shipped with GingerDX) is able to perform it, CWM 5.x.x.x as in nAa's or Alfs' custom kernel is up to your for checking out.
???Dude???
How to partition??
you rather answered some different question.. well I am on stock kernel and my recovery has the advanced option derived is partition option also is it safe? ??? and it asks for swap which 1 to select????
noobismyname said:
???Dude???
How to partition??
Click to expand...
Click to collapse
Depends on what you want to do ...
- swap and a normal data partition
Create a ~256-512MB swap partition
Partition the rest as a FAT32 partition
- sd-ext and a normal data partition
Create a ~1GB ext3 or ext4 PRIMARY partition and name it "sd-ext" (w/o quotes)
Partition the rest as a FAT32 partition
- swap and sd-ext and normal data partition
Create a ~256-512MB swap partition
Create a ~1GB ext3 or ext4 PRIMARY partition and name it "sd-ext" (w/o quotes)
Partition the rest as a FAT32 partition
And ... this information could also be found by using the Forum search!
AM WELL AWARE ABOUT THE SEARCH.BUTTON! !!!
well if you read the 1st post .. I have mentioned clearly that I am noob at android.
All I want is a brief explanation on partition ..
I read some were swap ain't supported on stock kernel and I an on stock kernel ....
Do I need a computer to partition? ??? please explain the process briefly......
Follow the SD card partitioning article in the XDA Wiki
B.Jay said:
Follow the SD card partitioning article in the XDA Wiki
Click to expand...
Click to collapse
h'm.. Thankyou
is there any way to do this without using a computer????

[Q] How i can improve the internal memory of my ace?

Hi, yesterday i installed the razodroid 2.5 rom , i need improve the internal memory of my device, can you help me , i had a 16GB sd card , i had particioned with minitool particion wizard but my phone app link2sd recognize the particion but show me the netx text: Mount script cannot be created mount: Invalid argument . Can you help me? plz
dianhuro said:
Hi, yesterday i installed the razodroid 2.5 rom , i need improve the internal memory of my device, can you help me , i had a 16GB sd card , i had particioned with minitool particion wizard but my phone app link2sd recognize the particion but show me the netx text: Mount script cannot be created mount: Invalid argument . Can you help me? plz
Click to expand...
Click to collapse
What filesystem is on your 2nd partition of the SD card? Make sure you select the correct filesystem in Link2SD when you create the mount script.
Mount the 2nd partition of your SD Card and transfer a file to it to make sure its been set up properly then delete the file.
Try repartitioning the SD card with ClockWorkMod Recovery, it does a better job of partitioning and creating filesystems on flash memory than partitioning tools meant for rotating storage.
Repartition using a different filesystem, when I setup Link2SD the only one that I could get to work was FAT32 but since you have the Razodroid ROM which includes Rafael's kernel I would have thought any FAT or ext filesystem would have worked. Incidentally before I got it working I was getting a similar error regarding "Mount script cannot be created" IIRC.
Hi i used ext4, but i just can make a link , when i check the capacity show me 200Mb total memory
makeyourself said:
What filesystem is on your 2nd partition of the SD card? Make sure you select the correct filesystem in Link2SD when you create the mount script.
Mount the 2nd partition of your SD Card and transfer a file to it to make sure its been set up properly then delete the file.
Try repartitioning the SD card with ClockWorkMod Recovery, it does a better job of partitioning and creating filesystems on flash memory than partitioning tools meant for rotating storage.
Repartition using a different filesystem, when I setup Link2SD the only one that I could get to work was FAT32 but since you have the Razodroid ROM which includes Rafael's kernel I would have thought any FAT or ext filesystem would have worked. Incidentally before I got it working I was getting a similar error regarding "Mount script cannot be created" IIRC.
Click to expand...
Click to collapse
dianhuro said:
Hi i used ext4, but i just can make a link , when i check the capacity show me 200Mb total memory
Click to expand...
Click to collapse
So it's working then or not?
Link2SD works by basically fooling Android into believing an app is on internal memory when its on the SD card. It does this by moving files to the SD card and then creating a link to them in internal memory. So you won't see an increase in internal memory capacity by using Link2SD. However when you link an app with Link2SD you will free up space in the internal memory which allows you to install far more apps.
Try this http://forum.xda-developers.com/showthread.php?t=1955422
, but read carefuly the instructions !!!
dianhuro said:
Hi i used ext4, but i just can make a link , when i check the capacity show me 200Mb total memory
Click to expand...
Click to collapse
RazoDroid v2.5 build version has had Link2SD removed i assume this was done for a reason as its a popular app, it might be worth checking out the thread to see if they mention why. Just a thought have you checked to make sure that both Partitions are primary?
1 word link2sd

Categories

Resources