LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-14-2017, 10:06 PM   #1
susja
Member
 
Registered: May 2011
Posts: 124

Rep: Reputation: 1
Mount Mac on Linux


Hello,
It looks to me that I'm completely lost in this
I have Raspberry Pi running Raspbian. I installed Media server Plex on it.
My movies are located on MacBook (same LAN). Hence I have to configure Plex and point for storage on Mac.
I installed netatalk on Pi. I am able to access Mac but only when I provide afp://<Mac location>. Plex does not take it. It wants only absolute path to folder. Then I installed samba but likely did not configure it properly and it does not give me path to Mac either.
Could someone please provide me instructions how to access folder on Mac from Linux using absolute path to it?
Thanks in advance.
 
Old 03-15-2017, 06:52 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,608

Rep: Reputation: 4166Reputation: 4166Reputation: 4166Reputation: 4166Reputation: 4166Reputation: 4166Reputation: 4166Reputation: 4166Reputation: 4166Reputation: 4166Reputation: 4166
I've have not played with plex yet but I believe you need to mount the remote share and use the local mount point. Basic syntax for both commands:

mount -t cifs //mac/share /mnt/share
or
mount_afp -o user=U,group=fuse afp://USER:PASSWD@mac/FOLDER /mnt/share
 
Old 03-15-2017, 07:36 AM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,235
Blog Entries: 4

Rep: Reputation: 3261Reputation: 3261Reputation: 3261Reputation: 3261Reputation: 3261Reputation: 3261Reputation: 3261Reputation: 3261Reputation: 3261Reputation: 3261Reputation: 3261
It would be a good idea to mount the drive as say a share that continues to be owned and operated by the Mac.
 
Old 03-15-2017, 05:23 PM   #4
susja
Member
 
Registered: May 2011
Posts: 124

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by michaelk View Post
I've have not played with plex yet but I believe you need to mount the remote share and use the local mount point. Basic syntax for both commands:

mount -t cifs //mac/share /mnt/share
or
mount_afp -o user=U,group=fuse afp://USER:PASSWD@mac/FOLDER /mnt/share
Thanks for suggestions but I still need some more help with it.
I did this:
login to RPi.
mkdir /mnt/plex
On Mac:
hostname -> I-MacBook.local
user -> I
group -> staff
On RPi:
user -> pi
sudo mount -t hfs /Users/I/Movies/Completed /mnt/plex
mount: special device /Users/I/Movies/Completed does not exist
**
sudo mount -t hfs I-MacBook.local@/Users/I/Movies/Completed /mnt/plex
mount: special device IMacBook.local@/Users/I/Movies/Completed does not exist
**
On Mac:
mount_afp -o user=I,group=staff afp://piassword@/Users/I/Movies/Completed" /mnt/plex
**
On RPi .. when I go to network I could access my MacBook like this:
afp://I-MacBook.local:548/
Could you please help me with syntax and understanding how to mount my MacBook IMacBook.local to RPi?

Thanks
 
Old 03-15-2017, 06:28 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,608

Rep: Reputation: 4166Reputation: 4166Reputation: 4166Reputation: 4166Reputation: 4166Reputation: 4166Reputation: 4166Reputation: 4166Reputation: 4166Reputation: 4166Reputation: 4166
There are local filesystem types i.e. ext4,hfs,xfs etc for hard drives attached to the computer and there are remote/network filesystem types like nfs,cifs etc to access files on another computer on the LAN. To access a remote computer you need to use a network filesystem type.

To mount a remote filesystem you need to run the command on the client which is the Pi to access the server which is the Mac. I assume you are entering the afp://I-Macbook.. in the filesystem browser. The browser uses a virtual filesystem and depending on version it may or may be accessible in a terminal. I don't run a desktop on my Pi.

mount_afp is a fuse command line utility to mount a Mac afp network share. cifs is for mounting a samba share. I rarely use a Mac so I have never tried sharing using afp. The samba server on the Mac needs to be running and configured for the directory that you want to share.

Both commands are to be run on the Pi.
 
Old 03-16-2017, 10:10 AM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,235
Blog Entries: 4

Rep: Reputation: 3261Reputation: 3261Reputation: 3261Reputation: 3261Reputation: 3261Reputation: 3261Reputation: 3261Reputation: 3261Reputation: 3261Reputation: 3261Reputation: 3261
You can probably do it all from the graphic interface for which the Mac is so justifiably famous. Macs support a wide variety of networking protocols and simply call it, "sharing."

SMB (Windows) and AFP are supported most easily. Since Macs are fundamentally Unix machines, NFS is also supported, and there's a very nice NFS Manager application out there (for about $20 per seat) that is well worth it, unless you like monkeying-around with configuration files.

There's also WebDAV support.

Last edited by sundialsvcs; 03-16-2017 at 10:14 AM.
 
Old 03-16-2017, 08:03 PM   #7
X-LFS-2010
Member
 
Registered: Apr 2016
Posts: 510

Rep: Reputation: 58
first "macbook on same lan" doesn't tell us something IMPORTANT. is the storage drive USB on a hub connected to both computers? or are you ssh'ed (telnet) into the mac ? or are you trying to use a (new mount hack) that mounts drives over lan offered by something the mac supports ? or trying to use something in macbook pro settings that says it shares drives with (old? new?) version microsoft computers?

also what macbook? these are released OVER DECADES - the linux support needed depending on which macbook would be radically different

i have no idea what mount in (ie newest ubuntu release) can do with or without plex, but i know the "newer apple FS" is not supported hardly in linux that is a few years older (have no idea if they fixed it)

is there a chance you can just scp(1) the movie from the mac to /tmp on the raspberry and then view it from /tmp ? or use ssh to make a socket of the file transfer and give your app the /path to the socket file ?

Last edited by X-LFS-2010; 03-16-2017 at 08:05 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount NFS on Mac SO 10.5 custangro Other *NIX 1 05-21-2010 08:10 PM
how to mount a mac drive? The_Rover Linux - Newbie 7 01-25-2009 09:16 PM
Howto Mount Mac CD? AlanL General 5 09-13-2006 07:44 AM
Mount a mac disk??? lsgko Linux - General 3 09-29-2003 04:25 AM
Linux computer won't mount Mac floppy Travis86 Linux - Hardware 1 03-23-2003 08:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration