Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Mount Linux filesystem from Android

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
pk_fox
LXF regular


Joined: Wed Apr 13, 2005 2:38 pm
Posts: 292
Location: Surrey, UK

PostPosted: Wed Apr 23, 2014 8:35 am    Post subject: Mount Linux filesystem from Android Reply with quote

Hi all, I've googled but can't find anything decent, how can I mount a Linux filesystem from my Android device, the Linux system ( Raspberry pi ) is on my local LAN and hard wired to a router whilst my Android tablet is connected to the same router via Wi-Fi, I know the mount command supports IP addresses as arguments but I can't seem to get it working , I keep getting "invalid argument" error message.
[/code]
_________________
We can't stop here, this is bat country. Hunter S Thompson RIP.
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8467
Location: Warrington, UK

PostPosted: Wed Apr 23, 2014 8:54 am    Post subject: Reply with quote

You can't mount a Linux filesystem from another computer, you mount a network filesystem. First you need to export the filesystem on the Pi with wither NFS or CIFS (Samba). Then you use something like Mount Manager or CIFS Manager to mount that on the Android device.

Alternatively, you can use ES File Explorer to access remote folders over IFS, SFTP (SSH) or WebDAV. It really depends on what you want to do, but this plus Ampache for streaming music works for me.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
pk_fox
LXF regular


Joined: Wed Apr 13, 2005 2:38 pm
Posts: 292
Location: Surrey, UK

PostPosted: Wed Apr 23, 2014 9:58 am    Post subject: Reply with quote

nelz wrote:
You can't mount a Linux filesystem from another computer, you mount a network filesystem. First you need to export the filesystem on the Pi with wither NFS or CIFS (Samba). Then you use something like Mount Manager or CIFS Manager to mount that on the Android device.

Alternatively, you can use ES File Explorer to access remote folders over IFS, SFTP (SSH) or WebDAV. It really depends on what you want to do, but this plus Ampache for streaming music works for me.


Hi Nelz, thanks for that, how do I export the Pis' folders as CIFS shares?
_________________
We can't stop here, this is bat country. Hunter S Thompson RIP.
Back to top
View user's profile Send private message
Nuke
LXF regular


Joined: Wed Feb 09, 2011 12:11 pm
Posts: 217
Location: Chepstow, UK

PostPosted: Wed Apr 23, 2014 10:23 am    Post subject: Reply with quote

nelz wrote:
You can't mount a Linux filesystem from another computer, you mount a network filesystem. First you need to export the filesystem on the Pi with wither NFS or CIFS (Samba). Then you use something like Mount Manager or CIFS Manager to mount that on the Android device.

Perhaps it is just terminology, but I take pk_fox to mean "mount a file system on another computer", and yes in that case you mount it as a network file system (as opposed to a ext4 or reiser or jfs file system).

I have no experience of Samba or Android, but I was advised that setting up nfs is simpler than Samba. I have set up my RPi as an nfs server, and found it does not have the network modules by default (the designers ever envisaged this use), so it needs more than adding an exports file; rpcbind and nfs-kernel-server need to be installed from the repository.

My mount command btw goes :
Code:
mount -t nfs 192.168.1.9:/home/common /home/nuke/RPi_common

... where 192.168.1.9 is my RPi, ...../common is the RPi directory I am mounting, and ...../RPi_common is the mount point on my PC.
_________________
Unsolved mysteries of the Universe, No 13 :-
How many remakes of Anna Karenina does the World need?
Back to top
View user's profile Send private message
purplepenguin
LXF regular


Joined: Wed Oct 05, 2011 3:19 pm
Posts: 123
Location: Blissfully at the Command Line

PostPosted: Wed Apr 23, 2014 11:01 am    Post subject: Reply with quote

Another option for mounting remote file systems is SSHFS. I use it to connect RPi's and other desktops to my media server in my experience it seems faster than NFS and SMB.

I move files between my desktop and Android phone via an FTP server running on the phone. It's easier than setting up MTP on Linux.

If your running an SSH server on the PI use ES File Explorer to connect to it via SFTP.
_________________
So it looks like I'm back to LinuxMint again. Why you ask? Because my machine smell nicer.

I'm not too sure I'd want a Mint and Cinnamon muffin with my brew though. Guess I'm lucky they don't run my local bakery.
Back to top
View user's profile Send private message
pk_fox
LXF regular


Joined: Wed Apr 13, 2005 2:38 pm
Posts: 292
Location: Surrey, UK

PostPosted: Wed Apr 23, 2014 2:25 pm    Post subject: Reply with quote

Nuke wrote:
nelz wrote:
You can't mount a Linux filesystem from another computer, you mount a network filesystem. First you need to export the filesystem on the Pi with wither NFS or CIFS (Samba). Then you use something like Mount Manager or CIFS Manager to mount that on the Android device.

Perhaps it is just terminology, but I take pk_fox to mean "mount a file system on another computer", and yes in that case you mount it as a network file system (as opposed to a ext4 or reiser or jfs file system).

I have no experience of Samba or Android, but I was advised that setting up nfs is simpler than Samba. I have set up my RPi as an nfs server, and found it does not have the network modules by default (the designers ever envisaged this use), so it needs more than adding an exports file; rpcbind and nfs-kernel-server need to be installed from the repository.

My mount command btw goes :
Code:
mount -t nfs 192.168.1.9:/home/common /home/nuke/RPi_common

... where 192.168.1.9 is my RPi, ...../common is the RPi directory I am mounting, and ...../RPi_common is the mount point on my PC.


Hi there, I installed Samba and all is fine, thanks for the response.
_________________
We can't stop here, this is bat country. Hunter S Thompson RIP.
Back to top
View user's profile Send private message
pk_fox
LXF regular


Joined: Wed Apr 13, 2005 2:38 pm
Posts: 292
Location: Surrey, UK

PostPosted: Wed Apr 23, 2014 2:26 pm    Post subject: Reply with quote

purplepenguin wrote:
Another option for mounting remote file systems is SSHFS. I use it to connect RPi's and other desktops to my media server in my experience it seems faster than NFS and SMB.

I move files between my desktop and Android phone via an FTP server running on the phone. It's easier than setting up MTP on Linux.

If your running an SSH server on the PI use ES File Explorer to connect to it via SFTP.


Hi there, I installed Samba and all is fine, thanks for the response. I will certainly look at SSHFS.
_________________
We can't stop here, this is bat country. Hunter S Thompson RIP.
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast