Mount USB and SDcard drives - Android Q&A, Help & Troubleshooting

I have a lenovo A10 Tab 2 upgraded to MM. I have su installed.
When I plug in an external usb drive, programs like vlc cannot find it as they do not seem to have access to /mnt or simply do not bother looking in it. I have a USB with music that I Would like to create playlists for and do other things(since I have multiple USB drives with various uses).
What I'd like to is is be able to create a permanent mount to the usb port to a useful place that I can easily access as well as other programs. I'd like to do this for the sdcard too.
One thing I hate is these "random" hex string representing the devices. I never know what is what.
I have tried to use mount -t /mnt/1DVE-4323 /drives/USBDrive
and get operation not permitted
I've tried to go in to /dev/block/vold/public:8,1 and mount that but same issue or other issues.
I've tried creating a symlink using ln -s but same issues.
executing mount by itself lists quite a bit of stuff and it does show the mount point to the 1DVE-4323 which I guess android creates internally when the usb drive is inserted but I can't mount that put.
I'm using terminal emulator and call su from the start.
All I want is to be able to access these damn devices in a convenient way but it's damn near impossible It really shouldn't be that difficult(in fact, I shouldn't have to go to the terminal). While I can use explorers to explore the disk I tend to have to bookmark things because stuff is just not organized in a natural way. (either hex values for drive names or things like emulated or usbtg, etc... most of which tend to be empty and I never remember what is what).
What would be awesome is if I had 3 directories like
/root which took me to the system root
/usbdrive which took me to the usb drive
/sdcard which too me to the sd card
and that these could easily be found by every other program.
or possibly
/drives/root
/drives/sd_internal
/drives/usb
/drives/sd_external
Any ideas how to achieve nirvana?

Related

[Q] Using phone as a iso reader

Guys I searched in forums and I couldn't find a good thread (except mikob2d's thread)
You know when you disable usb debugging and then pluging usb cable and mount, Pc shows internal sd, external sd also a cdrom image. I know we can change internal external mounts but is there a way to change cdrom image? I've a ultrabook which hasn't got a optical drive, but it can mount sd cards also the cdrom image when I plugged my phone. I want to use my phone as a cdrom. If any developers interested, I want to help too.
Think about an app which selects iso files and then when you plug you phone via usb, pc saw phone's sd cards and also that chosen iso file as a cdrom.
Thank you for reading, I check my messages everyday.
You can mount isos to a virtual optical drive within Windows with various apps, I use Virtual CloneDrive:
http://www.slysoft.com/en/virtual-clonedrive.html
I'm not sure why you would want to do this from Android, seems like it would be more of a pain to have to transfer the iso file over.
Dude I know daemon methods but our phones can do this, And also you can't use Operating System based virtualization methods. Thus I need a external solution which can be a external optic drive but hey, our phones alredy does that. Just a little script can make the magic. also USB transfer speeds are low but sdcard transfer speeds are quite faster. Also this is a poweruser level request.
If I am right the cd image includes software drivers for the phone in that case you could find the file (which I am assuming is a image file) on the phone that it is using then replace it with a symlink to your cd image.
To figure out which file I would use a terminal to check the output of "lsof" when it is mounted on your computer to see possible filenames.
shadowofdarkness said:
If I am right the cd image includes software drivers for the phone in that case you could find the file (which I am assuming is a image file) on the phone that it is using then replace it with a symlink to your cd image.
To figure out which file I would use a terminal to check the output of "lsof" when it is mounted on your computer to see possible filenames.
Click to expand...
Click to collapse
That's what I'm saying. I can find it easily but I was thinking can I change the mount script. A little program which chooses the iso files from sdcard and mounts these isos instead of manifacturer's driver iso.

Is a Virtual SDCard possible?

I've been thinking of getting a wireless HDD to pair with my phone, but I don't want to be limited to the streaming capabilities of the HDD's app. I would prefer to mount it as a native SDCard, but I'm kinda surprised that no one has tried doing that yet. I came across another forum that uses the command below to create an ISO file that will mount as an external drive, but if I'm not mistaken that only works on the computer the phone is connected to, right?
mksdcard 64M sdcard.iso
So, is it possible to mount an ISO in Android itself? And then could I simply mount an ISO stored on a network path? Or is what I want to do even possible?

USB drives change after boot, how to stop it?

Ok so my title kinda sucks, but here is the situation.
I have an Android on a stick(iMito MX1) attached to my TV. I have a USB hub and two hard drives attached.
Each time I boot the drives swap SDA and SDB. Is there any way to stop the drives from doing that as it is messing up my mount points and reversing my movie/aps locations.
I am using an app called NtfsSd to mount one of the drives as /sdcard. So far this is working great as it allows apps to use the 750G NTFS drive as a place for the apps extras and aps2SD(built into JB rom). But if the power goes out or I reboot the device and the deviceID of the two drives swap then the other USB drive acts as the SDCARD and it messes up aps2sd.
NtfsSd would be perfect for a single drive, but in this situation it points to dev/block/sda1 but when I reboot sda1 might be the other USB drive. So how do I force one of the USB drive to always use sda1???
I looked everywhere but nothing seems to work. Udev is not supported on android so no go there. And trying to get a UUID for fstab seems to be a dead end but even then the app is looking for a particular sd* device.
I am really at wits end on this and totally stumped. Any help would be greatly appreciated.

