03-13-2016
And what speaks against a symbolic link /nas -> /net/server01.example.com? Then you don't need the bash script.
Try with /nas2 first so you can compare with your existing /nas
10 More Discussions You Might Find Interesting
1. AIX
Hello Everyone,
I have a pseries machine running AIX 4.3.3 that has an invalid IP in /etc/hosts. During a boot the system hangs because it's trying to mount an NFS share to this invalid IP.
I've tried to boot the system from a mksysb (not sure if the device was defined as rmt0) and AIX CD... (0 Replies)
Discussion started by: jlslhills
0 Replies
2. Shell Programming and Scripting
Hi,
I have 12 AIX P series servers. One has the NFS DB2data and the others are client mounts. NFS is not in /etc/filesystem because if NFS DB2data not up the client takes 7+ minutes to give up on nfsmnt and boot up.
I'd like to check that nfs is up, then do the client mount all from a startup... (0 Replies)
Discussion started by: sv2xs
0 Replies
3. UNIX for Advanced & Expert Users
this is probably a bit dumb ...but i read somewhere that one of the nfs versions can be mounted on a windows 2003 server ..if yes ..does anyone know how this can be achieved (1 Reply)
Discussion started by: tarunicon
1 Replies
4. Solaris
Hi, How can i mount an NFS share on a solaris machine a filesystem ?
I have enabled nfs on a windows server and the shares has given read/write access to it to all the users. I would like to mount it on around 10 different solaris boxes with different versions of solaris.
Thanks in advance. (2 Replies)
Discussion started by: uxadmin007
2 Replies
5. IP Networking
Hello,
I have a few Ubuntu 9.10 laptops I'm trying to learn NFS sharing with. I am just experimenting on this right now, so no harsh words about the security of what I'm playing with, please ;)
Below are the configs
/etc/exports on host
/home/woodnt/Homeschool... (2 Replies)
Discussion started by: Narnie
2 Replies
6. Web Development
Hi,
I want to mount an NFS Shared folder on Windows XP to vxWorks.
There doesnt seem to be a problem with the sharing.
Now, when i try to mount the directory onto vxWorks (it runs on a Tumbleweed card), using a mount script (.sh), the following is the print i see on Tera Term:
hostAdd... (0 Replies)
Discussion started by: chinmayzen
0 Replies
7. Red Hat
When i tried to mount the nfs i see this error message
mount -t nfs 192.168.20.194:/remote/proj1 /nfsmount
mount: 192.168.20.194:/remote/proj1 failed, reason given by server: Permission denied
and the /etc/exports file in the host side looks like this
/remote/proj1 ... (12 Replies)
Discussion started by: srinathk
12 Replies
8. Solaris
Hi,
I am trying to access a NFS shared directory on Solaris 10 Server from a client which is RHEL 4 Server.
On the NFS Server, in /etc/dfs/, I added following line to dfstab file.
& then ran the following
On the client machine, while running the mount command, I am... (0 Replies)
Discussion started by: SunilB2011
0 Replies
9. SCO
Hi! All,
I am trying to mount a NFS share on my FreeNAS system onto my SCO OpenServer 5.0.6. I get the following error:
mount: cannot mount /: Connection Refused (error 115)
Has anyone been able to do this? (3 Replies)
Discussion started by: trolley
3 Replies
10. Solaris
I have a Solaris 10 server, I'm trying to mount a share from a Windows nfs server. If I add this entry (tst-walnut:/test_sap_nfs - /majid nfs - yes rw,soft) to my /etc/vfstab, then I can mount, but when I create a file by root:root, the file owner changes to... (1 Reply)
Discussion started by: Hiroshi
1 Replies
symlink(2) System Calls Manual symlink(2)
NAME
symlink - make symbolic link to a file
SYNOPSIS
DESCRIPTION
The function creates a symbolic link. Its name is the pathname pointed to by path2, which must be a pathname that does not name an existing
file or symbolic link. The contents of the symbolic link are the string pointed to by path1.
RETURN VALUE
Upon successful completion, returns 0. Otherwise, it returns -1 and sets to indicate the error.
ERRORS
If fails, is set to one of the following values:
[EACCES] Write permission is denied in the directory where the symbolic link is being created, or search permission
is denied for a component of the path prefix of path2.
[EEXIST] The path2 argument names an existing file or symbolic link.
[EFAULT] path1 or path2 points outside the process's allocated address space. The reliable detection of this error
is implementation-dependent.
[EIO] An I/O error occurred while reading from path1, making the directory entry for path2, allocating the inode
for path2, or writing out the link contents of path2.
[ELOOP] Too many symbolic links were encountered in resolving path2.
[ENAMETOOLONG] The length of the path2 argument exceeds or pathname resolution of a symbolic link produced an intermediate
result that exceeds or a pathname component is longer than
[ENOENT] A component of path2 does not name an existing file or path2 is an empty string.
[ENOSPC] The directory in which the entry for the new symbolic link is being placed cannot be extended because no
space is left on the file system containing the directory, or the new symbolic link cannot be created
because no space is left on the file system which will contain the link, or the file system is out of file-
allocation resources.
[ENOTDIR] A component of the path prefix of path2 is not a directory.
[EROFS] The new symbolic link would reside on a read-only file system.
APPLICATION USAGE
Like a hard link, a symbolic link allows a file to have multiple logical names. The presence of a hard link guarantees the existence of a
file, even after the original name has been removed. A symbolic link provides no such assurance; in fact, the file named by the path1 argu-
ment need not exist when the link is created. A symbolic link can cross file system boundaries.
Normal permission checks are made on each component of the symbolic link pathname during its resolution.
AUTHOR
was developed by the University of California, Berkeley.
SEE ALSO
cp(1), chown(2), link(2), lstat(2), open(2), readlink(2), unlink(2), symlink(4), <unistd.h>.
STANDARDS CONFORMANCE
CHANGE HISTORY
First released in Issue 4, Version 2.
symlink(2)