[Q] Link in /sdcard to /emmc or /mnt/emmc? - Vibrant Q&A, Help & Troubleshooting

In order for Samba (SMB access to Android from Win) to be able to get to my external SD card I need to make a file system link within /sdcard (or /mnt/sdcard) to /emmc (or /mnt/emmc.)
How do I do that?
Thanks

If it is formatted as FAT, which it normally is, you can't AFAIK. If you format it as any Linux FS, you can just ln -s, but android might not recognize it as an sdcard. Maybe ICS would, or you could make an init script to mount it. ICS makes some use of ext4.

Related

[Q]Winamp WiFi sync to External SD Card

Hey guys!
I've searched through the forum, and Google, but I've not found anything of help
Is there any setting, any hack or customization of any kind, to make Winamp store the WiFi sync songs to a custom folder? It's putting them on the phone right now, but I'd like them on the External SD card.
Thanks for your help!
+1 on this.
Wifi Sync only syncs data to /sdcard/music folder no matter what we do...
In Samsung Galaxy SL (I9003), /sdcard is internal sdcard and /sd (~/external_sd) is external sd.
I tried to create a symlink to ~/external_sd/Music in /sdcard/music using terminal emulator so that /sdcard/music points to ~/external_sd/Music (or /sd/Music)
But it says operation not permitted.
After a bit of research, it was clear why it was not allowing.
Our external sd card is fat32 filesystem and its not possible to create symlinks on that filesystem.
I was thinking why do we need external sd to be fat32, wasnt it just fine to use ext3 or some other linux friendly file system?
And maybe change fstab to mount it as ext3. smthing like that?
Just checking possiblity.

[Q] Automatically Mount Rhapsody to External SD

So I just got a 'new' Samsung Exhibit II 4g which has a very small amount of internal memory, and since Rhapsody doesn't have a way to distinguish between internal /sdcard and external /sdcard I decided to try to figure out how to mount my rhapsody folder to the external.
Code:
mount -o bind /sdcard/external_sd/rhapsody /sdcard/rhapsody
Now that works fine. Rhapsody downloads to the /sdcard/rhapsody folder and is none the wiser on it being on the external memory card, however, I am stumped on how to get this behavior to happen automatically.
I have tried adding new scripts to /etc/init.d or appending that line to other scripts with no success. I also tried adding the line to /etc/vold.fstab with no luck.
Is it not possible, or am I missing something obvious? The phone is actually for my dad and I don't want to have to teach him how to open terminal emulator and run the shell script...
I've tried it on my Motorola Atrix and couldn't get it to mount automatically either. It's a little different, since it mounts the external as /sdcard-ext, but the theory was the same.
I originally tried to use symbolic links, but the partitions are formatted to fat32 and don't support linking. I'm not sure if I could switch it to ext3 or ext4 without losing any functionality.
Thanks

[Q+A] Mounting ext3 SD card

On my Archos 101IT I formatted the (removable) SD card as ext3. This was required for TitaniumBackup. When UrukDroid is booted, it mounts the file system as:
/dev/block/vold/179:17 on /mnt/storage/sdcard type ext3 (rw,nosuid,nodev,noexec,noatime,nodiratime,fmode=0 666,dmode=0777,errors=continue,data=ordered)
I do not want the fmode/dmode since these make it impossible to protect files on the storage (again, as required by TitaniumBackup).
Where can I change what to have this file system mounted with the right options on reboot?
ANSWER:
Urukdroid has a special script, /system/bin/mount_sdcard.sh, that mounts the SD card upon boot. This script understands (V)FAT and EXT4. Anything else is left to the vold automounter. Archos modded vold so it could do a bit more than stock A 2.1 vold, e.g., mount EXT3 file systems.
I upgraded the file system on the SD card to EXT4, and now mount_sdcard.sh mounts the SD card upon boot with the correct mount options.
Thanks to $aur0n for helping me solve this.
Upgrading an EXT2 or EXT3 file system to EXT4 is easy, see https://ext4.wiki.kernel.org/index.php/Ext4_Howto#Converting_an_ext3_filesystem_to_ext4 .

Mount ext4 formated sdcard with exec rights

Hello all. I want to compile something on my tablet, but there are some problems. I can remount fat sdcard with umask=0000, to make awerything executable. But i want automatically mount ext4 formated card with exec rights? Is it possible? How to handle sdcard insertion?

help format internal sdcard (24gb) to ext4?

