yashsingh1/xdaforums huggingface dataset:
[Galaxy Note 10.1 Android Development] ajayshoots:
my attachments of SS

i am using galaxy note 10.1 GT N8000..PLZ HELP..

app_342@android / $ export PATH=/data/local/bin:$PATH

app_342@android / $ su

1 |app_342@android:/ # cd /sdcard

app_342@android /sdcard # sh ./install-a2sd

You do not have fukedupFS, variable set to false in USER_0PTI0NS

According to your system /sdcard points to /mnt/sdcard, is this correct7 [yes/no] yes

Very Well, Proceeding with installation.

./install-a2sd[88]: [ -clean, unexpected operator/operand /system/bin/debuggerd successfully renamed.

Successfully created init folders.

Successfully copied scripts to target locations currperm=0755

Permission successfully set on /system/bin/sysinit to 0755 . currperm=0755

Permission successfully set on /system/bin/debuggerd to 0755 . currperm=0755

Permission successfully set on /system/bin/debuggerd.bin to 0755 . currperm=0755

Permission successfully set on /system/etc/init.a to 0755 . currperm=0755

Permission successfully set on /system/etc/init.d to 0755 . currperm=0755

Permission successfully set on /system/etc/init.a/01earlymounts to 0755 . currperm=0755

Permission successfully set on /system/etc/init.d/01a2sd to 0755 .

./install-a2sd[170] read -p no coprocess reboot: applet not found

Your device failed to reboot, please reboot manually app_342@android /sdcard #
[Galaxy Note 10.1 Android Development] blz_phnx:
how do i change /system/bin/logwrapper to #/system/bin/logwrapper?
[Galaxy Note 10.1 Android Development] ajayshoots:
.

You can open that in notepad in laptop ..
[Galaxy Note 10.1 Android Development] aadiflesher:
Hi

Anyone made any progress with this? :)
[Galaxy Note 10.1 Android Development] blz_phnx:
opened logwrapper, just showed a bunch of numbers and symbols
[Galaxy Note 10.1 Android Development] devaraju1973:
Apps to SD card on Samsung S Duos i.e., GT S7562.

Please tell me the steps to follow to move the apps to SD card. Do i need to download any software or root the device? If rooted, warranty will be voided rite? Please help.
[Galaxy Note 10.1 Android Development] ajayshoots:
only if you already have init.D on your device than do this --*

the file''''install-a2sd.zip ''' which you downloaded from here contains 6 file among them 1 is '''sysinit''' open that in notepad on laptop you will get written this----

#!/system/bin/sh

#Launch init.a as soon as possible and init.d with delay

/system/bin/logwrapper busybox run-parts /system/etc/init.a

sleep 10

/system/bin/logwrapper busybox run-parts /system/etc/init.d

just put this ''# ''(and one space) in frount of last line that is

''' /system/bin/logwrapper busybox run-parts /system/etc/init.d'''' like this -

# /system/bin/logwrapper busybox run-parts /system/etc/init.d

and click save and do as told put all 6 files on device in folder sdcard and then follow further
[Galaxy Note 10.1 Android Development] Deus_ex11:
Hi TweakerL,

Will this work on a Galaxy S3?

I'm willing to give this a go and help you spread the word to the S3 forum if this works.

The S3 has the same mounts as your tablet I believe. The extSdCard is /dev/block/mmcblk1p1 and I have init.d support from a custom kernel.
[Galaxy Note 10.1 Android Development] TweakerL:
Hey, I've been swamped with work for the past 3 days, I'll be reading the thread later from the point where I last came online and answer everything people might've asked. Just figured I'd drop in real quick and let everyone know I didn't just disappear or something.

EDIT - Ok, after looking over the last few pages I see that the main issue is with devices where /data and /sdcard are in different partitions. I have an idea of what the problem might be, however I don't have a device to test it on. It would be much appreciated if someone can get on IRC or some other form of real time chat so that we can get this figured out because for me to just try and fix it and then post a new version for people to test might take a while (whereas I might be able to test 10 different ways in an hour through IRC). Anyway, if anyone goes on IRC, connect to freenode and /msg TweakerL , and we'll try to figure something out. In the meantime I'll make some modifications and post an updated version.

