Home » Questions » Computers [ Ask a new question ]

Files with illegal filenames [duplicate]

Files with illegal filenames [duplicate]

I have a few files whose names have characters such as "?" and ":" that are forbidden by windows. I'm not sure how they managed to get there with these names, since I can't manually create files with these names. They're recovered from an HFS drive, but the tool that recovered them was running under windows and so should have been subject to the same restrictions while creating them, I would think.

Asked by: Guest | Views: 205
Total answers/comments: 2
Guest [Entry]

"If Idigas' suggestion does not work, you could always move them with a Linux LiveCD such as Ubuntu. It allows question marks and colons in filenames so it should have no problem handling the files.

You just need to mount your drive first. If XP is your only operating system installed on the disk, it can probably be mounted from /dev/sda1 or /dev/hda1 depending on if it's a SCSI drive or IDE drive.

to mount a SCSI drive (if running NTFS):

mount -t ntfs-3g /dev/sda1 /mnt

to mount an IDE drive (running NTFS):

mount -t ntfs-3f /dev/hda1 /mnt

If it's a FAT32 volume, you can use vfat as the type (-t vfat)"
Guest [Entry]

For some reason, I usually have more luck when moving/copying/renaming/(anything really) files from the command line, than when doing it windows explorer.