- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cannot unlink: File exists
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2005 12:15 AM
тАО06-27-2005 12:15 AM
cannot unlink: File exists
I want to move a directory from the NFS to a local filesystem.
It moved most files, but I got a "permission denied" error on some files.
When I try to move the remaining files it gives me "cannot unlink: File exists"
Some info :
NFS server and client are HPUX 11.11
NFS patches have been installed on NFS server
No one is working on the NFS disk
I'm root :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2005 12:25 AM
тАО06-27-2005 12:25 AM
Re: cannot unlink: File exists
For instance, if I'm moving a bunch of files from /home/fredsmith to /home/fsmith and the ownership is different, the "mv" would fail on files that already exist under /home/fsmith.
Take a look at one of the files that it doesn't want to move and then go to your target directory and see if the file already exists there.
Best regards,
Kent M. Ostby
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2005 12:50 AM
тАО06-27-2005 12:50 AM
Re: cannot unlink: File exists
Some files though do not exist in the target directory. It seems that if the destination-directory exists, it give me this error, allthough the files in that directory have not yet been moved.
If I go into the directory and move the files from there, it works. Problem is there are many many files and many subdirectories
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2005 01:01 AM
тАО06-27-2005 01:01 AM
Re: cannot unlink: File exists
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2005 01:02 AM
тАО06-27-2005 01:02 AM
Re: cannot unlink: File exists
reason could be some wild card characters in the file name (most likely a space char). Also check whether any processes are using the file, then also you may get access violation error.
run mv with verbose output to check for any possible error message
Regards,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2005 01:14 AM
тАО06-27-2005 01:14 AM
Re: cannot unlink: File exists
No wildcards are used in filenames
How do I mv with verbose logging ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2005 01:23 AM
тАО06-27-2005 01:23 AM
Re: cannot unlink: File exists
for force move you can mv -f
to verbose output you can use mv -v
for more options check man mv
Regards,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2005 03:42 AM
тАО06-27-2005 03:42 AM
Re: cannot unlink: File exists
mv -f still gives an error : cannot unlink : File exists