Sign in to follow this  
Followers 0
mungewell

long/short names on VFAT partition

3 posts in this topic

Hi all,

Does anyone know how to find out the short name (something like PROGRA~1) on a VFAT partition mounted under Linux.

A mounted VFAT partition only appears to list long name. I can unmount and mount as MSDOS, which only gives shortname, but would prefer not to have to umount (and compare files size, etc)...

Any suggestions welcome,

Mungewell.

0

Share this post


Link to post
Share on other sites

hum... why would you need short filenames? otherwise, short filenames only seem to be the first 6 characters of the long filename, followed by ~ and the number of the occurence of these first 6 characters in this directory, in order to differenciate it from the others.

0

Share this post


Link to post
Share on other sites

hum... why would you need short filenames? otherwise, short filenames only seem to be the first 6 characters of the long filename, followed by ~ and the number of the occurence of these first 6 characters in this directory, in order to differenciate it from the others.

Unfortunately it's never that simple :-(.

If I were on M$ I could do 'dir /X' to show both long and short names.

---

c:\temp>dir /X

dir /X

Volume in drive C has no label.

Volume Serial Number is 588C-AC85

Directory of c:\temp

01/08/2007 05:33 PM <DIR> .

01/08/2007 05:33 PM <DIR> ..

01/08/2007 05:32 PM 0 REALLY~1.TXT really_long_name1.txt

01/08/2007 05:33 PM 0 REEB6B~1.TXT really_long_name10.txt

01/08/2007 05:33 PM 0 REEB6F~1.TXT really_long_name11.txt

01/08/2007 05:32 PM 0 REALLY~2.TXT really_long_name2.txt

01/08/2007 05:32 PM 0 REALLY~3.TXT really_long_name3.txt

01/08/2007 05:32 PM 0 REALLY~4.TXT really_long_name4.txt

01/08/2007 05:32 PM 0 REB465~1.TXT really_long_name5.txt

01/08/2007 05:32 PM 0 REB865~1.TXT really_long_name6.txt

01/08/2007 05:32 PM 0 REBC65~1.TXT really_long_name7.txt

01/08/2007 05:32 PM 0 REB075~1.TXT really_long_name8.txt

01/08/2007 05:33 PM 0 REB475~1.TXT really_long_name9.txt

---

This information must exist somewhere on the partition, as I believe VFAT just uses a lookup table somewhere.... the question is whether it's easily accessible in Linux.

I _need_ short names as that's what my MP3 player uses in it's internal playlist...

Cheers,

Mungewell.

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0