Just a cute little tip in case your internal storage is stuffed to the brim like mine.
1) Boot into CWM
2) Attach ADB
3) From adb shell: mount /dev/block/mmcblk1 /sdcard
4) Do backup. CWM will see that /sdcard is already mounted and just use it.
Probably still will only update the usual suspects and not your internal storage, but it's nice for extracting dangly bits from ROMs for which a ZIP isn't available *cough*ICS*cough*
Related
Currently, the /sdcard folder is pointing to the phone memory. My external card is mounted as /sdcard/external_sd
The problem with the above structure is that all the stuff that should be stored in the actual sdcard is stored in the memory.
I am sure there is a way to mount the external sdcard as /sdcard in the system through shell commands. Can someone help me with this?
Thanks.
1. I believe you need root in order to manipulate mounting points...
2. Be careful manipulating mount points as this may break aps looking for data in the /sdcard mount point...
YMMV
Chinook Pilot said:
1. I believe you need root in order to manipulate mounting points...
2. Be careful manipulating mount points as this may break aps looking for data in the /sdcard mount point...
YMMV
Click to expand...
Click to collapse
1. I am rooted.
2. Well, I want to change the /sdcard mountpoint to the actual sdcard. I don't think this should break anything. I am not sure about the syntax, that is why I am asking.
Mount
Here's a link to the man pages for the mount command. I'm not running a stock kernel so my mount points and fstab aren't generic to the stock e4gt... Basically you need to umount both and the mount where you wish them to point... Good luck...
http://linux.die.net/man/8/mount
I googled the question quite extensively but have found no conclusive answers
Is there a way to flash a rom without first transferring it to the SD card (specifically for DHD)? There seems to be something wrong with my SD bay as my phone cannot mount the SD card successfully (it works fine on my computer), so I'm looking for a way to flash a new rom on the phone to rule out the possibility that the ROM is what's causing the SD card failures.
Google turned up a couple of results that seemed promising, but they all say you have to use Amon_RA recovery, which (to my knowledge) does not exist for DHD, and following the same steps while using CWM recovery leads to an error.
Unfortunately, as a new user I can't post the link to the method. It basically involves pushing the rom to /data/ on the phone then executing the command
recovery --update_package=DATA:ROM.zip
this should flash the rom. But because I'm using CWM there is an error, because CWM doesn't allow you to flash that way (or something to that effect)
Currently running IceColdSandwich 3.0.test4
Is there any way I can flash a rom without needing the SD card?? I don't wanna have to buy a new SD bay :/
Maybe this helped .. googled some more
http://forum.xda-developers.com/showthread.php?t=625950
Mount /sdcard
Just like you mounted /data try to mount sdcard using this adb comments,
./adb shell
su
# mount -o rw,remount rootfs /
# chmod 777 /mnt/sdcard
and push your ROM form computer, i.e ("adb push d:\adb directory\Your ROM /sdcard")
and try to mount sdcard in CWM....
I hope this would work for you,
NOT TESTED BY ME !! Pl replay
Hey Guys,
I've inherited a G2 from a good friend of mine, but it seems that USB access is bricked on the device. I'm unable to mount the SDCard through CWM which makes it unable to flash any rom.
Also, looks like he formatted the OS as I'm unable to boot up CM7 on the phone as it just sits at the HTC screen forever. I can access the device in Fastboot and ADB just fine however.
When I ran the 2 commands:
fastboot oem enableqxdm 0 (unblock your sd-card)
fastboot oem eraseconfig (fix misc partition)
I'm able to read and write files to the SDCard in ADB, but CWM is still unable to mount the SDCard. Anyone have any ideas on how to get the SDCard to read on this guy? It's currently S-OFF on HBOOT 0.84.2000.
Thanks!
Try pushing a zip file with adb push?
Can you see the external storage in your PC (even if it's not accessable) ?
Any kind of error messages while you trying to mount it?
Check the device tab in your PC, if the system have proper drivers for the device.
I guess you know following, but for the record:
If ADB works, use this:
adb push filename.zip /sdcard/filename.zip ......... (rename "filename.zip" twice to the proper name of your zip file)
If not, try to reflash the recorvery via:
fastboot flash recovery recovery.img ........... (unrar the archive first to get IMG file)
Turn device off, remove battery, put battery back, hold trackpad, push power btn. Choose recorvery -> u're back in CWM.
Or maybe ony the SD card have corrupted FAT table / unknown format for OS.
Try to remove the card from phone and connect it to PC via some kind of card reader, or another phone which can connect card as mass storage. Reformat the card to FAT32 (sometimes erase only does not help, so untick quick format and do it again).
Easy way to mount SD card in custom Recovery
ChristmasGT said:
Hey Guys,
... a G2 ... , ... USB access is bricked ...
... can access the device in Fastboot and ADB ...
When I ran the 2 commands:
... but CWM is still unable to mount the SDCard. Anyone have any ideas on how to get the SDCard to read on this guy? It's currently S-OFF on HBOOT 0.84.2000.
Thanks!
Click to expand...
Click to collapse
Mounting SD card in Recovery? Telling recovery to use internal fstab containing sdcard entry should work:
Code:
adb shell mount /sdcard
See what partitions are mounted now:
Code:
adb shell mount
See if the sdcard has some content that can be read from Recovery:
Code:
adb shell ls /sdcard/*
Best regards,
Catherall
Hey Guys thanks for the suggestions. I'm able to push ROMs to the SDCard, but it seems like they vanish after the phone's rebooted.
when pushing I use the following command:
adb push C:\<rom name> /sdcard/
after the upload is complete, I can do "ls /sdcard/" and see the rom inside. But I'm still not able to mount or see it inside of CWM.
Cahterall thanks for the suggestions on the commands, I've tried running them but everything seems to be not found when it comes to the SDCard, which makes it confusing as to how the ROM is even being pushed there. Below's the output of the commands you suggested, I'm also researching like mad to see If I can find any solution.
~EDIT
I think the underlying cause is that I'm getting the following error:
/dev/block/mmcblk1p1 no such file or directory
since /dev/block/mmcblk1p1 is missing it can't mount. Any suggestions?
"Mount and storage" menu in Recovery
ChristmasGT said:
Hey Guys thanks for the suggestions. I'm able to push ROMs to the SDCard, but it seems like they vanish after the phone's rebooted.
when pushing I use the following command:
adb push C:\<rom name> /sdcard/
after the upload is complete, I can do "ls /sdcard/" and see the rom inside. But I'm still not able to mount or see it inside of CWM.
Click to expand...
Click to collapse
Hello,
the output of mount shows that your sd card is NOT mounted at all.
However, Recovery has a directory called /sdcard on the ramdisk where the system is started.
This directory is used to mount the content of the sd card.
When the sd card is not mounted you still can write files into the directory /sdcard on the ramdisk, but they will be gone when you reboot the phone.
Usually in a custom ROM you can use the menu item "Mounts and storage" (engage with trackpad) and choose either to "mount /sdcard" or to "mount sd card to USB".
Mounting sd card to USB should connect the sd card as usb harddisk to your computer.
And mounting /sdcard (the partition) allows to push files on sd card using "adb push".
ChristmasGT said:
~EDIT
I think the underlying cause is that I'm getting the following error:
/dev/block/mmcblk1p1 no such file or directory
since /dev/block/mmcblk1p1 is missing it can't mount. Any suggestions?
Click to expand...
Click to collapse
When I remember correctly then the Desire Z uses "/dev/block/vold/179:33" to mount the sd card with type vfat.
Are you sure that your sd card is formatted using FAT?
Best regards,
Catherall
Hey Catherall, thanks for all the help man!
Unfortunately, trying to mount the /sdcard or mount USB storage gives me the following error:
"E:Unable to write to ums lunfile (No such file or directory)"
I've tried multiple SD Cards and long formatted all of them to FAT with the same results. Can't seem to find any resolution to this at all which is unfortunate.
Just wanted to update this:
I've gone ahead and updated the System / Data / Boot / Cache via fastboot (I'm S-Off) from the following thread:
http://forum.xda-developers.com/showthread.php?t=1572924
Also, it does NOT appear that my EMMC is corrupt and has 2.09GB free. Any ideas by chance?
Still looks like I'm unable to get past the White HTC Logo and still don't have any type of SDCard Access.
I can't seem to find/access my external sd card in adb shell when my phone is in recovery mode. Going to /sdcard gives me the internal location where CWM backups are kept. Nothing is listed in /external_sd and when I choose 'mount external sd' from the menu in clockworkmod I get an error in CWM. I need to access it because that's where I keep backups of files I'm messing with.
ThisThing said:
I can't seem to find/access my external sd card in adb shell when my phone is in recovery mode. Going to /sdcard gives me the internal location where CWM backups are kept. Nothing is listed in /external_sd and when I choose 'mount external sd' from the menu in clockworkmod I get an error in CWM. I need to access it because that's where I keep backups of files I'm messing with.
Click to expand...
Click to collapse
What format is the SD Card in? If its exFAT then CWM wont be able to recognize it. If its FAT or FAT32 then try this in adb shell
su
mount /external_sd
Sent from my ASUS Transformer Pad TF300T using Tapatalk 2
su shows up as an unrecognized command, oddly enough (even though it works when I'm not in recovery.) I've found another way to move the files around so I'm not going to worry about it.
My problem now is the framework-res.apk that I replaced some sounds in causes boot to get stuck on the end of the t-mobile animation. I'm finding threads all over the place about how to replace it, but if anyone has a guaranteed method for this device now I'd appreciate it.
Is there any way to swap the tab 3 7.0 internal and external sd directory? (Not like folder mount or anything like that- complete swapping sdcard)
by modifying sdcard fuse tool?
Just A Post
Have to post 10 times before posting in developer threads, using old threads to make random posts.
swap storage
bensonhsu2008 said:
Is there any way to swap the tab 3 7.0 internal and external sd directory? (Not like folder mount or anything like that- complete swapping sdcard)
by modifying sdcard fuse tool?
Click to expand...
Click to collapse
b,
i tried editing mountpoints in init.*.rc files as experiment.
the short of it is backup your daily driver to your normal extSdCard then
install/flash a clean rom pref stock rooted, and insert new extSdCard then
flash your modified boot.img then
reboot and you'll see an error about data/sdcard encryption fail with a recommend for fix/repair.
at this point i stopped for lack of an extra/spare extsdcard to potentially ruin [or not]
but if your feeling adventurous you could try it. if i understand it after that process your new extsdcard
should be sorted.
alternately you could through adb dump your userdata block and dd write it to an extsdcard
then do the modified boot.img [with new card inserted] and see if it catches.
note- for adb shell on gt-p52xx you must #enable_houdini first as most bin-utils are arm.
m