And yes, if your ROM already comes up with a init.d folder and files in that folder, you can go ahead and add the # to the line in sysinit.

EDIT - Also, those of you having issues, run the following command in terminal and let me know the output:

busybox mount | busybox egrep -i 'vold' | busybox egrep -i '/sdcard' | busybox grep -v 'secure' | busybox awk '{print $3}'

Also, the output for the following commands would help:

busybox mount
busybox cat /proc/partitions
busybox df -h
[Galaxy Note 10.1 Android Development] ajayshoots:
thanks

my problem solved.....:good:

actually i was on DDALH1 FIRMWARE yesterday i upgrade to DDALI2 AND redone the whole procedure and everything is working fine....shifted 3gb on sd card.

one thing in stage 3 everything will pause for sometime (my case it was 1-2 hour) but after that it will start itself so have passions...

once again thanks to TweakerL....:laugh:
[Galaxy Note 10.1 Android Development] aadiflesher:
Hello

Does your device have /data and /sdcard in different partitions?

Mine does and I want to know if you made it work having these different partitions

Thanks
[Galaxy Note 10.1 Android Development] ajayshoots:
.

i have

/sdcard

/mnt/sdcard

/mnt/extSdCard

/data/data

/data/app
[Galaxy Note 10.1 Android Development] blz_phnx:
do u have /data/media
[Galaxy Note 10.1 Android Development] ajayshoots:
.

yes:D
[Galaxy Note 10.1 Android Development] blz_phnx:
Wat device u have it working on ?
[Galaxy Note 10.1 Android Development] Deus_ex11:
I tried your script and at stage 2 it didn't copy the files over. I have a 2nd partition formatted to ext4 on my MicroSD, the first part being fat32. It's shown as /dev/block/mmcblk1p2 using mount in terminal.

I rebooted because I had the DEVICE_IS_READY file but when it rebooted, all my apps and settings where not installed. I have some experience in scripts so I just deleted init.a folder and the '01a2sd' from init.d to remove the bind mounts. My apps and settings came back after rebooting.

I looked in /storage/sd-ext and there are no apps or data files that should have been copied over by your script. I have looked at your script and it very complex. Where in '01a2sd' script are the commands to copy the files over?

Could you put more documentation in your script so it's easier to debug.
[Galaxy Note 10.1 Android Development] Walker Street:
Is there an easy way of reversing this?

Hi,

What if I want to go back to my original state at some stage in the future?

For example: I might want to flash an OTA update and have the partitions back the way they were being used before updating.

I followed the instructions and succeeded in getting A2SD to work. I have a nandroid backup made prior to this so I can go back to my original state easily (right now).

I'm experimenting with this (rather complex) mehtod, right now,:

1) Turn off the tablet and remove the micro sdcard.

2) Copy all the files from the ext4 partition on the micro sdcard by using a card reader and mounting the card in Ubuntu linux.

e.g. copy the files to ~/A2SD-PC-backup

3) Put the micro SD card back in the tablet

4) Boot up the tablet.

5) Open USER_OPTIONS (e.g. from root explorer in 'text editor') in /sdcard/Tweaked.Scripts/A2SD/options and change it to:

moveAndroid='false'

moveApps='false'

moveData='false'

deletepostmove='false'

fukedupFS='true'

ENABLED='false'

6) Boot up the tablet again: I have lost all of my apps including it seems supersu and terminal.

7) From the PC's terminal:

adb shell

$ mkdir /mnt/sdcard/A2SD-backup

$ exit

adb push ~/A2SD-PC-backup /mnt/sdcard/A2SD-backup

$ su

# cp -R /mnt/sdcard/A2SD-backup/app /data

.............this worked

# cp -R /mnt/sdcard/A2SD-backup/data /data

