snicknet.net

‘Keepin it White n Nerdy’

Feb-2-2009

HowTo: Mount an NFS Share in Mythbunutu/Ubuntu

I ran into the problem of having recordings taking place on my MythTV frontend not recording to my backend server. So, I was told I should mount an NFS share and place my recordings there. Never having done an NFS mount I wasn’t too sure how difficult it was going to be, and it turned out to be way easier than I expected.

We’ll start on the server machine, the machine that has the files or space that you want access too.

1. Install NFS Server

sudo apt-get install nfs-user-server

2. Edit the exports file which outlines which folders are shared in NFS

sudo nano /etc/exports

Add a line with the following information:

(folder to share) (IP Address of machine with access to the share)

/var/lib/mythtv/recordings 192.168.1.5

3. Restart the NFS server to forcing it to re-read our new exports entry

sudo /etc/init.d/nfs-user-server restart

Now for the client machine:

1. Install the NFS client

sudo apt-get install nfs-common

2. Edit fstab to mount the nfs share

sudo nano /etc/fstab

Add a line as follows:

(IP Address of the Server):(Share Name) (Where to mount the Share) nfs

192.168.1.3:/var/lib/mythtv/recordings /mnt/recordings nfs

3. Remount fstab shares

sudo mount -a

That’s it, you now now have read and write access to the given share on the remote machine. Good luck.

Digg!
Posted under General

Add A Comment