xorat / grubutils

Automatically exported from code.google.com/p/grubutils
0 stars 0 forks source link

grubutils fat ren command does not support lowercase filenames #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. fat ren /fred /fred1
2.
3.

What is the expected output? What do you see instead?
this renames fred to FRED1
it should rename it to fred1

What version of the product are you using? On what operating system?
latest grubutils

Please provide any additional information below.
Could fat ren take note of the case of the filename in the 2nd argument?
I am trying to rename a file so that when linux boots it will find it, but 
linux is case sensitive and the filename needs to be in lowercase.
Perhaps a switch like /fat --case /name1 /name2  so that whatever case is used 
on the command line for name2 is preserved (name1 should not be case sensitive).

e.g.
fat ren --case /name2 /Name2
fat ren --case /NAME2 /Name2
fat ren --case /NaMe2 /Name2

in all cases renames /name2 to /Name2

but 
fat ren /name2 /Name2
fat ren /NAME2 /Name2
fat ren /NaMe2 /Name2

still renames /name2 to /NAME2

thanks
S

Original issue reported on code.google.com by Steve6375 on 5 Jun 2012 at 9:13

GoogleCodeExporter commented 9 years ago
The FAT command does not support long name.it only support FAT12 8.3 names only.

Original comment by chenall.cn on 6 Jun 2012 at 3:19

GoogleCodeExporter commented 9 years ago
I am asking if we could have a switch like --case which would allow us to 
rename and create files with lower and upper case names. This would be most 
useful as we could create and change files for linux OS before booting linux. 
Please could we have this as an enhancement? It should not be too difficult to 
code?

Original comment by Steve6375 on 6 Jun 2012 at 6:51

GoogleCodeExporter commented 9 years ago
the 8.3 names is all uppercase, unless support for long file names.
You can try to change ffconf.h
#define _USE_LFN    0       /* 0 to 3 */
and then build again.

Original comment by chenall.cn on 7 Jun 2012 at 1:37

GoogleCodeExporter commented 9 years ago

Original comment by chenall.cn on 4 Jul 2013 at 2:16