Empty sdcard - G2 and Desire Z General

I ran fix_permissions in terminal on my phone and I got some errors about permission denied and opening a file from sdcard. Now it says my sdcard is blank or has unsupported filesystem. Running df -h shows that my sdcard (/mnt/asec) is now 185Mb and is tmpfs. How do I fix this?
Sent from my HTC Vision using XDA App

Related

Sd card unavailable

For those who cant get their sd card working after trying data2sd and performing a lag fix and want to get back to normal...try this following commands by installing terminal emulator from the market....
su
mkfs.vfat /dev/block/mmcblk0
reboot
It should work now thats what i did...and after entering the second command you should wait till it goes to the next line
Sent from my GT-I5800 using XDA App

[Q] sd card unmounted or not present on new CM7 Gingerbread rom?

hi, im using racht floyo 0.15 and eveything works pretty well, but when i load up a GB Rom i cant access the sd card, its not recognised?!
any suggestions?
i dont know if i had to create a partition or something?
thanks - G
what is GB Rom? make sure you have one FAT32 partition on your SD
I was having problems with my sdcard card its ext and win32 keeps saying unsupported so to fix this temporary download terminal emulator. open the problem
now type
su
mount /sdcard
then open up settings, storage and then press mount the sdcard and should work
i think it shouldnt be partitioned. so only one FAT32 partition one the sdcard
GB as in Gingerbread (any rom that is 2.3 basically)
its only those 2.3 ROMs that my sd card isnt recognised
I opened up terminal emulator on my phone but cant type anything? no keyboard appears
hmmm thanks for the replies but still stuck
apprentice01 said:
I was having problems with my sdcard card its ext and win32 keeps saying unsupported so to fix this temporary download terminal emulator. open the problem
now type
su
mount /sdcard
then open up settings, storage and then press mount the sdcard and should work
Click to expand...
Click to collapse
My sd card is win32, have no idea what ext means...
I already have terminal emulator, I open it but dont know how to type cuz my keyboard doesnt appear??
thanks
match_stick said:
My sd card is win32, have no idea what ext means...
I already have terminal emulator, I open it but dont know how to type cuz my keyboard doesnt appear??
thanks
Click to expand...
Click to collapse
I have removed ext2 partition and mount it and app2sd on fat32 works too so you can remove it and when you are in terminal emulator press menu button then touch toogle soft keyboard.
as-mario said:
I have removed ext2 partition and mount it and app2sd on fat32 works too so you can remove it and when you are in terminal emulator press menu button then touch toogle soft keyboard.
Click to expand...
Click to collapse
what is app2sd? I heard of it, ive never looked into it though, is it an app? in settings I select to save apps to sd card anyway so does that matter? its confusing as hell! all I want is my sd card to work on 2.3 Roms...ill get there soon, bare with me hahahah
thanks for all replies also!
try pressing on the screen where terminal is and keyboard should pop up
Sent from my E15i using XDA Premium App
right...i just loaded up my cm7rc4 Rom, opened up TERMINAL EM and have the keyboard...
I typed SU...approved the superuser blah blah...
then typed mount /sd...
now its says 'mount: can't find /sd in /etc/fstab
hmmm, mayb i should just stick with the working racht 0.15?...
you need to type mount /sdcard when type su try typing ls
it should give you directory and see if you have folder sdcard
Sent from my E15i using XDA Premium App
teminal emulator...
'mount/ sdcard'
'permission denied (are you root?)'
what now
errr
yes I am well get root and try it again
Sent from my E15i using XDA Premium App
well i typed 'su', then 'mount /sdcard' and there was abit of hope....
then it sed 'mounting' (and other stuff came up)....but failed at the end, 'no such directory'!
im guna give it a miss for today, but will return soon to see if anythin else works. thanks for all replies. much appreciated
hahah no, TERMINAL EMU says -
''PERMISSION DENIED (ARE YOU ROOT?)''
I am rooted...hence the baffled state I am currently in.
match_stick said:
right...i just loaded up my cm7rc4 Rom, opened up TERMINAL EM and have the keyboard...
I typed SU...approved the superuser blah blah...
then typed mount /sd...
now its says 'mount: can't find /sd in /etc/fstab
hmmm, mayb i should just stick with the working racht 0.15?...
Click to expand...
Click to collapse
did it shown "sdcard save to remove" on the notification bar?.you didn't partitioned the sdcard..did you?...gingerbread just need a singlefat32/fat sdcard format as i know
stil cant access sdcard on 2.3 roms, doin my head in! ive tryed thru terminal emulator ('mount /sdcard' fails everytime) any1 else have this problem??
plz help!
Updated 16-Apr-2011 :
Still hunting for rootapps reboot problem.
There's a thought that its caused by our second /init dying.
Indeed, this can be reproduced if u kill -HUP or just kill the secondary init process.
i.e.
# ps | grep init
1 0 348 S /init
1117 0 392 S /init
2854 0 840 S grep init
# kill -HUP 1117
causes phone to say "SD-card safe to remove" and than reboot.
Unfortunately we can't replace original init on process 1, the only way to do it is to boot custom kernel..
And out init (1117 in my example) is not system-protected, and can be killed.
Now, can someone tell me why running root apps causes second init to die ?
So thats the clue for solution, custom kernel = end of problems.
http://forum.xda-developers.com/showthread.php?t=914513
this will explained the problem.. We just hope the Racht will do some solutions about it.. Thanks to him
Thats realy stupid answer,he just need to remove ext patition.
Sent from my X8 using XDA Premium App
how do u remove ext partition? I havnt created a partition on my sdcard ?, and for some reason its only 2.3 Roms that dont seem to read my sdcard? any others r fine, im using Floyo0.15 at the mo.
could u tell me step by step how to resolve this problem plz? thanks

How to find out the file system of the SD-EXT???

Sorry for this noob question. Is there a way to find out the file system of the SD-EXT? Whether it is EXT/EXT2/EXT3 or EXT4? I created a SD-EXT of 1GB with CWM 5.0.2.6(HD2toolkit) . But the file system type is to be stated when using Link2SD.
Sent from my Evo Hd2 using xda app.
CWM creates ext3. You can confirm that by going to terminal emulator or adb shell and typing mount. Look for /dev/block/mmcblk0p2
Swyped from my HTC HD2 using XDA Premium

[Q] directory bind to play game with OTG usb drive

I am facing this issue with my Nexus 7 4.2.1 stock ROM rooted.
I am trying to move game data to a usb flash drive to save space, and then mount bind the directory using an OTG cable.
When I use StickMount I can see the usb drive at /sdcard/usbStorage/sda1 using ES File Explorer.
Then I use Terminal Emulator to mount bind the directory:
[email protected]:/ $ su
[email protected]:/ # mount -o bind /sdcard/usbStorage/sda1/test /sdcard/Android/data/test
These seems to work because if I navigate the directories using Terminal Emulator, I see how the test directory was linked and the data can be seen.
But if I use ES File Explorer to go to the same directory (/sdcard/Android/data/test), folder is empty, and if I try to run the game, it tries to download again because can't see the data in that directory.
So my question is if I can do the directory bind using other source like /data/media, /storage/sdcard0, or /mnt/sdcard instead of just /sdcard to make ES File Explorer and the game to see the data directory?
It is good to verify with Terminal Emulator that the directory bind worked but not good enough to make the game works saving internal storage space.
Thank you.
http://forum.xda-developers.com/showthread.php?p=35960052
Directory bind does not work on android 4.2.1!
The above thread has more details, hopefully the developer of directory bind app is looking for a solution!
Sent from my Nexus 7 using XDA Premium HD app
I don't need to use the app. I can do it just typing the unix/linux commands.
rabascal said:
I don't need to use the app. I can do it just typing the unix/linux commands.
Click to expand...
Click to collapse
The new file structure in android 4.2.1 is causing problems! The app i believe uses the bind command as well! So it is the bind command that doesn't work properly!
Have you tried using Sy links instead of binding the folder?
Use the following command to symlink
ln -s [source folder] [destination folder] where source and destination are path names
Thank you for the suggestion.
I tried several times on different directories but it didn't work.
I read somewhere that symlink does not work with FAT32. Is this my problem?
The USB flash drive that I am using where I copy the fifa 12 game directory is FAT32.
Do I need to have the usb storage formatted as ext2 or ext4? How can I do that? I am guessing I can't do it on Windows, right?
rabascal said:
Thank you for the suggestion.
I tried several times on different directories but it didn't work.
I read somewhere that symlink does not work with FAT32. Is this my problem?
The USB flash drive that I am using where I copy the fifa 12 game directory is FAT32.
Do I need to have the usb storage formatted as ext2 or ext4? How can I do that? I am guessing I can't do it on Windows, right?
Click to expand...
Click to collapse
Try formatting it to ext3..it will delete the data of course so take a backup.on windows use mini tool partition manager...its free and can format to any ext.

[Q] Symlink on /sdcard

