[MOD] Stock Kernel include init.d run parts & Datamount BETA - Galaxy S 4 i9500 Android Development

Here is the Newest Kernel from XXUBMF8 4.2.2 and Already Include init.d run parts
http://d-h.st/vpa
This init'd mod named datamount. It works perfectly before on Android 4.1.2 Like I9300 N7100
But I guess it's Android 4.2.2 multi-user feature. internal sdcard has to many mount point and symlink. I can't figure out what is real!
My datamount will execute while system boot up. Then check if it's sets folder exists. like obb data gameloft glu android DIR...
If it's exists, then mount bind to target path same dir name different device path. It seems perfectly. But on Android 4.2.2. No matter what I do. target will always mounted to /mnt/shell/emulated/0/path.
I choose the target is /storage/extcard/ or /storage/emulated/0 etc... it failed. hope somebody can explain the what's problem:laugh:
here is the modView attachment datamount.zip

Yeah, It works differently on 4.2.2, the internal memory is not divided in solid values, everytime that you boot up half goes for the DATA partition, and the other Half for the SDCARD partition, so first we need to disable that memory management, and mount all internal memory to the DATA partition, and all the microsd card memory to the SDCARD partition
Question?
Does it increases the counter? Will I lose my software originality?

Fast as hell
GT-I9500 cihazımdan Tapatalk kullanılarak gönderildi

ChunD.K said:
Here is the Newest Kernel from XXUBMF8 4.2.2 and Already Include init.d run parts
http://d-h.st/vpa
This init'd mod named datamount. It works perfectly before on Android 4.1.2 Like I9300 N7100
But I guess it's Android 4.2.2 multi-user feature. internal sdcard has to many mount point and symlink. I can't figure out what is real!
My datamount will execute while system boot up. Then check if it's sets folder exists. like obb data gameloft glu android DIR...
If it's exists, then mount bind to target path same dir name different device path. It seems perfectly. But on Android 4.2.2. No matter what I do. target will always mounted to /mnt/shell/emulated/0/path.
I choose the target is /storage/extcard/ or /storage/emulated/0 etc... it failed. hope somebody can explain the what's problem:laugh:
here is the modView attachment 2076423
Click to expand...
Click to collapse
The link is no longer available
Enviado desde mi GT-I9500 usando XDA Premium HD app

Related

[Cuestion] Swap Partition on CyanogenMod 7.2

