Partitioning and mounting /sd-ext for swap purpose - LG Optimus 3D

I know that this problem has been discussed before but I want to know the following.
I partitioned my phone using CWM and set a swap file (partition 512Mb, Swap 256Mb) using CWM, But when I browse through root/ I'm unable to find /sd-ext folder.
My problem is that I need to make a swap file (using RAM Extender) But if I make the swap file as such in the SD Card I will be needing to disable every time I connect to USB Mass storage, so I would like to do a partition in my card and Mount it in /sd-ext folder a create a swap file there.
I found that the folder /asec and /extasec exist in /mnt folder with 220 mb space each, can I use it for swap?
Can Anyone Please Help Me?

This phone has swap partition by default.
Sent from my LG-P920 using xda app-developers app

Related

Repartitoning sdcard for CM6

I've deleted my ext partition of 500MB so that i could use the new froyo apps2sd which is in the CM6 and now i want to add to the remaining fat32 partition without losing any data on sdcard...
but i don't knw how to rejoin the unallocated 500MB and the fat32 space together using gparted can someone tell me how can i do that?
Copy everything off yout fat32 partition to your computer, then go to the Control Panel > Administrative Tools > Computer Management > Disk Manager
There you'll see a list of the partitions of your SD card.
Remove all partitions.
Create new partition that uses all the space.
Format partition with Fat32.
Copy data back from the computer to SD card.
Done.
You can also resize partitions in the console of your g1 using the sdparted script manually. Don't have a link but the commands are there. I have a mytouch now and don't remember them off the top of my head. Its great for removing swap partitions!
Sent from my HTC Magic using XDA App

[Q] memory hack

can anyone tell me how to use memory hack?? m currently using cyanogenmod 7.2 so can anyone give me link ?? also m using 8 gb sd card without any partitioms.
partition sdcard using cwm recovery into a 1024MB ext4 partition.
Download and run Link2SD and set the ext4 partition as internal memory.
how to set the ext4 partition as internal memory??when i open link2sd i get message to set 2nd partition....i set first partition to 1024mb..
Go to recovery/advance and partion your sd card (1024 mb is recommended), now set swap value as 128mb.... when all done go to mount section and mount data, sd card, sd-ext and system.... now mount usb stortage and connect your phone to computer and copy Ungaze Script file.
:: Reboot ::
Thats it ...
isnt swap walue 0 better
Sent from my GT-S5670 using Tapatalk
Hey i can understand your exitement. But memory hack has a drawback. Once you install memory hack on any rom,all your apps data(only data not apps)gets erased,and you cant restote that data even by titanium backup.
i hve partitioned my sd card bt nt installed ungazed script. so hw shud i install it???
i m runnin on creed's rom 1.7..
Sent from my GT-S5670 using XDA
flash via cwm?

[Q] Software Raid-0

Before I spend a bunch of time on this...
Has anybody tried to setup a software raid-0 using the internal flash memory and the external sdcard?
The technical challenges seem to be:
1) Build a kernel with raid support.
2) Partition the external and internal memory.
3) Format the raid.
4) Mount the raid.
5) Redirect mount points to the raid.
2) seems to be what I'm unsure about. I was thinking of using a 16 gig external card and pairing this with 16 gigs of the internal card. Is there a way to access the internal sdcard in an umounted state? If it isn't mounted then it might be possible to use a disk tool to re-partition the internal card.
Ologn said:
Before I spend a bunch of time on this...
Has anybody tried to setup a software raid-0 using the internal flash memory and the external sdcard?
The technical challenges seem to be:
1) Build a kernel with raid support.
2) Partition the external and internal memory.
3) Format the raid.
4) Mount the raid.
5) Redirect mount points to the raid.
2) seems to be what I'm unsure about. I was thinking of using a 16 gig external card and pairing this with 16 gigs of the internal card. Is there a way to access the internal sdcard in an umounted state? If it isn't mounted then it might be possible to use a disk tool to re-partition the internal card.
Click to expand...
Click to collapse
Maybe this is what you are looking for?
https://github.com/steven676/android-lvm-mod
Ologn said:
>Is there a way to access the internal sdcard in an umounted state? If it isn't mounted then it might be possible to use a disk tool to re-partition the internal card.
Click to expand...
Click to collapse
You can use the recovery (e.g. TWRP) without a mounted /data partition. However, re-partitioning the TF700 will be a challenge due to the double partition tables (the Tegra proprietary one, and the GPT near the end of the block device). Maybe it is easier to create a big container file on /data and use a loop device for lvm.
Loop back is great idea for testing too!
I think I'm going to drop back a step and write a small app to test the premise.

Removing internal SD partition altogether

