Network File System (NFS)
- Your home directory, $HOME, is /home/nfs/ctcfsrvn/m/<your_userid>. This is your working directory when you first log in.
- The home directory is shared and identical across all machines.
- Your home directory is the same on CTC's Linux and Windows systems. The location appears different in Windows because Microsoft's DFS makes the specific server and share/partition names transparent to the user.
- The server for your home directory is ctcfsrvn.tc.cornell.edu, where n is a number. On that server, the partition for your home directory is m, a letter. The corresponding network share is tc_m.
- The file servers are running Windows. The file system is accessed from Linux using NFS.
- If you use $HOME in scripts, then the path to your home directory will be recognized no matter where it is located. This will be true even if $HOME later moves to a different server or partition.
Accessing File Servers from External Locations
- From Linux/Unix:
- Determine the specific file server and network share (i.e., partition) on which your home directory is located. One way to do it is to issue the following command on your local machine:
- ssh <your_userid>@linuxlogin1.tc.cornell.edu 'echo $HOME'
The output should look something like /home/nfs/ctcfsrvn/m/<your_userid>. Make a note of n and m.
- Typically only root can mount SMB file systems in Linux, so assuming you're not root, use smbclient, which acts like an ftp client. Notice the use of forward slashes in the service name:
- smbclient -U <your_userid> -W CTC_ITH //ctcfsrvn.tc.cornell.edu/tc_m
- To reach your home directory, use the -D option to smbclient, or use the cd command within the smbclient interface after it has started. The service name does not extend beyond //server/share.
- For details on working with smbclient, please refer to your local man pages.
- Note: smbclient is the best way to access locations in other CTC users' home directories for which you have been given special, individual permissions in Windows. (Special permissions of this type are unavailable in Linux.)
- From MacOS X:
- Determine the specific file server and network share (i.e., partition) exactly as above for Linux/Unix, using Terminal.
- To mount the SMB file system volume on MacOS X, put 'smb://ctcfsrvn.tc.cornell.edu/tc_m' in the Finder's "Go | Connect to Server..." dialog
- If you need access from the command line or in a script, an alternative would be
- /sbin/mount_smbfs -W CTC_ITH //<your_userid>:<password>@ctcfsrvn.tc.cornell.edu/tc_m <mount_point>
If a VPN connection is first established, the :password portion of the above command can be omitted.
- The smbclient command described above for Linux works for Mac OS X 10.3 or later.
- From Windows:
- Enter \\tc.cornell.edu\tc in the address bar of any Explorer window, or
- Map a drive letter (e.g., H: for Home) to the shared resource \\tc.cornell.edu\tc . This can be done in several ways:
- Right-click on My Computer, then select Map Network Drive
- From Windows Explorer select Tools, then Map Network Drive
- Use the net use command, e.g.,
- net use H: \\tc.cornell.edu\tc
- In all cases, you will need to enter CTC_ITH\<your_userid> and your password when prompted.
|