I tried every way, but I can not use the swap partition on my WFS.
I installed the latest version of the ROM and the Kernel, but I can't make it work.
Does anyone know what should I do to run the "Swap Partition" on my phone?
Go through this.
http://wiki.cyanogenmod.com/wiki/Swap_and_Compcache
The cyanogenmod team feels that swap doesn't serve it's purpose on an Android device. To quote them
"This question is hotly debated, but you almost definitely do not need swap or compcache. The only exception to this may be if the device is a first generation device (i.e. HTC Dream or HTC Magic). If you think swap or compcache may make the device faster, feel free to follow the directions below."
Click to expand...
Click to collapse
And the WFS is not a first generation device
If you still want to go ahead with it, that link provides a how-to.
But the problem is that with this ROM my phone does not recognize the swap partition. I would like to post on its own thread, but I can not because I am a new user.
DanHidalgo said:
I tried every way, but I can not use the swap partition on my WFS.
I installed the latest version of the ROM and the Kernel, but I can't make it work.
Does anyone know what should I do to run the "Swap Partition" on my phone?
Click to expand...
Click to collapse
You have to create a mount script and copy it to /system/etc/init.d and give it the same permissions all the other files in init.d
Attached is the code to use if you have swap as the third partition on your SD card. Remove the .txt extension and place it in /system/etc/init.d and give it the appropriate permissions then reboot
Use the command "free" in a terminal session to verify swap is active and working.
It should be pretty straightforward to modify it to be the second if you aren't using an SD Ext partition for programs.
The code is:
Code:
#!/system/bin/sh
#Checks for a swap partition on mount 3 of the SD card and use it for swap partition.
if [ -b /dev/block/mmcblk0p3 ];
then
#Uncomment the line below to adjust swappiness. Default is 60 I believe
# echo 20 > /proc/sys/vm/swappiness;
swapon /dev/block/mmcblk0p3;
fi;
Change the line:
if [ -b /dev/block/mmcblk0p3 ];
to
if [ -b /dev/block/mmcblk0p2 ];
If you only have your FAT32 Primary and your Swap partition and no SDExt
I will try it this evening. Some people told me that oboe is that I created the Swap Partition with the recovery and I have to create it with the PC.
If I get it working I'll post my results. If not you will see me here again.
Enviado desde mi HTC Wildfire S usando Tapatalk
d33ps1x said:
You have to create a mount script and copy it to /system/etc/init.d and give it the same permissions all the other files in init.d
Attached is the code to use if you have swap as the third partition on your SD card. Remove the .txt extension and place it in /system/etc/init.d and give it the appropriate permissions then reboot
Use the command "free" in a terminal session to verify swap is active and working.
It should be pretty straightforward to modify it to be the second if you aren't using an SD Ext partition for programs.
The code is:
Code:
#!/system/bin/sh
#Checks for a swap partition on mount 3 of the SD card and use it for swap partition.
if [ -b /dev/block/mmcblk0p3 ];
then
#Uncomment the line below to adjust swappiness. Default is 60 I believe
# echo 20 > /proc/sys/vm/swappiness;
swapon /dev/block/mmcblk0p3;
fi;
Change the line:
if [ -b /dev/block/mmcblk0p3 ];
to
if [ -b /dev/block/mmcblk0p2 ];
If you only have your FAT32 Primary and your Swap partition and no SDExt
Click to expand...
Click to collapse
When I try to move the script to the specific file I get: failed to copy, or failed to move. How could I copy or move the script in /system/etc/init.d and give all permissions? I am using ES File Explorer and ASTRO. Should I move the zipped file or only the script? I couldn't move none of them
Portugah said:
When I try to move the script to the specific file I get: failed to copy, or failed to move. How could I copy or move the script in /system/etc/init.d and give all permissions? I am using ES File Explorer and ASTRO. Should I move the zipped file or only the script? I couldn't move none of them
Click to expand...
Click to collapse
You have to mount system partition as RW to be able to manipulate with files there, big white button "Mounr R/W" in the upper part of the Root explorer app while you are in /system/etc/init.d folder. Then you put there swap.txt file that d33ps1x provided up in the post, rename it just to swap and reboot phone.
I did that with almost every version of cm7 from the begining (in which kernel allowed that) and every time it worked, tnx to d33ps1x
kobredabre said:
You have to mount system partition as RW to be able to manipulate with files there, big white button "Mounr R/W" in the upper part of the Root explorer app while you are in /system/etc/init.d folder. Then you put there swap.txt file that d33ps1x provided up in the post, rename it just to swap and reboot phone.
I did that with almost every version of cm7 from the begining (in which kernel allowed that) and every time it worked, tnx to d33ps1x
Click to expand...
Click to collapse
Root explorer is a paid app. Is there any other app I could do that?
Portugah said:
Root explorer is a paid app. Is there any other app I could do that?
Click to expand...
Click to collapse
Total commander for android can do same:
http://forum.xda-developers.com/showthread.php?t=1619734
and it's free
kobredabre said:
Total commander for android can do same:
http://forum.xda-developers.com/showthread.php?t=1619734
and it's free
Click to expand...
Click to collapse
Once installed the app, how do I grant permissions to the file? the link shows images from the older version.
Portugah said:
Once installed the app, how do I grant permissions to the file? the link shows images from the older version.
Click to expand...
Click to collapse
Push and hold the file, choose properties and then hit first button right from the file name and current permissions to expand the menu
kobredabre said:
Push and hold the file, choose properties and then hit first button right from the file name and current permissions to expand the menu
Click to expand...
Click to collapse
I moved the file to the specific folder and I restarted my phone. Opening a2sd the swap button was turned off. I opened the terminal and I typed free, the results are 0-0-0. I didn't work.
Portugah said:
Once installed the app, how do I grant permissions to the file? the link shows images from the older version.
Click to expand...
Click to collapse
I granted permissions to the file using Total Commander app. Thank you. But it looks like it is not working yet.
Portugah said:
I granted permissions to the file using Total Commander app. Thank you. But it looks like it is not working yet.
Click to expand...
Click to collapse
Then the problem can be with kernel on ROM you are using, basic thing is that kernel needs to be abble to support swap for swap to even work... Can't help you much there since you are probably on marvelc version according to you'r country flag, i'm on diferent version. Some1 with same model as yours could help you tough
Is there any way to install another ROM that support swap? which ROM should I use? is there any tutorial?
Portugah said:
Is there any way to install another ROM that support swap? which ROM should I use? is there any tutorial?
Click to expand...
Click to collapse
The [2nd] above post is correct. Swap support is enabled in some custom kernels. If you're looking for another ROM, you're going to primarily ask about the kernel included with that ROM. Stock kernels do NOT support swap. You can enable swap [if you have a supporting kernel] via A2SDGUI or terminal... read up and familiarize yourself with linux swap.. since Android is a branch of Linux; same principles apply
Rob
Sent from my HTC_A510c using Tapatalk 2
This says it's possible to enable swap and compcache on CM7.2, but the howto wiki link is dead
To answer you question directly, by default the swap and Compcache schemes are disabled, but if you still feel the need to use them, above link provides you with a how-to.
So, yes, the CyanogenMod 7.2 supports swap and its usage needs to be activated.
Click to expand...
Click to collapse
Any idea how to do this?
For me the same question. I'm investigating since 1 week, tried scripts etc. no chance
Nexus One,
4EXT recovery (needed for correct sd-ext formatting)
CM 7.2
swap partition is there but not used.
What could i do to enable the swap partition?
Regards,
Marc
Hello,
I have the stable release cyanogenmod 7.2.0.
Swap is not working and gives following message:
swapon: /dev/block/mmcblk0p3: Function not implement
I found some notes saying that the problem is the kernel not supporting
swap. Which kernel can I use with cyanogenmod 7.2.0 with swap support?.
Thanks for your help.

sdcard0 and sdcard?

I have a Sprint GNex running RU Jelling M1 RC2 and I have two internal storages (if that makes sense). I have sdcard/ and I have storage/sdcard0. Both seem to contain all data on my sd card and appear to be the exact same. I just don't know why there is two. Anyone know?
symlinks.
Elaborate? Sorry but I do not know what that is/means?
DRatJr said:
Elaborate? Sorry but I do not know what that is/means?
Click to expand...
Click to collapse
In computing, a symbolic link (also symlink or soft link) is a special type of file that contains a reference to another file or directory in the form of an absolute or relative path and that affects pathname resolution
Source Wiki.
Ok but it gets weirder. When I download an attachment from Yahoo mail and save it, a pic for example, it is in both destinations, but in gallery shows in sdcard0. why is that?
i believe this is the bug ppl are facing with jelly bean(including me).
jb seems to use the sdcard0 so previous files dont show up in apps such as gallery, music, etc..
i might be wrong but hope someone clears this up for the people having issues...
bluemoon1221 said:
i believe this is the bug ppl are facing with jelly bean(including me).
jb seems to use the sdcard0 so previous files dont show up in apps such as gallery, music, etc..
i might be wrong but hope someone clears this up for the people having issues...
Click to expand...
Click to collapse
It's not a bug. It's by design. The physical media of your sdcard exists as /data/media. On boot, your phone uses /data/media to create a virtual sdcard, found at /storage/sdcard0. After that, symbolic links are set up that point /sdcard and /mnt/sdcard to /storage/sdcard0.
The data exists in one place, /data/media. The rest are essentially just pointers to the information for backward/forward compatibility.
Edit: Code snippets showing the above. Note, these are from my VZW Nexus:
init.tuna.rc
Code:
on early-init
export EXTERNAL_STORAGE /storage/sdcard0
mkdir /storage 0050 system sdcard_r
mkdir /storage/sdcard0 0000 system system
# for backwards compatibility
symlink /storage/sdcard0 /sdcard
symlink /storage/sdcard0 /mnt/sdcard
mkdir /mnt/usbdisk 0755 system system
on post-fs-data
# we will remap this as /storage/sdcard0 with the sdcard fuse tool
mkdir /data/media 0770 media_rw media_rw
chown media_rw media_rw /data/media
[...]
# create virtual SD card at /storage/sdcard0, based on the /data/media directory
# daemon will drop to user/group system/media_rw after initializing
# underlying files in /data/media will be created with user and group media_rw (1023)
service sdcard /system/bin/sdcard /data/media 1023 1023
class late_start
[...]
Cilraaz said:
It's not a bug. It's by design. The physical media of your sdcard exists as /data/media. On boot, your phone uses /data/media to create a virtual sdcard, found at /storage/sdcard0. After that, symbolic links are set up that point /sdcard and /mnt/sdcard to /storage/sdcard0.
The data exists in one place, /data/media. The rest are essentially just pointers to the information for backward/forward compatibility.
Click to expand...
Click to collapse
yup.
thanks for the explanation
DRatJr said:
Ok but it gets weirder. When I download an attachment from Yahoo mail and save it, a pic for example, it is in both destinations, but in gallery shows in sdcard0. why is that?
Click to expand...
Click to collapse
A symlink can be looked at as basically a shortcut. So if you open sdcard0 you're in sdcard.
Sent from my Galaxy Nexus
Sprint, the Not Right Now Network
So can we delete sdcard with Root Explorer and just use sdcard0?
Vaporsilver said:
So can we delete sdcard with Root Explorer and just use sdcard0?
Click to expand...
Click to collapse
No, you can't.
That's designed that way because some apps look for /sdcard and others for /sdcard0. It doesn't affect in ANYTHING to you because after all, the files are actually stored in /data/media. There are no duplicate folders in any way.
Just use Root explorer and save the files wherever you want. One day you can use /sdcard and the other /sdcard0. The second day you'll find that the files you put in /sdcard are in /sdcard0.
Android from ICS and onwards wasn't meant that you look for the files using a Root explorer. In fact, all apps can browse the storage area how they want and you don't need to worry about it.
Cheers!
el_charlie said:
No, you can't.
That's designed that way because some apps look for /sdcard and others for /sdcard0. It doesn't affect in ANYTHING to you because after all, the files are actually stored in /data/media. There are no duplicate folders in any way.
Just use Root explorer and save the files wherever you want. One day you can use /sdcard and the other /sdcard0. The second day you'll find that the files you put in /sdcard are in /sdcard0.
Android from ICS and onwards wasn't meant that you look for the files using a Root explorer. In fact, all apps can browse the storage area how they want and you don't need to worry about it.
Cheers!
Click to expand...
Click to collapse
Awesome thanks! That really clears things up.
I have a question along the same lines, but don't feel it needs it's own thread.
I have a VZE Gnex (toro) that I unlocked and rooted. I've previously owned the G1, G2, and Sensation. I'm not too bad of a n00b, but I have my moments, and this may be one of them haha.
I was looking to flash the AOKP JB nightly, and I was reading up on how to wipe everything properly, as this is my first experience without an SD card. I use TWRP and I performed factory reset, wiped system, flashed ROM, flashed Gapps, wiped cache + dalvik, rebooted. Upon reboot, most of my folders were missing from my 'SD card' when viewing them from my PC, so I reverted back to the backup I made prior to starting all of this. The backup wasn't all that big, yet all of my stuff was back. Also, even though the fresh install of AOKP didn't show much of anything on the 'sdcard' from my PC, I could still access the AOKP ROM file in recovery, so it seems the data was still there, just hidden from view on my PC.
My questions are:
What exactly does a Factory Reset wipe when it comes to the 'SDcard'?
Is my issue just a remnant of the .nomedia issue? I thought I had fixed that prior to doing any of this, but who knows how far it went.
What types of folders are affected by a wipe on the 'SDcard'?
What types of folders are not affected by a wipe on the 'SDcard'?
What do I see the files in ICS and not JB, yet it appears they are still there (just not on my PC)? Is it because of the stupid MTP and not Mass Storage?
How do I know what folders are MTP viewable and which aren't so I don't have to mess around with "ADB Pull" command as much?
I'm confused on what I need to back up, and what will be OK to leave on the internal storage. Any help would be appreciated. I did my best searching here on XDA and RootzWiki with things I thought may be valid. If I missed something, don't flame me. I did actually search
1. A factory reset with a custom Recovery wipes /data and /cache partitions BUT in the case of the GNexus, /data/media is not affected. In that location is where the "sdcard" resides. That's what you look when you connect the phone to a PC. The stock recovery wipes everything and leaves the phone as new.
2. The .nomedia is to hide certain files from the media scanner and avoid to display unwanted files in the Gallery or Music Player.
3. and 4. Like I said, using a custom recovery (TWRP or CWM) doesn't touch the /data/media folder, so no files are deleted there. You wouldn't want to delete the folder where your NANDROID backup is stored, do you?
5. If you're still on ICS connect the phone to the PC and backup EVERY THING just to be safe, including the NANDROID folder.
After you wipe and flash the new ROM you'll still see the old files (like pictures, music, and so on). You can delete them if you like.
Cheers!
el_charlie said:
1. A factory reset with a custom Recovery wipes /data and /cache partitions BUT in the case of the GNexus, /data/media is not affected. In that location is where the "sdcard" resides. That's what you look when you connect the phone to a PC. The stock recovery wipes everything and leaves the phone as new.
2. The .nomedia is to hide certain files from the media scanner and avoid to display unwanted files in the Gallery or Music Player.
3. and 4. Like I said, using a custom recovery (TWRP or CWM) doesn't touch the /data/media folder, so no files are deleted there. You wouldn't want to delete the folder where your NANDROID backup is stored, do you?
5. If you're still on ICS connect the phone to the PC and backup EVERY THING just to be safe, including the NANDROID folder.
After you wipe and flash the new ROM you'll still see the old files (like pictures, music, and so on). You can delete them if you like.
Cheers!
Click to expand...
Click to collapse
Thanks for the fast reply, but I still am wondering why I can't see the exact same files in AOKP that I could see in stock ICS. Any clues? Should I just move everything to /data/media/ using root explorer and see if they all show up?
Well the solution I've come to is to run
adb pull /sdcard/ c:\android\sdcardbackup8-17-2012
to back absolutely everything up, perform a full wipe of everything (including storage), flash AOKP, flash Gapps, wipe cache, wipe dalvik, reboot, then run
adb push c:\android\sdcardbackup8-17-2012 /sdcard/
Hopefully this helps someone else out
I find there is a problem in the sync's. /sdcard/ does not show always what's in /storage/sdcard0/. From pc I see no new files while on my nexus in /storage/sdcard0/ i see the file and /sdcard/ i don't. Not sure why the sync does not occur any faster. Seems like a bug. I thought hmm, maybe the disconnect usb near clock might do the trick to fix the problem but it doesn't. My pc is a slave to whenever my driod syncs the two.
Flukester69 said:
I find there is a problem in the sync's. /sdcard/ does not show always what's in /storage/sdcard0/. From pc I see no new files while on my nexus in /storage/sdcard0/ i see the file and /sdcard/ i don't. Not sure why the sync does not occur any faster. Seems like a bug. I thought hmm, maybe the disconnect usb near clock might do the trick to fix the problem but it doesn't. My pc is a slave to whenever my driod syncs the two.
Click to expand...
Click to collapse
What files aren't you seeing?
*Shaolin Shadowboxing*
Flukester69 said:
I find there is a problem in the sync's. /sdcard/ does not show always what's in /storage/sdcard0/. From pc I see no new files while on my nexus in /storage/sdcard0/ i see the file and /sdcard/ i don't. Not sure why the sync does not occur any faster. Seems like a bug. I thought hmm, maybe the disconnect usb near clock might do the trick to fix the problem but it doesn't. My pc is a slave to whenever my driod syncs the two.
Click to expand...
Click to collapse
I find that MTP is slow to show updates to sdcard. Same for Asus TF101. So may be it is the design or problem of MTP, something to do with MTP cache update?

File move error or bug?

I installed Slim rom and it moved all of my previous sdcard files to a different location. I tried to use ES File Explorer to move all the data (2.85gb) to the new sdcard location. Once the process completed there's a message saying low storage space when I should have 3.25gb avail.
*
I checked the location where it was supposed to move the previous sdcard files to the new location and instead it created many duplicates of the current roms sdcard location (inception style) and repeated until there was no space left.
*
I found the previous sdcard location under mnt/shell/emulated/. I selected to move the emulated folder. I don't know if this "emulated" is some sort of special android folder that I'm not supposed to mess with or not and maybe that caused this issue.
*
But then, when I went to the folder where the previous files were located and browsed it, all of the files are listed as having a file size of 0.00 and clicking on properties for any folder shows 0 folder size. So I can see the files there but its as if they have been overwritten or made inaccessible. So I'm a bit pissed at this point because I can't find where the files were moved to and the old files seem to have no file size. Yet, after deleting the repeated copied info it only freed up the 3.25gb of space. So it's as if my old files are still taking up space somewhere but I can't get to them or open them.
*
Next, I decided to move those old files again and this time I placed them on my extsdcard. When I moved the files again they were completely viewable and accessible, from the extsdcard, even though they can't be accessed at my old location. I also used multiple root browsers and none could access the old files at the old location.
*
Any ideas what could have gone wrong?
AngelsNecropolis said:
I installed Slim rom and it moved all of my previous sdcard files to a different location. I tried to use ES File Explorer to move all the data (2.85gb) to the new sdcard location. Once the process completed there's a message saying low storage space when I should have 3.25gb avail.
*
I checked the location where it was supposed to move the previous sdcard files to the new location and instead it created many duplicates of the current roms sdcard location (inception style) and repeated until there was no space left.
*
I found the previous sdcard location under mnt/shell/emulated/. I selected to move the emulated folder. I don't know if this "emulated" is some sort of special android folder that I'm not supposed to mess with or not and maybe that caused this issue.
*
But then, when I went to the folder where the previous files were located and browsed it, all of the files are listed as having a file size of 0.00 and clicking on properties for any folder shows 0 folder size. So I can see the files there but its as if they have been overwritten or made inaccessible. So I'm a bit pissed at this point because I can't find where the files were moved to and the old files seem to have no file size. Yet, after deleting the repeated copied info it only freed up the 3.25gb of space. So it's as if my old files are still taking up space somewhere but I can't get to them or open them.
*
Next, I decided to move those old files again and this time I placed them on my extsdcard. When I moved the files again they were completely viewable and accessible, from the extsdcard, even though they can't be accessed at my old location. I also used multiple root browsers and none could access the old files at the old location.
*
Any ideas what could have gone wrong?
Click to expand...
Click to collapse
It appears you are running a recovery that is not supported by Android 4.2.
Since android 4.2 modified the directory layout to make way for multi user support, recoveries had to be updated to flash properly.
You will need to more than likely move your data files to your computer by hand, delete all of the extra and then reimplement your data to the appropriate folder.
Make sure you update your recovery as well so you don't see this on future 4.2 flashes.
When 4.2 first released this was a common issue with recoveries. Once you get your data and apps backed up appropriately, you may need to wipe your data/internal storage to free up the "used" space. I put used in quotes because it may appear its not taking any space at all when in all actuality it is.
Sent from my SGH-I747 using xda app-developers app
I'm using the latest TWRP 2.3.3.1 I think is the version. Is that not a compatible recovery?
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
AngelsNecropolis said:
I'm using the latest TWRP 2.3.3.1 I think is the version. Is that not a compatible recovery?
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
Click to expand...
Click to collapse
Hmm... latest is 2.4.1.0 but 2.3.3.1 was definitely compatible... sounds like there's a different underlying issue out of my realm of expertise. We'll have to wait for someone else to come along. Sorry man =/
Sent from my SGH-I747 using xda app-developers app
I'll update my recovery anyways. I've fixed the problem by moving everything again but in smaller sections. I may take up your advice to connect to a pc and back up everything, format it, then move the files back though. I just don't want to duplicate the issue again. It was a huge inconvenience. Thanks for posting.
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
AngelsNecropolis said:
I'll update my recovery anyways. I've fixed the problem by moving everything again but in smaller sections. I may take up your advice to connect to a pc and back up everything, format it, then move the files back though. I just don't want to duplicate the issue again. It was a huge inconvenience. Thanks for posting.
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
Click to expand...
Click to collapse
no problem man, sorry I couldn't help more. good luck with it! may have just been a fluke bad flash.
Sent from my SGH-I747 using xda app-developers app