.............this is not working (I am getting the error: cp: recursion detected, omitting directory '.....

So, is there an easy way of restoring your files and partitions back?

EDIT: Or would you be better off doing a regular titanium backup and restoring using this?
[Galaxy Note 10.1 Android Development] aadiflesher:
Still does NOT work on Google Nexus One with /data and /sdcard/Android on different partitions...
[Galaxy Note 10.1 Android Development] blz_phnx:
He said he needs a device of such to find a fix, or help him out through IRC
[Galaxy Note 10.1 Android Development] aadiflesher:
how do I get on IRC?

Thanks :)
[Galaxy Note 10.1 Android Development] blz_phnx:
Think u gotta create an account
[Galaxy Note 10.1 Android Development] aadiflesher:
Yes, but where?

Here? http://and-host.com/
[Galaxy Note 10.1 Android Development] blz_phnx:
Either there or the freenode IRC
[Galaxy Note 10.1 Android Development] aadiflesher:
Ok, thank you! :)

Hope we can get this done.
[Galaxy Note 10.1 Android Development] blz_phnx:
NP
[Galaxy Note 10.1 Android Development] Deus_ex11:
You could copy the files back to

/storage/temp/data/media/Android

/storage/temp/data/app

/storage/temp/data/data

Using terminal "cp -a /data/app /storage/temp/data". That should preserve file permissions. Repeat for the other folders and then disable A2SD or delete init.a and 01a2sd in init.d

I have not tried this as I'm having problems copying the files in stage 2. So I need help from TweakerL or anybody on this.

Titanium backup is good for your installed apps but not for the data in /sdcard/Android/data which is not backed up.

EDIT: I managed to get this working ok on my galaxy s3 by copying the files over to /storage/sd-ext/data but that defeats the purpose of this script.
[Galaxy Note 10.1 Android Development] aadiflesher:
Hello

I am on freenode IRC on #and-host. http://webchat.freenode.net/

If someone wants to join, talk and try to figure this out.

Maybe TweakerL is gonna be there.

Thanks :)
[Galaxy Note 10.1 Android Development] TweakerL:
Sorry, been kinda crazy busy this week, thought I was gonna have more time this weekend, but didn't happen. This following weeks seems like things will be a bit calmer, so I'll have more chance to work with people whose devices aren't setup like the ones I have.

Anyway...

The output for the following commands might help too:

busybox mount | busybox egrep -i 'vold' | busybox egrep -i '/sdcard' | busybox egrep -v 'secure'
busybox mount | busybox egrep -i 'vold' | busybox egrep -i '/sdcard' | busybox egrep -v 'secure' | busybox awk '{print $3}'
busybox mount | busybox egrep -im 1 '/sdcard' | busybox awk '{print $3}'
ls -l / | busybox egrep -i "`busybox mount | busybox egrep -i 'vold' | busybox egrep -i '/sdcard' | busybox egrep -v 'secure' | busybox awk '{print $3}'`" | busybox awk '{print $9}'
[Galaxy Note 10.1 Android Development] aadiflesher:
Hello

When are you online on IRC?

Cause I`m there right now and ... just waiting.

thanks
[Galaxy Note 10.1 Android Development] aadiflesher:
Please tell me when to get on IRC to help with the device.

I am in Bucharest, Romania GMT +3

Tell me a day and hour.

Thank you!
[Galaxy Note 10.1 Android Development] blz_phnx:
You not just make a partychat on gtalk
[Galaxy Note 10.1 Android Development] aadiflesher:
TweakerL said he uses IRC so that is why I said I will be there.

I was there today but no luck. I could see his ID there but he would not respond... I don`t know..
[Galaxy Note 10.1 Android Development] Deus_ex11:
Hi, aadiflesher

Could you post the output of:

df -ah */android
df -ah */app
df -ah */data

This will show the filesystem and where they are mounted.
[Galaxy Note 10.1 Android Development] aadiflesher:
sure, here it is:

u0_a11@android:/ $ df -ah */android

Filesystem Size Used Available Use% Mounted on

/dev/block/vold/179:1

6.3G 2.8G 3.5G 44% /storage/sdcard0

u0_a11@android:/ $ df -ah */app

Filesystem Size Used Available Use% Mounted on

/dev/block/mtdblock5 168.3M 135.9M 32.3M 81% /data

/dev/block/mtdblock3 260.0M 161.9M 98.1M 62% /system

u0_a11@android:/ $ df -ah */data

Filesystem Size Used Available Use% Mounted on

/dev/block/mtdblock5 168.3M 135.9M 32.3M 81% /data

/dev/block/vold/179:1

6.3G 2.8G 3.5G 44% /storage/sdcard0

u0_a11@android:/ $
[Galaxy Note 10.1 Android Development] blz_phnx:
Wat does this help with?
[Galaxy Note 10.1 Android Development] aadiflesher:
This will show the filesystem and where they are mounted.
[Galaxy Note 10.1 Android Development] TweakerL:
Created a gtalk partychat at and-host@im.partych.at, feel free to join there, I'll keep inviteonly off for now.

Also, whoever mentioned df -ah */[whatever], that's pretty good, I might incorporate that command into the script to make things work better.
[Galaxy Note 10.1 Android Development] ajayshoots:
.

note 10-1 N8000

:cowboy:

---------- Post added at 10:32 PM ---------- Previous post was at 10:20 PM ----------

can you tell how you managed to get this working ok on galaxy s3, applied this same script to s3gt I9300 , then got sdext and files get transferred but even after applying true to delete files from sd card , unable to delete so have files on both location that is sdext and sd card....

thanks
[Galaxy Note 10.1 Android Development] Deus_ex11:
Your files copied over to '/storage/sd-ext/data'. Are you sure? How long did it take to start copying files?

Mine justs does nothing. In the terminal, logcat | busybox grep "01a2sd" is not showing any activity. I have the sd-ext bind mounts, but no files get copied by the script. I have checked the script and I cannot see where it does the file copying. Could you post your install-a2sd.zip up here thanks? i would like to compare scripts to see if anythings different in mine.

To answer your question you could delete them using 'rm -r' in your terminal. e.g. rm -r /storage/temp/data/media/Android

Repeat for '/storage/temp/data/app' '/storage/temp/data/data'

Just a warning, this is very dangerous. Be careful.
[Galaxy Note 10.1 Android Development] TweakerL:
Your logcat is not gonna say anything for 01a2sd unless there's an error or if you run it with logwrapper. To do that create a new file in init.d folder that says the following:

#!/system/bin/sh
/system/bin/logwrapper /system/etc/01a2sd

then copy 01a2sd from init.d folder to /system/etc

Also, to know if anything got copyied, your best bet is to check your mounts, then ls -lR the locations, for example:

ls -lR /mnt/sd-ext/data

You can also check the about of storage being used by using du:

busybox du -sh /mnt/sd-ext/data

remember you might have /storage instead of /mnt

Also to answer the other dude's question, this is where the copying takes place, in 01a2sd:

tweakthis () {

cd $1
busybox find . -print | busybox cpio -pvdm $2

if [ $deletepostmove == 'true' -a -f $TWEAKED/A2SD/STAGE_3 ]
then
busybox find $1 -type f -print > $TWEAKED/$4-deletethis.txt
if [ $debugging == 'true' ]
then
busybox cp -f $TWEAKED/$4-deletethis.txt $A2SD_DEBUGGING/$4-deletethis.txt
fi
while read line
do
deletethis="$line"
checkthis=$( busybox echo $line | busybox sed s:$1:$2: )
if [ -f "$checkthis" ]
then
busybox rm -f "$deletethis"
fi
done < $TWEAKED/$4-deletethis.txt
busybox rm -f TWEAKED/$4-deletethis.txt
cd $1
find . -type d -exec busybox rmdir {} \;
fi
}

Namely this line

cd $1
busybox find . -print | busybox cpio -pvdm $2

So yes, you could very easily copy your stuff back. To do it, cd into the folder where your stuff currently is, for example:

cd /mnt/sd-ext/data/app
busybox find . -print | busybox cpio -pvdm /mnt/temp/data/app

remembering that the script should automatically mount your internal storage to /mnt/temp/data to give you access to it.
[Galaxy Note 10.1 Android Development] blz_phnx:
I joined partychat anybody there
[Galaxy Note 10.1 Android Development] Dilesh Perera:
hi. will this works in Xperia Ray? anyway to check it before proceeding with the mod??
[Galaxy Note 10.1 Android Development] yiannisthegreek:
"2 - THE INSTALLATION SCRIPT REQUIRES USER INPUT, WHICH MEANS THAT IT CANNOT BE MADE INTO A RECOVERY ZIP. DO NOT BOTHER TO ASK FOR ONE. IF YOU CAN'T LEARN HOW TO USE THE TERMINAL, THEN JUST STICK TO OTHER SUCKY APP2SD SOLUTIONS".

Just out of curiosity... You say that the reason it cant be made into a CWM .zip file is because it requires "USER INPUT" but (and Im just thinking outside the box here) could it not be built into a .zip and installed in CWM using AROMA Installer? Would AROMA allow for enough "user input"?

Again... I have no idea if it could work and am just asking / suggesting...

Please advise...
[Galaxy Note 10.1 Android Development] aadiflesher:
There is still some work to be done to the script and maybe after this is done and tested, someone who knows how to do it, can make it in an update.zip or Aroma installer. :)
[Galaxy Note 10.1 Android Development] yiannisthegreek:
That would be absolutely awesome!!!
[Galaxy Note 10.1 Android Development] TweakerL:
The required user input is not a multiple question as made available by Aroma installer, at least to my knowledge. Moreover, it requires the user to type information, which cannot be done in any recovery other than TWRP since that's the only one that has any built in keyboard function. That being the case, I'm not gonna bother trying to make a zip that "might" work with aroma, with maybe one recovery but not another.

But even more important than anything else, using this script REQUIRES more knowledge than is necessary to install it, because if something goes wrong you will NEED that knowledge to get things working properly again or to make it work for your device. This isn't a simple script like 99.9% of init.d scripts out there. So, if you're clueless, you shouldn't be using it anyways.

Also, on a side note, I haven't given up on getting the script to work with devices without /data/media. I simply have been swamped with work and other things and I know that if I try to rush a solution that it's just gonna fail and cause problems. So I'm waiting until I can give the proper focus that this deserves. I'm also asking some friends to see if any of them have an old device I can borrow to run tests on because after trying for several hours with different people over IRC/Partychat, developing without the device in hand has proved a mute point.

If anyone has an old device that they no longer need or that I might borrow, that they'd like to donate/lend to the cause, It'd be greately appreciated. Feel free to PM me and I'll tell how to get it to me, I'll even pay/split the shipping costs if it's here in the US.
[Galaxy Note 10.1 Android Development] aadiflesher:
Hello!

If you need any more help testing the script, feel free to ask. You can send me a PM or we can talk over the partychat.

I know it is not the same as having a device in your hands, but I can offer my support within the limits of my knowledge.