hello there!
so im trying to symlink a subfolder to a folder on the root of my sdcard, and quite obviously i dont have a physical sd as i have a nexus 4, so the partition i created the symlink on is /data/media/0.
The story (just the reason behind it, not necessary to read):
here is why i want this symlink:
i want to use the helium backup app from the clockworkmod team, which creates a 'carbon' (old name of the app) folder on /sdcard.
i want to sync the local backup folder to my drive, for which i use the foldersync app which syncs everything found in /sdcard/drive, so i want to have the carbon folder in /sdcard/drive and create a symlink in /sdcard to it.
the reason i dont use heliums implemented drive backup option is that i have no idea where it stores all the backed up data and cant keep track of its storage usage and cant organize it the way i want to.
unfortunately helium has no option to move its local backup folder, and the dev team didnt answer my email about the backup location on drive.
whatever, back to topic...
i have created the symlink with this command:
Code:
ln -s /data/media/0/drive/carbon /data/media/0/carbon
this is working, when i use the /data/media/0 path, but when i try to look into the content of /sdcard/carbon (which obviously the app uses too), i get an error: function not implemented.
if i use this command:
Code:
ln -s /sdcard/drive/carbon /sdcard/carbon
i get the same error (function not implemented), and the symlink does not get created.
is there a way to create a working symlink for /sdcard?
i could try symlinking /sdcard to /data/media/0 (i would have to delete the existing /sdcard link, which i have no idea how is linked) with adb, but i dont know if it could work. has anyone tried that before?
ps: i have googled it and also looked for a solution on xda, havent found a solution yet...
bump
nobody? :/
sent from my Nexus 4...
Not sure why symlink isn't working. You can try binding folders which works in many cases where symlink does not.
mount -o bind src_folder dest_folder
You might need to put this in init.d script so that the bind happens on every boot as it won't stick across reboots.
Most likely the problem you are facing is because of unified filesystem that's implemented. i.e. a single physical partition acts as two virtual partitions one containing /data and other /sdcard
Sent from my Nexus 4 using xda premium
You can't symlink on sdcard because the /sdcard is formatted either fat32 or fatx (can't remember which). Neither of which supports symlinks
Sent from my Nexus 4 using xda app-developers app
Alex240188 said:
You can't symlink on sdcard because the /sdcard is formatted either fat32 or fatx (can't remember which). Neither of which supports symlinks
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
The sdcard on nexus isn't FAT as its not mounted as USB mass storage but over MTP.
Phones which support mounting as USB drives use FAT formatted sdcard partitions so that it can be read by Windows natively.
Sent from my Nexus 4 using xda premium
That's interesting because my previous phone. HTC one x /sdcard was 100% formatted fat because it was mtp in android. But you could still Mount as ums in recovery
OK, just had a quick look. guess you are right, /sdcard/ is formatted as EXT4 so symlinks should work fine.
edit
its mounted as ext4 in recovery.
in android its mounted as fuse which is why the symlink doesnt work
confirmed.
i just booted into recovery
Code:
adb shell
~ # ln -s /sdcard/carbon/ /sdcard/drive/carbon/
ln -s /sdcard/carbon/ /sdcard/drive/carbon/
~ # cd /sdcard/carbon
cd /sdcard/carbon
/sdcard/carbon # ls -l
lrwxrwxrwx 1 root root 21 Jul 1 21:35 carbon -> /sdcard/drive/carbon/
however upon rebooting the symlink is lost as it is no longer been mounted as ext4
Sent from my Nexus 4 using xda app-developers app
atulalvenkar said:
Not sure why symlink isn't working. You can try binding folders which works in many cases where symlink does not.
mount -o bind src_folder dest_folder
Click to expand...
Click to collapse
unfortunately, this doesnt work, i get this:
/system/bin/sh: bind: -o: unknown option
i also tried mount --bind src dest, but that doesnt work either.
so there is no way to create a symlink or any other way to link a folder to another?
zakoo2 said:
unfortunately, this doesnt work, i get this:
/system/bin/sh: bind: -o: unknown option
i also tried mount --bind src dest, but that doesnt work either.
so there is no way to create a symlink or any other way to link a folder to another?
Click to expand...
Click to collapse
I tested and it was working fine. Looks like you just typed bind -o instead of mount -o bind. It should be "mount -o bind src_folder dest_folder".
There is an app which does this for you. I haven't used it personally but you can try. Check here http://forum.xda-developers.com/showthread.php?t=1410262
Sent from my Nexus 4 using xda premium
atulalvenkar said:
I tested and it was working fine. Looks like you just typed bind -o instead of mount -o bind. It should be "mount -o bind src_folder dest_folder".
There is an app which does this for you. I haven't used it personally but you can try. Check here http://forum.xda-developers.com/showthread.php?t=1410262
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
I am looking for a solution as well as my links on my n10 no longer exist. Nothing works including factory flashing the device back to stock.

Categories

Resources