I recently tried decompressing a file that was just under 4gb to the internal sdcard. the decompression stopped at 52% (about 2gb) Think it's a fat32 file sytem with 2gb file limit. . booting to recovery and using ubuntu I can only connect via mtp from the mounts menu. Gparted cannot see the device. I'm thinking gparted does not view mtp as a local block device. any ideas how to format the 24gb internal sdcard to ext4 or reasons why I shouldn't ? thanks.
rp201 said:
I recently tried decompressing a file that was just under 4gb to the internal sdcard. the decompression stopped at 52% (about 2gb) Think it's a fat32 file sytem with 2gb file limit. . booting to recovery and using ubuntu I can only connect via mtp from the mounts menu. Gparted cannot see the device. I'm thinking gparted does not view mtp as a local block device. any ideas how to format the 24gb internal sdcard to ext4 or reasons why I shouldn't ? thanks.
Click to expand...
Click to collapse
MTP is a real PITA, imho. I'm pretty sure that GParted would not recognize an MTP or PTP connected device as local block storage; the device handles its own disk management with these protocols.
How were you decompressing the file to the device? It might be better to decompress on your Ubuntu box, then transfer the file through MTP, ADB push, or cloud storage service.
Do you have enough storage available on the destination device to accommodate the decompressed file size? Try this in a terminal on the device:, look at the line for either /sdcard in TWRP or /data in the ROM, respectively.
Code:
df
Have you tried going into either an ADB shell or terminal session on the device to check the file system type?
If you are in TWRP, what is the output of the following in the device terminal?:
Code:
mount | grep /sdcard
Can you still get into a ROM? If you are there, what is the output of the following in an terminal or ADB shell?:
Code:
mount | grep /data
Thanks for responding. I can't say I diddn't think of decompressing on the pc and then transfering but I just felt like moving down the path of converting to ext2 for it's resiliency . as far as space available I had at least 12gb. Im also running multi-rom and I also kinda wanted to see how that was going to work out. The multirom directory contents are not visible from the internal rom they can only be seen from recovery and copied there.
rp201 said:
Thanks for responding. I can't say I diddn't think of decompressing on the pc and then transfering but I just felt like moving down the path of converting to ext2 for it's resiliency . as far as space available I had at least 12gb. Im also running multi-rom and I also kinda wanted to see how that was going to work out. The multirom directory contents are not visible from the internal rom they can only be seen from recovery and copied there.
Click to expand...
Click to collapse
Interesting... EXT2? The only application I have seen that for recently is a dual boot scenario where Win7 and Linux share a common data partition and you want to use something better than FAT or NTFS. EXT4 is journalled and is more the standard of late, for most partitions under Linux.
Not sure Android even supports EXT2 and even if it does, how would you go about formatting an internal sdcard partition to it. I have used Gparted to redo external cards in a card reader, but how would you do the internal partition, especially since it seems to be mounted at /data/media and /data is ext4?
epidenimus said:
Interesting... EXT2? The only application I have seen that for recently is a dual boot scenario where Win7 and Linux share a common data partition and you want to use something better than FAT or NTFS. EXT4 is journalled and is more the standard of late, for most partitions under Linux.
Not sure Android even supports EXT2 and even if it does, how would you go about formatting an internal sdcard partition to it. I have used Gparted to redo external cards in a card reader, but how would you do the internal partition, especially since it seems to be mounted at /data/media and /data is ext4?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2126363
netookska05 said:
http://forum.xda-developers.com/showthread.php?t=2126363
Click to expand...
Click to collapse
Right.... I am familiar with that...
Internal /sdcard/ is not a physical MicroSD card, nor is it mountable as USB storage media, to my knowledge, just as an MTP/PTP or ADB device through the ROM or TWRP, respectively. That is why I am asking why and how you might go about formatting it to ext2. Not that it's impossible, just don't see why you'd want to do that...
reason for formatting to ext4... (I mistakenly wrote ext2 instead of ext4 on my previous post)
1. to possibly solve file size limitations of 2gb for fat32,
2. ext4 (yes ext4 not ext2) is a journald file system
3. it would give my phone wings as if I poured redbull on it. (not really... I just needed a 3rd reason)
My phone is 32gb. I believe it is 8gb emmc and 24gb sdcard_internal. (I also have an Sdcard_external which is the removable micro sdcard but I'm not asking about that) Doing this ext4 formatting May be more of a hassle with permissions issues when running multiple roms anyways. if it can't be done then no biggie. I was wondering if twrp or philz had the capability
rp201 said:
reason for formatting to ext4... (I mistakenly wrote ext2 instead of ext4 on my previous post)
My phone is 32gb. I believe it is 8gb emmc and 24gb sdcard_internal. (I also have an Sdcard_external which is the removable micro sdcard but I'm not asking about that) Doing this ext4 formatting May be more of a hassle with permissions issues when running multiple roms anyways. if it can't be done then no biggie. I was wondering if twrp or philz had the capability
Click to expand...
Click to collapse
ext4 makes far more sense. Not that there isn't a part of me that now wants to figure out how to make it ext2, just for the exercise....
You still didn't answer my original troubleshooting questions though... What happens when you try the df and mount commands I referenced? This may be a moot point after that.
Here u go
Alright, this is telling me that the /data partition, where the internal SD card is mounted, is already ext4. It has 6 GB free.
I am unable to see the filesystem on the external SD card with this output, but it has just 3.5 GB free.
So again, I think you would need to decompress the file on the Ubuntu box, determine its uncompressed file size, then transfer. Depending on the compression ratio, you may be over the 6 GB. Either way, you are cutting very close and not allowing much room for new software or local files.
Can you guys speak in English please
Can I or can I not claim all of the 30 GB of storage
Thnx

Categories

Resources