Hello, I have previously owned a Galaxy Ace which never had an internal SD storage and things were so much more simpler. Apps could be installed on removable SD. Apps were not confused when installing. I have realised that with this phone, when installing big games for example FIFA 12 or Need for Speed Most Wanted, it thinks that the internal SD storage is the removable SD card and won't download game data due to not having enough space. This 1.10GB worth of storage is totally useless and I would rather not have it for reasons of simplicity and just have a large removable SD card media instead. This 1.10GB internal storage space is insignificant when compared to 32GB removable SD Card and really is not worth the grief.
I have tried Link2SD to overcome this issue without any success as it moves the data files from the /data/data partition to the removable SD but not the Data which has been downloaded to Android/Data directory on the internal SD storage. Now I know that there are utilities (such as directory bind) which can swap the internal SD with the external SD. I also know that you can modify vold.fstab to do exactly the same. But I would rather not have this internal storage or if possible, have it extended to the internal data storage.instead.
Can someone please guide me on how to extend this irrelevant partion to data partition or have it removed entirely and just have a simple storage configuration like I did with the Galaxy Ace or older phones before all these large storages were introduced. Thanks in advance.
you need modified "vold.fstab"
http://forum.xda-developers.com/showthread.php?t=2044439
No that just swaps the partitions. If you go to settings>storage the Removable SD card shows as USB storage and the internal SD is showing as SD Card. This is not what I want. Furthermore the fact that external SD is mounted in sdcard path is even more annoying and confusing at times.
What I am looking for is removeable SD card to be mounted as mnt/sdcard. And the internal SD card to be extended with some other internal partition such as data partition or just removed altogether. In simple terms I want the same file structure as my Galaxy Ace S5830.
Gizmotech said:
No that just swaps the partitions. If you go to settings>storage the Removable SD card shows as USB storage and the internal SD is showing as SD Card. This is not what I want. Furthermore the fact that external SD is mounted in sdcard path is even more annoying and confusing at times.
What I am looking for is removeable SD card to be mounted as mnt/sdcard. And the internal SD card to be extended with some other internal partition such as data partition or just removed altogether. In simple terms I want the same file structure as my Galaxy Ace S5830.
Click to expand...
Click to collapse
If want the removable SD card to be mounted as mnt/sdcard then the vold.fstab could do the trick. You said you wanted to play games right? That's what I use to play Need for Speed Most Wanted on my phone. As for the "Internal Storage" or the 1.20 GB Partition, modifying it and adding or removing other partitions would require a .pit file which as far as i know is responsible for partitioning the phone and unfortunately we do not have. Does this answer your question?
It does answer my question although not the answer I wanted to hear. I used to think highly of Android when I used the Galaxy Ace as it did not have this issue due to not having a internal usable storage. But how on hell did Samsung decide to put a puny amount of storage space and mount it as sdcard. I feel sorry for the normal users who have never come across rooting and mods. I am sorry as much as I have love for Android phones, I think my next phone will be an Apple. Never thought I would be saying this but I am honestly tired of this stupid internal sd / external sd configuration. This has even put me off purchasing phones like the Galaxy S3 as you will still have this stupid configuration to get your head over. End of rant.
Is is possible to mount the removable SD card as /mnt/sdcard and the internal puny storage as /mnt/USB or any other name so as not to confuse it with SD Card. At the same time not having the storages swapped and in their right places when checked in settings>storage?
whats the problem with swapping them? I'm hardly annoyed by this kind if situation. if you are almost filling up the 1.20GB storage then you can move some of the apps to the 1.10GB "external_sd". Then to make sure you use the REAL sd card set the default installation path to be internal memory.
Sent from my GT-I8160 running Holo Bean Beta
Gizmotech said:
What I am looking for is removeable SD card to be mounted as mnt/sdcard.
Click to expand...
Click to collapse
and I say again... if you change "vold.fstab" then you will have that you say above. I have /mnt/sdcard = 32gb and /mnt/sdcard/external_sd = 1.1gb
monstro78 said:
and I say again... if you change "vold.fstab" then you will have that you say above. I have /mnt/sdcard = 32gb and /mnt/sdcard/external_sd = 1.1gb
Click to expand...
Click to collapse
That is more of a workaround than a fix as swapping it loses the Unmount SD Card options for the removable media in settings>storage. The same with Directory Bind. They both do the trick but not quite the way I would have wanted it to do so.
Gizmotech said:
That is more of a workaround than a fix as swapping it loses the Unmount SD Card options for the removable media in settings>storage. The same with Directory Bind. They both do the trick but not quite the way I would have wanted it to do so.
Click to expand...
Click to collapse
Then we cant do anything for that matter for now since there are no pit files available to repartition the phone.
Sent from my GT-I8160 running Holo Bean
I was just thinking if there was a way of making a new directory on the /mnt path called 'storage' or something, we could have possibly modified vold.stab. So change where it says /sdcard to /storage and /sdcard/external_sd to /sdcard. I'm not sure if that would work but again, I don't think that another new directory can be created in /mnt without a .pit file.
Gizmotech said:
I was just thinking if there was a way of making a new directory on the /mnt path called 'storage' or something, we could have possibly modified vold.stab. So change where it says /sdcard to /storage and /sdcard/external_sd to /sdcard. I'm not sure if that would work but again, I don't think that another new directory can be created in /mnt without a .pit file.
Click to expand...
Click to collapse
actually there are 3 mount points inside the vold.fstab file. 1) /mnt/sdcard 2)/mnt/external_sd 3)/mnt/usbstorage (i think, i forgot..)
the third is supposed to be used for USB OTG function but for now it remains undefined. I do not know anything about modifying this file so I guess I'll leave it to the experts, ask around and see what turns up.
I just checked the vold.fstab and I think the mount point is mnt/sdcard/external_sd and not mnt/external_sd if I am interpreting the data correctly.
Gizmotech said:
I just checked the vold.fstab and I think the mount point is mnt/sdcard/external_sd and not mnt/external_sd if I am interpreting the data correctly.
Click to expand...
Click to collapse
Yeah youre right.. I guess working on my jelly bean theme made my brain forgetful.
Sent from my GT-I8160 using xda app-developers app

Swap file on /data

Hi. i use cody script to mount /data and /cache as external sdcard partitions. I edit it and mount internal /data as something other (name doesn't matter) and i make swap file using mkswap and when i try to enable it using swapon i getting error 22. Can you help me? Swap on internal data will not broke faster my sdcard and work faster

Categories

Resources