What's the best way to mount a USB drive via USB OTG in CM 12.1? I really don't want to use a different file manager to do it as I like using CyanogenMods file manager.
I found two file managers on the play store that'll do it but I'd rather stay away from alternative file managers. The USB mount apps I tried from the play store didn't do squat.
Only way I've found of mounting it without the alternative file managers is to use the terminal app to mount it with the mount command. Is that the only choice I have without using alternative file managers?
And if the terminal way is the only way I have of doing it, is there a way I can make a script to mount it when I execute it? That'll save me from having to type in the mount commands all the time.
Thank and I'll appreciate any help!
I'm on the Boost Mobile XT1526 if you wanna know.
Update:
I tried unpacking the boot.img and modifying the fstab.qcom file and repacking the boot image but it didn't work as I had hoped. After I flashed the modified boot image, the phone wouldn't boot at all, so I had to restore the backup I made beforehand.
I know why it didn't boot, its because it couldn't find the drive to mount it. If I can find some way to make cm12.1 automount it when I plug in my USB drive, I'd be set but I can't figure it out.
Only choice I have so far is to mount it manually with a terminal app.
Use this app
https://play.google.com/store/apps/...mount&pcampaignid=APPU_1_1Ja3Vv7MCMLte8e9ltgC
Enviado desde mi MotoE2(4G-LTE) mediante Tapatalk
Thanks. I've already tried that app in my search through the play store. I couldn't get it to work for nothing. Probably because I use CyanogenMods built-in root feature instead of SuperSU. ?
I just don't see the point in SuperSU when CyanogenMod has root built-in. Lol
Related
Can anyone point me to a kernel that i can use with galaxy task 14 custom rom that has cifs/nfs built in?
Ive searched around and can only find ics kernels, and i can safely say that flashing one of those via cwm doesnt work for task14!
Thanks, zip prefered if anyone has a kernel to hand, makes cwm easier!
geekyhawkes said:
Can anyone point me to a kernel that i can use with galaxy task 14 custom rom that has cifs/nfs built in?
Ive searched around and can only find ics kernels, and i can safely say that flashing one of those via cwm doesnt work for task14!
Thanks, zip prefered if anyone has a kernel to hand, makes cwm easier!
Click to expand...
Click to collapse
This is the last HC kernel from pershoot with cifs support: http://droidbasement.com/db-blog/?p=2479
Select the right version and download the modules (in the same link, lib-2636.4_ux_hc32.tar.gz)
Thanks, from what i can see i need to flash the zip, extract the tar file then adb in and insmod?
Im happy with the flashing and tar extraction, butbwhats the insmod about?
geekyhawkes said:
Thanks, from what i can see i need to flash the zip, extract the tar file then adb in and insmod?
Im happy with the flashing and tar extraction, butbwhats the insmod about?
Click to expand...
Click to collapse
You don't need to do it with adb, use a terminal (command line) application like this one: Android Terminal Emulator, grant root (in the terminal execute su) permissions and run something like this (change the path to fit your case):
Code:
insmod /system/lib/modules/cifs.ko
You'll have to execute the command to mount your share too.
Or an easier way is using CifsManager, in the options you can set the path to your module and you can mount the share. I'm not sure if this one also works with NFS, it says so, but I never tried it.
Other way is with a script, using Script Manager or load the module at boot
Sweet, worked a treat thanks, once i worked out i needed to make /system readwrite and not just read onky.
Thanks alot for your help, i dont understand why cifs isnt just built in from scratch with android really, but sorted now. Just my phone to sort next!
Edit: how to i get my digicam pictres to show in the android gallery?
They are in te followinndirectory : /sdcard/nas/digi cam/
I can browse them in astro fine, but skifta and gallery dont show them / the directory.
Cheers
You're welcome.
Try using something like Rescan SD Card! or Rescan Media (personally, I use the "SD refresh toggle" widget from Elixir 2 - Widgets)
Oddly none of the as card refreshing tools updates the gallery app to.show the pics off my nas? It's mounted correctly I can see the files ok in astro.
What have I missed?
Questions go in the Q&A section
i flash MIUI-3.6.14 v5 all works just only USB is not... it only charge thats all..
please help me...
You could use a market app called multi Mount sdcard lite.
Follow instuctions inside the app is easy.
It fixxes sdcard mount with a script that writes a probeable lun file to your sdcard but with a bypass.
Normally the ramdisk needs to write it but after inspection i saw the lun part for working sdcard was not included(commented out).
If you are able to tinker with the kernel's ramdisk and recompiling you can fix it without the need of the earlyer named app.
Also you can still Mount it from cwm if i am correct.
Sent from my GT-N7000
Two questions about the following thread (can't post in dev threads until 10 posts are made)
http://forum.xda-developers.com/showpost.php?p=47140596&postcount=1
Does anyone still have the files? The dropbox link doesn't contain any files
Is an external microsd card necessary?
The instructions are
Code:
su
cd /mnt/extSdCard/MJ7_tether_unlock/
sh tether.sh
Wouldn't it be fine to copy the MJ7_tether_unlock folder to root and use the following . . . ?
Code:
su
sh /sdcard/MJ7_tether_unlock/tether.sh
I fixed the link. Should download now. And no you cant use that command the reasoning has to do with how I wrote the script. If you dont have a micro sdcard you could also just make a new folder named "extSdCard" in the /mnt directory and then move the unzipped tether folder there.
Sent from my SCH-I545 using XDA Premium 4 mobile app
Surge1223 said:
I fixed the link. Should download now. And no you cant use that command the reasoning has to do with how I wrote the script. If you dont have a micro sdcard you could also just make a new folder named "extSdCard" in the /mnt directory and then move the unzipped tether folder there.
Click to expand...
Click to collapse
I couldn't get r/w in /mnt
I know there's probably a smarter way to do it, and I never tried the chmod you recommended on /system . . . but I re-wrote your tether and untether sh files to use /sdcard/tether instead of /extSdCard/MJ7_Tether_Unlock
I'm not sure how to remove the "crapware" bundled into the VZW S4, but every time I connect it via usb (to my Mint 15 laptop or W7 machine) it asks me to install some Verizon helper junk. It also mounts as a CD-ROM (due to some .ini file)
Does anyone know where this "storage" area is and if it's safe to blow all that crapware away? My S4 gets mounted as CD-ROM everytime whether or not I have USB debugging enabled. In W7 if I cancel it's "Would you like to install this Verizon helper software?" then the S4 is mounted as a portable media player. In Mint 15, I can easily unmount the ROM and the S4 is mounted as a portable media player.
Since I couldn't get past this, I just moved the renamed "tether" folder over to /sdcard which is the only way I can get the phone to mount.
Surge, thanks for the framework patch, and scripts. I like the extSdCard approach since it is always preserved, but it's just a lot easier for me to use the /sdcard since I've not got an external SD and am too cheap to buy one just for this
After running the scripts, I just copied the entire folder over to my computer in case the /sdcard is ever reformatted
I can't attach the whole thing since I'm filesize limited, but I attached the folder with everything except the original MJ7framework-res.apk
Obviously the instructions are close your original, except you just move the tether folder into /sdcard (which is consquently what shows up as "Phone" when mounted as a portable media player storage area in Mint 15???). Then just
su
cd /sdcard/tether/
sh tether.sh
Thank again surge
darker_slayer said:
I couldn't get r/w in /mnt
I know there's probably a smarter way to do it, and I never tried the chmod you recommended on /system . . . but I re-wrote your tether and untether sh files to use /sdcard/tether instead of /extSdCard/MJ7_Tether_Unlock
I'm not sure how to remove the "crapware" bundled into the VZW S4, but every time I connect it via usb (to my Mint 15 laptop or W7 machine) it asks me to install some Verizon helper junk. It also mounts as a CD-ROM (due to some .ini file)
Does anyone know where this "storage" area is and if it's safe to blow all that crapware away? My S4 gets mounted as CD-ROM everytime whether or not I have USB debugging enabled. In W7 if I cancel it's "Would you like to install this Verizon helper software?" then the S4 is mounted as a portable media player. In Mint 15, I can easily unmount the ROM and the S4 is mounted as a portable media player.
Since I couldn't get past this, I just moved the renamed "tether" folder over to /sdcard which is the only way I can get the phone to mount.
Surge, thanks for the framework patch, and scripts. I like the extSdCard approach since it is always preserved, but it's just a lot easier for me to use the /sdcard since I've not got an external SD and am too cheap to buy one just for this
After running the scripts, I just copied the entire folder over to my computer in case the /sdcard is ever reformatted
I can't attach the whole thing since I'm filesize limited, but I attached the folder with everything except the original MJ7framework-res.apk
Obviously the instructions are close your original, except you just move the tether folder into /sdcard (which is consquently what shows up as "Phone" when mounted as a portable media player storage area in Mint 15???). Then just
su
cd /sdcard/tether/
sh tether.sh
Thank again surge
Click to expand...
Click to collapse
I don't recall recommending to chmod /system as that would lead to a brick if done improperly. Also I guess you could change the script and replace all instances of "/extSdCard" to "/sdcard" which is what you did, I just wanted the zip and folder to be named in such a way that youd easily be able to tell what it was. But why even bother with using a pc? I was saying to run the commands through terminal emulator on the phone.
P.S. /system/etc/autorun.iso
Sent from my SCH-I545 using XDA Premium 4 mobile app
I ran them from terminal emulator. I was just referring to mixing the files over to the phone. ES file Explorer wouldn't write in mnt. When plugged in to the laptop I just prefer to move stuff straight in. The only thing I could get to mount was a scarf
Anyway thanks again
Also, does removing the auto run iso from etc have any adverse effects?
darker_slayer said:
Also, does removing the auto run iso from etc have any adverse effects?
Click to expand...
Click to collapse
Removing or renaming the autorun.iso file does not stop the USB connection from connecting as "installer" when you first plug it in. There is still a delay of 20-30 seconds before it switches to "connected as media device" after you plug it in. If anyone has a permanent solution to this, please post it! I've tried changing the settings in the hidden menu *#7284#, but the settings don't stick and revert back to the "connect as installer" after a reboot.
Zelmo88 said:
Removing or renaming the autorun.iso file does not stop the USB connection from connecting as "installer" when you first plug it in. There is still a delay of 20-30 seconds before it switches to "connected as media device" after you plug it in. If anyone has a permanent solution to this, please post it! I've tried changing the settings in the hidden menu *#7284#, but the settings don't stick and revert back to the "connect as installer" after a reboot.
Click to expand...
Click to collapse
Thanks for the info, I was going to ask about this in a separate thread. After your reply looks like I need to look for some other method.
Also, the phone never mounts anything other than /sdcard/ right? Moving things to other places requires an explorer app?
To add to the growing number of noob questions, is it still possible to run ES File Explorer with SU in version 3? I know I used this way in the past, but I can't find the option and it's not showing me a bunch of stuff like /efs/carrier/HiddenMenus or letting me past into extSdCard
Is there a free root explorer if ES can no longer do it?
darker_slayer said:
Thanks for the info, I was going to ask about this in a separate thread. After your reply looks like I need to look for some other method.
Also, the phone never mounts anything other than /sdcard/ right? Moving things to other places requires an explorer app?
To add to the growing number of noob questions, is it still possible to run ES File Explorer with SU in version 3? I know I used this way in the past, but I can't find the option and it's not showing me a bunch of stuff like /efs/carrier/HiddenMenus or letting me past into extSdCard
Is there a free root explorer if ES can no longer do it?
Click to expand...
Click to collapse
I use ES File Explorer without any problems. Do you have "root explorer" switched ON in "Tools" in the ES File Explorer?
Zelmo88 said:
I use ES File Explorer without any problems. Do you have "root explorer" switched ON in "Tools" in the ES File Explorer?
Click to expand...
Click to collapse
Nope
Looked for it in settings, didn't think to check tools
I've been using Android and CWM for years with no problems till now that I'm using a rooted KitKat ROM (SlimKat). By default root is not enabled in SlimKat, but I did enable it along with USB debugging. I have CWM installed and it made a nandroid backup on my Moto G (1st Gen. which doesn't have an SD card). I want to make a copy of this backup and found it in /data/media/clockworkmod. However, to see this I had to use Root File Manager as a non-root user cannot see this directory.
So how do I copy this?
My thought was adb. However, even adb won't let me copy this to my Ubuntu Linux pc.
Marty
EDIT:
I thought running adb as sudo would work. It does on some directories, but not this one where the CWM backups are. Here's what I did in Ubuntu:
sudo adb devices
sudo adb pull /data/media/clockworkmod/
remote object '/data/media/clockworkmod/' does not exist
got it! I had to use another app and OTG to a USB flash drive. For some reason Root File Manager kept shutting down whenever I tried to write these backup files to my USB flash. SlimKat was installed with an app called Simple Explorer. It saw the same directory once I gave it root permission and then was able to copy my 2 nandroid backup folders to my USB flash drive.
Marty
it didn't work. Appeared to, but the file size isn't even the same Maybe if I write it to an ext4 partitioned USB flash it would get it right?
Marty
I think all that did work, but I found an official play store app for CWM called CWM Backup Manager that pulled the CWM backups to a place where they can be copied.
Marty
Hi,
I've been fighting with this for weeks, and I can't seem to get it work.
Situation:
I want to make my Xperia T (CM12.1) into a usenet download machine. I'm hoping to download local, and extract external to my share.
So far I've managed to mount the share, but anything I try won't give an App write permission. I've used ES File Explorer in Root Explorer mode to write, which works, but the specific app for usenet downloading doesn't need root, so it can't write to the share.
What I've tried:
Moving the App to system
Gave him all kinds of write permissions
Changed owner and group from system to root and vice versa
Used several kinds of mount commands
Used several mounting locations (folder on SD, folder in /mnt/remote dir, etc)
Adding the user id (uid) to the mount command, to target the mount for this specific user (which the basic terminal app gave me back as something like 1 and another said my uid was 2 for example, so that's wonderful...)
Adding the Domain of the user of the share
This is my mounting script:
Code:
su --mount-master
mount -o unc=\\\\192.168.*.*\\share1,username=Rubenos,password=*****,uid=1,gid=1,rw,nounix,iocharset=utf8,noperm,file_mode=0777,dir_mode=0777 -t cifs none /mnt/network/share1
I'm executing this from the terminal app within CM.
What am I missing here?
Thx!
Bump
Hi. I've had the same issue on Nexus 5.
Looks like the root of the problem is SELinux. You need to flash an insecure kernel and disable SELinux enforced mode.
Obviously it's not a perfect solution and maybe someone will suggest a better idea how to fix it.