Related
hello everybody
I didn't find the answer to my question (I used the search tool) so forgive me if it has allready been answered:
is it possible, in order to improve performance, to format /data which is actually using the samsung rfs into ext4 so that the hack of formating the external sd card and moving /data on it will be unnecessary?
thank you by advance.
As of now we have no way at all to modify what file system is on the internal storage devices. Besides I do not believe that the we evildoer in this case is a poor fs.
Sent from my GT-I9000 using XDA App
gontran said:
hello everybody
I didn't find the answer to my question (I used the search tool) so forgive me if it has allready been answered:
is it possible, in order to improve performance, to format /data which is actually using the samsung rfs into ext4 so that the hack of formating the external sd card and moving /data on it will be unnecessary?
thank you by advance.
Click to expand...
Click to collapse
'
I've just been reading this about RFS, you might find it interesting:
http://forum.samdroid.net/f16/what-we-know-about-samsung-rfs-30/
Darkstriker said:
As of now we have no way at all to modify what file system is on the internal storage devices. Besides I do not believe that the we evildoer in this case is a poor fs.
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
Is there no way to umount /data and then format it into ext4?
Rfs seems to have pretty poor performances compared to ext4 but I'm not an expert so maybe is it useless.
Did you not read what you quoted from me there?
We do NOT have a way to modify the filesystem on the internal storage. We can unmount it but we CANNOT format it!
Darkstriker said:
Did you not read what you quoted from me there?
We do NOT have a way to modify the filesystem on the internal storage. We can unmount it but we CANNOT format it!
Click to expand...
Click to collapse
A little less attitude please!
He asked a perfectly valid question, all that is required are the file system tools format, partition and check the partition and an understanding of the init.rc files that mount the partition on boot.
I hated the 128MB partition that mounts with the internal 8GB and my sdcard, so I used gparted via ubuntu to remove it and expand the linux-swap partition to fill the 128MB of unallocated space. Now no ROMs I use can mount the internal or external storage, nor can I mount it via USB- unless I'm in recovery. From recovery I can read the sdcard and mount it to browse via USB. Anyone have a solultion for this? I've wiped data and system and tried other ROMs, but each one is affected with the same issue.
Try a hard reset
Sent from my ADR6300 using XDA App
jdkoreclipse said:
Try a hard reset
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
Meaning to remove root, nand unlock, etc and start fresh?
No...its the clear storage option in the bootloadwr
Sent from my ADR6300 using XDA App
jdkoreclipse said:
No...its the clear storage option in the bootloadwr
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
My mistake. I just did that, waiting for results now.
xvenom89 said:
My mistake. I just did that, waiting for results now.
Click to expand...
Click to collapse
Nope, that did not work. My sdcard and internal storage are not mounting. Anyone else have an idea?
try a method posted in the cm6 thread
Sent from my ADR6300 using XDA App
jdkoreclipse said:
try a method posted in the cm6 thread
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
This?
http://forum.xda-developers.com/showpost.php?p=7319333&postcount=753
I don't see that as a solution. I need it to detect my storage like it does out of the box, as it did before I deleted one of the partitions. There has to be a way to restore it to factory defaults; I don't mind having to start from scratch at this point.
My only idea that might work is to flash a PB31IMG.zip from the bootloader... Anyone else have an insight?
Just an update, this fixed it:
http://androidforums.com/all-things...ideo-howto-unroot-incredible-downgrading.html
Update2:
I can get my phone running the original 2.2 leaked ota, but trying to upgrade to skyraider 2.5.2 from there brings me back to square one...
I can only access them while booted using the original 2.1 ROM or the first 2.1 OTA. When I upgrade to ANY Froyo ROM, the internal storage and sdcard disappear. I wish someone here would help me out so I can move on with my life; it's been this way for 24 hours now and I can't take it anymore.
Have you tried to just remake the partitions as they were?
lamerto said:
Have you tried to just remake the partitions as they were?
Click to expand...
Click to collapse
I cannot figure out how. Clue me in? I've used clockworkmod recovery to format each partition manually, but that didn't help.
I restored completely to stock as described here, followed by using unrevoked to root. From the stock 2.1 OS, I can read from the SD Card and Internal storage just fine. I then upgrade the radio to 2.15.00.07.28, as described here; everything still works at this point. Then I choose any 2.2-based ROM (skyraider, pmf, stock, cyanogenmod, etc) to upgrade to and install it via clockworkmod recovery. At that point, the booted system no longer reads from the SD Card or Internal Storage (BOTH are declaired "Unavailable" under Menu -> Settings -> SD & Phone Storage). From recovery I can still mount the SD Card via USB.
Before this mess I was running Skyraider 2.2 almost flawlessly, then I was picky and chose to use gparted via Ubuntu to delete the smaller ~128MB partition that mounted along side the SD Card and Internal Storage because it annoyed me. After deleting it, I expanded the linux-swap partition to fill the unallocated space. I did all this while the system was booted (after applying unrevoked-forever, so it would actually take effect). I then downloaded and installed the Skyraider 2.5.2 upgrade and that is when I first discovered this problem.
I think it MIGHT be fixable if I could figure out how to manually edit configurations to mount both partitions at boot.
I hope what happened is now clear to you all, because I'm dying here without my Incredible. I can't use it properly without the SD Card mounted, so I'm using a Palm Pre Plus for the time being. I could use a 2.1 ROM, but I became too in love with Froyo to part so soon. Please, if anyone has suggestions I would love to hear them. Thanks..
Since it seems nobody else has a clue how to work with this, I'm trying more things. I don't know why I didn't think of it before, but I'm editing the phone's fstab.
What was included:
/dev/block/mtdblock5 /cache auto rw
/dev/block/mmcblk0p1 /data auto rw
/dev/block/mtdblock6 /datadata yaffs2 rw
/dev/block/mtdblock3 /system yaffs2 rw
/dev/block/mmcblk1 /sdcard vfat rw
/dev/block/mmcblk1p2 /sd-ext auto rw
I added "/dev/block/mmcblk0p3 /emmc auto rw" for the internal storage and it worked once after I rebooted, but the sd card issue hasn't changed at all. It's already defined in the fstab, so why isn't it mounting?
So now sometimes the internal storage mounts and sometimes it doesn't. Anyway, with the sd card, now I found another interesting detail: the phone recognizes a different 2GB micro sd card while booted, but not the 16GB one I've been using for ages, the one that mounts fine in clockworkmod recovery and in 2.1 ROMs. It used to mount fine in Froyo, now it is "Unavailable". Why is this?
Xvenom89,
Wished I could help. But being a noob.....
If nothing else, at least I've bumped the thread for you. (-:
Just in case it helps, if the file you're referring to is vold.fstabs, the only entries in mine are;
dev_mount sdcard /mnt/sdcard auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
dev_mount emmc /mnt/emmc 3 /
devices/platform/msm_sdcc.3/mmc_host/mmc2
Maybe you could PM one of the more friendly devs and ask if they'd mind making a suggestion.
________________________________
Unrevoked forever
SkyRaider 2.5.2 Sense
Hrdra kernel ocuv_ov_v10 (#2)
I'm having the same issue with the OTA Froyo update. So I was wondering, did you figure out a way to fix this issue?
xvenom89 said:
I cannot figure out how. Clue me in? I've used clockworkmod recovery to format each partition manually, but that didn't help.
Click to expand...
Click to collapse
Uh, if you can't figure out how, how did you manage to delete one?
Methinks you should have at least written down the details from the removed partitions before you removed them
It just seems sane.
I'm sorry to sound harsh, but, what were you thinking? It's a few megabytes that you risked the usability of your phone for.
That said, I think only recreating them yourself would fix it properly - possibly given the partition map of another Incredible (heck, maybe just dumping the first 512 bytes of the emmc device, assuming it's MBR, from a working incredible and having you patch that in would fix it.).
Yea what were you thinking, you don't just delete partitions randomly >.
Hi all,
I found that some of the SGW users are wondering whether they should swap internal/external sd card as their internal sd card is full with awesome GAMES data.
Here i will provide three ways to give ur SGW more space for gaming. Strictly for root users only.
Internal/External swapping
This mod will swap ur internal sd with external sd. Before swapping, backup the data on both sd cards to ur pc and manually "swap" the data from each other.
Then download and extract the vold.fstab from the attachment replace the one under /system/etc by using root explorer. Then reboot and enjoy.
Mounting script
If u want to store and run game data from external sd without swapping. Mounting script is a good solution to it.
This script will mount the game data path to your external sd. In other word, it tricked ur device for redirecting the games to load data from external sd instead of internal sd.
What u need are
Script Manager - download from market for free [https://play.google.com/store/apps/details?id=os.tools.scriptmanager&feature=search_result#?t=W251bGwsMSwxLDEsIm9zLnRvb2xzLnNjcmlwdG1hbmFnZXIiXQ..
mounting script
Create a new script file in Script manager and type the following:
(I used the Android folder as example)
Code:
mount -o bind sdcard/external_sd/Android sdcard/Android
This is for gameloft
Code:
mount -o bind sdcard/external_sd/gameloft sdcard/gameloft
After creating these, u need to cut the files in Android or gameloft from internal sdcard and paste them to the new location on external sd. Leave the original folders empty.
Remember to set them "boot" and "su" and SAVE in script manager. Reboot.
Alternatively, u can use the one I provided or create it by ur own. Extract the MOUNT external.zip and put it into ur sd card. Open it in script manager and select "boot" and "su" then save. Reboot.
If ur ROM is init.d autorun supported, just simply put the mounting script into the /system/etc/init.d folder.
Directory Bind tool
This is an apk created by one of our forum members, slig. This is based on the the same mounting script method. U can use it for simplicity. All credits go to the creator.
Link: http://forum.xda-developers.com/showpost.php?p=20668905&postcount=1
GL to SD
This apps created by tnslf2k is similar to the script I made and it is user-friendly. U can download it from https://play.google.com/store/apps/details?id=com.slf.ListglApp&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5zbGYuTGlzdGdsQXBwIl0.
For more details, see http://forum.xda-developers.com/showpost.php?p=18949753&postcount=1
That's all. Choose a way and play ur games~~!!
i made an second partition on my sd card with easeus (ext2) primary.
Now i use link2sd and everything i download is automaticly linked to my sd card.
So my internal space never get's full.
diederikmo said:
i made an second partition on my sd card with easeus (ext2) primary.
Now i use link2sd and everything i download is automaticly linked to my sd card.
So my internal space never get's full.
Click to expand...
Click to collapse
Yup, the option 2 (mounting script) gives the same effect.
regarding option 2, where should i place the script? thanks
vanir29 said:
regarding option 2, where should i place the script? thanks
Click to expand...
Click to collapse
U can put in under ur internal sd card.
yewsiong said:
U can put in under ur internal sd card.
Click to expand...
Click to collapse
thanks , i thought it should be placed in the folder where u cut the files , btw does this only work for files (saved files) what about apk? i mean in \data\app folder all the apk of the apps that i installed is there, can i use this script so that i can move my apk files? or this script only works with saved files? thanks again
vanir29 said:
thanks , i thought it should be placed in the folder where u cut the files , btw does this only work for files (saved files) what about apk? i mean in \data\app folder all the apk of the apps that i installed is there, can i use this script so that i can move my apk files? or this script only works with saved files? thanks again
Click to expand...
Click to collapse
Theoretically, it should work but I have never tried before. If u don't mind doing this experiment, please tell me the result. I am not very free to play with SGW now. Dealing with galaxy ACE at this moment.
i used the "Directory Bind" tools since 3 days ago, and it's works like a charm in my SGW untill now..
http://forum.xda-developers.com/showthread.php?t=1410262&highlight=directory+bind
yewsiong said:
Theoretically, it should work but I have never tried before. If u don't mind doing this experiment, please tell me the result. I am not very free to play with SGW now. Dealing with galaxy ACE at this moment.
Click to expand...
Click to collapse
ive tried it, but it didnt work, im using bionic2 so my internal/external is already swapped, but i want my system storage to have more free space that's why i want to move the apk's of my installed apps, here the script i made: "mount -o bind sdcard/data_app data/app" (without the quote), i moved all my apk files from data/app to sdcard/data_app after i moved it all, obviously my root explorer and script manager wont open that's why reinstalled them, ive set the script to root and boot, but before i reboot, ive ran the script and try to open some apps, it opened so i think it work, after i reboot all the apps that i moved are gone but when i go to data/app i can see all the apk files of my apps there (looks like the script works), but i dont know what the problem is, can u help me on this? or it isnt possible? and let me ask some question, in application menu, there is an option that says "move to sd card", after i press it, when i go to data/app folder, the apk of the app that i moved is not there (obviously) and it can be found in mnt/asec folder, but i cant find it in my sdcard (which is the 1.7gb because its swap), can u tell me where can i find it? many THANKS
bengonk said:
i used the "Directory Bind" tools since 3 days ago, and it's works like a charm in my SGW untill now..
http://forum.xda-developers.com/showthread.php?t=1410262&highlight=directory+bind
Click to expand...
Click to collapse
It is using the same working principle, i.e. bind command.
vanir29 said:
ive tried it, but it didnt work, im using bionic2 so my internal/external is already swapped, but i want my system storage to have more free space that's why i want to move the apk's of my installed apps, here the script i made: "mount -o bind sdcard/data_app data/app" (without the quote), i moved all my apk files from data/app to sdcard/data_app after i moved it all, obviously my root explorer and script manager wont open that's why reinstalled them, ive set the script to root and boot, but before i reboot, ive ran the script and try to open some apps, it opened so i think it work, after i reboot all the apps that i moved are gone but when i go to data/app i can see all the apk files of my apps there (looks like the script works), but i dont know what the problem is, can u help me on this? or it isnt possible? and let me ask some question, in application menu, there is an option that says "move to sd card", after i press it, when i go to data/app folder, the apk of the app that i moved is not there (obviously) and it can be found in mnt/asec folder, but i cant find it in my sdcard (which is the 1.7gb because its swap), can u tell me where can i find it? many THANKS
Click to expand...
Click to collapse
Code:
"mount -o bind sdcard/data_app data/app"
May I know the location of data/app? if it is on ur external sd, it should be
Code:
"mount -o bind sdcard/data_app sdcard/external_sd/data/app"
If u got swapped ur internal/external sd, this script is not needed since all the apps+data u installed into "phone memory" will be in ur external sd. If u try to move the apps to sd card again, it should go back to ur 1.7gb internal sd card.
FYI, system storage is where ur ROM stored and it is fixed (~550Mb) as it can't be swapped. So all system apps will be kept there.
For normal non-swapped ROM, APP to SD can serve the purpose of moving apps from system storage to internal sd (1.7Gb)
yewsiong said:
Code:
"mount -o bind sdcard/data_app data/app"
May I know the location of data/app? if it is on ur external sd, it should be
Code:
"mount -o bind sdcard/data_app sdcard/external_sd/data/app"
If u got swapped ur internal/external sd, this script is not needed since all the apps+data u installed into "phone memory" will be in ur external sd. If u try to move the apps to sd card again, it should go back to ur 1.7gb internal sd card.
FYI, system storage is where ur ROM stored and it is fixed (~550Mb) as it can't be swapped. So all system apps will be kept there.
For normal non-swapped ROM, APP to SD can serve the purpose of moving apps from system storage to internal sd (1.7Gb)
Click to expand...
Click to collapse
data/app folder is in the root of the phone, that's why i use this script "mount -o bind sdcard/data_app data/app" what im trying to do is to get more space for system storage, and i think it is 1.07GB, when u go to task manager under storage tab, thanks for ur patience
vanir29 said:
data/app folder is in the root of the phone, that's why i use this script "mount -o bind sdcard/data_app data/app" what im trying to do is to get more space for system storage, and i think it is 1.07GB, when u go to task manager under storage tab, thanks for ur patience
Click to expand...
Click to collapse
Ok~ I got it. data/app is under system storage. Maybe u can try APP2SD to move them into ur external_sd (which is ur sdcard in this case)
yewsiong said:
Ok~ I got it. data/app is under system storage. Maybe u can try APP2SD to move them into ur external_sd (which is ur sdcard in this case)
Click to expand...
Click to collapse
ok, thanks
is the 1st option safe for SGW with rio saputro blacknotes gen2 ?
chocolemon said:
is the 1st option safe for SGW with rio saputro blacknotes gen2 ?
Click to expand...
Click to collapse
Not try yet. It works with Cow V7 so it should be working with Hybrid 2nd gen too.
how about option 3? i think its the easiest way...
anyone tried GL to SD app?
Hi Me can ask a newbie question > , < what if my galaxy W internal storage is full.? the apk or something will install direct to SD card ,? and also > . < why my galaxy W having only 350mb+ RAM ( i seen on my task manager ) it must be 512mb right.? > , < thanks and srry for newbie question.
jomz878 said:
Hi Me can ask a newbie question > , < what if my galaxy W internal storage is full.? the apk or something will install direct to SD card ,?
Click to expand...
Click to collapse
no, in option 2&3, the apk and sd files are automatically saved first to usb storage or internal sd. Option 2&3 is for moving the games only saved at usb storage.
jomz878 said:
Hi Me can ask a newbie question > , < what if my galaxy W internal storage is full.? the apk or something will install direct to SD card ,? and also > . < why my galaxy W having only 350mb+ RAM ( i seen on my task manager ) it must be 512mb right.? > , < thanks and srry for newbie question.
Click to expand...
Click to collapse
First thing, ur sgw must be rooted to use these. To move apps from internal storage to external sd, u can use app2sd.
Secondly, 512mb is the total ram for our device. but part of it will be reserved for running the android system. 350mb is the available ram for u to use.
Update: I've since made a flashable zip that automatically creates a modified sdcard1 binary and extracts an init.d script to handle it all. Will make a thread in a more general location as this could be used on many TouchWiz devices. Link.
Hello everyone,
The mailman brought me a new 64GB microSD card this morning, and I wanted to try formatting it in ext4 instead of exFAT. Both for the heck of it and in case I wanted to give AOSP ROMs a try down the road.
The usual caveats apply.
Required:
init.d support
a mounting script
a mounting updater-script for custom recoveries.
You can get init.d support with the stock kernel on many devices by having the run-parts command launch from a custom install-recovery.sh script. See the following thread for files and a how-to:
[MOD]Term-init & Zip-init: Enable Init.d for Any Phones w/o Need of Custom Kernels!!!
SD card removal:
Should you need to remove the card it can be unmounted and safely removed from the storage settings as usual. Mounting it again requires either a reboot or manually executing the mount command and then activating the card in the storage settings.
Mounting script:
Make sure you have proper line endings, file name (e.g. 95mountsdext4) and permissions set.
Code:
#!/system/bin/sh
# Mount SD Card Ext4 Script
mount -rw -t ext4 /dev/block/mmcblk1p1 /storage/extSdCard
Mounting in CWM/TWRP:
The other piece in this is the attached zip file, which simply runs the appropriate mount command for Clockworkmod Recovery. Unmount as usual. This way you can also store nandroid backups and other update zips on the external as well.
Technical considerations:
The mounting occurs early enough during the boot process that the media scanner and MTP services have no issues with this.
There may be are some permissions related glitches to look out for, but it hasn't been an issue for me so far. (One possible fix would be a recursive chmod/chown added to the mounting script.)
Update: The camera app saves the photos properly to the SD card, but leaves them with improper permissions which prevent subsequent viewing or editing again until you chmod the files. To be continued...
If your init.d support comes from the install-recovery.sh trick, CWM will prompt to delete the script before reboot. Don't.
If the mounting script doesn't run for some reason, or you try to activate the card before having mounted it manually, the phone will give an error and ask if you want to format the card. Don't.
Enjoy,
Darkshado
I have been looking for a way to do this for a long time for numerous reasons (symlinks, >4GB file size, linux-only environment, etc.). I'll be giving this a try very soon.
Thanks for sharing!
EDIT: Just wanted to add that I think it's ridiculous Android doesn't support this natively.
The permissions issues are frustrating. I can take photos and store them on the card, but the umask for JB has been set as 077, in other words, rwx------ permissions, and ownership by the application's user.
I tried different arguments for the mount command to try and force permissions and ownership one way or another with no luck so far. Ironically, an NTFS formatted card might work better in this respect.
A similar mod had been made on the Nexus S and one of the posters resorted to an apk that regularly ran chmod -R 0777 on new files, I tried using it but it just hung there and did nothing on the Note II.
Another possibility would be using FUSE, although I'm not sure how to go about doing this yet.
Also, I pondered the possibility of using UDF instead of ext4, it is a standardized format and just about every major OS out there supports it too...
Any updates? Is it working already or...?
Despite all the good of Android, Google/carriers, whoever, not including ext2/3/4 support natively is just a slap in the face. Good to see someone working to right a wrong that subjugating software has done.
You should NOT be doing this. The Android hardware requirements clearly state that all shared storage directories must be case insensitive and must not have permissions. FAT32 is the only supported filesystem which meets these requirements. Mounting an EXT filesystem directly will break applications.
The newer versions of Android come with an "sdcard" utility which uses a FUSE driver to wrap a native EXT filesystem and exposes a pseudo filesystem which is case insensitive and is without permissions. You should mount the EXT SD card at a different location (/dev/fuse) and use the "sdcard" utility to emulate it at /storage/whatever. You can see the command line syntax of the "sdcard" utility in the source code.
CM10.1 does this automatically. https://github.com/CyanogenMod/android_system_core/tree/cm-10.1/sdcard
KurianOfBorg said:
You should NOT be doing this. The Android hardware requirements clearly state that all shared storage directories must be case insensitive and must not have permissions. FAT32 is the only supported filesystem which meets these requirements. Mounting an EXT filesystem directly will break applications.
The newer versions of Android come with an "sdcard" utility which uses a FUSE driver to wrap a native EXT filesystem and exposes a pseudo filesystem which is case insensitive and is without permissions. You should mount the EXT SD card at a different location (/dev/fuse) and use the "sdcard" utility to emulate it at /storage/whatever. You can see the command line syntax of the "sdcard" utility in the source code.
CM10.1 does this automatically. https://github.com/CyanogenMod/android_system_core/tree/cm-10.1/sdcard
Click to expand...
Click to collapse
Again, Android not natively supporting ext4 is a slap in the face. Usability over technical merit disgusts me.
muqali said:
Again, Android not natively supporting ext4 is a slap in the face. Usability over technical merit disgusts me.
Click to expand...
Click to collapse
It does support EXT4! Officially. All Google ROMs and AOSP can mount EXT4 partitions as /storage/*. The correct way to mount it is to use the command "sdcard" not "mount". I'm pretty sure any AOSP ROM will automatically mount an EXT4 SD card using the "sdcard" command just like Cyanogenmod does.
Thanks for the info. I'll look into this soon-ish, once my exams are over.
Sent from my SGH-T889V using xda app-developers app
KurianOfBorg said:
It does support EXT4! Officially. All Google ROMs and AOSP can mount EXT4 partitions as /storage/*. The correct way to mount it is to use the command "sdcard" not "mount". I'm pretty sure any AOSP ROM will automatically mount an EXT4 SD card using the "sdcard" command just like Cyanogenmod does.
Click to expand...
Click to collapse
It's still a second class citizen to a xFATx filesystem.
muqali said:
It's still a second class citizen to a xFATx filesystem.
Click to expand...
Click to collapse
No it's fully supported by AOSP exactly the same as FAT on AOSP and exFAT/NTFS on Samsung ROMs. It's the manufacturer's fault for REMOVING support from their ROM. When you insert an EXT SD card on AOSP, it gets mounted at /storage/* just like any other SD card.
In my N7100 with CM 10.1, ext4 has stopped working for my 32gb SDCard on 05-01-2013 nightly, even after reformatting, going back to stock, then reinstalling CM 10.1. I also noticed that my ext4 formatted 8GB SdCard still works, however, so I am not sure if it's a storage size issue in my case (32gb vs 8gb). I am trying a hybrid of 8mb fat32 / 28.*gb ext4 to see if that will work.
KurianOfBorg said:
No it's fully supported by AOSP exactly the same as FAT on AOSP and exFAT/NTFS on Samsung ROMs. It's the manufacturer's fault for REMOVING support from their ROM. When you insert an EXT SD card on AOSP, it gets mounted at /storage/* just like any other SD card.
Click to expand...
Click to collapse
clearday said:
In my N7100 with CM 10.1, ext4 has stopped working for my 32gb SDCard on 05-01-2013 nightly, even after reformatting, going back to stock, then reinstalling CM 10.1. I also noticed that my ext4 formatted 8GB SdCard still works, however, so I am not sure if it's a storage size issue in my case (32gb vs 8gb). I am trying a hybrid of 8mb fat32 / 28.*gb ext4 to see if that will work.
Click to expand...
Click to collapse
Is it formatted properly as ext4? Using mke2fs or (tune2fs to convert to ext4). All ROMs only mount the first partition on the SD card regardless of the file system. Sometime after mounting USB Mass Storage an the SD card doesn't remount properly so you need to reboot the device. You'll most probably want to use MTP with ext4 anyway.
KurianOfBorg said:
Is it formatted properly as ext4? Using mke2fs or (tune2fs to convert to ext4). All ROMs only mount the first partition on the SD card regardless of the file system. Sometime after mounting USB Mass Storage an the SD card doesn't remount properly so you need to reboot the device. You'll most probably want to use MTP with ext4 anyway.
Click to expand...
Click to collapse
Finally fixed the problem by running this command in ROM Toolbox Lite:
"find /storage/sdcard1/ -print0 | xargs -0 chown root:media_rw"
http://forum.xda-developers.com/showthread.php?p=38182488#post38182488
clearday said:
Finally fixed the problem by running this command in ROM Toolbox Lite:
"find /storage/sdcard1/ -print0 | xargs -0 chown root:media_rw"
http://forum.xda-developers.com/showthread.php?p=38182488#post38182488
Click to expand...
Click to collapse
Then it's not mounted properly! Your ext4 SD card has directly been mounted at /storage/* instead of through the FUSE driver. You should NOT be able to see permissions when it's mounted at /storage/*. The physical partition should be mounted at /dev/fuse. Reboot the device and check again whether permissions are visible at /storage/*.
KurianOfBorg said:
Then it's not mounted properly! Your ext4 SD card has directly been mounted at /storage/* instead of through the FUSE driver. You should NOT be able to see permissions when it's mounted at /storage/*. The physical partition should be mounted at /dev/fuse. Reboot the device and check again whether permissions are visible at /storage/*.
Click to expand...
Click to collapse
It's still visible at storage
How do I fix it?
clearday said:
It's still visible at storage
How do I fix it?
Click to expand...
Click to collapse
It should show up at /storege/* but that should be the FUSE driver's mount point with permissions stripped away. The real ext4 partition will be at /dev/fuse.
Any further progress?
I want to use symlinks and ext4 on my note 2 also.
On aosp roms just use the sdcard binary with an initd script.
Gesendet von meinem GT-N7105 mit Tapatalk 2
DerTeufel1980 said:
On aosp roms just use the sdcard binary with an initd script.
Click to expand...
Click to collapse
I'm trying to do this on Tweaked. There is an sdcard binary, however, it appears to be modified by Samsung as it's hardcoded to mount to /storage/sdcard0 and overrides the internal sdcard mount when I use it. It doesn't take a destination parameter like the AOSP/CM version does.
If anyone has an AOSP/CM build environment, could I trouble you for a statically linked version of the sdcard binary? I downloaded CM10.2-nightly, but it's dynamically linked and, of course, doesn't work on the stock based ROMs.
EDIT
It might still be nice, but I figured out a way around it. I hex edited the sdcard binary from the Note2 to use /storage/sdcard1. Then in the mount script, bind mounted it over to /storage/extSdCard. I've rebooted a few times and it seems to be working fine. I am copying data to it over MTP right now. I've attached a zip of the files I'm using.
NOTE: THIS IS NOT A FLASHABLE ZIP.
I might make one later, but this kind of needs to be a manual process anyway.
put the sdcard1 file in /system/xbin
chmod 755 /system/xbin/sdcard1
put the script file in /etc/init.d
set permissions/ownership on it
Now, if you have an ext4 formatted SD, and it's not mounted, you should be able to run the script and have it mount it, run the sdcard1 binary on it, and bind mount it over to the normal extSdCard spot. It will happen at boot if you got it all right.
There are probably improvements that can be made, my shell scripting is a bit rusty. Hopefully this will get people interested in it again, now that the permissions issues are resolved.
So what I have gathered is that this phone even with root/cmod/titanium backup doesn't allow me to move apps to my _real_ sdcard. So is it really phone related or is there a way to do it with custom rom/kernel or some other way?
leripe said:
So what I have gathered is that this phone even with root/cmod/titanium backup doesn't allow me to move apps to my _real_ sdcard. So is it really phone related or is there a way to do it with custom rom/kernel or some other way?
Click to expand...
Click to collapse
on stock android 4.2 u could actually use app2sd to move some apps to external storage
using Cyanogenmode 4.3 based Carbon MOD i found that i no longer can do that, tried app2sd and link2sd
i read somewhere that external storage is defined in system PATH variables, dont know how relevant that is but seems connected
but i honestly dont know yet much about the android platform to fix this issue myself, so i might be wrong
we need some pro tip help
Would be very interesting to habe feature. Especially for phones with only 8 GB internal flash. Hope this will come for my s4 Mini. Samsung has this implemented in their stock Rom.
Gesendet von meinem GT-I9195 mit Tapatalk
tesme33 said:
Would be very interesting to habe feature. Especially for phones with only 8 GB internal flash. Hope this will come for my s4 Mini. Samsung has this implemented in their stock Rom.
Gesendet von meinem GT-I9195 mit Tapatalk
Click to expand...
Click to collapse
Yes this would be awesome, but seems that cmod has gone moneymaking company and tries to make cmod to google standards which means they have been starting to remove/hiding features. Their goal now is to make installing cmod without cwm and to remove root or have it as optional feature. Or all this is what I gathered over the net, but I still hope some other custom rom could have this feature.
Edit:
All of the above may not be like that nowadays, and this is somewhat speculation since there hasn't(?) been an official statement from cm about app2sd support. Though emulated sdcard may require something different.
(edited 19.2.2014)
Moving apps to external card.
leripe said:
Yes this would be awesome, but seems that cmod has gone moneymaking company and tries to make cmod to google standards which means they have been starting to remove/hiding features. Their goal now is to make installing cmod without cmw and to remove root or have it as optional feature. Or all this is what I gathered over the net, but I still hope some other custom rom could have this feature. This feature may only need one to repartition the sdcard, but I can't get it to mount as mass storage nor with sdcard reader(it shows "empty" card) in windows(maybe i should try it in linux).
Click to expand...
Click to collapse
About two months ago I upgraded my Xoom to JB 4.2.2, and because space was limited, I hadn't noticed whether I could move operating programs to the external card or not. This was a custom rom. Well, I was using a 32 Gig card that was nearly full of data.
This last week, I invested in a 64 Gig sdhc card and upgraded my rom to Kit-Kat 4.4.2. Thus its also a custom rom, but now I find that though, for the most part, I can designate the external card to store and access data from, I can't run programs from it. Hmm!
Here I am with all this memory. Sure wish I had better management options.
Kingsman1 said:
About two months ago I upgraded my Xoom to JB 4.2.2, and because space was limited, I hadn't noticed whether I could move operating programs to the external card or not. This was a custom rom. Well, I was using a 32 Gig card that was nearly full of data.
This last week, I invested in a 64 Gig sdhc card and upgraded my rom to Kit-Kat 4.4.2. Thus its also a custom rom, but now I find that though, for the most part, I can designate the external card to store and access data from, I can't run programs from it. Hmm!
Here I am with all this memory. Sure wish I had better management options.
Click to expand...
Click to collapse
Well check my thread on my signature and the requests section in the 1st post for more info on about app2sd.
Resolve the issue
Hi all,,,
This is my first time in XDA. Someone fixed this bug for me. You need to be rooted to fix this issue. Install from market Terminal Emulator and type the following commands
su
/system/bin/restorecon -R -v /data/media/
dlightx said:
Hi all,,,
This is my first time in XDA. Someone fixed this bug for me. You need to be rooted to fix this issue. Install from market Terminal Emulator and type the following commands
su
/system/bin/restorecon -R -v /data/media/
Click to expand...
Click to collapse
Can I check with you what bug this fixes?
Ability to use app2sd?
I use FolderMount and works real well. No need to partitioning sd card.
I've gotten to getting Link2SD working on the GT-I9195 with nightly 20140402 KitKat.
Based loosely on [Tutorial/HOWTO] Convert Your External SD Card from FAT/exFAT to EXT4! (3 ways!)
1. Clear everything out of your external SD card. We're gonna be formatting it so you'll have to backup your data.
2. Boot up into recovery and have a working ADB environment setup on your computer
3. adb shell (Do NOT mount your /storage/sdcard1)
5. Check that you have fdisk and mke2fs installed (Type fdisk --help and mke2fs --help ensure they don't throw up errors)
6. fdisk /dev/block/mmcblk1
7. Type o and Enter to destroy the partition table
8. Type n to create a new partition. Make sure its Primary (p). Select first partition and choose how many cylinders you want to allocate to it.
9. Type n to create your second partition. Again, make sure its Primary (p). Leave cylinder allocation blank to use remainder of space by default.
10. Verify partition layout by typing p to show partition layout.
11. Exit fdisk and save changes by typing w
12. mke2fs -t ext4 /dev/block/mmcblk1p1
13. mke2fs -t ext4 /dev/block/mmcblk1p2
14. reboot
15. Once CM has booted up, check if your external storage partition 1 has been mounted. It should be mounted at /mnt/media_rw/sdcard1
16. Try creating a folder in /mnt/media_rw/sdcard1 and /storage/sdcard1 to test if your read/write permissions are correct.
17. Install DiskInfo from playstore to check if your second partition is visible
18. Once done, install Link2SD and select ext4 when prompted to ask what kind of filesystem your 2nd partition is.
19. Reboot after Link2SD installs scripts.
20. Voila!
Let me know if there are any issues. I modified several files while doing this so not sure if any of them affected.
Should #16 not work, try:
1. Going to /system/etc/permissions/platform.xml and adding media_rw group to the element that only has sdcard_r group in it.
2. Typing mount in Terminal Emulator (su) or adb shell and see whether your partitions are mounted. If you're not sure, post the output out here.
Final mount output (filtered with mmcblk1 or sdcard stuff):
Code:
/dev/block/mmcblk1p2 /data/sdext2 ext4 rw,seclabel,relatime,data=ordered 0 0
/dev/fuse /mnt/shell/emulated fuse rw,nosuid,nodev,relatime,user_id=1023,group_i
d=1023,default_permissions,allow_other 0 0
/dev/block/vold/179:33 /mnt/media_rw/sdcard1 ext4 rw,dirsync,context=u:object_r:
sdcard_external:s0,nosuid,nodev,noexec,noatime,data=ordered 0 0
/dev/fuse /storage/sdcard1 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1
023,default_permissions,allow_other 0 0
EDIT 2: *** IMPORTANT!! Do NOT select External in the App2SD option in Link2SD. Otherwise you will not be able to install any apps from the Play Store (Insufficient Storage error)
I use GL to SD on my Slimrom: https://play.google.com/store/apps/details?id=com.slf.ListglApp
It may not have fancy UI like FolderMount or Link2SD, and it slight complex to use. But it works on per app basis, without re-partition too.
Hi leripe !
I have got the same device and ROM like you and i would like to know if you have found a solution to move apps to the sdcard ?
Thank you in advance, regards.
Oijkn said:
Hi leripe !
I have got the same device and ROM like you and i would like to know if you have found a solution to move apps to the sdcard ?
Thank you in advance, regards.
Click to expand...
Click to collapse
If it non system apps, you can use GL to SD as I provide the link already above. It works.
TNCS said:
If it non system apps, you can use GL to SD as I provide the link already above. It works.
Click to expand...
Click to collapse
Hi, i tried your link but this tool don't show all my user app so i can't move them... Have you another tool that can do the job please?
Oijkn said:
Hi, i tried your link but this tool don't show all my user app so i can't move them... Have you another tool that can do the job please?
Click to expand...
Click to collapse
Nope, sorry. I tried this tool and it work so never bother to look for another one.
If GL to SD doesn't have the app you want to move, you can manually link the app and the relevant folder at GL to SD settings. After you linked them, at the main page of apps you can tell it to start to move.
This thread shows up on google for me when trying to figure out why minitool partition wizard doesn't detect my phone at all. The guide I'm following says USB-SDcard reader is required but is that really true?? Surely there is a way to mount the SDcard at a low enough level to partition it without addition hardware?? Even if I have to mount it using TWRP recovery or something I would think it's possible. Anyone know?