Missing /sdcard FOLDER in /mnt - Android Q&A, Help & Troubleshooting

Hi
I have two old LGG2Minis. One with LineageOS and the other with stock Android 5.0.2. I thought that I would throw something else on the other one too.
I wanted to open bootloader by copying the aboot.bin file (as the is the easiest way to do this in this device). So I copied it into the internal memory, I entered the command in the Terminal Emulator and got the info 'no such file or directory'. OK, I could have have made a mistake in a command. I carefully typed again and the result was the same. I tried to get into the /sdcard directory with cd command and the message still 'no such file ..'
I went to ES Explorer and what I'm seeing in /mnt is that I do not have a /sdcard directory there, just something with that name with an icon looking like a file icon. I checked in the Total Commander and I have the /sdcard FOLDER in /mnt, I can get inside, add folders and what not. I thought that since with TC it is ok maybe this is an app permission problem so I installed Termux - the result as in the Terminal Emulator.
{
"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 don't have any other issues with internal memory. Phone works fine. I can save photos in internal memory (external SD card too). I don't get messages from apps or errors other than those I'm writing about. Finally I copied aboot.bin from another directory, twrp.img as well. In the File Manager in TWRP I have emmc with what's in the /sdcard directory.
I think that storage/emulated/legacy should be a hint for me, but I don't have the knowledge to use this hint. So my questions are - what happened? How to change that?

Related

[Q] Loss of Program Files directories from the SD card

Last night, I noticed the icons on my Cookies Home Tab all changed to indicate there was no program attached for all programs installed to my SD card. When selecting, I got the standard certificate/missing component message. On inspection, the Program Files directory on my SD card was empty. Re-installing applications allowed them to work for one attempt (loaded in memory?) but failed after that - none of them showed up in my Program Files directory. The only way I could get everything working again was to rename the Program Files dir and allow the installation of programs to create a new one, then reinstall my apps. Everything is fine now. Strange thing is that it was only the Program Files directory that was corrupted/cleared, the rest of the SD card contents were and still are fine. I have since deleted the problem directory.
Has anyone else experienced this? I recently installed Egress, the RSS reader and have been refreshing that alot every day (although the RSS contents are saved to another directory on the SD, which was kept in tact). The last app I used before the loss (I think) was Comic Reader Mobi - though I may have refreshed my RSS feeds after that.
This is very worrying - could I have a virus or something? I have since backed up my Program Files dir for easy restoration should it happen again. But WILL it happen again? Could my SD card be the problem (8GB MicroSD HC)?
Any help is much appreciated, thanks!
Bump!
Any thoughts from anyone on this?
{
"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"
}
Thanks!

Trying to mount 3rd partition in usb_mass_storage

So I managed to figure out that I might be able to take advantage of otherwise useless partitions such as /preinstall. Our Droid x2, unlike other devices (as far as I'm aware), has three mount locations for usb_mass_storage, meaning that potentially we could mount, yep you got it, three drives in Windows/Ubuntu/whatever.
This is through the folder location linking called lun. I've been trying to figure it out, and I actually was able to mount /preinstall in place of /sdcard-ext, but for some reason I can't get anything to mount on the third location (lun2), obviously Motorola probably disabled it, but how do I enable it/mount something.? I discovered that the format for mounting has to be "/dev/block/vold/179:##"
## being in place of the partition number you want to mount.
I did chmod and chown to 0000 as shown in init.rc (which sets /sdcard and /sdcard-ext to 0000).
Maybe someone more experienced than me might be able to shed some light on this? I feel like I'm really close.. haha.
{
"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"
}
Could this be the RSD mount? No clue, but good luck
I tried this on other phones and did not have luck either. Same situation. My conclusion was that they will have to be mounted via traditional Linux mounting commands. You could make an init.d script to unmount what mounts on kernel boot and remount the extra locations in your location of choice. I think vold is mainly setup for only 2 mmc spots, and any extra has been hard disabled. You could take this idea one step further and write a small app to handle the mounting. Down side is you wouldn't be able to access through a Windows GUI without extra work. ADB would still work, obviously.
Sent from my DROID X2 using XDA App

Totally confused about sdcard - help

I am looking at my Galaxy S2 files with the app "WiFi File Transfer" (which is great if anyone doesn't know about it... but that's for another thread). There's sdcard and external_sd and there is mnt/sdcard. What the heck is mnt? I feel like I am going in circles.
Thanks for any clarification.
I believe it stands for mount. Linux term maybe? The technical path of the SD card on your phone is
/mnt/sdcard/
See the top of this screen shot of me looking at the "root" of my internal SD card.
{
"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 Galaxy S II (i777)
Thanks, quarlow. While moving a file and not knowing what I was doing, somehow I put a file on mnt/sdcard/external_sd. So confusing. I guess all I really need to know right now is that the root of my card is mnt/sdcard and I thank you for that.
I'm pretty sure the sdcard folder you see at root (/) of the phone (/sdcard) is a 'junction point' type of folder to (/mnt/sdcard) the 'root' of the sdcard, at least as far as most computers see.
Similar to the 'Documents and Settings' folder on Windows 7. It doesn't exist except as a direction folder to 'Users' so older programs properly install to the new location for My Documents.
If you want to test it out, put a new file into /mnt/sdcard and then go to /sdcard and see it there.
Sent from my SAMSUNG-SGH-I777 using XDA App

ADB 'Not Recognized'

Okay so I have been trying to push/install/anything to an .apk file.
all I get is the error:
'adb' is not recognized as an internal or external command,
operable program or batch file.
which I have rooted my phone and pushed files before.
I have also noticed the .apk files do not appear as their usual file images.
{
"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"
}
Run the commands from your android sdk/platform tools folder
Or any folder that has adb/fastboot .exe
bigdaddy619 said:
Run the commands from your android sdk/platform tools folder
Or any folder that has adb/fastboot .exe
Click to expand...
Click to collapse
I have attempted, the error still shows up.
What seems to have fixed my adb issue (at least for flashing not sure about pushing/installing yet)
was that I uninstalled my version and reinstalled the tools.
I will attempt pushing and installing tomorrow or in a few hours.
Has that error ever happened to you just randomly?
I ALWAYS run the commands from my sdk files holding the adb.exe
Only time I got those errors was when I was using the wrong folder to run them.
bigdaddy619 said:
Only time I got those errors was when I was using the wrong folder to run them.
Click to expand...
Click to collapse
Fair enough.
I did make sure I did it in the right folder I even tried in another folder with a adb.exe and fastboot.exe
The same result until I uninstalled and reinstalled

[Q] Can not find TWRP backup

Hi,
I did TWRP recovery backup of my ROM and it told me that the backup file will be stored at data/media/TWRP/BACKUPS/.....
However when I boot into Android and could not locate such folder/file in file browser. I just saw a 'TWRP' folder in root folder but nothing is inside the folder. I think the backup file is somewhere since within TWRP recovery it is there ready for restore.
Anyone can tell me why this happen? Thanks a lot.
lsdyna said:
Hi,
I did TWRP recovery backup of my ROM and it told me that the backup file will be stored at data/media/TWRP/BACKUPS/.....
However when I boot into Android and could not locate such folder/file in file browser. I just saw a 'TWRP' folder in root folder but nothing is inside the folder. I think the backup file is somewhere since within TWRP recovery it is there ready for restore.
Anyone can tell me why this happen? Thanks a lot.
Click to expand...
Click to collapse
In TWRP, are you doing the backups to External Storage?
In my experience in TWRP, I haven't seen the backups being done on the Data partition; they are always in either the "sdcard" or "extsdcard."
I use ES File Explorer, and here is the location of my Backup File:
{
"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"
}
Notice how it's in the /storage/extSdCard/ partition, not in the /data/media/ partition. Maybe that's where you should look... If you're saving it to "internal storage" in TWRP, then you may want to check the /storage/emulated/0/ partition.
Also, notice how the file date is really old (1979). That could be a good search criteria for you to use to find the files if the above is unsuccessful.
I hope you can find it!

Categories

Resources