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.

18 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
  11. This comment has been removed by the author.

    ReplyDelete
  12. Have you tried ‘Long Path Tool’ ?
    it’s very useful in this type of case.

    ReplyDelete
  13. Long Path Tool is the right choice and it is very easy to use.

    ReplyDelete
  14. The Vip clients might have gone through with an amazing way to convert the theories out here.
    Independent Massage Service in Delhi

    ReplyDelete
  15. "Always aim to pee in toilet, not around it. Your bathroom floor will thank you!"

    ReplyDelete
  16. Jack Patton, your recent post about urinal toilet bowl was both informative and engaging. Thanks for sharing such useful insights!

    ReplyDelete
  17. Claudia's jewelry from Lulu Avenue is absolutely breathtaking! The designs are elegant and contemporary, perfect for any occasion. The quality of her pieces is outstanding, and they add a touch of sophistication to any outfit. If you're looking for stylish and unique jewelry, Claudia's collection at Lulu Avenue is a must-see!






    ReplyDelete
  18. A belly ring is a trendy and attractive piece of jewelry that enhances the look of your navel piercing. It comes in various styles and designs, allowing for personal expression. Proper care and hygiene are essential to prevent infections and ensure a smooth healing process.






    ReplyDelete

How to check EMBG (Unique Master Citizen Number) using regex

In this post, I will share my implementation of how to check if some number looks like EMBG or Unique Master Citizen Number. For those of yo...