SDcard Filesystem - Eee Pad Transformer General

I (along with other people) find it weird that Asus chose to mount the sdcard to /Removable/MicroSD instead of the traditional /mnt/sdcard.
I would like Titanium Backup to store the files on my sdcard instead of the internal memory, but the problem is that TI only checks the /mnt/sdcard directory. So in my infinite geek knowledge I had the idea to symlink /Removable/MicroSD/TitaniumBackup to /mnt/sdcard/TitaniumBackup. The problem is that FAT32 doesn't support symlinks, so I formatted the sdcard to NTFS and popped it back in but it wouldn't mount it, which I realized was because it doesn't have the NTFS modules. So I popped it back out and formatted it as ext2, but it still wouldn't mount automatically and I couldn't mount it manually because I didn't know what the device name was.
Anyone have any solutions?

You can try ask the developer of TitaniumBackup to include support for asus TF.

Obviously I already did that but I'm looking for a fix on my end.

As with most other tablets, the internal SD is mounted to mnt/sdcard so external SD has to be mounted elsewhere.
As far as TB goes, you can choose where to store backups. Have currently got it setup to backup to Removable/MicroSD/TitaniumBackup
EDIT: If you go into TB preferences menu, scroll down to Backup folder location, then press the Back icon (the system one) to get back to the root folder. Then you can choose the Removable/MicroSD/ folder. Click on "create a new folder", call it what you want, then open that folder. Click the "Use current folder" button and there you go...Backup folder on external SD!
Took me a while to realise that the back icon took you back up the folder tree, rather than closing the folder location window!

It would be nice if we could get a custom mount script or something that would mount the sdcard to something like /mnt/sdcard/music. I'd love to have my music synced to card and everything else stored internally...

fisha21 said:
EDIT: If you go into TB preferences menu, scroll down to Backup folder location, then press the Back icon (the system one) to get back to the root folder. Then you can choose the Removable/MicroSD/ folder. Click on "create a new folder", call it what you want, then open that folder. Click the "Use current folder" button and there you go...Backup folder on external SD!
Took me a while to realise that the back icon took you back up the folder tree, rather than closing the folder location window!
Click to expand...
Click to collapse
Thanks! Thats what I needed to know, I was thinking its kind of stupid that they only have a "detect" button.

brando56894 said:
I (along with other people) find it weird that Asus chose to mount the sdcard to /Removable/MicroSD instead of the traditional /mnt/sdcard.
I would like Titanium Backup to store the files on my sdcard instead of the internal memory, but the problem is that TI only checks the /mnt/sdcard directory. So in my infinite geek knowledge I had the idea to symlink /Removable/MicroSD/TitaniumBackup to /mnt/sdcard/TitaniumBackup. The problem is that FAT32 doesn't support symlinks, so I formatted the sdcard to NTFS and popped it back in but it wouldn't mount it, which I realized was because it doesn't have the NTFS modules. So I popped it back out and formatted it as ext2, but it still wouldn't mount automatically and I couldn't mount it manually because I didn't know what the device name was.
Anyone have any solutions?
Click to expand...
Click to collapse
What? You're doing it backwards!
If TI is writing to /mnt/sdcard/TitaniumBackup, but you want it to write to /Removable/MicroSD/TitaniumBackup instead, then /mnt/sdcard/TitaniumBackup should be the symlink, pointing to a directory on the SD card!
The target's filesystem doesn't matter (fat32), only the source's (i.e. ext4 on the internal storage).

Good catch, either way it doesn't matter now because I don't need symlinks since I know how to do it in TB now.

Related

Partitioning microSD card

