Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sanitizing illegal filenames on NTFS volumes

Status
Not open for further replies.

spamjim

Instructor
Mar 17, 2008
1,368
US
I have a few USB portable NTFS drives that have also been used on Mac and Linux systems, via fuse and other native OS accommodations. When I reconnect a portable drive to a Windows system, I discover that the Mac and Linux systems did not fully follow the rules for NTFS filenames. While copying the files from the portable drive to another local drive on Windows, I often see the error: "The file name you specified is not valid or too long". Can anyone recommend tools to identify these filenames on the Mac/Linux systems so that they can be corrected...or tools to fix them on the Windows side? As the filenames are invalid on Windows, I cannot rename them in Windows Explorer.
 
Adding another option if one cannot go back to the Linux or Mac system... On Windows, you can use the free version of Recuva, a file restoration utility. One of the features of this program is to sanitize filenames while copying from a "bad" drive to a good drive.

In the Recuva preferences, check the box for "Scan for non-deleted files (for recovery from damaged or reformatted disks)" and then scan the portable drive. Also make sure that "Restore folder structure" is enabled. When you copy the files to the new drive, Recuva will make sure the new drive stores the files with proper filenames. This process can take time so it is still best to correct the filenames on the Mac or Linux system with detox.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top