Unfortunately, I only have one device, that I use every day, so I can`t help by donating.

Have a nice day :)
[Galaxy Note 10.1 Android Development] RakeshRaja:
Will thus work for note 2? I tried but nothing happens
[Galaxy Note 10.1 Android Development] shrek4224:
I would like to know this as well!
[Galaxy Note 10.1 Android Development] blz_phnx:
It should, if it has /data/media
[Galaxy Note 10.1 Android Development] AshtonTS:
when I answer yes to the SD mount point question, it acts like it's installing and scrolls through a bunch of code, then the phone reboots. when I go into /sdcard/Tweaked.Scripts/A2SD/options, there is no /vars folder.. only 2 files: install_vars and USER_OPTIONS and when I run the log cat command, it doesn't output anything relevant, and when I run mounts, nothing comes uo
[Galaxy Note 10.1 Android Development] ironmanapa:
+1

The exact same thing is happening to me. any ideas?
[Galaxy Note 10.1 Android Development] nex86:
Okay I followed all steps. I only wanted to move /data/media/Android and when I check mount I get

/dev/block/mmcblk1p2 on /data/media/Android type ext4 (rw,nosuid,nodev,noatime,barrier=1,data=ordered

twice.

it seemed like it was ready (device_is_ready) and all steps did appear in the A2SD, so I made the final step my changing deletepostmove= to 'true'.

After a restart all apps are stopping and I'm not able to do anything anymore.

so what was the problem ?

I formatted my 64GB sd with paragon hard drive manager 12, I made two 32/32GB partition one fat32 and the second ext4. both are primary partitions.

how can I change everything back to normal to do all steps again? for some odd reason my device doesn't turn off anymore, no matter for how long I hold the power button, it restarts in a endless loop and I can't seem to enter CWM anymore.
[Galaxy Note 10.1 Android Development] clive48:
Hi

I have N8000 16GB with 64GB Ext SD card formatted with exFat. Will this soln work for me?

I dont want to reformat my card to ext4 etc.

Pl advice asap

Also why no posts for 2 weeks? Is this thread on New Year vacation or is like closed by creator?

Pl advise

Else suggest best way to use my Ext SD card for Apps etc instead of Internal SD on my N8000

Thanks

For Testing, I have installed a 16GB Micro SD card & formated it inside Note N8000. I hope N8000 default format is exFat. Post that i followed instructions in Post 2 but am getting USer Options & Inst-Vars. No Vars.

the output of Code: mount and Code: cat /proc/partitions is attached.

Pl suggest way fwd. And I want to install my 64GB card finally. DO I need to partition it or can I just use the full 64GB? If partitioning is reqd then what tool to use, what is partiton size & what names of partitions.

Pl make script as per that & share

Thanks & Wishing you a Happy New Year 2013 in advance :laugh:
[Galaxy Note 10.1 Android Development] K1LLER HORNET:
So does this method work?

I'm on stock jb at the moment. A noob guide would be greatly appreciated.
[Galaxy Note 10.1 Android Development] gmfeny:
I can't get this to work either :(
[Galaxy Note 10.1 Android Development] nishdesai95:
Does this need rooting of device?
[Galaxy Note 10.1 Android Development] aadiflesher:
Yes.
[T-Mobile, Samsung Galaxy SIII] mikewikkid:
I recently purchased this SGS3, installed CWM and rooted it. Everything was going great - but then i was offered the most recent OTA update, so i reflashed the stock recovery via Odin, did the update which is:

4.0.4

T999EVLH2

same kernel

bld #: IMM76D.T999EVALH2

now, its saying the phone is no longer rooted (yet superSU is still there) but checkroot is saying that it isnt rooted, and no matter what i do, flashing CWM via Odin passes, but will not stick (as in, i boot into recovery mode and that damned stock recovery is STILL THERE, wtf?)

can anyone offer any assistance or insight into my issue.

Thanks

~Wikkid
[T-Mobile, Samsung Galaxy SIII] Aerowinder:
Flash CWM v6. If that alone doesn't fix it, disable auto reboot in Odin, after flash, reboot phone manually into recovery mode.
[T-Mobile, Samsung Galaxy SIII] mikewikkid:
thats the version i've been using. tried to redownload, both touch and regular versions. tried disabling autoreboot and manually rebooting into recovery mode, but the recovery mode remains stock recovery. super weird.
[T-Mobile, Samsung Galaxy SIII] Aerowinder:
Can you describe for me, in the greatest detail possible, how to reproduce your exact problem?

I've done it countless times in the past days, and it has worked every time.
[T-Mobile, Samsung Galaxy SIII] mikewikkid:
as have i, for myself and for others - this is the first time an Odin flash says pass but simply wont take.

Like i said, i flashed stock recovery onto phone using Odin3 1.78 while in download mode

rebooted and took OTA update a few days ago

now i tried to flash multiple versions of CWM v6, touch and regular using Odin and everything looks good, it says pass and everything.

when i reboot into recovery mode by holding powerup, home, and power - it takes me into stock recovery still.

its as if the recovery is either not being written to the right place or it is loading from another location on the device. i dont know how to make this issue happen on a phone, ive never seen it happen before myself. which is why i come to the pros seeking help - im no n00b myself, but i certainly am no developer.
[T-Mobile, Samsung Galaxy SIII] Aerowinder:
Proper CWM Touch: http://xdaforums.com/attachment.php?attachmentid=1287723&d=1346158787

Proper Odin: http://db.tt/jv6pHg8b