After setting up my wife's A7 and using it for three weeks, I have decided to open mine up. I waited because I wanted to see if CES had anything I wanted more. I decided they didn't.
So, I am starting from scratch again.
The main issue I've had with my wife's A7 has been the lack of storage space for apps, especially the big games.
Bazbob seems to have a solution by partioning the microSD card and using Apps2sd.
I took a new Class 10 16GB microSD card.
I downloaded and burned Ubuntu onto a CD from here: http://www.ubuntu.com/desktop/get-ubuntu/download
Put the card in my laptop, restarted it into Ubuntu.
Ran gparted.
Shrunk the Fat32 partition to just under 8GB and added another partion as ext2 primary.
When I restarted my laptop, my sd reader in the laptop doesn't work.
When I put it into the A7, it says the SD card has Total Space of 7.73GB.
At this point, I'm not sure what to do next.
Help is appreciated!
jazzbone said:
After setting up my wife's A7 and using it for three weeks, I have decided to open mine up. I waited because I wanted to see if CES had anything I wanted more. I decided they didn't.
So, I am starting from scratch again.
The main issue I've had with my wife's A7 has been the lack of storage space for apps, especially the big games.
Bazbob seems to have a solution by partioning the microSD card and using Apps2sd.
I took a new Class 10 16GB microSD card.
I downloaded and burned Ubuntu onto a CD from here: http://www.ubuntu.com/desktop/get-ubuntu/download
Put the card in my laptop, restarted it into Ubuntu.
Ran gparted.
Shrunk the Fat32 partition to just under 8GB and added another partion as ext2 primary.
When I restarted my laptop, my sd reader in the laptop doesn't work.
When I put it into the A7, it says the SD card has Total Space of 7.73GB.
At this point, I'm not sure what to do next.
Help is appreciated!
Click to expand...
Click to collapse
You needed to make a second partition EXT2 and format it. You then need to mount the partition. I did this by using the install-recovery.sh that it located in /system/etc. I used the following tutorial and it worked. I got over 12gb of space to install apps.
http://forum.xda-developers.com/showthread.php?t=832799
I did try to mount the new partition to /storage which is also /sdcard and i was still not able to use titanium backup to move apps. The only way i have alot of space is use this method.
I'm also mounting the fat32 partition to location /storage so that when i download apps thats where they are stored until you install them. Also Titanium backup dumps the backups here. This is done with a custom mod of Dexters 1.0c mod.
I did not use adb, i used a app called quicksshd which allows you secure ftp into the tablet and make changes. I suggest using a windows programs called winscp and putty.
Thanks for replying rfisher.
Turns out that my laptop lost the drive letter for the sd card. That's fixed now. When I insert the card into my laptop, it says that you need to format the card in the drive to use it. Any idea why?
I am confused by your instructions.
You said
You needed to make a second partition EXT2 and format it.
Click to expand...
Click to collapse
I did that. First partition is FAT 32, and second partition is EXT2, primary.
Maybe I didn't format the partition? I just created it.
I'll install busybox and see how far I can get with it.
With the other A7, I was never able to work with ADB.
This device really makes me feel like an idiot.
Still can't believe I was the first to get Google Apps working on my wife's tablet!
no adb
Well, the hours of frustration have returned...
I can't get adb running on my laptop.
I installed Android SDK.
When I type adb in the cmd window on my laptop, I get
"adb" is not recognized as an internal or external command, operable program or batch file"
I have tried moving the ADK folder to c:\
and
to:
C:\Users\Bucks HP
No luck.
I added the path c:\android-sdk-windows\platform-tools
to the environment variables in my system properties.
My head is going to explode!
Well, I got adb working, I think...
Problem was in the cmd window. I had to change the path.
Now, I can't install busybox. I followed the instructions from the wiki.
When I type "adb push busybox /data/local"
it returns: cannot stat 'busybox' : no such file or directory.
I pasted the busybox file in the
C:\android-sdk-windows\platform-tools
folder.
Was that the right place for it?
Is the busybox file just a text file?
Also, mine is named busybox-armv6l
Should it be renamed? I tried "adb push busybox-armv6l /data/local"
and got the same result...
I gave up on installing busybox via the wiki instructions.
I installed Titanium Backup and installed busybox through it.
Now, when I type: cd /system
mkdir sd
I get :
mkdir failed for sd, read-only file system
What does that mean and how do I fix it?
Thanks
The saga continues...
With the busybox from Titanium Backup installed,
I needed to type:
adb shell
su
mount -o remount,rw /dev/block/mmcblk3p1 /system
exit
exit
Then, following the tutorial, I am up to step 12:
12) Now comes the tricky part: making Android mount your new partition at boot time. All the hard work would be useless if Android discarded the mount points every time we restarted our phones. To do this we’ll need to create 2 scripts and store then into /system/etc. Obviously the scripts should be started by init.rc and need to run as root. Fortunately Android’s init.rc have a gap that makes this possible. The scripts are named install-recovery.sh and init-sd2.sh.
My question is: How do you create scripts?
You would create them with notepad++ which is a windows program. Then using adb push them to the /system/etc directory.
I used a app called quicksshd and a windows program called winscp to copy the files to the directory. If you used my method you first need to make the /system directory rw before it will let you copy the files. It worked for me, the only thing i did differently is edit init.rc to mount the first partition of the sd card to /storage, but this was creating a modded 1.0c rom. So the result is about 4gb for my sd memory and 12gb for installing apps.
jazzbone said:
The saga continues...
With the busybox from Titanium Backup installed,
I needed to type:
adb shell
su
mount -o remount,rw /dev/block/mmcblk3p1 /system
exit
exit
Then, following the tutorial, I am up to step 12:
12) Now comes the tricky part: making Android mount your new partition at boot time. All the hard work would be useless if Android discarded the mount points every time we restarted our phones. To do this we’ll need to create 2 scripts and store then into /system/etc. Obviously the scripts should be started by init.rc and need to run as root. Fortunately Android’s init.rc have a gap that makes this possible. The scripts are named install-recovery.sh and init-sd2.sh.
My question is: How do you create scripts?
Click to expand...
Click to collapse
Hi rfisher
Thanks for replying!
While waiting, I opened Notepad++, copied the text in the tutorial window into it and saved the file as Unix.
Then, I copied it to a USB drive, put it in the A7, and copied to the system/etc folder.
Is that acceptable?
Then, I followed steps 13-15.
I think I did something wrong. I am not seeing it in Root Explorer. What should I be looking for?
Was I supposed to install Apps2SD already?
I got winscp and quicksshd working. YEAH!
Used them to copy the files as you did.
Restarted A7.
Still don't see the other partition.
PS. I was just rereading your earlier post and you mentioned:
I did try to mount the new partition to /storage which is also /sdcard and i was still not able to use titanium backup to move apps. The only way i have alot of space is use this method.
I'm also mounting the fat32 partition to location /storage so that when i download apps thats where they are stored until you install them. Also Titanium backup dumps the backups here. This is done with a custom mod of Dexters 1.0c mod.
Looking on my A7, I don't see a location that is /storage
My tablet is fresh out of the box, without any firmware updates yet.

