Sponsored Content
Operating Systems Linux Red Hat Windows Drive Mount Fails to Refresh in RedHat Post 302972731 by mister_frostee on Tuesday 10th of May 2016 06:44:51 AM
Old 05-10-2016
RedHat Windows Drive Mount Fails to Refresh in RedHat

Hi all,

I have a server running Red Hat Linux 7.2 and a Windows file server. I have mounted certain paths from the Windows file server on to the Red Hat server. I can specify access privileges to folders that are visible to different users who have access to both Windows and Linux servers. However, when a new directory is created, it does not show up on the Linux server till it is restarted. If access to a folder for a user is revoked, it continues to show up for that user till the server is restarted.

This is how I have mounted the Windows shared folders on my Linux server:

Code:
//abc.com/xyz/ /home/<my_user_id>/local_mount cifs credentials=/home/<my_user_id>/.smbcredentials,uid=12345,gid=1040

The ".smbcredentials" file contains my Windows login credentials, which is needed for me to access the Windows file server path.

"xyz" is the parent path, and it contains many data folders. Whenever a new data folder is added to the "xyz" path, it doesn't appear in the mounted location specified above:

Code:
/home/<my_user_id>/local_mount

... till the Linux server is restarted.

I have tried unmounting and remounting the drive to the local path, but to no avail. Is there a solution for refreshing the mounted path without having to restart the server every time to see the newly added data folders?
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to mount a hotswap scsi drive on a solaris 2.6 netra box using the mount command?

Hi... question is this: How do I mount an LVD hotswap scsi drive in bay #2 on a netra using the mount command? volmgt doesn't seem to mount it and/or I don't know how to view the drives data if it's formatted which it may not be. This drive is not new out of the box so I'm not sure. ... (4 Replies)
Discussion started by: soulshaker
4 Replies

2. UNIX for Dummies Questions & Answers

mount external usb drive on Redhat 9

I am using Redhat 9 Linux, and am trying to get my external usb drive mounted (fat32). If I look at the KDE Control panel, it lists a usb 2.0 storage device under "USB Devices" (also in /proc/bus/usb), and under "SCSI" as scsi1. I looked at /proc/scsi/usb-storage-0, and it lists it there also. What... (6 Replies)
Discussion started by: jeremiebarber
6 Replies

3. UNIX for Dummies Questions & Answers

Mount a windows drive on unix

Hi, I would like to be able to mount windows xp to a unix system, so that I can pull data from windows machine for backup and store it on the unix server. Does anyone know how I can go about mounting the windows drive in unix. Thanks, Eric (4 Replies)
Discussion started by: ejbrever
4 Replies

4. UNIX for Advanced & Expert Users

Can I mount Windows NTFS drive?

Just inherited a windows server to support. Windows 2003 Enterprise edition I can view driver / folders on the windows NTFS volume by mapping a drive from my windows laptop.. Can I mount this from a unix server also? I heard you can use Microsoft Services for Network File System... (3 Replies)
Discussion started by: frustrated1
3 Replies

5. UNIX for Advanced & Expert Users

How to Mount a Unix share drive on Windows

We are trying to mount a Unix share drive on a Windows 2003 server to avoid transfering files accross the network using sftp. I can see shared drives on the Solaris server using the "share" command. How can I mount the drives on my Windows server so that I can read them directly. Do I need... (2 Replies)
Discussion started by: rbdenham
2 Replies

6. Red Hat

Mount Windows share on Redhat, WITHOUT Samba?

Hi, Please let me know whether I can mount a windows share on Redhat, which does not have Samba installed. The constraint is that I cannot install Samba . Looking forward for a possible solution. (1 Reply)
Discussion started by: jksena
1 Replies

7. Solaris

How to mount a windows drive on Solaris..

hi All, I have two machines one which has Open solaris as its operating system and another which has Window Xp professional.I would like to mount a drive from the Windows machine onto the open solaris machine.Just to add i wish to do this without having SAMBA in place. Anyone who can help me... (2 Replies)
Discussion started by: sankasu
2 Replies

8. Solaris

Is it possible to setup a samba share to always mount to a specific Windows drive letter???

I'm trying to setup Samba in a solaris zone... Is there a way to setup Samba so that every Windows machine that tries to connect to the share always gets it mounted under the same drive letter (e.g. H:)??? My Samba share (in smb.conf) /home/pickup I want that all Window users get it mounted... (3 Replies)
Discussion started by: verdepollo
3 Replies

9. UNIX for Dummies Questions & Answers

Need help to move .csv file from UNIX path to windows shared drive or c:\ drive

Hi Guys, Can any one help me on this. I need help to move .csv/.xls file from unix path to windows shared drive or c:\ drive? Regards, LKR (1 Reply)
Discussion started by: lakshmanraok117
1 Replies
Ns_Pathname(3aolserver) 				   AOLserver Library Procedures 				   Ns_Pathname(3aolserver)

__________________________________________________________________________________________________________________________________________________

NAME
Ns_HomePath, Ns_LibPath, Ns_MakePath, Ns_ModulePath, Ns_NormalizePath, Ns_PathIsAbsolute - Pathname procedures SYNOPSIS
#include "ns.h" char * Ns_HomePath(Ns_DString *dest, ...) char * Ns_LibPath(Ns_DString *dest, ...) char * Ns_MakePath(Ns_DString *dest, ...) char * Ns_ModulePath(Ns_DString *dest, char *server, char *module, ...) char * Ns_NormalizePath(Ns_DString *dsPtr, char *path) int Ns_PathIsAbsolute(char *path) _________________________________________________________________ DESCRIPTION
These functions operate on file pathnames. They work with Unix and Windows pathnames on their respective hosts. Ns_HomePath(dest, ...) Construct a path name relative to the home directory of the server. The full path is constructed by appending the library directory followed by each of the variable number of string elements after the dest argument. The elements will be separated by a / charac- ter. The list must be terminated with a NULL string. Ns_LibPath(dest, ...) Construct a path name relative to the library directory of the server, normally the lib/ subdirectory of the home directory. The full path is constructed by appending the library directory followed by each of the variable number of string elements after the dest argument. The elements will be separated by a / character. The list must be terminated with a NULL string. Ns_MakePath(dest, ...) Construct a path name from a list of path elements. The Ns_MakePath function constructs a path name by appending a list of path ele- ments to the given Ns_DString. The path elements are separated by single slashes, and the resulting path name is appended to the given Ns_DString. The last argument needs to be NULL to indicate the end of the argument list. Ns_ModulePath(dest, char *server, char *module, ...) Construct a server and/or module specific pathname relative to the server home directory. The path in constructed by first append- ing the server home directory. Next, if the server argument is not NULL, "server/servere appended to the destination and if the module argument is not NULL, "module/module" will be appended. Finally, all other string elements, if any, will be appended to the destination with separating / characters. The list must be terminated with a NULL string. Ns_NormalizePath(dsPtr, path) Normalize a path name. This function removes any extraneous slashes from the path and resolves "." and ".." references. The result is appended to the given Ns_DString. The following code appends "/dog" to the Ns_DString: Ns_NormalizePath(&ds, "/dog/cat/../../rat/../../dog//mouse/.."); Ns_PathIsAbsolute(path) Check for an absolute path name. Return NS_TRUE if the path is absolute and NS_FALSE otherwise. Under Unix, an absolute path starts with a "/". On Windows, it starts with a drive letter followed immediately by a ":". SEE ALSO
nsd(1), info(n) KEYWORDS
AOLserver 4.0 Ns_Pathname(3aolserver)
All times are GMT -4. The time now is 07:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy