Unable to mount a driectory as managed in cygwin - cygwin

I am trying to mount a directory as managed in cygwin.
For this i was using
mount -o managed c:/cygwin/usr/src/kernel /usr/src/kernel
But after running this command it is giving below error
mount: invalid option - 'managed'
Do i need to add this managed mount option / it is my default present
Thanks in advance

Related

How to use PutFile in windows shared folder

Am trying to use NiFi's putFile to write into a windows mounted directory, first I used below command to mount the directory
sudo mount -t cifs //IP/export_path/ /home/exported_data/ -o username=user,password='pw',dir_mode=0777,file_mode=0777,nounix
and the file is written correctly but preceeded by dot . but then nifi throws an error stating that ...
Unable to remove temporary file /home/exported_data/.reject_2020-04-21.csv due to java.nio.file.AccessDeniedException: /home/exported_data/.reject_2020-04-21.csv: java.nio.file.AccessDeniedException: /home/exported_data/.reject_2020-04-21.csv
I also tried to set properties in putFile like Owner = nifi and Permissions = 777 but it didn't work
I think it could be related to permissions issue, but am not sure how to solve it

NFS mount using CHEF on LINUX | permissions of directory not getting changed

I am trying to do an NFS mount using CHEF. I have mounted it successfully. Please find the below code.
# Execute mount
node['chef_book']['mount_path'].each do |path_name|
mount "/#{path_name['local']}" do
device "10.34.56.1:/data"
fstype 'nfs'
options 'rw'
retries 3
retry_delay 30
action %i[mount enable]
end
end
i am able to successfully mount and make an entry in fstab file. But, after mounting the user:group for the mount linked is changing to root:root , which i was not expecting.
i want to use myuser:mygroup as owner:group. I tried changing the same using chown command but am getting permission denied issue
request some guidance
As mentioned in the comment, this is not something Chef controls per se. After the mount, the folder will be owned by whatever the NFS server says. You can try to chmod the folder after mounting but that's up to your NFS configuration and whatnot as to if it will be allowed.

After mounting netapp to directory the inside directory doesn't exist

I am trying to mount our netapp but after mounting im getting weird result.
I will give the weird results. We are trying to mount a netapp DFS share.
First i tried to mount without a specific domain.
mount -t cifs -o rw,mand,user=<user>,password=<passowrd>,noserverino //ip/dfs <directory path>
The mount worked but i couldn't access the inner directories.
The message:
bash: cd: : No such file or directory
Then i tried to mount with specific domain.
mount -t cifs -o rw,mand,user=<user>,password=<passowrd>,noserverino,domain=<domainName> //ip/dfs <directory path>
The mount also worked it but now when i tried to access the directory i got the message: **
bash: cd: : Permission denied
I also know it should work because i was able to view the share via a windows 7 station and it worked perfectly.
Also, i used the file manager of gnome and used "connect to server". It also worked and i could access the inner directories.
If you need more information let me know, and thank you for the help.

Unable to create a directory as managed in cygwin

I am trying to create a directory as managed in cygwin.
For this i was using
mount -o managed c:/cygwin/usr/src/kernel /usr/src/kernel
But after running this command it is giving below error
mount: invalid option - 'managed'
Thanks in advance

Mounting a folder from other machine in linux

I want to mount a folder which is on some other machine to my linux server. To do that i am using the following command
mount -t nfs 192.xxx.x.xx:/opt/oracle /
Which is executing with the following error
mount.nfs: access denied by server while mounting 192.xxx.x.xx:/opt/oracle
Do anyone knows what's going on ??? I am new to linux.
Depending on what distro you're using, you simply edit the /etc/exports file on the remote machine to export the directories you want, then start your NFS daemon.
Then on the local PC, you mount it using the following command:
mount -t nfs {remote_pc_address}:/remote/dir /some/local/dir
Please try with your home directory as per my knowledge you can't dump anything directly on root like that.
For more reference, find full configuration steps here.

Resources