put my sd card from epic, can't rename sdcard

I just got the atrix from radio shack and trying to make my sd card from the epic work... all my files are in there including key files, backups etc...
well the atrix has a 'sdcard' folder and the epic's is now sdcard-ext
I need to make the current sdcard folder disappear and make the sdcard-ext the default sdcard folder...
how do I go about this?
Really? nobody has anything on this!?
The sdcard folder is hard coded into the stock atrix firmware. It may be possible to make the change by rooting and deodexing the firmware.
Easier option would be to just use the included file explorer or one from the market to copy the files over to the internal storage.
Sent from my MB860 using XDA App
I did that, which is PITA. and problem is, anything that stores data (like text logs, backing up data) is all going into sdcard, not sdcard-ext
so when I wipe data for whatever reason, I'm loosing everything everytime...
razorseal said:
I did that, which is PITA. and problem is, anything that stores data (like text logs, backing up data) is all going into sdcard, not sdcard-ext
so when I wipe data for whatever reason, I'm loosing everything everytime...
Click to expand...
Click to collapse
use the customized recovery to wipe out,
nothing in intermal memory card will be deleted
razorseal said:
I did that, which is PITA. and problem is, anything that stores data (like text logs, backing up data) is all going into sdcard, not sdcard-ext
so when I wipe data for whatever reason, I'm loosing everything everytime...
Click to expand...
Click to collapse
some apps will give you the option to save to a certain location but most are set to default to your sdcard(internal storage). its because android doesnt assume that you will be using a external sdcard. just backup the stuff you want to keep on your sdcard before you wipe it...what do you mean by making the sdcard folder disappear? sounds like you dont want to use the internal sdcard at all?
Hey, there is a possibility that may work for switching internal and external sdcards.
In /etc/udev folder, there are configuration files for naming the devices. If we can create a configuration file that will force the atrix to mount the external sdcard as if it is the internal card, then what you want will work.
I will experiment with doing this from the adb command line, but this might need to be requested under the development forum.
If I have any success in this, I will start a thread under development and see if we can create an automated method for doing this. Since some apps don't know about the external card, this could be quite handy.
Hey, so I have successfully swapped the internal and external sdcard mount points, the trick is to edit the file /system/etc/vold.fstab
There are two lines that set the mount point of the internal and external storage. Once these are swapped, the cards change mount points, and the external is now mounted on /sdcard instead of /sdcard-ext.
If you have experience changing /system files, you can make this change yourself.
root *DEFINITELY* required.
--- Changes made to lines 13-17 of /system/etc/vold.fstab ---
# external sd card
dev_mount sdcard_ext /mnt/sdcard auto /devices/platform/tegra-sdhci.2/mmc_host/mmc2 /devices/platform/tegra-sdhci.2/mmc_host/mmc1
# internal eMMC
dev_mount sdcard /mnt/sdcard-ext auto /devices/platform/tegra-sdhci.3/mmc_host/mmc0/mmc0:0001/block/mmcblk0/mmcblk0p18

[info] gs3 not saving to external storage

I just thought you all should know ( if you didn't already) that if you have a sdcard installed in your gs3, that /sdcard in your file manager is not actually the external memory it's internal. I found that out by viewing my storage availability under settings and seeing that the Items that I thought were going to external storage, were in fact going to internal storage.
As it turns out, if you navigate to the root of your device in whatever file manager that you use (your device must be rooted to do so), you will find another storage by following the path /mnt/extsdcard. That is actually your external sdcard and not /sdcard. I don't know why Samsung did it this way, but there it is.
Most apps (like camera) will let you specify where to save things. Most but not all. Just have to look in each app.
Device does not have to be rooted to navigate to the base. Checked with estrongs and several others. You just have to enable going back to root in app settings. Or even changing where the app starts from (instead of /mnt/sdcard/ change to /mnt/). With es file explorer it is even easier than that. App starts on sdcard. Press favorites, select external sd. When you want to go back, press favorites and select home.
Sent from my SGH-I747M
tek_curious_1 said:
I just thought you all should know ( if you didn't already) that if you have a sdcard installed in your gs3, that /sdcard in your file manager is not actually the external memory it's internal. I found that out by viewing my storage availability under settings and seeing that the Items that I thought were going to external storage, were in fact going to internal storage.
As it turns out, if you navigate to the root of your device in whatever file manager that you use (your device must be rooted to do so), you will find another storage by following the path /mnt/extsdcard. That is actually your external sdcard and not /sdcard. I don't know why Samsung did it this way, but there it is.
Click to expand...
Click to collapse
Most of us who have been with Android for a while now know this, maybe some of the noobs might find it helpful though.

[Q] Make external sdcard show up under internal storage

Is there a way to basically create a symlink to /storage/extSdCard on the internal sdcard? I'm using an app that will only let me view files on the internal card. I'm coming from an HTC phone and the external sd card appeared as /sdcard/ext_sd.
I've tried creating the symlink through Root Explorer, Solid Explorer, and manually via adb (with root). I've tried every location I can find for the internal storage (/storage/emulated/legacy, /storage/emulated/0, /sdcard). Every time it says "link failed Operation not permitted".
I'm wondering if there's a way I can basically mount the external sd card in an additional location (in this case under the internal sdcard)? I've used a custom firmware on a router before that had a flash drive mounted as both /opt and /media/USB, so I think it's possible to have a partition mounted in multiple places.
Does anyone know how to do this, or have suggestion for a different way to accomplish it? Thanks.
Would this help you?
http://forum.xda-developers.com/showthread.php?t=2285221
TrofeoSC said:
Would this help you?
http://forum.xda-developers.com/showthread.php?t=2285221
Click to expand...
Click to collapse
Thanks, but I already looked into that. It won't work for this unfortunately.
Please read forum rules before posting
Questions and help issues go in Q&A and help
Thread moved
Thank you for your cooperation
Friendly Neighborhood Moderator
Ingenium13 said:
Is there a way to basically create a symlink to /storage/extSdCard on the internal sdcard? I'm using an app that will only let me view files on the internal card. I'm coming from an HTC phone and the external sd card appeared as /sdcard/ext_sd.
I've tried creating the symlink through Root Explorer, Solid Explorer, and manually via adb (with root). I've tried every location I can find for the internal storage (/storage/emulated/legacy, /storage/emulated/0, /sdcard). Every time it says "link failed Operation not permitted".
I'm wondering if there's a way I can basically mount the external sd card in an additional location (in this case under the internal sdcard)? I've used a custom firmware on a router before that had a flash drive mounted as both /opt and /media/USB, so I think it's possible to have a partition mounted in multiple places.
Does anyone know how to do this, or have suggestion for a different way to accomplish it? Thanks.
Click to expand...
Click to collapse
I use the FolderMount app. https://play.google.com/store/apps/details?id=com.devasque.fmount&hl=en
I use it to create a symlink between the directory in data/data where Google Music stores files and my external SD card.
screwdestiny said:
I use the FolderMount app. https://play.google.com/store/apps/details?id=com.devasque.fmount&hl=en
I use it to create a symlink between the directory in data/data where Google Music stores files and my external SD card.
Click to expand...
Click to collapse
Thanks, but I've already tried it and it won't work for this situation.
I found the solution, registered just so I can share this with you or anyone who needs it. Folder mount didn't seem to work for me either.
There is a file manager called 'Lidroid File' and a plugin for it called 'Super mount', both are available for free from the play store.
Install them, and then you can nicely pick a folder on the internal storage to mount the whole microSD in it, simple as that!
I needed this for Samba file sharing as I wanted to see the SDcard on the LAN and give it a network drive letter under windows 7.
Firsh said:
I found the solution, registered just so I can share this with you or anyone who needs it. Folder mount didn't seem to work for me either.
There is a file manager called 'Lidroid File' and a plugin for it called 'Super mount', both are available for free from the play store.
Install them, and then you can nicely pick a folder on the internal storage to mount the whole microSD in it, simple as that!
I needed this for Samba file sharing as I wanted to see the SDcard on the LAN and give it a network drive letter under windows 7.
Click to expand...
Click to collapse
Any updates to your solution? Does this still work?

SM-T580: Issue with Card Card setup (Link2SD and Titanium access)

Edit: Title should read "SD Card" (how to edit that?)
I have root and I am trying to get Link2SD to work. I have created the FAT32 (primary) and EXT4 (primary) partitions but I keep getting a mount script error ("unable to mount") (Also tried EXT2)
I am doing the same thing as I have done on several other devices and it is not working on the samsung.
Also, I am having issues with getting Titanium Backup to wrtie to the SD card too. I tried the Kitkit SD card patch but it failed.
I know the SD card works so I am thinking it is a wonky Samsung thing?
Thoughts or advice
Edit: Pulling SD card, re-inserting and rebooting and then Link2SD reports that the 2nd partition is not accessible during boot (and suggests quick boot to fix which it does not). Samsung says the FAT32 is fine but the EXT is "corrupt" but I have confirmed on two other devices it is fine.
So this seems to be some sort of access thing. Maybe related to the removal of encryption patch as part of the TWRP install?
Edit2: cat /sys/block/mmcblk2/device/type gives back "no such file or directory"; (whereas mmcblk1 gives SD)
Total commander shows sd-card (which is internal /storage/emulated/0), sd-card(2) "/data/sdext2"), and USB (SD FAT32 as /storage/BDB2-8960)
Got TB fixed anyway. Backup one file (on device internal location), move the directory to external SD card, then TB decided it is was OK to include that location under settings so select new location.
Now need Link2SD. Could this be a mount script write issue? Encryption issue (I removed it from internal via a scripted)?
Runings Mounts2SD, installed scripts, reboot but it says External is "not mounted". Link2SD still fails with those scripts installed.
chemie99 said:
Got TB fixed anyway. Backup one file (on device internal location), move the directory to external SD card, then TB decided it is was OK to include that location under settings so select new location.
Now need Link2SD. Could this be a mount script write issue? Encryption issue (I removed it from internal via a scripted)?
Runings Mounts2SD, installed scripts, reboot but it says External is "not mounted". Link2SD still fails with those scripts installed.
Click to expand...
Click to collapse
Link2SD never worked for me either no matter what I did. Apps2SD works flawlessly. Links data, apk, obb files and everything without any issues on ext4 format.
moxalis said:
Link2SD never worked for me either no matter what I did. Apps2SD works flawlessly. Links data, apk, obb files and everything without any issues on ext4 format.
Click to expand...
Click to collapse
I tried installed Apps2SD but it never asked for root and decided half the apps could not be moved. I figured it was just offering the usual stock "move apps" which moves marginal amount.
Samsung says that the EXT partition is corrupt but Aparted says it is fine. EXT2, and EXT4 created in either Minitool or Aparted are simply not read.
Mount2SD adds scripts to mount but the partition remains unmounted after reboots.
What format does Samsung want?
chemie99 said:
I tried installed Apps2SD but it never asked for root and decided half the apps could not be moved. I figured it was just offering the usual stock "move apps" which moves marginal amount.
Samsung says that the EXT partition is corrupt but Aparted says it is fine. EXT2, and EXT4 created in either Minitool or Aparted are simply not read.
Mount2SD adds scripts to mount but the partition remains unmounted after reboots.
What format does Samsung want?
Click to expand...
Click to collapse
Samsung reads the partition as corrupt but Apps2SD is using it just fine. You should delete any mount scripts and re-create them through the Apps2SD application.
moxalis said:
Samsung reads the partition as corrupt but Apps2SD is using it just fine. You should delete any mount scripts and re-create them through the Apps2SD application.
Click to expand...
Click to collapse
How do I manually delete the mount scripts?
chemie99 said:
How do I manually delete the mount scripts?
Click to expand...
Click to collapse
There is the option "Delete mount scripts" in the Apps2SD app. Check their FAQ page for any questions, it's pretty helpful.
Hello! I was having just the exact same problem with my T580.
I just loged in to say how I fixed it:
Open SuperSU app -> Settings.
Check "Enable su during boot"
Uncheck "Mount namespace separation".
After a reboot, Link2SD detected the 2nd partition!
EDIT: Now I fin another issue. If I try to link Obb, it says my device is using "sdcardfs". It offers to install fuse insted to fix it, but after rebooting I still getting the same message.
What could I do?
otamaglimmer said:
Hello! I was having just the exact same problem with my T580.
I just loged in to say how I fixed it:
Open SuperSU app -> Settings.
Check "Enable su during boot"
Uncheck "Mount namespace separation".
After a reboot, Link2SD detected the 2nd partition!
EDIT: Now I fin another issue. If I try to link Obb, it says my device is using "sdcardfs". It offers to install fuse insted to fix it, but after rebooting I still getting the same message.
What could I do?
Click to expand...
Click to collapse
Seems Link2SD does not like Marshmallow so I switched to Apps2SD (which also suggests what you did). It would not create the partition itself but took windows EXT4 and after a bunch of config, worked. The issue I now have is that Samsung still thinks the card is corrupt (which it isnt); any EXT partition and it says that. So on any reboot it greets me with a system notification of a corrupt card (which I want to get rid of but so far can't)..
I did try adoptable using a scripts from this site (didn't work) and the Apps2SD option. Seem to work on device but windows only saw the device memory so would not copy anything when it reported full.
took another kick at the cat today; installed Apps2SD, created mount scripts, but now, for reasons unknown, it no longer reports the SD as corrupt on boot (although it does say that partition is corrupt from the storage setting menu. Weird. No idea why it is no longer doing this. I will say the reinstall was funny. I had to delete and recreate the mount scripts several times (all said it worked) to actually get apps to move without disappearing. perhpas I ended up with a different mount script method in all the trying

Categories

Resources