|Paul W. Roach III on 22 Apr 2011 12:38:33 -0700|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|Re: [PLUG] Network shares|
What I do not understand is why I cannot mount it anywhere other than just
off root. I tried using the full path to /var/lib/mythtv/music and I tried
putting it in the home folder /home/mythuser/music, but always got an error.
For example, neither of these work:
sudo mount -t nfs -o vers=3 192.168.1.240:/var/lib/mythtv/music
sudo mount -t nfs -o vers=3 192.168.1.240:/var/lib/mythtv/music/home/mythuser/music
Just off root isn't really the best place for it, however in this case the
computer is only running a Myth frontend so it does not really matter very
This takes things back to your initial post...
> > And now trying the same thing with:
> > sudo mount -t nfs -o vers=3 192.168.1.240:/var/lib/mythtv/music /music
> > Both of these commands now yields the error "mount point /videos [or
> > does not exist".
The nfs share to the "folder 'music' off root" worked because that's exactly
where you're telling it to mount it.
> > I have never really understood network shares in Linux, particularly the
> > pathing. I am trying to map the MythTV music folder from the back end to
> > front end. The path on both the backend and frontend is:
> > /var/lib/mythtv/music
> > Can anyone explain this to me?
In Linux, network shares are just another rendition of mounting, and if I'm
understanding you correctly, it seems the whole in your knowledge is really
in mounting and mount points.
The basic abstract of it is just "mount what where", eg,
mount $options 192.168.1.240:/var/lib/mythtv/music /music
(I'm just abstracting the specific options out to a supposed environment
variable, because that's not really what's important here)
The "what" is "192.168.1.240:/var/lib/mythtv/music" - presumably your
machine has the .240 IP address, and the absolute path you want to access
The "where" is "/music" - that's an (absolute) path to a location on your
machine (ie, localhost). Just as I can't tell you to put the delivered
into a vase without telling you where the vase is, you can't mount something
to a location that doesn't exist (forgive me if you know this already). So,
your recent success, you created the absolute path /music. Now that it
you can (figuratively) "put" the remote data there.
When the command failed originally, there was no absolute path /music. So
error message said "Vase? What vase? I don't see any vase." What it
to make painfully obvious was that it was looking for the vase right inside
front door, because that's where you told it to start looking. Now I'm
your working directory when you executed the command was /var/lib/mythtv on
the local machine. But the "where" you gave was _absolute_, not relative -
that is, you told it to look for "/music", not "music". If you start the
with a slash, you're promising to give it the full path, so you need to type
"/var/lib/mythtv/music" as the "where".
I'm really hoping that I inferred correctly the source of the issue here;
otherwise, everything I wrote probably ends up just sounding pompous =8-0___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug