PDA

View Full Version : [SOLVED] ddrescue and foreign language filenames



mr_mop
October 24th, 2012, 09:39 PM
I am trying to take a ddrescue copy of a partition prior to an update, but it is losing all of the Japanese filenames.

I have Japanese filenames as I have some Japanese music CDs which I have ripped and kept the Japanese track names.

Is there a way to correctly copy these file names with ddrescue?

The command I am using is:
sudo ddrescue --no-split /dev/<partition> <image> <logfile>

Thanks

MM

TheFu
October 24th, 2012, 10:02 PM
I haven't used ddrescue with UTF8 filenames, but are you certain that both file systems are setup to support utf8 filenames?

It is possible that ddrescue was not coded to support anything except ASCII filenames. In theory, it may be possible to find that code and change it, but that is completely dependent on your skill.

mr_mop
October 25th, 2012, 09:45 AM
Ah, could that be my problem? I did not use iocharset=utf8 when mounting the image file. I'll try that and see if that makes a difference.

mr_mop
October 25th, 2012, 07:06 PM
Yes, that did the trick. Adding the option to make the command line:

sudo mount -o loop,iocharset=utf8 /media/D\ DRIVE/banbaPC.img ~/mnt

allowed this to work.

:guitar: