/0 and emulated? - Nexus 10 Q&A, Help & Troubleshooting

What did I screw up to have what looks like a duplicate of my files?
Sent from my Nexus 10 using Tapatalk HD

Dagrog said:
What did I screw up to have what looks like a duplicate of my files?
Sent from my Nexus 10 using Tapatalk HD
Click to expand...
Click to collapse
Good news, you didn't screw up!
The legacy folder is just a link (like a shortcut) to the emulated folder (which has the 0 folder in it).
Example from the terminal below, notice the first character in each folder/link line... the "d" is for a real directory (folder) and the "l" is for link. The arrow after "sdcard0" shows where the link redirects. You only have one copy of data.
$ cd /storage
$ ll
d---r-x--- root sdcard_r 2013-06-22 18:58 emulated
lrwxrwxrwx root root 2013-06-22 18:56 sdcard0 -> /storage/emulated/legacy

Thanks
Sent from my Nexus 10 using Tapatalk HD

Related

Installed Modules copied over at 0k??

So i have upgraded to the new r11 zimage and tried to install the latest modules but only some have copied over as others have copied but at 0k??
there are nine that will not copy over
Any ideas?
Enough free space?
Did you copy it using Android's USB mode? That tends to corrupt files, for installing modules I use Android Commander.
Yea plenty of free space others have copied fine. It's copying the file over but its empty 0k I'm using a root explorer to copy over as there are a few files to copy with this update
Sent From My HD2 using xda Android app
I shall take a look at that
shadiku said:
Did you copy it using Android's USB mode? That tends to corrupt files, for installing modules I use Android Commander.
Click to expand...
Click to collapse
Sent From My HD2 using xda Android app
So I have installed android commander and got that working and when i push the files that are missing it says no space left on drive so I'm gonna search that now any help here is appreciative
Sent From My HD2 using xda Android app
nope
still no joy, the only thing i can think of is the android file system has become corrupt?
android is working still so ill just wait for a build with the latest kernal
your trying to copy the files without root privileges.
in the term the first thing you need to do is type su
that will change the $ to a #
then copy the files.
cp /sdcard/*.ko /system/lib/modules
I shall try that but I wonder why some went over then but others did not
Thank you
aarons6 said:
your trying to copy the files without root privileges.
in the term the first thing you need to do is type su
that will change the $ to a #
then copy the files.
cp /sdcard/*.ko /system/lib/modules
Click to expand...
Click to collapse
Sent From My HD2 using xda Android app
No that didn't work still says no space left on device
DJGurth said:
I shall try that but I wonder why some went over then but others did not
Thank you
Sent From My HD2 using xda Android app
Click to expand...
Click to collapse
Sent From My HD2 using xda Android app
you have too less space in your system.ext2 data file.
see here: http://forum.xda-developers.com/showpost.php?p=8103070&postcount=813 and the following posts for solutions!
Brilliant that was it, wonder why that post didn't show up in my search ? Thanks for your help
Sent From My HD2 using xda Android app

Not enough space

My KF is running out of space, with no media (music or movie) stored
I was surprised because I stored nothing inside other than a couple of TWRP backup (stock kindle and cm9), TB (one profile) and maybe 30 apps installed.
Where do the space go? If I want to completely wipe sd folder, how can I do that?
Go back and read your own post you answered your own question you have a couple of back ups either go check the file size of the back ups or delete the ones you don't need.
asb2164 said:
Go back and read your own post you answered your own question you have a couple of back ups either go check the file size of the back ups or delete the ones you don't need.
Click to expand...
Click to collapse
I understand backups need space but there is no way a couple backup Roms and TB taking almost 5GB.
Sent from my GT-P1000 using xda premium
Try the following:
Code:
adb shell
cd /sdcard
du -sm * | sort -n
This should give you a list of all the directories on the sdcard and how much space each is taking in megabytes. Focus on the directory(ies) on the bottom of the list.
Code:
...
19 Documents
21 Books
31 Android
175 TitaniumBackup
531 Download
1588 TWRP
Needless to say, my biggest two are the Download folder (where I keep my ROMs) and the TWRP dir, where I have 4 backups.
See where your space is going.
Code:
$ du -sm TWRP/BACKUPS/0000000000000000/* | sort -n
318 TWRP/BACKUPS/0000000000000000/2012-02-06_CM9
361 TWRP/BACKUPS/0000000000000000/2012-02-09--19-50-29
369 TWRP/BACKUPS/0000000000000000/2012-02-05_Amazon_6.2.2
540 TWRP/BACKUPS/0000000000000000/2012-02-13--18-11-06
Over half a gig for that last backup.
Just plug you kindle into your computer, find the backup files you made and delete all of them except the latest one you have. There is no point in holding onto old backup files that you will never use.
one backup can take up as much as a gig or more.
Sent from my HTC Glacier using xda premium
.Trashes
1.Get root explorer
2.Navigate to the sdcard
3.Take a look at the '.Trashes' folder NOT the '._.Trashes' folder.
4. Delete anything you don't need! My .Trashes folder was taking up almost 1.5Gb.
Hope it helps!
EDIT: After you go into the '.Trashes' folder check both the '501' and '502' folders.
gadgetman13 said:
Try the following:
Code:
adb shell
cd /sdcard
du -sm * | sort -n
This should give you a list of all the directories on the sdcard and how much space each is taking in megabytes. Focus on the directory(ies) on the bottom of the list.
Code:
...
19 Documents
21 Books
31 Android
175 TitaniumBackup
531 Download
1588 TWRP
Click to expand...
Click to collapse
...or, just try DiskUsage if you don't want to use your PC.
Radon_22 said:
...or, just try DiskUsage if you don't want to use your PC.
Click to expand...
Click to collapse
Hehe... I guess my unix roots are showing.

Can't Delete nandroid backup

Ok, never seen this before and suspect SD card corruption.
I did a nandroid backup today before I flashed a custom kernel. Everything went well. Now I am getting low space alerts (got the 8GB model). I want to delete the backup which comes in at 1.8GB. Problem is, the permissions are wacky - the folder perms are rwsrwsr-t (775 with set uid, set gid and sticky).
I can't delete or change permissions with either root explorer or from the shell as root!
Has anyone seen this before, or have a solution ?
timekillerj said:
Ok, never seen this before and suspect SD card corruption.
I did a nandroid backup today before I flashed a custom kernel. Everything went well. Now I am getting low space alerts (got the 8GB model). I want to delete the backup which comes in at 1.8GB. Problem is, the permissions are wacky - the folder perms are rwsrwsr-t (775 with set uid, set gid and sticky).
I can't delete or change permissions with either root explorer or from the shell as root!
Has anyone seen this before, or have a solution ?
Click to expand...
Click to collapse
Same here. No clue how to get rid of it.
This is what I did when I switched from CWM to TWRP
1. Get Root Explorer
2. Navigate to /data/media/clockworkmod/backup
3. Delete whatever backups
4. ?????
5. PROFIT!
Sent from my i777 using xda app-developers app
Its a common issue with some versions of CWM, but Koush has released a (radically) new version
fix is as Wiithepeng said
wiithepeng said:
This is what I did when I switched from CWM to TWRP
1. Get Root Explorer
2. Navigate to /data/media/clockworkmod/backup
3. Delete whatever backups
4. ?????
5. PROFIT!
Sent from my i777 using xda app-developers app
Click to expand...
Click to collapse
"I can't delete or change permissions with either root explorer or from the shell as root!"
If I delete with root explorer I get "delete failed". If I adb shell in and `busybox rm -fR` I get "Operation not permitted"
With those steps?
Sent from my i777 using xda app-developers app
When I tried deleting from /mnt/sdcard or /sdcard or /storage/sdcard0 it would not work until I tried /data/media
Sent from my i777 using xda app-developers app
Phonic posted a script in the "[RECOVERY] r3 (6.0.0.4) - Interim ClockworkMod recovery for Nexus 7" thread in the Android Dev forum,
when executed thru CWM will delete undeleteable backups
didnt use it myself, I used Solid Explorer to delete /data/media/clockworkmod/backup/......
Ok, I rebooted into recovery and was able to delete the files with adb shell.
wiithepeng: Sorry, didn't see the /data/media path at first glance, I was going straight to /sdcard - so it might have worked your way.
Thanks for the help.
No problem. Glad you delete those backups
Sent from my i777 using xda app-developers app
Try THIS. Common problem and fixed in the newest version of the Recovery from that thread AND apparently the newest CWM directly from Koush.
wiithepeng said:
This is what I did when I switched from CWM to TWRP
1. Get Root Explorer
2. Navigate to /data/media/clockworkmod/backup
3. Delete whatever backups
4. ?????
5. PROFIT!
Sent from my i777 using xda app-developers app
Click to expand...
Click to collapse
Thank Bro, this was bugging the crap out of me. I had no idea to navigate through data/media etc. Good fix!
wiithepeng said:
This is what I did when I switched from CWM to TWRP
1. Get Root Explorer
2. Navigate to /data/media/clockworkmod/backup
3. Delete whatever backups
4. ?????
5. PROFIT!
Sent from my i777 using xda app-developers app
Click to expand...
Click to collapse
Thanks! I was about to tear my hair out! I used ES File Explorer though.
wiithepeng said:
This is what I did when I switched from CWM to TWRP
1. Get Root Explorer
2. Navigate to /data/media/clockworkmod/backup
3. Delete whatever backups
4. ?????
5. PROFIT!
Sent from my i777 using xda app-developers app
Click to expand...
Click to collapse
Thanks bro... Root Explorer is premium so even ES File Explorer works as long as you are rooted and grant it SU access, which would be anyway as you have CWM.
Sent from my Nexus 7 using Tapatalk 2
wiithepeng said:
When I tried deleting from /mnt/sdcard or /sdcard or /storage/sdcard0 it would not work until I tried /data/media
Sent from my i777 using xda app-developers app
Click to expand...
Click to collapse
This worked for me :good:
Wahay, Fix ed
I was going to make a zip and flash as i thought all was lost but then I just fixed this via adb using the following commands, I didn't get any errors and it was successful, here is what I did,
# cd /data/media/clockworkmod/
# chmod 777 backup
# cd backup
# rm -rf <backupfilename>
Hope this helps others,

Need to get CWM Nandroid off of my phone. Can't find in mnt, data, backups... WTF!?

I've read all of the similar threads, can't find it in mtn/shell, data/ only has starbucks and titanium, backups folder. Between Storage, SD, 0/, emulated, and legacy folders, something's gotta be hiding.
When I boot into recovery I'll find it in the restore options, but I need it off of the phone to flash to a replacement device. Any help?
I'm going through the exact situation /;
Sent from my Nexus 4 using xda app-developers app
theedon323 said:
I'm going through the exact situation /;
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
You can use Root Explorer to go to /data/media or use adb shell and then run "su" to get root privileges and then the directory will be visible.
The directory is not visible as a normal user and need superuser permissions.
I LOVE THIS MAN/WOMAN. I'd like to give you a present. A hard written card. A bumper. A piece of chocolate.
gauravsri said:
You can use Root Explorer to go to /data/media or use adb shell and then run "su" to get root privileges and then the directory will be visible.
The directory is not visible as a normal user and need superuser permissions.
Click to expand...
Click to collapse
Do I need the blobs? Never seen em before...
FishFan319 said:
I LOVE THIS MAN/WOMAN. I'd like to give you a present. A hard written card. A bumper. A piece of chocolate.
Click to expand...
Click to collapse
FishFan319 said:
Do I need the blobs? Never seen em before...
Click to expand...
Click to collapse
Yes, you need to copy the blobs as well as backup directory.
From what I understand, Backup directory is now very small in size and backups are done incrementally by pointing to blobs (which are the actual data).

[i9100] (SHARE) Swap SdCard init.d script for CM11/4.4.2

Happy new year for everyone here..
First of all sorry if my english bad..
Helo S2 community i'm new here..
i was silent reader in this great XDA Dev-site for a year.. now i'm decide to join XDA for sharing a cool stuff i have for you all.. and for help other too if i can..
i found this script in this page :
forum.xda-developers.com/showthread.php?t=2584862
Credit goes to script maker Souffre..
i only make dev/block mount point to work with our i9100.. i have tested this script and so far working good.. tested binding Real Racing 3 folder and running game without problem.. but for safety make a backup your sdcard content to pc, backup internal & external sdcard, cwm backup too if necessary..
this script will placed to your system/etc/init.d folder
tested with CM11 by infected Nightly 20140101..
Thank you works sweet with resurrection remix
Sent from my GT-I9100 using XDA Premium HD app
brainbeatuk said:
Thank you works sweet with resurrection remix
Sent from my GT-I9100 using XDA Premium HD app
Click to expand...
Click to collapse
You're welcome my friend, thanks for visiting my thread..
Step by Step
Noriyuki_Fariz said:
Happy new year for everyone here..
First of all sorry if my english bad..
Helo S2 community i'm new here..
i was silent reader in this great XDA Dev-site for a year.. now i'm decide to join XDA for sharing a cool stuff i have for you all.. and for help other too if i can..
i found this script in this page :
forum.xda-developers.com/showthread.php?t=2584862
Credit goes to script maker Souffre..
i only make dev/block mount point to work with our i9100.. i have tested this script and so far working good.. tested binding Real Racing 3 folder and running game without problem.. but for safety make a backup your sdcard content to pc, backup internal & external sdcard, cwm backup too if necessary..
this script will placed to your system/etc/init.d folder
tested with CM11 by infected Nightly 20140101..
Click to expand...
Click to collapse
Hi
Thanks for the script. I'm trying to do the swap on an S2 with SuperNexus but can't paste the script into the init.d folder (I'm guessing permissions). Could you please give me a step by step of how to get the script in and what to do with the META-INF folder?
Thanks
I just flashed thru cwm recovery here is script I pulled. Is supernexus a cm11 build? If no init.d try installing dorimanc go in stweaks app and enable init.d control may help as did for me on linaro cm11.
#!/system/bin/sh
LOG=/data/extsd2.log
echo 'mark 1' > $LOG
umount /storage/sdcard0
umount /storage/sdcard1
umount /mnt/secure/asec
umount /mnt/media_rw/sdcard0
umount /mnt/media_rw/sdcard1
mount -t vfat -o umask=0000,uid=1023,gid=1023 /dev/block/vold/179:9 /mnt/media_rw/sdcard0 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1023,gid=1023 /dev/block/vold/179:9 /storage/sdcard0 1>>$LOG 2>>$LOG
echo 'mark 2' >> $LOG
mount -t vfat -o umask=0000,uid=1023,gid=1023 /dev/block/vold/259:3 /mnt/media_rw/sdcard1 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1023,gid=1023 /dev/block/vold/259:3 /storage/sdcard1 1>>$LOG 2>>$LOG
echo 'mark 3' >> $LOG
mount -t vfat -o umask=0000,uid=1023,gid=1023 /dev/block/vold/179:9 /mnt/secure/asec 1>>$LOG 2>>$LOG
Sent from my GT-I9100 using XDA Premium HD app
CliffMcl said:
Hi
Thanks for the script. I'm trying to do the swap on an S2 with SuperNexus but can't paste the script into the init.d folder (I'm guessing permissions). Could you please give me a step by step of how to get the script in and what to do with the META-INF folder?
Thanks
Click to expand...
Click to collapse
You in SuperNexus 4.0 ? If yes then this script should work.. Just flash in CWM, As far i know stock SuperNexus kernel based on CyanogenMOD kernel (correct me if wrong) so it have init.d support.. Permission is rwe rxe rxe or rwe rwe rwe..
Noriyuki_Fariz said:
You in SuperNexus 4.0 ? If yes then this script should work.. Just flash in CWM, As far i know stock SuperNexus kernel based on CyanogenMOD kernel (correct me if wrong) so it have init.d support.. Permission is rwe rxe rxe or rwe rwe rwe..
Click to expand...
Click to collapse
Yes running SuperNexus 4.0 and it is based on CM11. I can see the system/etc/init.d but I can't work out what to use to get the script into the folder. Also I don't know what to do with the META-INF folder from the zip file.
Thanks for your patience with a Windows geek who is on a steep learning curve
EDIT - DOH!! Root Explorer would have been a good idea.
I've copied the script over, set permissions, ignored thre META-INF and rebooted. SD0 & SD1 swapped successfully
CliffMcl said:
Yes running SuperNexus 4.0 and it is based on CM11. I can see the system/etc/init.d but I can't work out what to use to get the script into the folder. Also I don't know what to do with the META-INF folder from the zip file.
Thanks for your patience with a Windows geek who is on a steep learning curve
EDIT - DOH!! Root Explorer would have been a good idea.
I've copied the script over, set permissions, ignored thre META-INF and rebooted. SD0 & SD1 swapped successfully
Click to expand...
Click to collapse
Glad it work for you.. META-INF not needed if you place script manually, just init.d..
Hi I was wondering if you could make one for my leveno a3000 it is using fuse and has one 13gb partition for internal SD combined. I can get the vold.stab for you to look at if your interested? Please
Sent from my GT-I9100 using XDA Premium HD app
will try bro ....
Sent from my GT-I9100 using XDA Premium 4 mobile app
brainbeatuk said:
Hi I was wondering if you could make one for my leveno a3000 it is using fuse and has one 13gb partition for internal SD combined. I can get the vold.stab for you to look at if your interested? Please
Sent from my GT-I9100 using XDA Premium HD app
Click to expand...
Click to collapse
Will see what i can do.. have you try modify your a3000 vold.fstab before ?
mohaxs said:
will try bro ....
Sent from my GT-I9100 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
This for you Bro
1. Tinggal hapus script nya aja gan di system/etc/init.d file nya "swapFIXcm11" lalu reboot
2. kalo ane sih ga ada yg ilang.. cuman seperti yg ane rekomen di trit baik nya backup aja data-data agan yg di rasa perlu.. cuman buat jaga-jaga aja..
nanti gunain trit aja ya gan buat diskusi nya, karena lebih banyak yang bisa bantu agan
No I haven't touched it as I don't have confidence, I hallways break things lol I have pm you the details
Sent from my IdeaTab A3000-F using XDA Premium HD app
brainbeatuk said:
No I haven't touched it as I don't have confidence, I hallways break things lol I have pm you the details
Sent from my IdeaTab A3000-F using XDA Premium HD app
Click to expand...
Click to collapse
Try swap /storage/sdcard0 and /storage/sdcard1 in your vold.fstab using root explorer or notepad , i think it will swap your sd..
Didn't work like that but I found workaround. I mount sdcard1 and didn't mount a 2nd card. Now internal shows 13gb capacity 3.5 free with 33gb app data. So works well I cannot move apps to SD as I think the ROM is made without option. Also titanium backup still shows it as extsd. Anyways thanks for the spur to try it out. I'll see if I can modify your script
Edit: It didn't work as planned my way as it still was downloading internally, I am now back to normal using link2sd and foldermount pro, actually I try move apps to SD using native2sd option in link2sd. App told me native2sd is unavailable as internal SD card is emulated from internal nand. Thanks for ya help though I presume my ROM isn't asop, even in app settings there no option to move to SD, only games like gameloft ever put data there, which I am then bind mounting extsdcard/obb over, only foldertmount can do bind though, my android tuner script doesn't work ever.
Sent from my GT-I9100 using XDA Premium HD app
:crying:
This script was working on slimkat 4.4.2 .. (by slimroms)
now i'm using slimkat 4.4.4 and the script is not working.
nothing happen after reboot the phone
Can someone help me?
Galaxy S2 i9100\slimkat 4.4.4
thats a good script, so usefull
Works fine on NamelessRom KK 4.4.4
This script is perfect for the NamelessRom 4.4.4 KitKat based, Tnx! (i9100P)
Hi i'm glad this script work for you all guys..
Noriyuki_Fariz said:
Happy new year for everyone here..
First of all sorry if my english bad..
Helo S2 community i'm new here..
i was silent reader in this great XDA Dev-site for a year.. now i'm decide to join XDA for sharing a cool stuff i have for you all.. and for help other too if i can..
i found this script in this page :
forum.xda-developers.com/showthread.php?t=2584862
Credit goes to script maker Souffre..
i only make dev/block mount point to work with our i9100.. i have tested this script and so far working good.. tested binding Real Racing 3 folder and running game without problem.. but for safety make a backup your sdcard content to pc, backup internal & external sdcard, cwm backup too if necessary..
this script will placed to your system/etc/init.d folder
tested with CM11 by infected Nightly 20140101..
Click to expand...
Click to collapse
Hi,
I've tried this mod while using xiaomi.eu_multi_GT-I9100_4.9.19_v5-4.4, and it's working flawlessly
Thanks Noriyuki_Fariz for an awesome mod!!

Categories

Resources