yashsingh1/xdaforums huggingface dataset:
[Galaxy 3 Android Development] only4omkar:
When i try to push data2sd.sh to sd card via adb , I get "failed to copy coz of read only file system "

Then i copied it myself into sd card !

But then , when i type the next command

it says "Can't open data2sd.sh"

I have indroid v3.0 !

:confused:

I have partitioned my sd card using Gparted live cd !

EDIT : I got installation of data2sd complete . Previously i was on mass storage mode . Thats the reason y it wasnt connecting .
[Galaxy 3 Android Development] arunmcops:
Copy to sdcard using qtadb or in usb storage mode.

For next command

Open command prompt..

Cd to ur adb directory

Type

C:\adb\adb shell

#su

#mount -o remount,rw /dev/block/stl9 /system

Now enter next command. :)

InDroid 4.0 Alpha
[Galaxy 3 Android Development] i_rnb:
best thing i hav ever seen on my android..!! basically as app2sd makes all d apps to b installed on sd partition.. there s no need to back up them..! just remove d sd wen u formattin or flashin ur phone..!! after flashin or formatin, put ur sd back into phone & reboot it & VOILA ..!! ur all apps r back..!! :D
[Galaxy 3 Android Development] grgsujan:
How is a class of sdcard affect the speed? I mean I ran a test from sdtools it showed that I have a class 7 memory card . Is it good or worst? I predict it to be worst
[Galaxy 3 Android Development] only4omkar:
I did perfectly till step 2 .

But for partitioning , I am not able to resize the fat partition using Gparted .

however i can delete that partition and then create a new partition .

But then whats the use (coz my data2sd files will be deleted ) .

Please tell me how to resize using Gparted .
[Galaxy 3 Android Development] mizch:
It is a relatively good value, meaning 7 MB/s. Most cheap SD cards will run at about half of the speed. But it is still less than internal memory.
[Galaxy 3 Android Development] s3th.g3ck9:
Sure the class is affecting the speed, but we still don't exactly know to whicht degree - this means we don't know what's the min. writing speed to have not a single lag or slowdown. At the moment i'm using a class 4 card (writing about 4,5 MB/s - it's working pretty good - but i do have lags and slowdown). Class 10 should do it perfectly for sure, but it can be that with class 6 you don't recognize any slowdowns. What class are going to use?
[Galaxy 3 Android Development] mizch:
Your partition is probably mounted and gparted will refuse to change a mounted partition. Use either the symbol for the partition on your desktop, right click it and umount, or issue a umount command.
[Galaxy 3 Android Development] only4omkar:
When i rightclick , Unmount option is greyed .

What is the command for unmount ?
[Galaxy 3 Android Development] mizch:
Hmmm ... make sure you have no window open which has its directory on that partition.

If gparted displays your card as /dev/sdd, then umounting would be done with

sudo umount /dev/sdd1

for the VFAT partition and /dev/sdd2 for the data2sd partition (if there is already one). If you get a "busy" (or the like) error message, a window (or a shell, or a command) on that partition is still open.
[Galaxy 3 Android Development] only4omkar:
Well , I checked the status of the device , It says "not mounted " .

Yet ,it gives me an error message("operation cannot be completed ") in my first operation .. i.e Shrink fat16 from 2 GB to 1.5 GB ..

What could be the problem ?
[Galaxy 3 Android Development] mizch:
There's probably too much data already on the 2GB partition. I don't know details about how the shrinking process works, but it probably needs some spare room for itself to work.

An idea: If you don't have another SD card at hand, save the contents of the SD card to your computer, then delete the partitions on the SD card, repartition and reformat both partitions (#1: vfat, #2: ext4) and write the backup back to partition #1.
[Galaxy 3 Android Development] only4omkar:
So what i did was :-

1. I had already completed till step 2 of your tutorial .

2.Okay , then I had 1 fat16 partition which i could not resize . So i backedup data on this partition , and then deleted the partition via Gparted .

3. I created two new Partitions , vFat & ext4 , using Gparted .

4.Everything went well , and all the operations were completed succesfully .

5.Finally i restored my backed up data on my partition 1 .

Conclusion :- There seem to be no change !!! Sd card and Internal Storage remain the same . Task manager also shows same external sd card storage .

Where did i go wrong ?
[Galaxy 3 Android Development] mizch:
Which size is reported? 2 GB or 1.5 GB?

Does /mnt/asec/data2sd/log.txt exist? If yes, please reproduce it here.
[Galaxy 3 Android Development] only4omkar:
This is what it shows :-

+ date

Wed Mar 23 12:54:12 GMT 2011

+ [ -e /dev/block/mmcblk0p2 ]

+ echo no /dev/block/mmcblk0p2, so no data2sd

no /dev/block/mmcblk0p2, so no data2sd

Task manager shows 2 GB only
[Galaxy 3 Android Development] mizch:
That means your card is *not* partitioned. Maybe you told gparted what to do, but never actually told it to execute it by ticking the green check mark (as described).
[Galaxy 3 Android Development] only4omkar:
first , i must partition my card or install data2sd ?

i installed data2sd first and then partitioned my card .
[Galaxy 3 Android Development] mizch:
That's the recommended procedure. It doesn't hurt to make it the other way 'round, however.
[Galaxy 3 Android Development] only4omkar:
There is some problem with my partition , i guess !

Now i simply deleted all the previous partitions , repartitioned and reformatted my card in two (vfat & ext4) .

And i made sure i click on the green check . i.e all operations were completed successfully .

However , after i booted , the task manager still showed me 2 Gb .

What is the problem ?

What is wrong in my partitioning method ??

NOTE :- The removable disk drive for my phone on my pc shows 1.5 GB !!
[Galaxy 3 Android Development] mizch:
Please have a look at /mnt/asec/data2sd/log.txt if it still complains about a missing mmcblk0p2.
[Galaxy 3 Android Development] only4omkar:
Now when I install data2sd , there is no log created .
[Galaxy 3 Android Development] mizch:
You need to reboot after you have partitioned (Switch off, then insert the SD card, then switch on. And don't remove the SD card while the phone is on). There's no need to reinstall data2sd once that's done.
[Galaxy 3 Android Development] only4omkar:
This is what my log.txt says

Finally I can see 1.45 GB memory in my task manager . Also the internal memory has increased !! ( Thanx a lot mizch !! )

EDIT :- Everything is sorted !!! Thanx a lot mizch , for your help and response !!!!
[Galaxy 3 Android Development] divinesahil:
hey i lost the phone vibration after using your script can u fix this issue
[Galaxy 3 Android Development] jaskiratsingh:
Oh... Did you also get double samsung logo on reboot?
[Galaxy 3 Android Development] mizch:
Can you confirm that the loss of vibration is directly related to data2sd, i.e. you didn't change anything else on your phone?
[Galaxy 3 Android Development] divinesahil:
X***************** erased
[Galaxy 3 Android Development] divinesahil:
yes it was a new fw flashed and the card was also freshly formatted and bingo things worked but without vibration
[Galaxy 3 Android Development] mizch:
Is the vibration back if you switch off and remove the SD card, then switch on?
[Galaxy 3 Android Development] mizch:
You needn't try, I could reproduce it myself.

A new version of app2sd will be available in an hour or two. You can update by running the data2sd.sh script (step 2) and rebooting. No data will be lost, just the vibration will work again.
[Galaxy 3 Android Development] spikywits:
Thanks. But do you recommend the update for all? I'm satisfied with the current script which is working perfectly for me.
[Galaxy 3 Android Development] mizch:
All the script does is to bring vibration back. So if you're satisfied, there is no need to update.
[Galaxy 3 Android Development] i_rnb:
I think the main reason is that not wiping d sd partitions before installin data2sd ... I booted my phone widout sd.. Nd vibration came back.. I think as kyrillos's data was installed in d partition before & I dint wipe it, after enablin data2sd those, kyrillos' data reborn in my system nd stoppd my vidration wrkin..
[Galaxy 3 Android Development] grgsujan:
That means higher the class better will be the performance? Like class 6 will be beter than 4 and 5 and like.that?
[Galaxy 3 Android Development] Y0RGI:
Exactly! It's working in that way how you wrote.

There's some info about it if you want expand your knowledge about it ;)
[Galaxy 3 Android Development] mizch:
The new data2sd.zip (Version 3) is there. It corrects the vibration bug.

Just run the unpacked script as described in step 2 of posting #1 if you want to get vibration back. No data loss will happen. There's no need to upgrade if you have no gripes with Version 2.
[Galaxy 3 Android Development] kyrillos13:
app2sd mode? can you explain it better? :) only /data/app is moved but in internal shows 1gb? or what? Thank you! In data2sd what is moved in sd?
[Galaxy 3 Android Development] mizch:
There's one important drawback in Version 3: The actual size is NOT reflected in the Task Manager or Titanium backup any more. It is nevertheless there and it is visible when you run df from a command line. All subdirectories of /data have the new size.

There are sockets and pipes in /data. To get vibration back, I had to protect them from being mounted-over. Thus, the new version mounts the individual directories one by one, thus letting /data (seemingly) at its original size. But all of its subdirectories have the new size.

As of yet, I am not sure if I can overcome this.
[Galaxy 3 Android Development] spikywits:
So version 2 is better than version 3. In my case I do not get into vibration problem and I use kyrillos 3.3 ROM.

Also getting the spanned memory across SD to display in task manager.
[Galaxy 3 Android Development] divinesahil:
hey how did u managed even i have the same cf but my vibrator stops responding after reboot
[Galaxy 3 Android Development] spikywits:
Just followed the standard procedure..

Switched from Stock JPM to kyrillos 3.3 using ODIN

wiped data/cache

installed data2sd script by minch

switched off the phone and removed sd to put it in a card reader.

partition the sd card using parted magic live cd.

inserted sd card and powered on the phone.

that's it, fortunately the vibrator is still working which was didn't when I last used kyrillos 3.0 rom.
[Galaxy 3 Android Development] i_rnb:
hey MIZCH , thanx for ur great script ... but it is a real pain for windows users to partition their sd (eg. me) .. so can u make something like mad team's partition tool provided with kyrillos' rom , so that we can partition our sd from our windows or directly from our sg3 ...

thanx .. :)
[Galaxy 3 Android Development] s3th.g3ck9:
What's so much pain about booting from a Parted Magic Live CD?
[Galaxy 3 Android Development] i_rnb:
Coz I use my big bro's computer & he hated wen I did sumthin extraordinary in his computer... :P
[Galaxy 3 Android Development] i_rnb:
Newy I partitioned my sd ... Installed ur version 3 ... But how wil I realise that YES DATA2SD IS THERE ..

