hi
i have a big file called fr.whole.wikidroyd (for wikidroyd, wikipedia offline) in:
/sdcard/WikiDroyd/fr.whole.wikidroyd
id like to move this file to the external sd card
so, first i moved /sdcard/WikiDroyd/fr.whole.wikidroyd into /sdcard/external_sd/fr.whole.wikidroyd (from my WinXP computer while the I9000 connected by USB)
then in the terminal (#su), i tried to make a symbolic link like this :
ln -s /sdcard/external_sd/fr.whole.wikidroyd /sdcard/WikiDroyd/fr.whole.wikidroyd
and it said:
"operation not permitted"
what's wrong? isnt it possible to create symbolic links?
thanks
I have the same issue , i want to move the spotify directory to the external sd, but I get the same issue..
EDIT : ok I have found the issue, the external sd card is in FAT/FAT32 and we cant create symbolic links with fat. It works only for yaffs2 or ext2, ext3, ext4...
Related
Hi,
I am trying to create a raid 0 with 2 partition on an external sd.
Right now I ogt a problem while trying to create 2 partition on the external sd:
(running on JPK rooted with busybox 1.17.1 and terminal emulator)
when I "fdisk -l" I got no output, tried with "su" but nothing happens.
I found the external sd in "/dev/block/mmcblk1" but cant fdisk it neihter access (the external sd has been unmounted before...)
How can I clean and create 2 ext2 partition on the external sd?
After this I will create the raid array:
mdadm --create --verbose /dev/md0 --level=0 --raid-devices=2 /dev/block/mmcblk1p{1,2} #a partitionned sd is seen as mmcblkXpy where X is the disk, Y the partition so here I try to create a raid using both partitions#
mkfs.ext2 /dev/md0
tune2fs -c 0 -j 0 /dev/md0
mount /dev/md0 /mnt
Is it correct?
About why am I doing this, it is simple, because I can... (or I can try to do it) Also I wanna try to create a raid 0 and copy/loop/link some files to try another way to fix the lag. Dunno if it will work or not, if it will burn the sd or whatever but if we dont try we will never know ^^.
Plug it into a PC with an adapter and then boot up a Linux install disk and run from disk. You can then use the partition management software on there to do it. This is what I use to recover corrupt and fake SD/MicroSD cards.
That is an Absolutely Futile task on flash disks
you can get it to work, but the internal SD and external SD will die in no time.
and if you do as you said with 2 partitions on the same external SD is even more futile
the goal of any RAID is to use separate physical DISKs not partitions
each DISK is a volume, not each partition
in the end it's futile
I want that mdadm binary. Where did you get it?! I am testing with two separate files on two disks.. as in.. /data/media and /Removable/MicroSD (class 10) .... at first just loop devices, one file on each partition.. and yes, it is possible to create a RAID array using loop devices.
Mdadm for armel, I has it.. no work. Mdadm that works on android. Please post.
So does anyone know the right mountpoint (or better the right command) so i can see my sdcard contents through /sdcard.
I'm in recovery mode used adb to make a connection. Now i need to transfer files from internal sd to /system. The problem my /sdcard folder looks empty (of course i have many folder and files there.
------EDIT------
mount -t vfat /dev/mmcblk0p1 /sdcard thanks sztupy!
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
This really isn't Android development related but seems too technical for the general area. Please move it if there is a more correct place for this post to be.
I had the bright idea that I could get 'extra' storage by sym linking an internal application directory to the external SDHC card.
So I copied files and tried to link:
ln -s /sdcard/sdcard2/some_app_dir /sdcard/some_app_dir
This fails. After reading some here I figured out that its because the SDHC card is formatted in FAT32 and the internal /sdcard directory is a linux type format (ext2, ext3 or ext4, not sure which).
I figure no big deal, just format the SD card as ext3 (or 2 or 4 whatever matches, I just picked 3 for my attempts).
Now I can su in terminal and type:
mount -t ext3 -o rw /dev/block/mmcblk2p1 /sdcard/sdcard2
and its mounted and everything. Life seems good.
So I exit terminal and see what I can do with 'normal' apps. No go. Figure I had a permission problem. That can be fixed.
The bigger issue is the need to open a terminal session and manually mount the SDHC card.
So my questions are 2...
Is what I'm trying to do really do-able? As in will the whole sym link and ext3 formatted SDHC card idea work?
Secondly, how do I get the SDHC card to automagically mount?
bsoplinger said:
This really isn't Android development related but seems too technical for the general area. Please move it if there is a more correct place for this post to be.
I had the bright idea that I could get 'extra' storage by sym linking an internal application directory to the external SDHC card.
So I copied files and tried to link:
ln -s /sdcard/sdcard2/some_app_dir /sdcard/some_app_dir
This fails. After reading some here I figured out that its because the SDHC card is formatted in FAT32 and the internal /sdcard directory is a linux type format (ext2, ext3 or ext4, not sure which).
I figure no big deal, just format the SD card as ext3 (or 2 or 4 whatever matches, I just picked 3 for my attempts).
Now I can su in terminal and type:
mount -t ext3 -o rw /dev/block/mmcblk2p1 /sdcard/sdcard2
and its mounted and everything. Life seems good.
So I exit terminal and see what I can do with 'normal' apps. No go. Figure I had a permission problem. That can be fixed.
The bigger issue is the need to open a terminal session and manually mount the SDHC card.
So my questions are 2...
Is what I'm trying to do really do-able? As in will the whole sym link and ext3 formatted SDHC card idea work?
Secondly, how do I get the SDHC card to automagically mount?
Click to expand...
Click to collapse
Try this yet ? I used it on a test build on the kyocera zio and it worked.
https://market.android.com/details?id=com.a0soft.gphone.app2sd
Let us know
I didn't mean that I needed to save app space since I already use app2sd but that I wanted to save space from the files some particular app saves onto internal memory by moving them to the SDHC card.
If the app(s) in question were written with the idea that there could be multiple places to store files I wouldn't need to do this but they aren't. They write to a single, fixed location that's on the internal memory of the Streak. Which means if I move those files to the SDHC I need to make them appear in their internal memory location, hence the link command in my OP.
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