LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 05-29-2016, 11:06 PM   #1
kryon
LQ Newbie
 
Registered: Feb 2009
Posts: 5

Rep: Reputation: 0
Fedora 23 - /etc/fstab entry


I am manually mounting this path using sudo command:
% sudo mount 192.168.1.79:/nfs/Public /media

I made this entry into /etc/fstab. However when I reboot, the entry into /etc/fstab does not take into effect.

I tried sudo service autofs reload. I think I am missing something here.

Any help of suggestions?

Output of /etc/mtab is:
192.168.1.79:/nfs/Public on /media type nfs (rw,relatime,vers=3,rsize=8192,wsize=8192,namlen=255,soft,proto=tcp,timeo=600,retrans=2,sec=sys,moun tproto=,local_lock=none,addr=192.168.1.79)

/etc/fstab
# Created by anaconda on Tue Mar 22 21:33:16 2016
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/fedora-root / ext4 defaults 1 1
UUID=802497c8-1543-4df7-90fa-7cf3b601e575 /boot ext4 defaults 1 2
/dev/mapper/fedora-home /home ext4 defaults 1 2
/dev/mapper/fedora-swap swap swap defaults 0 0
#kona-2.local:/nfs/Public /media nfs soft,intr,rsize=8192,wsize=8192
192.168.1.79:/nfs/Public /media nfs rw,relatime,vers=3,rsize=8192,wsize=8192,namlen=255,soft,proto=tcp,timeo=600,retrans=2,sec=sys,mount addr=192.168.1.79,mountvers=3,mountport=60822,mountproto=udp,local_lock=none,addr=192.168.1.79 0 0

The address is : WD Personal cloud and its name is kona. I tried kona.local and I cannot ping it.

[spindipr@risa ~]$ nslookup 192.168.1.79
Server: 2602:302:d133:2a90::1
Address: 2602:302:d133:2a90::1#53

79.1.168.192.in-addr.arpa name = kona.

[spindipr@risa ~]$
[spindipr@risa ~]$ ping kona
PING kona (192.168.1.79) 56(84) bytes of data.
64 bytes from kona (192.168.1.79): icmp_seq=1 ttl=64 time=0.293 ms
64 bytes from kona (192.168.1.79): icmp_seq=2 ttl=64 time=0.263 ms
^C
--- kona ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 5012ms
rtt min/avg/max/mdev = 0.263/0.278/0.293/0.015 ms
[spindipr@risa ~]$ ping 192.168.1.79
PING 192.168.1.79 (192.168.1.79) 56(84) bytes of data.
64 bytes from 192.168.1.79: icmp_seq=1 ttl=64 time=0.296 ms
64 bytes from 192.168.1.79: icmp_seq=2 ttl=64 time=0.290 ms
64 bytes from 192.168.1.79: icmp_seq=3 ttl=64 time=0.251 ms
^C
--- 192.168.1.79 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.251/0.279/0.296/0.019 ms


Any ideas what I can do the path is mounted automatically?
 
Old 05-29-2016, 11:37 PM   #2
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 750

Rep: Reputation: 156Reputation: 156
First of all - do you really want to be mounting into /media? I normally create a mount point in /mnt, eg.
Quote:
[tim@riverside ~]$ ls /mnt/
doco
[tim@riverside ~]$
Then I set up entries for (eg.) /mnt/doco. in fstab - what does your entry in fstab say?

Next, test the entry
Quote:
[tim@riverside ~]$ sudo mount /mnt/doco/
and see what happens?
 
Old 05-30-2016, 01:05 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,924

Rep: Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319
I would check the log files in /var/log
 
Old 05-31-2016, 07:35 AM   #4
kryon
LQ Newbie
 
Registered: Feb 2009
Posts: 5

Original Poster
Rep: Reputation: 0
/etc/fstab entry

This is my /etc/fstab entry

#kona-2.local:/nfs/Public /media nfs soft,intr,rsize=8192,wsize=8192
192.168.1.79:/nfs/Public /media nfs rw,relatime,vers=3,rsize=8192,wsize=8192,namlen=255,soft,proto=tcp,timeo=600,retrans=2,sec=sys,mount addr=192.168.1.79,mountvers=3,mountport=60822,mountproto=udp,local_lock=none,addr=192.168.1.79 0 0
 
  


Reply



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
[SOLVED] fstab entry hasancbe123 Linux - Newbie 4 05-07-2012 06:51 PM
General /etc/fstab entry rng Linux - General 12 01-03-2012 10:24 PM
entry into /etc/fstab wetnose23 Slackware 2 01-07-2006 04:30 PM
/etc/fstab entry ryedunn Linux - Newbie 1 01-17-2005 01:45 AM
fstab entry albean Linux - Newbie 1 12-04-2002 01:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 02:04 AM.

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