VMware Cloud Community
sdietz
Contributor
Contributor

mv: cannot rename file; No such file or directory

Hi All,

I am following this KB article:

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=100251...

When I get to the mv command I am getting the error "mv: cannot rename 'file.vmdk': No such file or directory

If I do a ls command I can see the file right there. I am guessing the error is caused by the white spaces in the original file I am trying to overwrite. For example the original .vmdk is server 2003.vmdk

How do I deal with the issues or work around?

Thanks!

Tags (4)
Reply
0 Kudos
2 Replies
vmroyale
Immortal
Immortal

Hello.

Put quotes around the file name with the space in it. mv "server 2003" server2003

Good Luck!

Brian Atkinson | vExpert | VMTN Moderator | Author of "VCP5-DCV VMware Certified Professional-Data Center Virtualization on vSphere 5.5 Study Guide: VCP-550" | @vmroyale | http://vmroyale.com
Reply
0 Kudos
carlosmccraypro
Contributor
Contributor

I am having the same problem and I tried quotes everywhere.  the name of my vm is VM-DCM-DC01 and if I try to use that as the target name as in VM-DCM-DC01.vmdk it fails with the error message saying it cannot find the temp.vmdk.

If I try to rename it to VMDCMDC01.vmdk it works fine

I just tested again and it is because of the two "-" in the name.  If I only do one of them it works.  The problem is that my flat file and other files have 2

 

 

Reply
0 Kudos