[Q] Storage/SDCard0

Hi guys, tried looking for an answer on XDA, can't find one.
Anyways, my question is:
I have just installed a new ROM and while looking through root browser i found Storage/SDCard0, this location is a duplicate of my SDCard and if i was to delete items from sdcard0 it disappears from my main SDCard.
Has this file always been there or has something gone wrong?
I know it seems like a minor issue, but its bugging me lol
Thanks
The new aosp android versions are changing the sdcard folder layout to sdcard/0 thats normal. leave it like that unless you want to revert to a sense based rom or a nandroid backup. when you want to restore it you have to copy all content from the 0 dir to the root of the sdcard.
hope i explained this okey !
Mr Hofs said:
The new aosp android versions are changing the sdcard folder layout to sdcard/0 thats normal. leave it like that unless you want to revert to a sense based rom or a nandroid backup. when you want to restore it you have to copy all content from the 0 dir to the root of the sdcard.
hope i explained this okey !
Click to expand...
Click to collapse
Sorry i forgot to mention that i have not been on an aosp rom, i have always been on sense!
Thats why im so puzzled lol
Also, i have tried copying stuff over, but it just makes a duplicate in the sdcard e.g pictures - copy of
and when i delete from the folder location storage/sdcard0 it deletes from my main sdcard also, so in a nutshell, i have never been on aosp roms yet i have this sdcard0 issue
ah like that, well i can inform you that i had this on the viper x 3.3.7 rom too....i solved it like this :
i made a nandroid backup, back-upped the sdcard content, formatted the sdcard. copied the nandroid backup back to the sdcard and restored it .... not seen the problem anymore !
I think it is normal... Having storage/sdcard0 is totally different compared to /sdcard/0/
When I connect my sdcard to pc and examine, the size matches, it is not doubled and when /storage/sdcard0 os deleted also normal sdcard gets deleted.
So I think it's just a mirror of some sort.
Sent from my One X using xda premium
Thanks for your replies guys.
I think it is just a mirror of the main sdcard, what caused it i don't know!
I shall try and live with it for the time being.... Until it annoys me furthermore lol
Cheers!
One more thing we need to know... Simple yes or no will do.
Do you have a directory called /sdcard/0?
Do you have a directory called /storage/sdcard0?
Sent from my One X using xda premium
The directory is storage/sdcard0, it also seems like my system is using this as the "main" storage and duplicating to sdcard.
Nothing I do seems to be resolving the issue....
EDIT: Really stuck now, tried superwipe script, adb shell etc and its still there, its not really a big problem, but if im transfering data to my phone its transfering to storage/sdcard0 by default and not sdcard.
The file location is in with the core android files and even if i try and delete the file it still remains there,,,, HELP!!
megarekd said:
The directory is storage/sdcard0, it also seems like my system is using this as the "main" storage and duplicating to sdcard.
Nothing I do seems to be resolving the issue....
EDIT: Really stuck now, tried superwipe script, adb shell etc and its still there, its not really a big problem, but if im transfering data to my phone its transfering to storage/sdcard0 by default and not sdcard.
The file location is in with the core android files and even if i try and delete the file it still remains there,,,, HELP!!
Click to expand...
Click to collapse
Issue resolved, i downloaded a nandroid from 2.17 flashed and booted, checked and storage/sdcard0 had disapeared.
Flash beck to 3.18 rom and it is still gone!!
Thanks for the help guys :good:
Good ! :thumbup:
CASE CLOSED !
The /storage/sdcard0 issue has arrisen!
I'm not sure if this is a Jelly Bean "thing" though as if i do a nandroid back to 2.17 storage/sdcard0 is not there....
Yet, when i flash a custom rom it re-appears, would somebody be able to check id the folder is in their HOX also please?
I locate it using root browser, not sure if it shows with other file mangers, but i will check
Thanks
Mine is just normal......look no sdcard0 folder
Sorry, the location of the /storage/sdcard0 folder is located out of the sdcard folder, its within the sys, system, root, etc folders
i have also noticed that sdcard0 i have no rights over e.g. permisions are - - - r w x r - x
I'm really puzzled lol
Wish i could take a screenshot, but i disabled the option when installing my current rom
I switched to CM file manager from root explorer recently and the /sdcard/ folder is nowhere to be seen. There's only /storage/sdcard0/ which is also the default startup directory.
So it could be root explorer that mirrors the sdcard...
Sent from my One X using xda premium
I now it falls into place here.......hadn't much sleep last night
Its probably a mirror like TT says .... maybe to speed things up for the system to acces files ?
I have two screenshots here, first one is from root explorer, as you can see, i have no rights over the storage/sdcard0 folder (but i think thats due to the fact i have full rights over the "main" sdcard.
The second shot is taken from within ES file explorer options as an example to where my files are going....
I do think that you are correct in saying that its just a mirror, especially after seeing TT's screenshot. I was just a bit worried that something had gone wrong somewhere with me having the scdard0 folder.
Again, thanks alot guys!! :good:
Hey there I noticed the same thing for CM10.1, and the folders can be seen in CM File Manager by enabling "Show symlinks".
So yes it is some sort of a mirror, but more like a method to redirect apps to the actual sdcard folder since not all of them are updated to reach for sdcard0 (or something like that). You may check here for more information on symlinks.
Cheers!
There are symlinks to the sdcard everywhere and they are normal.
Here are some examples
/sdcard
/storage/sdcard
/storage/emulated/0
/storage/emulated/legacy
/mnt/sdcard
/mnt/shell/emulated
These are all directories that link to the sdcard on the ROM i use.
This is nothing to worry about as the actual data is not duplicated.
Think of them as shortcuts to the sdcard folder which is actually stored somewhere like /dev/block/mmc0blk0p12
Sent from my HTC One X using xda app-developers app
Thanks for the info guys, muchly appreciated.
My question now is:
On stock 2.17 there is no storage/sdcard0, yet on stock 3.18 there is... Do we know the reasoning behind this?
Does it give better fetching time for apps, is it something to do with 'project butter'?
Thanks
Sent from my HTC One X using xda app-developers app
Its because of enabling USB host mode (otg) in jellybean and the connection of other devices requiring identification. If you attach a USB hub, a hard drive and a flash drive you will end up with new entries in storage as well as sdcard0
Such as
/storage/usbdisk0
/storage/usbdisk1
Some cheaper devices that have both onboard storage and a microsd will enter as /storage/sdcard0 and /sdcard1
The 0 is just the first address in Linux
The entire 32gb nand on the one x is /dev/block/mmcblk0
It's just numbering so there is the possibility for new storage to be allocated
Sent from my HTC One X using xda app-developers app

how to format

hello i had installed some rom to my note 2 (n7100) and now that i have found a good one i have the same directory from an ather rom and i have made full wipe. i have external and interlal memory but in internal i have like android, download, DCIM,videos,titaniumbackup and athers and i have a folder with the name "0" and inside it there is an ather directory and i want to make all that like new to format it to one partition....any help?
vasilisaerox said:
hello i had installed some rom to my note 2 (n7100) and now that i have found a good one i have the same directory from an ather rom and i have made full wipe. i have external and interlal memory but in internal i have like android, download, DCIM,videos,titaniumbackup and athers and i have a folder with the name "0" and inside it there is an ather directory and i want to make all that like new to format it to one partition....any help?
Click to expand...
Click to collapse
Before changing to a new base you should also wipe internal SD. CM, for example, uses a different directory tree. Before a major rom flash I always flash super-wipe in order to get rid of leftovers from previous rom.
in my storage i have storage>emulated>0 and then my storage and files
vasilisaerox said:
in my storage i have storage>emulated>0 and then my storage and files
Click to expand...
Click to collapse
Again, the rom you flashed uses a different directory tree, so now you have the files that the rom uses in storage/emulated/0/ and in the base directory all the files that the previous rom used.
If you want to get rid of useless files and keep everything clean and tidy you should flash the super-wipe file before flashing a new rom.
i did the super wipe but the emulated and 0 its there again.....i need to delete them
vasilisaerox said:
i did the super wipe but the emulated and 0 its there again.....i need to delete them
Click to expand...
Click to collapse
You cannot delete them as long as you use the rom that you currently have, because that is the path that the rom uses. If you want to get rid of it you must use a rom that doesn´t use that directory structure (stock Samsung rom for example), flashing super wipe before.
did the DN3(Ditto Note 3) ROM use those files?
vasilisaerox said:
did the DN3(Ditto Note 3) ROM use those files?
Click to expand...
Click to collapse
No.
CM uses it, for sure.
Anyway, it is not a problem to use a rom with that directory structure, it´s just different and you will get used to it.
thanks...an anter think i am looking for cwm v6.0.3.7 that i have it from an rom that i was tested and i want to instal it after an official rom...but i cant find it to download

Categories

Resources