Wednesday, April 8, 2015

Source Path Too Long and Volume Shadow Copies

In this case a Windows Server 2008 R2 file server was hosting company's file shares. This Windows File Server was having several disk volumes with file shares and scheduled volume shadow copies. Users with necessary access permissions to file shares were able to restore previous version of files and folders. In this case a user was complaining that he was unable to restore the previous version of file, because Windows Explorer was preventing to do so, with following error message:
The source file names(s) are larger than is supported by the file system. Try moving to a location which has a shorter path name, or try renaming to shorter name(s) before attempting this operation...

The solution provided in the error message "Try moving to a location ..." is not applicable because shadow copies are read only. In order to restore this file from volume shadow copy, I have exposed the volume shadow copy as a directory symbolic link.
Finding the necessary volume shadow copy can be achieved using vssadmin or diskshadow. Because the Windows File Server was having several disk volumes, I wanted to list the shadow copies of the affected volume only. This can be done using vssadmin:
vssadmin list shadows /for=driveletter:
From the output of the command, I've found the needed volume shadow copy (for example: Shadow Copy Volume: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1007) . Next, I've created directory symbolic link using mklink :
mklink /D "c:\temp\vss" \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1007\
Now browsing the into c:\temp\vss, I was able to access the "problematic file" from the volume shadow copy and recover the requested version of the file. At the end, I've deleted the created directory symbolic link.

10 comments:

  1. LONG PATH TOOL is a simpler and better solution than this one

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. If you trying to resolve path too long problem
    Use long path tool.... It's very easy solution and you can find it..... By writing at Google search "long path tool"

    ReplyDelete
  4. If you trying to resolve path too long problem
    Use long path tool.... It's very easy solution and you can find it..... By writing at Google search "long path tool"

    ReplyDelete
  5. http://benevolentmachine.blogspot.com.eg/2010/10/eliminating-deltacopys-file-name-too.html?showComment=1441382665574&m=1#c3477201592777335910

    ReplyDelete
  6. TRY LONG PATH TOOL PROGRAM IN THIS KIND OF PROBLEM.

    ReplyDelete
  7. Long path Tool will surely work for you!

    ReplyDelete
  8. Long Path Tool help me a lot when i have an issue like file deleting or renaming the file. Also good to use if file name and file extension is too long

    ReplyDelete
  9. Long Path Tool worked wonders for me, thanks.

    ReplyDelete
  10. The Long path tool is the very best program for error, unlock solution.
    Try it and solved your problem.
    I used the long path tool and I solved my error, unlocks problem solution.

    ReplyDelete