hi there,
just got my nc in the past few days and have hc v4 flashed to the emmc, runs great and love it. however, there is one quirk that bugs the hell out of me -- i have a samsung vibrant, which has an internal sd and a slot for an external. the internal is mounted as /sdcard and the external as /external_sd. this is great bc you dont need the external inserted to use apps that require sdcards.
is anyone aware of a way to get our /media mounted or symlinked as /sdcard instead? (or even as a subdirectory under /sdcard). i tried everything last night, from running mount commands under terminal emulator (kept telling me my syntax was wrong when it wasn't), trying symlink (told me operation not allowed), editing /etc/vold.fstab (no dice)... i think part of the issue is that the internal eMMC is mounted as /media in the actual /init.rc script.
is there anyway for me to preempt the init.rc or and trick the OS into seeing /media under /sdcard? I have a 256MB sdcard inserted to shut up the apps that require sdcards, but i would rather use my internal storage with those (since it's there for that reason...)
any ideas?
solution is here:
http://forum.xda-developers.com/showthread.php?t=966339
Related
I am using honeycomb rom, and booting from an 8gb sd carb. When i use astro to browse the file structure, i do not see anything in /media/ and i don't see the memory in /dev/ (though there are many files.) I have the hidden files visible.
Is the internal memory (the actual physically unremovable memory, not the ) just inaccessible when you boot from the sdcard? or what is it called?
I am using CM7 instead of honeycomb. The internal memory under CM7 is mounted to /emmc/ instead of /media/.
Hm, there is no /emmc/ directory...
From memory media isn't mounted on boot on HC-sdcard.
You'll have to use the following commands in terminal emulator on each bootup:
su
mount /dev/block/mmcblk0p8 /media
Sent from my Desire HD using XDA App
samuelhalff said:
From memory media isn't mounted on boot on HC-sdcard.
You'll have to use the following commands in terminal emulator on each bootup:
su
mount /dev/block/mmcblk0p8 /media
Click to expand...
Click to collapse
I'm from the Linux world, so this may be misguided, but can you add entries to /etc/fstab or its equivalent to always mount the emmc partitions?
Dennis
Hi all.
I use linux extensively, but am only recently immersed in android devel and understanding busybox etc.
Have had poor results symlinking via terminal in the past. As I vaguely recall, this is an issue with FAT filesystems (or perhaps phone sd card architecture, I can't remember).
Before I duplicate effort, has anyone found an effective means to symlink across internal/auxillary sd cards?
Thanks.
Sent from my MB860 using xda premium
Both SD Card and internal storage are formatted using vfat (aka fat32) so you can't symlink stuff inside them .You can, however, create symlinks on other filesystems (say, /data) pointing to files on them.
eventually you could partition your external sdcard into two partitions, one vfat and the other ext3/4 than make symlinks to the ext partition on the external sdcard
In short,
what should vold.fstab look like to link /sdcard/external_sd to the 2nd partition on the EMMC external sdcard? (/dev/block/mmcblk0p2 is a bad idea)
Background and why you might want to do this:
3 data partitions, how best to arrange? (/mnt/emmc /mnt/sdcard & 2nd emmc partition)
My internal memory has shrunk down from 8gb to about 4gb, which is annoying but natural for flash storage.
This is no longer enough space for apps such as Sygic to store it's maps in.
Sygic looks in /mnt/sdcard & /mnt/sdcard/external_sd. These older apps are always going to be a problem so I'm looking to make /mnt/sdcard/external_sd available somehow. But which way is best?
I have 2 partitions on the EMMC sdcard and the internal SDcard is just fat32:
Internal SD = ~4gb, /mnt/sdcard
External SD partition 1 = fat32, ~10gb, /mnt/emmc
External SD partition 2 = ext3, ~5gb, currently used by link2sd in /mnt/sec I think
Click to expand...
Click to collapse
/mnt/sdcard/external_sd is unused.
I would prefer to do:
Code:
ln -s /mnt/sec/external_sd_emulated /mnt/sdcard/external_sd
...but presumably because the /mnt/sdcard is only fat32 I have permission denied. I was hoping this would work since the source for the link is ext3 even if the destination is fat32.
I could edit fstab to change that but I'd rather not if possible because that's a bit too non standard for me. If I did though... what would that be?
I guess it would be adding to vold.fstab:
Code:
dev_mount emmc /mnt/sdcard/external_sd auto /devices/platform/s3c-sdhci.[B]3[/B]/mmc_host/mmc[B]2[/B]
^ but should it be a 3 or a 1 at this line? fstab -l with no output and nothing in /devices makes it hard to figure out
I would normally experiment but in this case I don't want to get it wrong. How do I find out what /mnt/asec is mounted to because df isn't showing it
Just to show I have searched, a related thread:
http://forum.xda-developers.com/showthread.php?t=941443
&
http://forum.xda-developers.com/showthread.php?t=1524831
Also a note to anyone reading this; obviously backup your vold.fstab file... but also put it somewhere that you can access easily via adb and CWM recovery if it doesn't work. I guess mounting /dev/block/mmc... might work but that would then fail if the sdcard isn't present... which would be I guess when USB mass storage mode is turned on.
Some documentation on /devices on Android would be good:
http://miuiandroid.com/community/threads/vold-fstab-modding-need-help.15576/
Same problem.
I used Galaxy S 8GB and found that it's too less space for install many game.
So I buy micro sdhc 32 GB.
I added it in vold.fstab too but it seem like does not work.
Now I used workaround by run command.
mount -o /mnt/sdcard/Android /mnt/emmc/Android/
But it's not convenient to use because if you want to plug computer via USB you must umount first unless it might have problem when mount.
So If you can find solution to add it automount external sd (micro sdcard ) at startup same as internal sd feature please guide me.
Thanks
frankind said:
I used Galaxy S 8GB and found that it's too less space for install many game.
So I buy micro sdhc 32 GB.
I added it in vold.fstab too but it seem like does not work.
Now I used workaround by run command.
mount -o /mnt/sdcard/Android /mnt/emmc/Android/
But it's not convenient to use because if you want to plug computer via USB you must umount first unless it might have problem when mount.
So If you can find solution to add it automount external sd (micro sdcard ) at startup same as internal sd feature please guide me.
Thanks
Click to expand...
Click to collapse
you're gonna need an entry to whatever the sdcard is but from /devices so it ejects properly. the thing is I I'm not 100% the syntax in my first post is correct.... the only way is to try it unless we can find a command that is equivalent to fdisk -l on linux?
An app called directorybind can do this bit running an app all the time isn't ideal and it crashes for me from time to time
Hi guys.
I looked for other threads on this matter but found only dead threads with no answers.
Is it possible to format the whole internal SDCARD to say EXT2 (no journalling) so I can symlink /storage/sdcard1 on to /storage/sdcard0/external_SD
I would try to busybox and format the internal sdcard but then I would be left without a recovery. I already tried modifying /etc/vold.fstab but managed to break the mount points went into an endless bootloop and without a recovery. This happened due to my modifying of both the mount points in there
Now I was thinking of modifying just the line mounting emmc on to /storage/sdcard1 but then again this would probably break /emmc and /mnt/emmc symlinks so I decided I could ask you about changing the whole FStype.
I have a Gentoo running on my laptop and I could always start dual booting my desktop if needed.
Also since right now on JB I should have trouble mounting external SD on the PC via PTP and I haven't tried MTP yet this whole operation if sucessful might leave me out of direct USB connection to the PC if the phone is not in recovery.
I'm currently on HellyBean 0708.
So do you have any input on my thoughts? I could also try mount binding the external sdcard also to /storage/sdcard0/external_SD but it would lead to more duplicates for the media scanner and a need to further unmount the card prior to every PC connection.
And I could try to modify vold.fstab to mount it straight on to /storage/sdcard0/external_SD and revise and edit the /sdcard and /mnt/emmc symlinks manually but I'm not sure if this will work out ok after all and if the location /storage/sdcard1 is actually important for JellyBean.
Please give me an advice if somebody has already tried one of these approaches.
Cheers,
Deyan
Hi all,
Just got me an Xperia T, very happy with it.
Only thing I am having trouble understanding is how the file system works, please let me try and explain.
I have a 16gb micro SD card in the device and it also has 16gb of internal storage.
When I mount the device to windows it shows two drives (Internal Storage and SD Card), now these are pretty obvious as to which each one is.
Now my quandary: When I use astro file manager to browse the phone the file system is different (in fact pretty much the opposite).
The micro SD card shows up as "ext_card" and the internal storage (I think) shows up as "sdcard" and then there is another folder called "int_storage" that is empty.
Is this correct?
Could someone please clarify this for me?
Thanks,
Dave
Yes, this is the way it's supposed to be.
When you connect to the PC using MTP, you mount SDcard and ext_card from mnt.
Sent from my elegant Xperia™ Ion using xda premium app.
Cheers for the super fast response!
I thought that was how it was working but it was just a little confusing since it swaps around the name of each drive when plugged into windows.
Thanks again.
The way the T handles internal storage is a little odd...
Older devices have the "internal SD" formatted as FAT32.
Newer Android devices have this trick called emulated storage, where a FUSE module does special permissions magic to allow /data/media (on an ext4 system) to be mounted to /sdcard
The T is a little odd in that instead of using /data/media, it has int_storage or something like that, which is then remapped via FUSE to /sdcard. It's the only device I know of to have the internal SD formatted as ext4 but not "unified" internal storage (e.g. /sdcard is just a directory under /data)
Didn't really understand any of that.
But it's nice to know that I was right and it does handle the storage a little strangely (I deduced that much from your post at least).