DATA2SD - Xperia Play General

Right, so I recently just heard of this thing that mounts(?) an ext partition of your sdcard to the /data partition, meaning, instead of a lousy 400 MB, I could have 8 or16 GB for apps and data, wouldn't that be amazing?
Sent from my R800i using Tapatalk

KeiranFTW said:
Right, so I recently just heard of this thing that mounts(?) an ext partition of your sdcard to the /data partition, meaning, instead of a lousy 400 MB, I could have 8 or16 GB for apps and data, wouldn't that be amazing?
Sent from my R800i using Tapatalk
Click to expand...
Click to collapse
random lol. but wouldn't it be slower?
Fma965 - Forgottencoders.co.uk
Want to make me a banner? PM me

fma965 said:
random lol. but wouldn't it be slower?
Fma965 - Forgottencoders.co.uk
Want to make me a banner? PM me
Click to expand...
Click to collapse
Link2sd from the market is what i use. Only tried 1gb as second partion on my play, made it 16gb on my sony tablet. I think you gaim more ram and speed things up this way and i have not noticed any slow down becase of the card. It is really great
Sent from my Sony Tablet S using Tapatalk

I think what the OP is mentioning is Mounting the sd-ext AS the data partition. That way there's no 3rd party app to mess up (I've had Link2SD silently crash and accidentally get the low space warning twice). With sd-ext mounted as the data partition then you're not relying on an app running in the background monitoring app installs and then linking them to the sd card.
I believe it could be done, but I don't know the equivalent of fstab editing in android.

jonshipman said:
I think what the OP is mentioning is Mounting the sd-ext AS the data partition. That way there's no 3rd party app to mess up (I've had Link2SD silently crash and accidentally get the low space warning twice). With sd-ext mounted as the data partition then you're not relying on an app running in the background monitoring app installs and then linking them to the sd card.
I believe it could be done, but I don't know the equivalent of fstab editing in android.
Click to expand...
Click to collapse
bet its simple lol. HTC Desire has it.
Fma965 - Forgottencoders.co.uk
Want to make me a banner? PM me

Yes, it's amazing and even better possible! I've achieved it on your DarkForest RC2 with DoomKernel.
- Partition your sdcard so that ext4 is the second primary partition
- Flash the zip in CWM.
- In a terminal emulator type: data2ext --enable
- With Root explorer go to system/etc/init.d and open 40data2ext
- Edit PATH=/system/xbin:/system/bin to PATH=/system/xbin:/system/bin:/sbin
- Reboot, you will have no signal
- Reboot in CWM and fix permissions.
- Now with signal enjoy your large internal memory.
The script was made for HTC Legend. Here the original thread. http://forum.xda-developers.com/showthread.php?t=902395

Possible on a stock rom running DoomKernel?
Sent from my R800i using XDA App

On the root of the device there's a fstab and a recovery.fstab.
fstab
/data yaffs2 userdata
/cache yaffs2 cache
recovery.fstab
# mount point fstype device [device2] fstype2
/cache yaffs2 cache
/data yaffs2 userdata
/system yaffs2 system
/sdcard vfat /dev/block/mmcblk0p1
/sd-ext auto /dev/block/mmcblk0p2
Seems like if you can format the mmcblk0p2 to yaffs2 you can set data to it. I'd be hesitant to move the data partition unless I can format sd-ext to match. I'll try it sometime but my folks are in this weekend.
Sent from my R800i using XDA App

I'm using the Link2SD as well. I just shrunk my FAT32 partition on my SD card, created an ext2 partition about 1gig. Link2SD mounted it up, and I'm able to "Link" the apps Data, Lib and Dex files to the new 1gig partition, or leave them local. I even moved Map and the 9mb from QuickOffice Pro that I couldn't move with the normal App2SD. I'm using the signed Sony Ericsson rom that is posted on these forums somewhere. I can't find the forum post to it lately. My boot loader is also locked but I am rooted. No updated kernel unless the Sony rom did it.

Related

Transition from DT a2sd to S2E

The question: can I transition from DT a2sd to S2e without pulling back/reinstalling my apps that are on the ext3 partition? I don't have enough memory to pull them back from the ext3, so will I need to backup and then restore them via Ti, or will S2E find what's already there?
cHarley04 said:
The question: can I transition from DT a2sd to S2e without pulling back/reinstalling my apps that are on the ext3 partition? I don't have enough memory to pull them back from the ext3, so will I need to backup and then restore them via Ti, or will S2E find what's already there?
Click to expand...
Click to collapse
Its recommended that you remove a2sd scripts before using S2E. But the only way to find out if it will interfere is to try it. Your safest bet is to just back up all your apps with Titanium, uninstall all your apps (or atleast enough of them), turn off DT (or just reflash your rom), install S2E, check applications box in S2E, and then reboot your phone. Then restore your Titanium Backup with Data.
OK, that's about what I figured would be the case and it's just a bit of extra time.
Thanks
cHarley04 said:
OK, that's about what I figured would be the case and it's just a bit of extra time.
Thanks
Click to expand...
Click to collapse
yea but the great part is that, unlike DT, s2e will persist through flashing a new rom (with the exception of a factory reset).
What kind of results did you get with this? I have a ext4 partition, and I am looking to migrate to s2e, and I do not have room to move all the apps back to internal storage..
eagle0042 said:
What kind of results did you get with this? I have a ext4 partition, and I am looking to migrate to s2e, and I do not have room to move all the apps back to internal storage..
Click to expand...
Click to collapse
Be forewarned, I could not get s2e to work with an ext4 partition. BUT, if I formatted to ext3 and then used s2e to mount the ext3 as ext4 the partition shows up as ext4. Even when I put the sd into my Ubuntu laptop. It just lacks the journaling feature.
What you could try if the ext4 doesn't work is copying the contents if your ext to your computer, reformat to ext3, put the copy back onto the ext and then use s2e to mount as ext4.
Sent from my cm7 Aria.

CM7 and S2E

Hey,
I've got CM7.0.3 and use S2E to move applications to my EXT3 partition.
For some odd reason,only a small part of my application were moved,and now the phone's memory is narrowed down to about 28MB.
Can I use the CM7 default APP2SD function,or will I get problems and FC if I do so while S2E is still working in the background?
Thanks.
Try this thing:http://forum.xda-developers.com/showthread.php?t=1233340
It reduces the amount of memory in the /system and /cache folders and relocates it to the /data folder, thusly giving you more space for apps!
nejc121 said:
Try this thing:http://forum.xda-developers.com/showthread.php?t=1233340
It reduces the amount of memory in the /system and /cache folders and relocates it to the /data folder, thusly giving you more space for apps!
Click to expand...
Click to collapse
Thanks,but it doesn't work the way I want it to.
I'll do a Nandroid backup,and then try the App2SD in CM7.
I think the apps have moved but data is still in the phone memory for stability. The same will happen with cm7 app2sd feature.
Sent from my HTC Wildfire using xda premium
I once had another problem... I switched to disk mode just fine, but then the computer didn't show the removable device..or it showed it, but grayed out. Just for future reference, I was on Windows 8 Developer Preview, so I kind of shoulda seen it coming...

Secure delete for S3

I want to be able to securely delete files(overwrite the whole file at least once) on my s3. I tried to install the app undelete which also has an option to securely delete files. But when I start the app it complains about not finding any fat formated file system. I also tried shredroid but this program crashes on startup, maybe because it also expects a fat file system? So is there a working way to secure delete files on the s3? It doesn't have to be an app, if there is some linux utility like srm compiled for android that would be great.
There's an app called Secure Deletion for Android in the Play Store that should do what you need. No free version, though, and it only has one review and 50+ downloads. FWIW, the single review was 5 stars. I'm gonna keep looking because I would like the same thing.
From what I can tell, stuff like that wont work on our devices' internal memory due to the method samsung has used to grant access to the partitions. Undelete never worked on my Xoom because of the same issue, possibly due to the fact both devices utilize MTP. However, it should work on any external SD cards you may have, however that is just me speculating as I have not tried it.
Sent from my SAMSUNG-SGH-I747 using xda premium
d3athsd00r said:
From what I can tell, stuff like that wont work on our devices' internal memory due to the method samsung has used to grant access to the partitions. Undelete never worked on my Xoom because of the same issue, possibly due to the fact both devices utilize MTP. However, it should work on any external SD cards you may have, however that is just me speculating as I have not tried it.
Sent from my SAMSUNG-SGH-I747 using xda premium
Click to expand...
Click to collapse
Now that you mention it, the internal storage is mounted as a FUSE filesystem, not the expected ext3/4, so it's probably because it's a "fake" filesystem. I wonder if there is a way to access the raw physical filesystem (/data is ext4, which should be compatible with most secure delete apps) instead of the userspace filesystem.
EndlessDissent said:
Now that you mention it, the internal storage is mounted as a FUSE filesystem, not the expected ext3/4, so it's probably because it's a "fake" filesystem. I wonder if there is a way to access the raw physical filesystem (/data is ext4, which should be compatible with most secure delete apps) instead of the userspace filesystem.
Click to expand...
Click to collapse
Thank you. Couldn't remember what it is called. But that is exactly the reason it can't find it with the app. Also, if journaling is enabled, then a secure delete still wont work on ext3/4. This isn't a bug, its due to the way ext with journaling handles reads/writes.
Sent from my SAMSUNG-SGH-I747 using xda premium
Anyone know why it's mounted via fuse? The same files are also available via /data/media and /data is mounted as ext4. Maybe it would be possible to unmount the fuse filesystem, remount the data filesystem as ext2 (no journaling) and then run some secure delete program?
octapod said:
Anyone know why it's mounted via fuse? The same files are also available via /data/media and /data is mounted as ext4. Maybe it would be possible to unmount the fuse filesystem, remount the data filesystem as ext2 (no journaling) and then run some secure delete program?
Click to expand...
Click to collapse
It's because of the MTP. If it were mounted as a normal filesystem, you could use USB Mass Storage, but you would lose access to all of your internal storage while it was in UMS mode.
Also, I don't think you can mount one filesystem as another, so mounting ext4 as ext2 will possibly corrupt your data. What you could do is mount the ext4 filesystem with the journal features turned off (which is practically the same as ext2 but better), then secure delete.
The issue for me is, that task seems a lot more involved on a phone/tablet than it is on an actual computer. Not sure if it would even work. And if you want to secure delete every time you delete something, that's a whole lot of effort to go through. Of course, if you want it deleted that badly, it's probably worth it to you.

[Q] /system.tar backup and sd card partion

Hello,friends i need two solution from you people....
1.how to backup entire /system folder for using it in android kitchen working rom.
can i backup with root explorer or use some commands in terminal emulator..
i think terminal commands will bakup it in .tar and will not change anything in the files
so please give me the commands to backup system on sd card.
2.secondly what value to put while partioning sd card using rom manager....
thanks in advance.
rohitzz said:
Hello,friends i need two solution from you people....
1.how to backup entire /system folder for using it in android kitchen working rom.
can i backup with root explorer or use some commands in terminal emulator..
i think terminal commands will bakup it in .tar and will not change anything in the files
so please give me the commands to backup system on sd card.
2.secondly what value to put while partioning sd card using rom manager....
thanks in advance.
Click to expand...
Click to collapse
Don't know number 1,
I have a SD card partition of 1024 MB and 32 MB swap. I can install 500 apps . So I guess these values are more than enough
rohitzz said:
Hello,friends i need two solution from you people....
1.how to backup entire /system folder for using it in android kitchen working rom.
can i backup with root explorer or use some commands in terminal emulator..
i think terminal commands will bakup it in .tar and will not change anything in the files
so please give me the commands to backup system on sd card.
2.secondly what value to put while partioning sd card using rom manager....
thanks in advance.
Click to expand...
Click to collapse
1. nand backup via CWM or Amon_RA recovery
2. don't use ROM Manager (EVER for ANYTHING), either make the partition via recovery or via the built in tools
---------- Post added at 12:21 PM ---------- Previous post was at 12:19 PM ----------
QuantumFoam said:
Don't know number 1,
I have a SD card partition of 1024 MB and 32 MB swap. I can install 500 apps . So I guess these values are more than enough
Click to expand...
Click to collapse
Yeah, 1024 goes a long way but if you got a big SD card you might want to go for twice that and swap isn't just not needed, it's not even used unless you make a separate script to use it which ISN'T included in most roms.
Which kind of built in tools?
Sent from my Blade using xda premium
QuantumFoam said:
Don't know number 1,
I have a SD card partition of 1024 MB and 32 MB swap. I can install 500 apps . So I guess these values are more than enough
Click to expand...
Click to collapse
Why anyone don't know 1. Step!!!
Sent from my Blade using xda premium
rohitzz said:
Why anyone don't know 1. Step!!!
Sent from my Blade using xda premium
Click to expand...
Click to collapse
Jinxxed posted it above
Tar will only backup what is inside the system partition . For a more complete backup one needs backup of all partitions and boot loader with recovery. It possible only by a tool like CWM.
Also for a phone with 512 MB RAM one doesn't need swap. It mai actually degrade the performance.
My Idea ZTE Blade has only 256MB RAM, I am using CM7.2 . In manage applications total of free plus used is only 128MB. So I enabled swap using m2sd, it's 256MB, actual usage varies from 80MB to 130MB.
My phones performance is greatly improved.
Sent from my Idea Blade
rahulsa said:
Tar will only backup what is inside the system partition . For a more complete backup one needs backup of all partitions and boot loader with recovery. It possible only by a tool like CWM.
Also for a phone with 512 MB RAM one doesn't need swap. It mai actually degrade the performance.
My Idea ZTE Blade has only 256MB RAM, I am using CM7.2 . In manage applications total of free plus used is only 128MB. So I enabled swap using m2sd, it's 256MB, actual usage varies from 80MB to 130MB.
My phones performance is greatly improved.
Sent from my Idea Blade
Click to expand...
Click to collapse
1. CWM will use TAR to make the backups so it's the same thing, to make a clone of the partition you'll need to use cc.
2. It won't degrade the performance in any scenario, it MAY be unnecessary and unused though.
3. That's not swap, that's using an extended partition to store data, what you're looking at is internal storage and more specifically the internal partition /data
Jinxxed said:
1. CWM will use TAR to make the backups so it's the same thing, to make a clone of the partition you'll need to use cc.
2. It won't degrade the performance in any scenario, it MAY be unnecessary and unused though.
3. That's not swap, that's using an extended partition to store data, what you're looking at is internal storage and more specifically the internal partition /data
Click to expand...
Click to collapse
1. Ok, new learning for me.
2. Good to know this. I was bit worried initially with my 256MB swap size. As I saw 0 or 32 MB swap in many posts. But after 2 weeks I confirm that it was the best thing I did for my Blade. Yes it was even better than using sd card's ext4 partition for more space. Low RAM was a bit serious issue for me than low space.
3. I know swap and ext partition are different. I have 256MB swap and 2 GB ext-4 on my class 4 16GB.
Also understand that using m2sd one can mount /data on ext-4 (r mount) and /sdext on internal nand.
Sent from my Idea Blade
rahulsa said:
1. Ok, new learning for me.
2. Good to know this. I was bit worried initially with my 256MB swap size. As I saw 0 or 32 MB swap in many posts. But after 2 weeks I confirm that it was the best thing I did for my Blade. Yes it was even better than using sd card's ext4 partition for more space. Low RAM was a bit serious issue for me than low space.
3. I know swap and ext partition are different. I have 256MB swap and 2 GB ext-4 on my class 4 16GB.
Also understand that using m2sd one can mount /data on ext-4 (r mount) and /sdext on internal nand.
Sent from my Idea Blade
Click to expand...
Click to collapse
3. Just nitpicking but the way it works is to mount data to /sd-ext/data, /sd-ext is just the mount point for your ext partition (which may be ext2, ext3 or ext4 depending on how you configured it during partitioning and how you mount it). Depending on how you do this you can have data, app, dalvik-cache and app-private mounted to /sd-ext/[folder] (this is the common way of using it when you use my script and S2E).
Jinxxed said:
... Depending on how you do this you can have data, app, dalvik-cache and app-private mounted to /sd-ext/[folder] (this is the common way of using it when you use my script and S2E).
Click to expand...
Click to collapse
May I know your script name?
Using your script which of above should be moved last, I mean with swap already might take a portion of sd card i/o and hence i fear, may make overall speed very slow.
Or for enabling all of them should i upgrade to faster sd card?
Currently I am happy with swap and apps on sd card, rest all on int. nand.
Sent from my Idea Blade
rahulsa said:
May I know your script name?
Using your script which of above should be moved last, I mean with swap already might take a portion of sd card i/o and hence i fear, may make overall speed very slow.
Or for enabling all of them should i upgrade to faster sd card?
Currently I am happy with swap and apps on sd card, rest all on int. nand.
Sent from my Idea Blade
Click to expand...
Click to collapse
S2E-Swap-Jinxxed.zip is the name, you flash it via recovery. https://dl.dropbox.com/u/54672755/S2E-Swap-Jinxxed.zip
It's basically a set of init.d scripts for proper configuration of swap, mounting of sd-ext and the S2E application to move apps, data and cache (you can choose what you want to move and what you want to leave on your internal nand data partition) to sd-ext.
It works on all roms that don't have S2E support from the get go including all ICS variants and JB.
Jinxxed said:
S2E-Swap-Jinxxed.zip is the name, you flash it via recovery. https://dl.dropbox.com/u/54672755/S2E-Swap-Jinxxed.zip
It's basically a set of init.d scripts for proper configuration of swap, mounting of sd-ext and the S2E application to move apps, data and cache (you can choose what you want to move and what you want to leave on your internal nand data partition) to sd-ext.
It works on all roms that don't have S2E support from the get go including all ICS variants and JB.
Click to expand...
Click to collapse
To deactivate mounts2sd-4.6.2 script and use your script.
I did following after getting your answer as PM.
I deleted 10mounts2sd script from \system\etc\init.d\ .
While observing S2E-Swap-Jinxxed.zip, I realized that it contained s2e.apk in /system/app.
So I actually installed s2e from from market to get latest version.
Then to enable swap and other optimizations, I added following lines in begining of 20userinit script present in /etc/init.d .
mount -o remount,noatime,nodiratime,relatime,barrier=0,nobh /system
mount -o remount,noatime,nodiratime,relatime /data
swapon /dev/block/mmcblk0p3
So I got what I wanted and also learnt many things in the process.
Also experimented with /etc/sysctl.conf by adding vm.swappiness=50 (initially 70).
---------- Post added at 08:47 PM ---------- Previous post was at 08:26 PM ----------
Jinxxed said:
1. CWM will use TAR to make the backups so it's the same thing, to make a clone of the partition you'll need to use cc.
....
Click to expand...
Click to collapse
I backed up my Blade using the latest ClockworkMod 5.0.2.0 .
CWM backup up saying done, but with a message.
It said it did not backup up /sd-ext or external ext2/3/4 partition.
So I was worried to use app-to-ext scripts or programs.
Now I successfully used tar to backup sd-ext and restore it on a faster (class 4 to 6) sd card.
But I would like know if there is any new version of CWM for Blade 6.0.1.2 with or without touch, which backs up ext2/3/4 without any issues.
If yes, I would upgrade my CWM.
It saves time to use CWM, compared to tar.
Thanks in advance.