& how about hard reset ? Should I reapply it ?
[Galaxy 3 Android Development] s3th.g3ck9:
When you want to leave no marks on your brothers PC with installing something the Live CD is even the better option... ;)

You can see if everything has worked with ADB or terminal emulator:

ADB

adb shell
df

Terminal

df

And at least internal memory size should stay the same when installing something.

@ Mizch: Can i see the SWAP Parition somewhere in the list you're getting with df?
[Galaxy 3 Android Development] cdesai:
Please help me

Installed the sh script from adb and then formatted sd card from pc

Thn tried to partition sd card from mad team app and rebooted and then formatted again

Still I get the default size only everywhere and the size of the sd card also remains the same

What to do

And how to partition from a knoppix(another flavor of linux) live cd

And any other way?

Thnx in advance :)
[Galaxy 3 Android Development] mizch:
It is OK if you see no size change for the internal program memory. You need to run 'df' from a terminal emulator (or adb shell) to see the extra memory.

But it is not OK if the size of the first partition (what Android displays as the SD card's size) is the same as before. It must be less by the amount you reserved for program (/data) memory. If it is still the same, your card is not partitioned correctly.
[Galaxy 3 Android Development] i_rnb:
Thank u.. :)

But I hav a problem.. I m currently usin indroid3 with lagfix.. My internal memory is not getting reduced..but the apps are not disappearing after a reboot without sd card ... :-S

Edit: what my log cat saying ..

:(
[Galaxy 3 Android Development] s3th.g3ck9:
Found a bug: Market can't be found in the application list (i'm on v3.0). Any suggestions mizch? ;) And: quadrant isn't able to run through, it's stuck at 'database writes' -> can anyone conform this?
[Galaxy 3 Android Development] p_san_p:
Hi i have class 2 sdcard. Nd currently on Indroid 3.0 custom lagfix rom. Shud i try data2sd?
[Galaxy 3 Android Development] mizch:
They shouldn't disppear, that's correct. When you remove the SD card, you're back in the state where you left off when you installed data2sd.
[Galaxy 3 Android Development] mizch:
Both events should not happen. It is impossible to tell from the distance what went wrong. Try it with a freshly formatted ext4 partition, this restarts the initialization process for the SD card.
[Galaxy 3 Android Development] i_rnb:
Yes atlast got it wrkin on mine.. Ys u were ryt .. Today I use partition magic .. & it showed my partition was created .. But it was nt formatted to ext4 .. :)

Now it is wrkin flawlessly.. Thanx mizch ..

Well I m addin this log.txt to show people how it looks lyk wen it is wrkin .. :)
[Galaxy 3 Android Development] mizch:
No. Lagfix means ext2 or ext4 on the internal memory. data2sd replaces internal memory by SD card memoy and uses ext4 on it, so it is "lagfixed" already, but on relatively slow external memory.

You cannot mix lagfix and data2sd.
[Galaxy 3 Android Development] rohit3221:
But will not an ext4 on phone memory be better thanan ext4 on a class4 sd card ?
[Galaxy 3 Android Development] Criminal23:
Hi mzich,

first, thanks for your work, and support!

I want to "install" inDroid 3.0 - which version I must flash? With you message " no mix" I think I must flash the "no lagfix" version. Is it right?
[Galaxy 3 Android Development] mizch:
It doesn't matter. 'lagfix' in this case means that ext4 is used for /data. It doesn't matter much which version you use since most directories there get over-mounted (replaced) by the contents of the SD card.

The 'don't mix' warning applies if you install lagfix after data2sd. It may not hurt if you do so, but I'm not sure what lagfix does with a changed /data structure. But I'm sure that doing so is useless so you're on the safe side if you don't apply lagfix afterwards.
[Galaxy 3 Android Development] mizch:
As long as you are not short of internal memory, yes. From posting #1:
[Galaxy 3 Android Development] rohit3221:
Ok, thanks for the clarification.
[Galaxy 3 Android Development] FadeFx:
Hi mizch

i use your data2sd successfully on my girlfriends g3, the only thing that annoyes me is that it slows down database access due to slow sdcard. so i thought if it was possible to leave the database folders on the nand stl7 as we had a dbdata partition similar to the sgs.

nice greets Gerd...
[Galaxy 3 Android Development] mizch:
Shouldn't be a problem. Can you tell me where on /data the database folders are currently residing?

Another news: I'm preparing a new version which includes resizing, partitioning and formatting of the SD card on the device, thus making external tools like gparted unnecessary. As I'm quite busy now, it will take some time, at least until the next weekend, possibly until the one after this.
[Galaxy 3 Android Development] FadeFx:
I will check that later...

Edit: i think it is all contained in /data/data/ but eventually this folder is the most space consuming part of data partition and leaving this on hand would make the concept of data2sd obsolete because we win nearly nothing more than with app2sd... i will investigate further...
[Galaxy 3 Android Development] FadeFx:
Ok, eventually we just need to populate a mount 'dbdata' so apps do use it, but that i don't know. On my sgs in /dbdata/ are only the databases of the apps in a folder like in /data/data/

edit: i was wrong, the databases are still in /data/data/ also on the sgs, in /dbdata/databases/ there are only some xml files...
[Galaxy 3 Android Development] p_san_p:
Hi m not able to do partition using partition magic it says operation failed due to read only file system. Plz help:(

Galaxy 3 with indroid 3.0

JIT enabled

Erebos themed
[Galaxy 3 Android Development] mizch:
As far as I can tell, partition magic won't do the job; you need parted magic.
[Galaxy 3 Android Development] FadeFx:
Pmagic-5.10 is not partition magic. Its a Linux live CD with PartedMagic don't know if partition magic can handle ext4 partitions...
[Galaxy 3 Android Development] p_san_p:
Sorry my mistake. Its parted magic only nd I have followed the instructions from the first post. Whenever m using the card reader, this read only error comes

Even if I try copying something to the sdcard using card reader.

Galaxy 3 with indroid 3.0

JIT enabled

Erebos themed
[Galaxy 3 Android Development] mizch:
Do you use a Micro-SD to SD adapter? If yes, then there's a small write protect slider at its side. Move it into the other position.

If no, try another card reader.
[Galaxy 3 Android Development] p_san_p:
Issue resolved. Created ext4 partition successfully but one question, while creating ext4 I had given 600MB but when I checked using adb it is showing some 280+MB as used and 300MB free. Is it correct bcoz I have not installed anything after creating partition then why this 280MB used?

Galaxy 3 with indroid 3.0

JIT enabled

Erebos themed
[Galaxy 3 Android Development] FadeFx:
when you install this data2sd script it copies over all content of data partition. btw system still checks the size of stl7 and will possibly false report that there is no space for apps left...
[Galaxy 3 Android Development] p_san_p:
W

Thanks for reply, I was thinking that i shud get 600 MB as free memory ( same as ext4 partition size) :-)

Galaxy 3 with indroid 3.0

JIT enabled

Erebos themed
[Galaxy 3 Android Development] p_san_p:
Hi after this data2sd ext2 partition, if m doing wipe data/ factory reset, everything is as it was before reset even messages are not deleted. Is it the correct behaviour? And if have to do an actual factory reset, how can I do that?

Galaxy 3 with indroid 3.0

JIT enabled

Erebos themed
[Galaxy 3 Android Development] mizch:
Yes, that is intended behavior. If you wipe from the recovery menu, your original data partition is erased. This is the one which gets used if you remove or replace your SD card, i.e. if you don't use data2sd.

With data2sd, your original data partition is replaced later in the boot process by the SD partition which was left unchanged. This allows you to change the ROM, re-install data2sd, and your apps are still there as before.

If you want to get rid of what's on your SD data partition, simply reformat it.
[Galaxy 3 Android Development] mizch:
Yes. And another objection: As things stand now, data2sd leaves the original /data untouched, which means it is in consistent state and fully functional if you remove the SD card. Also, the /data on the SD card is consistent in itself. In theory, you could exchange the SD card for one which contains an entirely different set of apps without problems (though I doubt this is of much use).

Having part of /data on stl7 would mean to build up a fixed binding between phone and SD which is not allowed to be broken up. You then cannot remove or change the SD card without the possibility of breaking the entire system.
[Galaxy 3 Android Development] FadeFx:
hmm, you might be right, so only option is to buy a faster sdcard to get enough read/write speed to not expirience lags...
[Galaxy 3 Android Development] FadeFx:
Ok, so i found out that the sdcard can't be the cause for the lag, since in contacts app its working nearly perfect, only in phone app the call log and favorites lag as hell. This must be due to a bug in the phone app. However, eventually it could be possible to symlink only the contacts DB to stl7 partitions real contacts DB, this way we would have contacts even if we remove the sdcard without to think about that one time.
[Galaxy 3 Android Development] jaskiratsingh:
Does this script shows correct space in task manager?
[Galaxy 3 Android Development] FadeFx:
nope.

you can however use root explorer to browse to /sd2/ and check space this way.
[Galaxy 3 Android Development] superfrancy97:
Good work but slooooow

I've installed data2sd and it works fine (Fruit Ninja now go faster WOW!) but in some situations (like opening keyboard, pressing menu button in Launchers and opening some settings in settings app) it lags a lot. I have an 8GB microsd HC class 6 and my ext4 partition is of 1.4GB. What i'm doing wrong?
[Galaxy 3 Android Development] mizch:
I don't think you're doing anything wrong. External flash is slower. As long as you're within the caching mechanisms of Android, the loss is nearly negligible, but in other situations, the lags introduced are noticeable. That's the price you pay for the extra storage.
[Galaxy 3 Android Development] i_rnb:
Hey mizch.. Thanx for ur script.. However , it wld b good , if u bring a fully wrkin script (correct space size on apps) .. :)
[Galaxy 3 Android Development] unreal3000:
hey guys another way to check ur space-

go too root explorer, then data.

then go to any oneof the folders like dalvik-cach , app ect

on the top rite u will see the correct space
[Galaxy 3 Android Development] flores.diane02:
Guys this lags like hell

my reading and writing speed goes like this

reading 6.5 M/sec

writing 18M/sec

class 6

God even to unlock it takes a while i mean the slide goes till the end lags for 3 secs and then the main screen shows upp.

1)Any ways to improve this??...

2)anybody else experiencing this??.

3)and how is the performance with the original samsung sd card??.
[Galaxy 3 Android Development] gaurang.ghanekar:
Hey Guys!

I have installed apps2sd on my mobile as i m having 8gb class 2 mobile which is a bit slower for data2sd.

when i check in root explorer its showing me a folder named mnt/sdcard

which is the same as /sdcard so whats the difference and why was it not there earlier is it to do with apps2sd?

Pls clarify!
[Galaxy 3 Android Development] FadeFx:
I am pretty sure it was there before, you eventually just didn't see it. The mnt/sd2 is the new one...
[Galaxy 3 Android Development] i_rnb:
its not /data .. it is /sd2 .. :D
[Galaxy 3 Android Development] i_rnb:
guys anybody has full workin data2sd script ??
[Galaxy 3 Android Development] FadeFx:
As he stated to go into one of the folders, which are in fact symlinks to sd2 it is right also...
[Galaxy 3 Android Development] i_rnb:
I dnt hav /mnt/sd2 on mine.. :P
[Galaxy 3 Android Development] gaurang.ghanekar:
ya i have a backup of my sdcard from before apps2sd and it is not having /mnt/sdcard! :eek:

so how come its there now?
[Galaxy 3 Android Development] only4omkar:
When i install version 3 . i am getting

busybox:not found

[:not found

Mounting /system rw

busybox:not found

Please help !
[Galaxy 3 Android Development] mizch:
Install busybox. You find it in the market.
[Galaxy 3 Android Development] only4omkar:
I am getting this error now

[1] Segmentation fault busybox id -u

[: not found

Mounting /system rw

[1] Segmentation fault busybox mount -o..

I installed busybox using titanium backup ( i.e. check problems thing )

Please tell me how to install busybox properly .. ??
[Galaxy 3 Android Development] mizch:
Try it with the one from the Android Market.