Why is Android phone's internal storage showing twice on PC in USB-MTP mode? - General Topics

Hi all,
Samsung S21 FE 5G (SM-G990B/DS) stock ROM/no root, Linux Mint 19.3, USB connection in MTP mode >> phone's internal storage appears twice in the desktop's file manager. (See image at the bottom for storage info)
There is no microSD card in the device, but a 2nd SIM-card.
Folder and file timestamps seem to match when comparing those two storages (10001, 20001) side-by-side.
Copying a file from the desktop to (10001) led to file also showing in (20001).
Having given it a swift look, I did not see where the delta of the 664 files might be. (I'll run a diff on what appear to be two mounts the next time I get access to the device.)
I did not see hidden files or folders at the top of the directory structure that is presented in this unrooted stock ROM MTP mode connection.
Any idea why the internal storage is shown twice (and how to best figure out which those 664 files are)?
Thanks in advance.
rogerwilco75
https://imgur.com/a/TtTbQcS

Related

Storage issue

Hello people.
I need help. After i install a customzied ROM (first time ^^) I noticed that my phone have full storage like you seen on attach file.
So i installed Root Explorer but all folders have normal size. I thinks there are older files but I cant see that.
If I plug in phone to pc only show recents files.

[Q] Internal Storage called by multiple names

Here's the problem. I see Internal Storage as 64Gig called "Internal storage" in Windows 7 of course after the system uses some I have lass but it's the naming I have trouble with. Maybe you Unix guys can help me out here. On Windows 7 64 I see A001/Internal storage/ then all the useable directories. Now what happened was I was trying to take a screen shot to send to a guy and I checked my GalleryKK to look for the pictures. While plugged in to the USB port no pictures showed up in the directory allocated for ScreenshotER. ScreenshotER was set to write the pictures in Sdcard/ScreenshotER directory. Well there is no directory called Sdcard in the Internal storage on windows or the phone or in Root Explorer. So where did it write the pictures? Then I go into Root Explorer to look for the pictures and I see another name being used for Sdcard called "/storage/emulated/0/ScreenshotER" there are my pictures I just took. In Windows 7 Internal storage/ScreenshotER shows no pictures??????? So, I unplug the USB and reboot the phone and go to GalleryKK and there are my pictures. So then I go back to Windows 7 and plug in the USB and Internal storage shows the pictures. Then I go to Outlook 2010 and try to do an insert from Internal storage/ScreenshotER and no pictures. Huhhhh! So then I go back to Windows explorer and copy the pictures from Internal storage/ScreenshotER/wdfffrr.jpg to my hard drive, then back to outlook and insert file and they insert fine so I can send the email. That is just too hard for handling pictures. Can't the names in the different APPs call it the same name so this is not so confusing and what is ADB doing to not update the pictures right away? Is there a ADB just for the One? I used the AndroidSDKSlim to root and load TWRP. I also installed the Microsoft MTP drivers.
Thanks in advance.
bmaz121 said:
Here's the problem. I see Internal Storage as 64Gig called "Internal storage" in Windows 7 of course after the system uses some I have lass but it's the naming I have trouble with. Maybe you Unix guys can help me out here. On Windows 7 64 I see A001/Internal storage/ then all the useable directories. Now what happened was I was trying to take a screen shot to send to a guy and I checked my GalleryKK to look for the pictures. While plugged in to the USB port no pictures showed up in the directory allocated for ScreenshotER. ScreenshotER was set to write the pictures in Sdcard/ScreenshotER directory. Well there is no directory called Sdcard in the Internal storage on windows or the phone or in Root Explorer. So where did it write the pictures? Then I go into Root Explorer to look for the pictures and I see another name being used for Sdcard called "/storage/emulated/0/ScreenshotER" there are my pictures I just took. In Windows 7 Internal storage/ScreenshotER shows no pictures??????? So, I unplug the USB and reboot the phone and go to GalleryKK and there are my pictures. So then I go back to Windows 7 and plug in the USB and Internal storage shows the pictures. Then I go to Outlook 2010 and try to do an insert from Internal storage/ScreenshotER and no pictures. Huhhhh! So then I go back to Windows explorer and copy the pictures from Internal storage/ScreenshotER/wdfffrr.jpg to my hard drive, then back to outlook and insert file and they insert fine so I can send the email. That is just too hard for handling pictures. Can't the names in the different APPs call it the same name so this is not so confusing and what is ADB doing to not update the pictures right away? Is there a ADB just for the One? I used the AndroidSDKSlim to root and load TWRP. I also installed the Microsoft MTP drivers.
Thanks in advance.
Click to expand...
Click to collapse
"Is there a ADB just for the One?" I don't understand this question. Also, /sdcard is a shortcut for /storage/emulated/0/. Try going into adb shell and doing a manual search with cd and ls commands. Then exit the shell and do an adb pull to retrive your pictures.
skyguy126 said:
"Is there a ADB just for the One?" I don't understand this question. Also, /sdcard is a shortcut for /storage/emulated/0/. Try going into adb shell and doing a manual search with cd and ls commands. Then exit the shell and do an adb pull to retrive your pictures.
Click to expand...
Click to collapse
He's asking if there's a version of adb/fastboot that is built specifically for this phone, and the answer to that is no.
Transmitted via Bacon

[Q] Cannot get SD card to work using Blaze 4g with CyanogenMod 11

Hi all,
I recently upgraded my Blaze to CyanogenMod (v11 nightly), now my apps (Camera, Swiftkey, etc.) do not recognize my SD card. I was running stock before this.
In File Manager:
- I can view the external sd card at \storage\sdcard1.
- It appears there is an internal sd card as well at \storage\sdcard0
- There is a folder called \sdcard which appears to link to \storage\sdcard0
- There is a folder called \external_sd which links to \storage\sdcard1
- sdcard0 is empty
I believe this to be a mounting issue, but if it is I cannot figure out the correct mount command in terminal emulator. Thanks for your help in advance.
I know this is nearly a year later, but I ran into this exact same problem while trying to flash an old phone. I was fortunately able to figure out to fix it, and I'm posting this for the sake of anyone else who might have trouble with it as well.
I initially noticed the problem while attempting to download and open files, which kept giving me an error that the files couldn't be located. Using a file manager, I noticed the directories that the OP described above. I believe the internal storage for the Blaze is 4GB, which is partitioned into two parts: one for app data, and the other for user downloads, pictures, etc. I realized that I only saw one of the partitions being displayed on the storage settings screen. Connecting via USB to my computer didn't show any internal storage; I couldn't access any files from the phone besides the ones on my external microSD card.
I booted into my previously-installed ClockworkMod v6.0.4.8 (by holding the volume keys + power, letting go of power after the Samsung splash screen) and went into the 'mounts and storage 'menu, scrolled down, and clicked on the 'mount USB storage' option while connected to my computer. Surprisingly, the internal storage was recognized (specifically the partition containing user data) and I was able to pull all of my files from there that I thought I previously wiped when I went to flash Cyanogenmod 10.2. Somehow, those files were still retained. Now, I'm not exactly sure what happened, but I think all this previous data, which didn't get wiped, prevented the new ROM from mounting this partition (sdcard0), and perhaps led to a path/directory issue when I went to download and open things from it. For some reason, as the OP noted, the sdcard0 storage showed up as empty when I used a file manager app to look inside.
I deleted the files from this mounted storage via my computer, then went back to the 'mounts and storage menu' and formatted the /storage/sdcard0 storage with the 'default' setting to wipe that partition. Then, I wiped user data, cache, and dalvik cache, and let my phone reboot. I did not reflash Cyanogenmod 10.2 after, and I was able to boot into my phone and setup my phone. (I'm not sure if you have to reflash your ROM, but I was able to boot up to a fresh setup without it). I am now able to see both internal storage partitions displayed on my storage setting, use a file manager to see the files in sdcard0, and download and open files.
Hope this helps.

Unable to write a large file to the Internal Storage

Hello,
I have a problem after doing a reset of my phone.
It is rooted and has TWRP 2.8.6.2 installed.
I did a full wipe with TWRP including the internal storage.
But now, if i want to upload through TWRP's USB mount, i have to following issue.
I see the internal storage on my PC when both are connected by USB, it has the TWRP folder.
I tried to upload a small text file, that went OK, then i uploaded the new ROM file and after 5-8 sec i get a popup on the PC telling me the "device has either stopped working or has been disconnected".
When i boot the phone it is stuck on the boot logo, Samsung text.
Does anyone knows what i can do to fix this problem.
Thank you in advance.
I fixed the problem.
As i could use TWRP, but could not write a image to the internal storage i used a microUSB to SDcard plug that i picked up for 2 Euros at the local shop ( Dutch Blokker ).
I did a full wipe including the internal storage and installed the image from the SD2USB plug.
After installation i was again able to write to the internal storage.
Alto i seems like a permission issue, it was not.
I gave the internal storage folder full rights ( chmod 777 ) and even then i could not write.
I'm happy the new flash of XtreStoLite Deodexed Mod Edition 1.4a did the trick.
(Was really worried a 2 week old phone was bricked )

How to use your PC or NAS as internal sd.

How to use your PC or NAS as internal sd.
I want to show a method how to use a directory on a PC or NAS as inernal_sd.
With this method it is easy to test games and decrease the device storage write cycles.
Also no need to copy to the internal storage.
For example: You can load emu roms or put the obb files there and.
Even a swap file works but this involve further steps, which does not described here.
Only tried on kitkat 4.4.4 and Nougat 7.0.
Tested Devices: kitkat 4.4.4: GPD G5A, GPD G7A, GPD G7, GPD Q9, GPD XD (RK23288)
Nougat 7.0: Nvidia Shield Tablet K1
You need:
- root (SuperSu)
- xposed framework (2.7)
- xposed module XinternalSD (4.8 )
- cifs manager or Mount Manager (1.041) / for me, this work only if I disable Mount namespace seperation in SuperSu settings tab (2.49) and restart my device.
1. create a directory on your PC with the name: internal_sd2
2. share this directory
3. create a directory in your device with the name: cifs
4. Mount the share with cifs manager or Mount Manager to your device with the mountpoint: /mnt/internal_sd/cifs/internal_sd2
5. In XinternalSD settings
- select Custom path to internal SD Card
- set the path to the mountpoint of the share : /mnt/internal_sd/cifs/internal_sd2
- select Enable for all apps (new installed apps becomes enabled by default)
- select Disable for apps and choose apps you dont want to store their data on the mounted share.
6. Restart your device
Now this shared folder becomes a internal_sd and behave like this.
If your share is disconect than selected apps store their data in the folder selected in XinternalSD on your device.
If your share is disconnected and you create a folder with the name nomount in the folder selected in XinternalSD, then you know the share is connected when this folder dissappear and vica versa.
The folder names could have other names and it would work.
Ps:
With Network Monitor Mini it is easy to see if data is downloaded or uploaded:
I use this mainly to test if sideloaded games work.
Just extract the game data and put it in the Android/obb or Android/data folder in the shared folder instead of copy to the device.
An deinstall will not delete the files.
If you edit an apk file with apk editor, the app save the new edited apk file in the shared directory.
A apk backup with system app remover does the same.
The Android Game Morrowind Port is 1,2 gb in size and contain over 7000 files.
These files normally need to copy to device storage just to know if it will run or not.
The device I use to try out things is a GPD G5A and despite I use sd_boot with plenty 14gb data partition and 44gb internal_sd partition, it would take time and the 64 gb sd card would degrade do to write cycles.
I also use an GPD G7A and an GPD G7, with the shared internal_sd folder I dont need to copy the files to each device.
A mounted folder in the storage behaves like a real folder and all apps can read this as a regular folder.
A 1tb external hdd connect via usb to a router with nas can share plenty of roms, videos or music files which would be accessed immediately, without downloading like es file explorer does.
For example in epsxe you can choose this mounted folder as it would be on your device.
The download max with GPD G5A is 4,5 MB/s and this is obviously slower than the device internal_sd, but seems to be enough. It takes a lttle bit more time to load a game compared to store it on the device, but after this you would not notice any difference.

Categories

Resources