[How-To][P3100][CM11][dataOnExt] use second partition of external SD-Card as /data

Hi,
I was looking for a tutorial how to use a second partition of the external SD card as /data partition. 1 day and about 10 complete system wipes later...
How I mounted the second partition oft my sdcard as /data:
You have:
a P3100 (not tested on others yet)
Cyanogenmod 11 Rom
a fast micro sdcard -32GB
Step 1 prepare the sdcard: you need a fat32 partition and a Ext4 partition (use a PC with a cardreader and gparted or something like that)
Step 2 For the sake of simplicity, I am going to assume you already installed your rom and the tablet is rooted
Form a terminal with su:
create a directory
Mount the second partition (/dev/block/mmcblk1p2) on that directory
copy -a -v /data/* yourDirectory/
Step 3 - modifing the rom and fstab.espresso
Now you have to extract the boot.IMG Form your rom, using dsixda's Kitchen
In case you have no idea how to use this kitchen (like me) here is someone doing exact what we need
After changing in the BOOT-EXTRACTED directory, you have to edit the fstab.espresso...
simply replace the mount source of
Code:
/data
with
Code:
/dev/block/mmcblk1p2
save the file and rebuild the rom
Step 4 install your new rom with cwm and reboot...
If everything went well the second partition of your sdcard is now mounted as /data
My internal storage is now (in the storage view of settings) about 20GB big and i will never have to use link2sd or apps like that again
Nice side effect the access to the highspeed sdcard is a bit faster than the access to the internal storage
You have to modify all updates oft your rom in the same way before installing them
ToDo write a script to automate the process
PS.: plz tell me if something is unclear or not understandable or this is the wrong place for this thread OR you know a shorter way to do this (thats my first post here)
Farbdose said:
...
In case you have no idea how to use this kitchen (like me) here is someone doing exact what we need
..
Click to expand...
Click to collapse
Happy modding! Feel free to quote any or all of the thread, just give credits where it is due
On a related note - have you confirmed this to be working in your device? And does your device use a part of the /data partition as internal SD Card (/data/media fused to be /sdcard)?
OK thank you,
Yep its working, the complete /data is on the sdcard now including /data/data and /data/media, my internal storage is now about 20gb big xD
I am not really sure if there are crazy symlinks in /data but atm i have no problems
The "real" sd partition is still fat32 formated and used as before the modification, and because i didn't mount the second partition anywhere (only as /data) the rest of the system doesn't know that it exists...
(problem: there is now a unused /data partition on my internal tablet storage and i have no real idea how to use this free storage)
Sent from my GT-P3100 using XDA Premium 4 mobile app
You can mount it to /data/dalvik-cache - check my thread
Sent from my GT-N7100 using XDA Premium 4 mobile app
thats indeed a usefull usage oft the old data partition thx
Sent from my GT-P3100 using XDA Premium 4 mobile app

Categories

Resources