- Code: Select all
sudo mount /mnt/video_share/video
Moderators: ChriThor, LXF moderators
sudo mount /mnt/video_share/video
GeordieJedi wrote:Hi there nelz.
I've changed the hostname of my NAS now (as it's a lot easier to type).
I've tried a few quick experiments with the FSTAB and I did manage to get some mount points created by adding
this line to the FSTAB file =
- Code: Select all
Hoth:/volume1/photo /mnt/photo_share/photo nfs nouser,atime,auto,rw,dev,exec,suid 0 0
So the mount points showed up on the mnt dir, but they were owned by root
I then tried a chown to my username but then bash said that the dirs did not exist !
ping Hoth
sudo mount /mnt/video_share/video
mount: wrong fs type, bad option, bad superblock on Hoth:/volume1/video,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so
ping Hoth
ping: unknown host Hoth
rsize=8192,wsize=8192,soft 0 0
ping: unknown host Hoth
192.168.x.x:xxxx (where xxxx = port number)
unknown host 192.168.x.x:xxxx
192.168.x.x
64 bytes from 192.168.x.x: icmp_req=1 ttl=64 time=0.168 ms
64 bytes from 192.168.x.x: icmp_req=2 ttl=64 time=0.150 ms
64 bytes from 192.168.x.x: icmp_req=3 ttl=64 time=0.165 ms
64 bytes from 192.168.x.x: icmp_req=4 ttl=64 time=0.159 ms
64 bytes from 192.168.x.x: icmp_req=5 ttl=64 time=0.158 ms
64 bytes from 192.168.x.x: icmp_req=6 ttl=64 time=0.157 ms
192.168.*.*:/srv/logs /mnt/logs nfs nouser,defaults,atime,auto,rw,dev,exec,suid 0 0
192.168.x.x:/volume1/video /media/video_share/video nfs nouser,atime,auto,rw,dev,exec,suid 0 0
#
Hoth:/volume1/photo /media/photo_share/photo nfs nouser,atime,auto,rw,dev,exec,suid 0 0
#
Hoth:/volume1/music /media/music_share/music nfs nouser,atime,auto,rw,dev,exec,suid 0 0
mount.nfs: access denied by server while mounting 192.168.x.x:/volume1/video
mount.nfs: Failed to resolve server Hoth: Name or service not known
mount.nfs: Failed to resolve server Hoth: Name or service not known
GeordieJedi wrote:Ok I've tried a little experiment.
I've made 2 amendments to my FSTAB.
1. I've changed the mount points to the /media dir rather than the std /mnt dir.
(I realise /mnt is convention however Im using Ubuntu 12.04 and I've always had
better luck putting my normal HDD mounted partitions in this dir).
2. Added the IP address as you suggested on one of the lines
FSTAB =
- Code: Select all
192.168.x.x:/volume1/video /media/video_share/video nfs nouser,atime,auto,rw,dev,exec,suid 0 0
#
Hoth:/volume1/photo /media/photo_share/photo nfs nouser,atime,auto,rw,dev,exec,suid 0 0
#
Hoth:/volume1/music /media/music_share/music nfs nouser,atime,auto,rw,dev,exec,suid 0 0
Error messages =
- Code: Select all
mount.nfs: access denied by server while mounting 192.168.x.x:/volume1/video
mount.nfs: Failed to resolve server Hoth: Name or service not known
mount.nfs: Failed to resolve server Hoth: Name or service not known
The first line in the error message seems interesting.....
-o nolock
So, why can't I ping Hoth ?
I can access the NAS via a web browser.
I can see that it has an IP address if I log into my routers advanced settings page
ls -l /mnt
GeordieJedi wrote:I've created a static/reserved IP address in the VM routers advanced settings page.
I've looked in the etc dir and I don't seem to have a etc/hosts file.
I can see "hosts.conf" file. Is this the same thing ?
Otherwise do I just create a text file called hosts ?
127.0.0.1 localhost
127.0.1.1 t400
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
192.168.x.x <NAS-name>
The permissions are correct in the original mnt dir,
but not in the media dir (as I haven't changed them yet).
ps ax | grep rpcbind
drwxrwxrwx 4 root root 30 Nov 3 2012 stor
root@OpenWrt:/mnt/sda2# showmount -e
Export list for OpenWrt:
/mnt/sda2/stor 192.168.1.0/255.255.255.0
root@sms:/home/files/data-1# showmount -e
Export list for sms:
/home/files/data-1/stor 192.168.1.0/255.255.255.0
/home/files/data-1/stor 192.168.1.0/255.255.255.0(no_root_squash,rw)
ls -l /media
sudo vi /etc/hosts
xxx.xxx.xxx.xxx Hoth
sudo mount 192.168.x.x:/path/to/export -t nfs /mnt/mountpoint
Users browsing this forum: No registered users and 1 guest