Hi can anyone help me my defy won't mount any Sd card I use but they all work on my HTC I can't mount mass storage or mount /sdcard in recovery and when I go too import.contacts from Sd card it.says no sdcard connected any help?
Sent from my HTC Desire C using xda app-developers app
Is it a class 10 sdcard?
Sent from my MB526 using xda app-developers app
Erm not sure it's a SanDisk micro Sd card 2gb
Sent from my HTC Desire C using xda app-developers app
Can't or Won't mount sdcard in recovery
Stumbled on this one when trying to load CM from /sdcard in recovery.
Found the hint in another forum on this board, but the answer was not quite clear to me until I fiddled with it, trying all the wrong things...
Finally...
From the first standard recovery menu, enable or start the adb daeamon.
Then `adb shell` ... (assuming you've already rooted using psneuter or something)
Now see what you see for `ls -ld /dev/block/mmcblk0p1`
For my "stock" defy mb525 this device was not defined when in recovery - but was defined one I booted all the way to normal.
But we need the device defined now, in "custom recovery"..... so simple while still on the recovery screen of the phone, but from adb vis usb cable ...
mknod /dev/block/mmcblk0p1 b 179 1
mknod /dev/block/mmcblk0 b 179 0 # for good measure, to match definitions elsewhere
And then on to custom recovery, backup/restore, install from zip, etc, etc..
(I've been hacking Linux/Unix and such for many years -- but I'm new to the world of Android/phone hacking --
once I'm in adb shell -- things are easy for an old Unix guy )
Related
I know this has been asked a lot of times but I can't seem to find it anywhere. Even my own earlier post is somehow deleted (prolly as it was in the dev section)
So once more, please?
I want to mount the sd card boot partition on my NC running CM7 (sd card - verygreen's method) so that I can copy some zips to flash.
Thanks.
Sent from my NookColor using Tapatalk
therkr said:
I know this has been asked a lot of times but I can't seem to find it anywhere. Even my own earlier post is somehow deleted (prolly as it was in the dev section)
So once more, please?
I want to mount the sd card boot partition on my NC running CM7 (sd card - verygreen's method) so that I can copy some zips to flash.
Thanks.
Sent from my NookColor using Tapatalk
Click to expand...
Click to collapse
If sd install:
busybox mkdir /sdcard/boot (this is done the first time only)
busybox mount /dev/block/mmcblk1p1 /sdcard/boot
then put the zips you want on /sdcard/boot... they will go to the boot partition
if eMMC install change mmcblk1p1 above to mmcblk0p1
Or use this: http://forum.xda-developers.com/showthread.php?t=952456
---------------------------------
Sent from my LG Optimus V using Tapatalk
koopakid08 said:
Or use this: http://forum.xda-developers.com/showthread.php?t=952456
---------------------------------
Sent from my LG Optimus V using Tapatalk
Click to expand...
Click to collapse
I want to mount specific partitons onto my NC, not PC.
e.g. when running emmc CM7, it doesn't mount all partitons of SD. I was asking a way to mount these "other" partitions.
Sent from my MB502 using XDA App
therkr said:
I want to mount specific partitons onto my NC, not PC.
e.g. when running emmc CM7, it doesn't mount all partitons of SD. I was asking a way to mount these "other" partitions.
Sent from my MB502 using XDA App
Click to expand...
Click to collapse
Ah, I guess I misunderstood.
---------------------------------
Sent from my LG Optimus V using Tapatalk
I'm a newbie and i intend to flash ROMs on my newly rooted Defy (green lens) with Eclair running. It's been 3 days since i have been searching a solution for my problem =(
I'm stuck with doing Nandroid backup, i can't do backups! I have this error on ClockworkMod Recovery v.2.5.1.8, when i go execute "backup":
E:Can't mount /dev/block/mmcblk0p1 (or /dev/blockmmcbblk0)
(No such file or directory)
Can't mount /sdcard
I have been using this sdcard (class 4 8GB) for months already with the same phone and up to now. It works perfectly. This nandroid issue is the only time i have problems with it.
I tried the following:
a) Disable/enable USB debugging - no improvement
b) formatting microsd card with phone and proceeding with backup - no improvement
Maybe there's a problem with Eclair? Do i need to flash Froyo without doing nandroid?
Are there other alternatives (any app) on Nandroid? So i can do flashing/reflashing ROMs?
hope someone can help me out
I suppose your sdcard have compatibilities with defy.
i think sandisk is better than other brand.
use a different one and test it to find the problem.
Tim_Pan said:
I suppose your sdcard have compatibilities with defy.
i think sandisk is better than other brand.
use a different one and test it to find the problem.
Click to expand...
Click to collapse
@Tim_Pan
The micro sd card i'm using works perfectly on regular use on Defy (external storage, videos, images), its just not working on ClockworkMod Recovery (nandroid). Is there a compatibility difference in using nandroid?
don't know how to make it but if u can test other SD cards?
techvanity said:
I'm a newbie and i intend to flash ROMs on my newly rooted Defy (green lens) with Eclair running. It's been 3 days since i have been searching a solution for my problem =(
I'm stuck with doing Nandroid backup, i can't do backups! I have this error on ClockworkMod Recovery v.2.5.1.8, when i go execute "backup":
E:Can't mount /dev/block/mmcblk0p1 (or /dev/blockmmcbblk0)
(No such file or directory)
Can't mount /sdcard
I have been using this sdcard (class 4 8GB) for months already with the same phone and up to now. It works perfectly. This nandroid issue is the only time i have problems with it.
I tried the following:
a) Disable/enable USB debugging - no improvement
b) formatting microsd card with phone and proceeding with backup - no improvement
Maybe there's a problem with Eclair? Do i need to flash Froyo without doing nandroid?
Are there other alternatives (any app) on Nandroid? So i can do flashing/reflashing ROMs?
hope someone can help me out
Click to expand...
Click to collapse
Read this: http://wiki.cyanogenmod.com/wiki/Motorola_Defy:_FAQ#SD_Card
first i tried KissMate solution (looks promising), didn't work...i have both files existing already on micro SD card.
second i tried changing micro SD card using 2GB sandisk (same card that came with the unit), didn't work, same problem i have above.
By the way, i tried mounting and formatting both micro SD cards using the Clockworkmod Recovery format and mounting function - error with micro sd, cannot be seen by the Defy.
=(
by the way, the right path is doing [Custom Recovery] on Android BootMenu right?
What's the use of [Stock Recovery]?
by the way, the exact error on Mounts and Storage Menu (this is where i tried mounting and formatting) is - "Error mounting SDCARD"
techvanity said:
first i tried KissMate solution (looks promising), didn't work...i have both files existing already on micro SD card.
Click to expand...
Click to collapse
Sad to hear. I've had success using that guide on a Defy with the same problems as you have. By the way which two files are you talking about?
@KissMate
--------------------------------------
Check that the recognized partitions are the same as on my phone (I only know the situation here) by checking that
cat /proc/partitions
contains the lines
179 0 1955840 mmcblk0
179 1 1955775 mmcblk0p1
Now create the nodes for the sd card by yourself by typing
cd /dev/block
mknod mmcblk0 b 179 0
mknod mmcblk0p1 b 179 1
------------------------------
I tried inputting the last two lines but according to the error, it (mmcblk0, mmcblk0p1) exists already.
Am i doing something wrong?
use sd recovery its on market i think...
Sent from my MB525 using xda premium
Case resolved! I have updated Eclair to Froyo using Motorola Software Update to Froyo 2.2.2. Backup on CWM works, no more micro sd mount errors. I guess CWM minimum is Froyo.
Thank you all. =)
Sent from my GT-I9100 using xda premium
Please tell me how can I change permanent read-only (r/o) on my internal sdcard. I have tried root explorer but it only gave a temporary solution. My cell has root but don't know what to do
Sent from my GT-I9100 using xda premium
I doubt that the entire MMC is read-only, you'd not be able to save any data at all.
Certain partitions (like /system) are probably mounted read-only.
This is all specified in init.rc
Nice info
Sent from my GT-S5360 using Tapatalk 2
That's the problem my entire internal mmc has turned r/o and yes I can't save or delete anything.. could you tell me how change that in init.rc
Sent from my GT-I9100 using xda premium
Can you get ADB working?
If not, follow the tutorials elsewhere.
Just type:
Code:
mount
Into adb and see what you have mounted and how.
try to format using a pc, usually internal memory will be mounted on a pc once you connect your phone to it
You could try to mount the SD as USB disk in Recovery... when you plug the cable to your PC it asks you to format the SD card...
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.
Hello,
Is there a way to enable USB Mass Storage on Paranoid Android 3.99? I know it will supposedly prevent the phone from accessing the virtual sdcard partition while plugged to a computer, but this would be a minor annoyance in comparison to the complete pain in the ass that is MTP:
1. Transfers are slow and unreliable (stopping unexpectedly...)
2. It can only perform one task at a time (can't browse folders while copying files for example)
3. Poor implementation on Windows (Explorer keeps asking stupid questions like "are you sure this type of file will be recognized by your device?")
4. Computers with restricted user rights prevent MTP devices from installing.
and so on...
I've tried the following trick:
Code:
su
setprop persist.sys.usb.config mass_storage
reboot
But it didn't work.
Please help. I know it may require a lot of effort but I don't care: MTP is really too much of an annoyance.
No you cannot mount the sdcard as usb mass storage
In order to do that the sdcard has to be it's own fat partition.
On the nexus 4 it is part of the data partition and the folder is fused to the sdcard mount point.
Basically meaning that you can't mount /sdcard because it's not able to be mounted as it's not actually a partition.
And secondly the format is ext4 so even if you could mount it, it would not be readable by Windows
Sent from my Nexus 4 using xda app-developers app
Alex240188 said:
No you cannot mount the sdcard as usb mass storage
In order to do that the sdcard has to be it's own fat partition.
On the nexus 4 it is part of the data partition and the folder is fused to the sdcard mount point.
Basically meaning that you can't mount /sdcard because it's not able to be mounted as it's not actually a partition.
And secondly the format is ext4 so even if you could mount it, it would not be readable by Windows
Click to expand...
Click to collapse
How would Android react if /sdcard was actually a separate FAT32 partition mounted in its usual location?
CutterX said:
How would Android react if /sdcard was actually a separate FAT32 partition mounted in its usual location?
Click to expand...
Click to collapse
According to this article that should work.
http://www.engadget.com/2011/11/21/ice-cream-sandwich-supports-usb-mass-storage-after-all-galaxy-n/
Swyped from my Nexus 4 using Tapatalk 4
CutterX said:
How would Android react if /sdcard was actually a separate FAT32 partition mounted in its usual location?
Click to expand...
Click to collapse
It would work. However doing that is not an easy task.
It would require;
1. Changing the partition table on the phone.
2. Rewriting the bootloader (not 100% sure on this one, but it would be needed to flash any rom from the bootloader (stock)).
3. Rewriting a recovery to support the new partition.
4. Finally making the changes to the rom to support ums mounting.
Sent from my Nexus 4 using xda app-developers app
It looks like this would be something in relatively high demand. So I've been trying to get Android/vold to mount and recognize a vfat image as an sdcard but haven't had any success. It might be easier to work with if I killed off the fuse mount to start, but I'm not really looking to do that right now. Manually mounting the image isn't a problem (busybox mount or using losetup first to establish the loop) but without Android recognizing it, there's no chance of being able to use usb mass storage.
Of course the inherent issue will then be "lost" space with regards to the internal storage, since it'd be dedicated to the "sdcard". It seems most users would be fine with this, setting aside a gig or two.