renaming a troublesome directory

renaming a troublesome directory

Post by Bob » Fri, 07 Feb 2003 13:49:54



When vfat is mounted, it is case insensitive for full names and case
sensitive with wild cards.
$ ll -d abba
drwxrwxr-x    4 root     users        8192 Feb  5 23:01 abba

$ ll -d ABBA
drwxrwxr-x    4 root     users        8192 Feb  5 23:01 ABBA

$ ll -d Aerosmith
drwxrwxr-x    3 root     users        8192 Feb  5 14:05 Aerosmith

$ ll -d AEROSMITH
drwxrwxr-x    3 root     users        8192 Feb  5 14:05 AEROSMITH

$ ll -d Ae*
ls: Ae*: No such file or directory

$ ll -d AE*
drwxrwxr-x    3 root     users        8192 Feb  5 14:05 AEROSMITH

$ ll -d ab*
drwxrwxr-x    4 root     users        8192 Feb  5 23:01 abba

$ ll -d AB*
ls: AB*: No such file or directory

I have one problem directory (abba) that I need to make uppercase.
It is always lower case no matter what I have tried.

The line from my /etc/fstab
/dev/hdb1       /mnt/win-data   vfat    noatime,user,gid=users,umask=002
0 0

Maybe it happens to be the only directory that wasn't created mixed case
so it only has the MSDOS name.

$ mv abba ABBA2

# ll -d ABBA2
drwxrwxr-x    4 root     users        8192 Feb  5 23:01 ABBA2

$ mv ABBA2 ABBA

# ll -d ABBA
drwxrwxr-x    4 root     users        8192 Feb  5 23:01 ABBA
# exit

$ ll -d abba
drwxrwxr-x    4 root     users        8192 Feb  5 23:01 abba

ll -d AB*
ls: AB*: No such file or directory

$ ll -d ab*
drwxrwxr-x    4 root     users        8192 Feb  5 23:01 abba

$ ll -d Aerosmith
drwxrwxr-x    3 root     users        8192 Feb  5 14:05 Aerosmith

$ ll -d AEROSMITH
drwxrwxr-x    3 root     users        8192 Feb  5 14:05 AEROSMITH

$ ll -d Ae*
ls: Ae*: No such file or directory

$ ll -d AE*
drwxrwxr-x    3 root     users        8192 Feb  5 14:05 AEROSMITH

 
 
 

renaming a troublesome directory

Post by Bob » Fri, 07 Feb 2003 13:58:32


On 02/05/03 23:49 Bob spoke thusly

Quote:

> When vfat is mounted, it is case insensitive for full names and case
> sensitive with wild cards.
> $ ll -d abba
> drwxrwxr-x    4 root     users        8192 Feb  5 23:01 abba

> $ ll -d ABBA
> drwxrwxr-x    4 root     users        8192 Feb  5 23:01 ABBA

> $ ll -d Aerosmith
> drwxrwxr-x    3 root     users        8192 Feb  5 14:05 Aerosmith

> $ ll -d AEROSMITH
> drwxrwxr-x    3 root     users        8192 Feb  5 14:05 AEROSMITH

> $ ll -d Ae*
> ls: Ae*: No such file or directory

> $ ll -d AE*
> drwxrwxr-x    3 root     users        8192 Feb  5 14:05 AEROSMITH

> $ ll -d ab*
> drwxrwxr-x    4 root     users        8192 Feb  5 23:01 abba

> $ ll -d AB*
> ls: AB*: No such file or directory

> I have one problem directory (abba) that I need to make uppercase.
> It is always lower case no matter what I have tried.

> The line from my /etc/fstab
> /dev/hdb1       /mnt/win-data   vfat    noatime,user,gid=users,umask=002
> 0 0

> Maybe it happens to be the only directory that wasn't created mixed case
> so it only has the MSDOS name.

> $ mv abba ABBA2

> # ll -d ABBA2
> drwxrwxr-x    4 root     users        8192 Feb  5 23:01 ABBA2

> $ mv ABBA2 ABBA

> # ll -d ABBA
> drwxrwxr-x    4 root     users        8192 Feb  5 23:01 ABBA
> # exit

> $ ll -d abba
> drwxrwxr-x    4 root     users        8192 Feb  5 23:01 abba

> ll -d AB*
> ls: AB*: No such file or directory

> $ ll -d ab*
> drwxrwxr-x    4 root     users        8192 Feb  5 23:01 abba

> $ ll -d Aerosmith
> drwxrwxr-x    3 root     users        8192 Feb  5 14:05 Aerosmith

> $ ll -d AEROSMITH
> drwxrwxr-x    3 root     users        8192 Feb  5 14:05 AEROSMITH

> $ ll -d Ae*
> ls: Ae*: No such file or directory

> $ ll -d AE*
> drwxrwxr-x    3 root     users        8192 Feb  5 14:05 AEROSMITH

I think my problem is because "ABBA" fits in an MSDOS filename if it was
longer or mixed case then I don't think I'd have a problem.