how to mount a smb shared folder on android file system? - Android Q&A, Help & Troubleshooting

I would mount a sdcard read from a wifi card reader (ravpower) with smb server to my nexus 4 file system so I can play mp3 files with my favourite music player. At the moment I mounted the folder with busybox mount command on android terminal emulator, but if I go back to ES File Explorer and I open the destination folder, it is empty, but I open again android terminal emulator and I use basically command (cd, ls) and navigate to the same folder, the terminal shows the file list

I tried:
Code:
su --mount-master -c mount -o unc=\\\\10.10.10.254\\SDCARD_Volume1,username=admin,rw,noperm,file_mode=0777,dir_mode=0777 -t cifs none /sdcard/Smb
Code:
su --mount-master busybox mount -r -o noperm,rw,file_mode=777,dir_mode=777,uid=1023,gid=1023,unc=\\\\10.10.10.254\\SDCARD_Volume1,username=admin -t cifs none /sdcard/Smb
with the commads above the terminal says mount failed invalid argument, so if I try the command below it works only from command line and from file manager app the folder is empty.
Code:
busybox mount -o username=admin -t cifs //10.10.10.254/SDCARD_Volume1 /sdcard/Smb

Anyone can help me?
Inviato dal mio Nexus 4 utilizzando Tapatalk

Related

[Q] Can't mount /system with ADB

So I'm totally unable to do anything to my /system in CWM via ADB.
Code:
> adb remount
remount failed: Operation not permitted
> adb push item.apk /system/app/item.apk
Failed: Permission denied
adb shell
$: su
Segmentation fault
$: rootsh
~# mount /system
mount: mounting /dev/block/mmcblk0p9 on /system failed: Device or resource busy
~# su
# mount /system
mount: mounting /dev/block/mmcblk0p9 on /system failed: Device or resource busy
# mount /system/app
can't find /system/app in /etc/fstab/
Pressing "unmount /system" in CWM results in "Error unmounting /system!" message. I tried pressing "Fix Permissions" but it didn't help. The only thing it did was that "su" results in "Segmentation fault" instead of "Permission denied". I just flashed my Lite'nin ROM again but it didn't fix anything.
I do have root access in normal OS so I can probably do some stuff in terminal emulator. But why is /system busy all the time?
try this:
adb shell
$ su
# mount -o rw,remount -t yaffs2 /dev/block/mmcblk0p9
kaukassus said:
try this:
adb shell
$ su
# mount -o rw,remount -t yaffs2 /dev/block/mmcblk0p9
Click to expand...
Click to collapse
Thanks. That apparently mounted the /system but adb was still unable to push the files there. Maybe that is because "su" is still not working, only "rootsh". So I moved the file to my sdcard and then moved it to /system in shell.
Jiia said:
Thanks. That apparently mounted the /system but adb was still unable to push the files there. Maybe that is because "su" is still not working, only "rootsh". So I moved the file to my sdcard and then moved it to /system in shell.
Click to expand...
Click to collapse
since you are using a Secured Kernel(probably the CF-Root with CWM), you have to push the files to /sdcard
and then copy the files from the sdcard to the /system directory.
you can only push files with adb directly to the /system directory, when you are using an insecured kernel.
kaukassus said:
since you are using a Secured Kernel(probably the CF-Root with CWM), you have to push the files to /sdcard
and then copy the files from the sdcard to the /system directory.
you can only push files with adb directly to the /system directory, when you are using an insecured kernel.
Click to expand...
Click to collapse
Oh. Thanks for the info, that cleared things up! I thought you only need to have a custom recovery in order to push with adb but apparently it's about the kernel.
kaukassus said:
try this:
adb shell
$ su
# mount -o rw,remount -t yaffs2 /dev/block/mmcblk0p9
Click to expand...
Click to collapse
this not working for me ,still can't mount the system i can't rm9 at ADB at all please help me !

[Q] adb question

Hi,
I have just installed wolfs 2.3 with hotfix and am having trouble with adb commands
I have tried pushing files to /data/data and I get this error
Code:
failed to copy 'name of file here' to 'path here' : Permission denied
However, if i boot into recovery and manually mount data it works.
My question is
what is the code to mount the data partition from adb?
I know
Code:
adb remount
mounts the system partition but i need the data partition mounted.
I have never ran into this before, all my adb commands worked whilst the phone was turned on...
any help please.
More issues
Code:
adb remount
does not work....permission denied
Also, using apk manager I cannot push sytem files to /system/app
This is quite irritating
The correct command is:
Code:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
Code:
adb shell
su
mount -o remount rw /system
works for me.

[Q] (Q) Mount sdcard-ext as NTFS

Well, i have a problem to mount my external sdcard, i download the ntfsmodule from kholk's archives and then execute this command on terminal emulator to load the module
insmod /mnt/sdcard/ntfs.ko
but then how can i mount my sdcard
i tried this
mount -o rw -t ntfs-3g (or ntfs) /dev/block/yourdrive /mnt/whereveryouwant
but which dev/block is the sdcard-ext????? or this is only for usb drives?
Thanks in advanced....

[xGo] [Adding] custom ringtones,alarms,camera,notifications and ui via adb

How to add custom ringtones,alarms,camera,notifications and ui via adb,emulator
First phone need to be rooted, adb installed or emulator installed on phone
Let's try with ringtone (gangnam.mp3) :
system is mounted in /dev/block/mmcblk0p10 and is ro (readonly)
( to check run adb shell execute mount )
/dev/block/mmcblk0p10 on /system type ext4 (ro,relatime,user_xattr,acl,barrier=1,data=ordered)
run adb
Code:
# su
remount system as rw (read-write)
Code:
# mount -o remount,rw /dev/block/mmcblk0p10
ringtones are located in
/system/media/audio/ringtones/
so u need to copy files to rw system from sdcard or ext_card or from local computer folder where adb is located
copy needed files from sdcard or ext_card to /system/media/audio/ringtones/
Code:
# cat /mnt/ext_card/gangnam.mp3>/system/media/audio/ringtones/gangnam.mp3
You can also use adb push command to transfer audio files in <sdk>/platform-tools/ to remote android.
Code:
adb push gangnam.mp3 /system/media/audio/ringtones/gangnam.mp3
remount to default
Code:
# mount -o remount,ro /dev/block/mmcblk0p10
exit adb and reeboot phone.
Select your music as default tone
Second option is to create cwm recovery based zip containing those files, or just add files into zipable rom .
I knw cwm
What is adb??
Sent from my ST25i using Tapatalk 2
Adb is android debug bridge,command line emulator 4 android phones,a part of android sdk located in sdk/platform-tools/
You can download it from the net.
You can also copy (push) the files from the computer to the destination android device throught adb or use simple emulator on your device (check market apps).
Sent from my ST27i using xda app-developers app

[Q] Configure a permanent mount -o bind in init.d

I want to set the cache folder of Google Music to the external sdcard using mount -o bind command
I created a file (without extension) that contains the following
Code:
#!/system/bin/sh
mount -o bind /emmc/Android/data/com.google.android.music/ /sdcard/Android/data/com.google.android.music/
I made sure the target folder exists and saved the file to /system/etc/init.d, but in fact it looks like the script isn't executed.
P.S. the script file's properties are: -rwxr-xr-x, Owner: 00000 root, Group: 02000 shell.
Storing permanent data
How?

Categories

Resources