[Q] Can't unmount or properly mount HDD

So I bought an OTG cable for the first time yesterday, and I tested it with a pendrive. I could access the pen with Root Explorer, on /mnt/ntfs/sda1, but there was no option to mount/unmount the drive (the android system did ask me to erase the pen because it had a damaged filesystem, but I could access it with no problems with Root Explorer).
So what I want is to be able to unmount the device so I don't damage it over time, or properly mount it on a more logical path so I can use it with other apps.
I also tried an WD HDD of 1.5TB and the same thing happen, I could access it on the same path but no mount/unmount options anywhere. Not even "filesystem is damaged" warning this time.
I have tried with some Play Store apps (root required ones) but no luck.
Any suggestions?
Thanks in advance.
Also, I want to be able to mount FAT32 filesystems and to be able to write on NTFS ones. I have tried almost all of the Play Store apps but all of them crashed or didn't work. The only thing that works on my phone is the auto-mounting of NTFS filesystems in R/O, because of the SiyadKernel. No other filesystems or functions.
Is there any way of doing this?
Thanks.

[Q] Rooted MotoG - Cannot change permissions - Need to write to OTG USB device

Hello there.
Recently I bought a "Sandisk Dual Ultra USB Drive" (32GB) since my smartphone only have 8GB of internal non-volatile memory and I could use some extra space. Sandisk says my device is supported but they won't help me if I don't update my Android, what I don't want to do because I did that before and some essential functions are broken (e.g.: no call recorder works). So I'm using Jelly Bean here.
I've formatted the USB device as FAT32 and it gets mounted automatically (with rw access) when I plug it, however, the permission is 075, and no matter what I do I can't change that... In fact, for some reason I can't change any permission of anything. In a shell (with root access of course) everything seems to work fine except for the fact chmod simply doesn't work, it doesn't matter the location of the object I'm trying to change the permission. The USB device gets mounted with rw access automatically, but even though I've tried to remount it a number of times, with and without write access and nothing changes. Root checker says everything is fine.
The only way I could write to the USB device is formatting it as NTFS and using the Paragon plugin for Total Commander. However, only Total Commander is able to access the device and I want to access it from other apps.
Any help?
Thank you in advance.
EDIT:
In fact I can chmod stuff in / and in /system
I solved the issue, here is what I did:
TIP-Forget about FAT32. I simply couldn't make it work.
I've installed the Paragon NTFS thing that adds support and mounts NTFS filesystems on Android devices. It works kinda okay, but ordinary apps won't be able to see the files outta the box. By default it mounts the device on /storage/emulated/legacy/ParagonNTFS, but for some reason the apps can only access the files there if the path is /data/media/0/ParagonNTFS, and most apps can't browse this folder.
To workaround that limitation, I've configured Paragon to mount the USB drive on /storage/sdcard1 and added a symlink on /storage/emulated/0/_USB, so every app will be able to access it from the 'home' folder through the symlink. It's working wonders. (NOTE to make a symlink just run "ln -s /storage/sdcard1 /storage/emulated/0/_USB").
In any case, I'm extremely tired of Android... only things that works correctly are games and unimportant stuff like social media stuff and 'entertainment' overall... the system feels extremely cheapo and it's full of idiotic things, stupid bugs and moronic limitations. I'm certainly not buying another Android device again. I'm gonna wait for something minimally decent, perhaps Tizen or something.
I didn't mean to offend anyone, it's just that Android is so bad that I was about to puke while trying to make a simple USD drive work. Too many dumb people working at Google I think.
My solution to NEXUS 5 can write to OTG USB pendrive
Ok, that's that I did, and it worked ( 4 or moure hours testing various things)
I used a Corsair Voyager GO 64 gb with NTFS filesystem.
My Nexus 5 is rooted.
I installed Chainfire "StickMount". So we can mount out USB pendrive to /sdcard/ubsStorage/sda1 No need to be PRO app.
I installed Paragon "paragon NTFS&HFS". Open it, and will ask to fix SELinux policies to Permisive. So Root Explorer can see now /Data/Media/ClockWorkmod/backup
I installed Jrummy Apps inc. "Root Explorer". I will copy, for example /Data/Media/ClockWorkmod/backup to /sdcard/ubsStorage/sda1 whithout any problems.
Don't forget to unmount USB drive before disconnecting it, go to StickMount and choose unmount
ES FILE EXPLORER WILL SAY "No space" "Error" or similar
Worked for me!
I'm happy with my investigation. I used Root Explorer in the past, and now it's useful again.
Sorry about my english, not perfect.
ENJOY!

Categories

Resources