LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   udev pen drive filename length (http://www.linuxquestions.org/questions/linux-software-2/udev-pen-drive-filename-length-906756/)

gosala 10-06-2011 10:14 AM

udev pen drive filename length
 
Hi,

I have a problem with mounting pen drive using udev. I am working in an arm development platform and installed udev successfully. My udev rules are as follow.
BUS=="usb", ID=="1-1", KERNEL=="sd?1", NAME="pen1"
What I want here is to assign node "pen1" whenever a pen is mounted to port "1-1". udev works fine but when I mount using "mount /dev/pen1 /mnt" and access the content, the filenames appear corrupted and show only 8 bits.
eg: myfilename.mp3 is replaced with myfile~e.mp3

what should I do?

jdkaye 10-06-2011 10:47 AM

What file system is your pen drive using?
jdk

gosala 10-06-2011 10:57 AM

Hi jdk,

It is vfat.

jdkaye 10-06-2011 11:05 AM

Maybe that's causing the file mangling that you observe. Is there any reason to use vfat rather than another file system?
jdk

gosala 10-06-2011 12:33 PM

Hi jdk,

apparently I can't use other fs. anyway I used udev-110 which is a quite older version. Can't it be a problem?

jdkaye 10-06-2011 12:55 PM

Quote:

apparently I can't use other fs. anyway I used udev-110 which is a quite older version. Can't it be a problem?
Yeah I noticed that and wondered why. It's usually not necessary to write udev rules to mount an external drive. The older version could be the problem. I'm using version 172-1. Are you using a very old version of Ubuntu? You ought to be able to install a more recent version and see if that fixes the problem. Updating udev may involve updating a lot of its dependencies.
What makes you think you can't use another fs on the pen drive?
ciao,
jdk

gosala 10-06-2011 01:29 PM

Hi jdk,

It was a problem with mount command.After adding -vfat argument in to my mount command problem solved.so thank you very much for your advices. I learnt a lot from you.

jdkaye 10-06-2011 11:55 PM

I'm glad to have helped. Please use the Thread Tools above your first post to mark this thread as "SOLVED".
thanks,
jdk


All times are GMT -5. The time now is 10:31 AM.