LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-06-2011, 10:14 AM   #1
gosala
LQ Newbie
 
Registered: Mar 2011
Posts: 14

Rep: Reputation: 0
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?
 
Old 10-06-2011, 10:47 AM   #2
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,417

Rep: Reputation: Disabled
What file system is your pen drive using?
jdk
 
Old 10-06-2011, 10:57 AM   #3
gosala
LQ Newbie
 
Registered: Mar 2011
Posts: 14

Original Poster
Rep: Reputation: 0
Hi jdk,

It is vfat.
 
Old 10-06-2011, 11:05 AM   #4
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,417

Rep: Reputation: Disabled
Maybe that's causing the file mangling that you observe. Is there any reason to use vfat rather than another file system?
jdk
 
Old 10-06-2011, 12:33 PM   #5
gosala
LQ Newbie
 
Registered: Mar 2011
Posts: 14

Original Poster
Rep: Reputation: 0
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?
 
Old 10-06-2011, 12:55 PM   #6
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,417

Rep: Reputation: Disabled
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

Last edited by jdkaye; 10-06-2011 at 12:56 PM.
 
Old 10-06-2011, 01:29 PM   #7
gosala
LQ Newbie
 
Registered: Mar 2011
Posts: 14

Original Poster
Rep: Reputation: 0
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.
 
Old 10-06-2011, 11:55 PM   #8
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,417

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


Reply

Tags
embedded, filename, length, udev, usb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Embedded linux filename length gosala Linux - Software 1 10-06-2011 05:47 AM
Ubuntu 9 filename length orlovs Linux - Newbie 8 07-30-2009 05:14 AM
Boot iso on pen drive by grub installed on pen drive jena Linux - Hardware 2 11-01-2008 09:09 AM
USB Pen Drive / Flash Drive Unmounted but the power is there teluguswan Linux - Hardware 11 10-04-2008 03:36 PM
USB flash drive (Pen drive) mounts read only prabhatsoni Linux - Hardware 24 07-02-2007 01:28 PM


All times are GMT -5. The time now is 11:29 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration