Just thought I would share, I use these commands in a script to mount my external 32gb sdcard as /sdcard/.
Would be better if i could figure out how to get it to work as init.d however the external drive is mounted dead last in the boot order... Currently (without some init.d vodo) this needs to be manually "hot swaped" after boot.
umount /mnt/sdcard
mount -t vfat -o rw,umask=0000 /dev/block/vold/179:97 /mnt/sdcard
Note the numbers.. I learned these on another thread here but those numbers had to be changed for this phone.
More info on how to use these and the source for the original code here: http://forum.xda-developers.com/showthread.php?t=1786014&page=2
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my XT897 using xda premium
This can damage all the internal storage?
I think about trying to mount ext to sdcard to flash something in recovery, because I need the sdcard but it can't be mounted by itself.
Is there a permanent solution to this? All other methods don't work on Android 4.4
Related
Hello guys,
If you are getting
e:can't mount /sdcard (or) Error mounting /sdcard error.
<<THIS ERROR ONLY APPEARS IN CLOCKWORKMOD RECOVERY>>
Then here's the solution without formatting your sdcard.
1. Pull battery and take out your sdcard.
(Optional: put it in your Laptop/PC to make sure it is working or not)
2. Insert sdcard back and then insert battery, and start phone in Recovery mode.
3. Go to mounts and storage
4. Then select mount /sdcard option.
Now recovery should recognize your sdcard.
IF RECOVERY DOESN'T RECOGNIZE YOUR SDCARD, THEN:
Must be faulty/corrupted sdcard.
or Must be loosen or not properly inserted sdcard.
or Must be recovery bug.
Please click on
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
button if it worked.​
After many failed threads out there that are posted by folks in my similar shoes. I have decided to post mine here in the generic section.
Goal: Back up folders under /data/sdext2 <--- ext4 partition on external SD Card, to local PC.
I am already in my destination folder: So the command should be simple as follows: adb pull /data/sdext2/ but obviously it can't find anything for some reason. But via adb shell, you can tell there are many files there.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Also
Code:
[email protected]:/ # mount | grep sdext
mount | grep sdext
/dev/block/vold/179:34 /data/sdext2 ext4 rw,seclabel,relatime,data=ordered 0 0
Any suggestions?
df
All filesystems look as they should
Hello everyone that lurks around :>
I've been having some uber strange issue with MTP since I've cleared the MediaStorage.apk's data.
I've used several apps for media rescan and so on, the phone itself finds the media (even some extra...), but when I connect it to my PC/laptop in MTP or PTP mode, I get most of the directories on the /sdcard looking like an unknown file rather than a directory.
Here's a screenshot so you can see what I'm talking about.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I can't access these directories by any means on a computer (tried with several).On the other hand I got no issues accessing them on the phone itself by any file manager.
I've also ran fsck.f2fs on /dev/block/platform/msm_sdcc.1/by-name/userdata
and just in case e2fsck on /dev/block/platform/msm_sdcc.1/by-name/system
in CWM via ADB.
Any ideas how to fix this?
Hmm, no one had got any idea?
Up, looking for someone with some ideas about this issue.
Okay, I accidentally removed the adapter while partitioning my SD card using MiniTool. I just wanted to try out the flashable .zip I've made recently and because of so much excitement, I accidentally removed the adapter and forgot that I'm partitioning my SD card My taskbar was automatically hidden so I didn't noticed that MiniTool is running and I totally forgot all the other things since my mind is focused on editing the updater-script and so on... It's like I'm making a custom ROM for my device, then after that, I want to try to flash it through ClockWorkMod Recovery and because the version of my CWM does not support ADB Sideloading means SD card is my only option but... OMG!!! Here, my SD card is now in Read-Only state and became Logical type :crying: :
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Any help you can give will be so much appreciated.
I have read for hours on this and im just looking for abit of help before I start doing unrecoverable damage
The phone boots, but asks for an encryption key (unable to mount /data).
The bootloader is unlocked, I am able to use fastboot, and boot to recovery (TWRP 2.8.7.0) - and Parted, within ADB shell.
I have tried to repair /cache and /data from within TWRP (Wipe -> Advanced Wipe -> Cache/Data - Repair or Change File System -> Repair File System, but it fails;
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Here is the partition layout displayed with "parted /dev/block/mmcblk0 print" ;
What commands do I need to do with parted to get /cache and /data to be mountable?
Any help appreciated, thanks