NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: problems when using usb with NetBSD



On Mon, Feb 02, 2009 at 11:14:16AM +0800, chenzhongying wrote:
> Dear Sir or Lady:
> 
>               I am sorry for my poor English.
> 
>               I'm from China.
> 
> I ask for a help when I using NetBSD OS. Now I want to create a file with
> Japanese filename on USB device. 
> 
> The USB's file system is FAT.
> 
> But the file name can't display when the USB using on windows xp.
> 
> I create the file using "java program". I also create it using "c program". 
> 
> The result is the same.

Did you mount the filesystem on NetBSD with `mount_msdos -l'?


From the wikipedia FAT-article:

        Max filename size:

           8.3 filename, or 255 UTF-16 characters when using LFN (long file 
names)


From man mount_msdos:

        -l      Force listing and generation of Win'95 long filenames and
                separate creation/modification/access dates.

                If neither -s nor -l are given, mount_msdos searches the
                root directory of the filesystem to be mounted for any
                existing Win'95 long filenames.  If the filesystem is not
                empty and no such entries are found, -s is the default.
                Otherwise -l is assumed.


HTH,



   Petar Bogdanovic





Home | Main Index | Thread Index | Old Index