|
|
|
|
||||||
| linux.debian.user debian-user@lists.debian.org. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
When I copy files to vfat drives , filenames case is changed to lower case.
Is there any way to keep them as they are ie FileName as FileName instead of filename or FILENAME as FILENAME instead of filename ? -- L.V.Gandhi http://lvgandhi.tripod.com/ linux user No.205042 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 On 03/11/07 08:43, L.V.Gandhi wrote: > When I copy files to vfat drives , filenames case is changed to lower case. > Is there any way to keep them as they are ie FileName as FileName > instead of > filename or FILENAME as FILENAME instead of filename ? FAT is not case-sensitive. > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFF9Aw9S9HxQb37XmcRAmM2AKCbya8ARbiPMdp/s7Yz+Xf9LWSougCfeySw 97QSN28o57U5T4x5kZxBLsQ= =zopg -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
Ron Johnson <ron.l.johnson@cox.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 03/11/07 08:43, L.V.Gandhi wrote: > > When I copy files to vfat drives , filenames case is changed to > > lower case. Is there any way to keep them as they are ie FileName > > as FileName instead of > filename or FILENAME as FILENAME instead > > of filename ? > > FAT is not case-sensitive. This is not entirely true. See 'posix' and 'shortname=' mount options for vfat. Regards, Andrei -- If you can't explain it simply, you don't understand it well enough. (Albert Einstein) -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
L.V.Gandhi <lvgandhi@gmail.com> wrote:
> When I copy files to vfat drives , filenames case is changed to lower > case. Is there any way to keep them as they are ie FileName as > FileName instead of filename or FILENAME as FILENAME instead of > filename ? The 'shortname=' mount option seems related. See 'man mount' for more details. HTH, Andrei -- If you can't explain it simply, you don't understand it well enough. (Albert Einstein) -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
Le dimanche 11 mars 2007 14:43, L.V.Gandhi a écrit:
> When I copy files to vfat drives , filenames case is changed to lower case. > Is there any way to keep them as they are ie FileName as FileName instead > of filename or FILENAME as FILENAME instead of filename ? I think this works: tar -C /path/to/source -cf - . | ( cd /path/to/dest; tar -xf -; ) -- Cédric Lucantis |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
> > When I copy files to vfat drives , filenames case is changed to lower
> > case. Is there any way to keep them as they are ie FileName as FileName > > instead of filename or FILENAME as FILENAME instead of filename ? > > I think this works: > > tar -C /path/to/source -cf - . | ( cd /path/to/dest; tar -xf -; ) stupid me I never realized I could simply do this:tar -C /path/to/source -cf - . | tar -C /path/to/dest -xf - (you also have to add -h to the first tar if there are symlinks in your files) -- Cédric Lucantis |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
On 3/11/07, Cédric Lucantis <omer@no-log.org> wrote:
> > Le dimanche 11 mars 2007 14:43, L.V.Gandhi a écrit: > > When I copy files to vfat drives , filenames case is changed to lower > case. > > Is there any way to keep them as they are ie FileName as FileName > instead > > of filename or FILENAME as FILENAME instead of filename ? > > I think this works: > > tar -C /path/to/source -cf - . | ( cd /path/to/dest; tar -xf -; ) > > -- > Cédric Lucantis > > here also some files were copied as it is and some filenames were changed to small letters. -- L.V.Gandhi http://lvgandhi.tripod.com/ linux user No.205042 |
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
On 3/11/07, Cédric Lucantis <omer@no-log.org> wrote:
> > > > When I copy files to vfat drives , filenames case is changed to lower > > > case. Is there any way to keep them as they are ie FileName as > FileName > > > instead of filename or FILENAME as FILENAME instead of filename ? > > > > I think this works: > > > > tar -C /path/to/source -cf - . | ( cd /path/to/dest; tar -xf -; ) > > stupid me I never realized I could simply do this:> > tar -C /path/to/source -cf - . | tar -C /path/to/dest -xf - > > (you also have to add -h to the first tar if there are symlinks in your > files) > > -- > Cédric Lucantis > > here also some files were copied as it is and some filenames were changed to small letters. -- L.V.Gandhi http://lvgandhi.tripod.com/ linux user No.205042 |
|
|
|
#9 |
|
Messages: n/a
Hébergeur: |
Le dimanche 11 mars 2007 18:10, L.V.Gandhi a écrit:
> On 3/11/07, Cédric Lucantis <omer@no-log.org> wrote: > > Le dimanche 11 mars 2007 14:43, L.V.Gandhi a écrit: > > > When I copy files to vfat drives , filenames case is changed to lower > > > > case. > > > > > Is there any way to keep them as they are ie FileName as FileName > > > > instead > > > > > of filename or FILENAME as FILENAME instead of filename ? > > > > I think this works: > > > > tar -C /path/to/source -cf - . | ( cd /path/to/dest; tar -xf -; ) > > > > -- > > Cédric Lucantis > > here also some files were copied as it is and some filenames were changed > to small letters. yes, you're right, sorry ![]() I use to do this in the past, maybe something changed in tar or maybe my memory is false. So I had a try with the shortname=mixed mount option and both cp and tar worked fine. -- Cédric Lucantis |
|
|
|
#10 |
|
Messages: n/a
Hébergeur: |
On Sun, Mar 11, 2007 at 09:03:41AM -0500, Ron Johnson wrote:
> On 03/11/07 08:43, L.V.Gandhi wrote: > > When I copy files to vfat drives , filenames case is changed to lower case. > > Is there any way to keep them as they are ie FileName as FileName > > instead of > filename or FILENAME as FILENAME instead of filename ? > > FAT is not case-sensitive. > True, but it *is* case-preserving. Regards, -Roberto -- Roberto C. Sanchez http://people.connexer.com/~roberto http://www.connexer.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFF9F6e5SXWIKfIlGQRAuxpAJ4ny6cLgZaQ09YmGbrlD/lyghPDiACePTym W00ntVCYP5vR4LeodiAff4M= =/HOW -----END PGP SIGNATURE----- |
|
|
|
#11 |
|
Messages: n/a
Hébergeur: |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 On 03/11/07 14:55, Roberto C. Sanchez wrote: > On Sun, Mar 11, 2007 at 09:03:41AM -0500, Ron Johnson wrote: >> On 03/11/07 08:43, L.V.Gandhi wrote: >>> When I copy files to vfat drives , filenames case is changed to lower case. >>> Is there any way to keep them as they are ie FileName as FileName >>> instead of > filename or FILENAME as FILENAME instead of filename ? >> FAT is not case-sensitive. >> > True, but it *is* case-preserving. I though that was only when MSFT did the 8.3 file-naming games. > > Regards, > > -Roberto > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFF9ImLS9HxQb37XmcRAiwjAKCV6W+I9jDi3YjgTYhvP1 WKCQjRPwCeJjqo eGIF8tDIUQLSfzO6vuk5iks= =fbK+ -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#12 |
|
Messages: n/a
Hébergeur: |
On Sun, Mar 11, 2007 at 05:58:19PM -0500, Ron Johnson wrote:
> On 03/11/07 14:55, Roberto C. Sanchez wrote: > > On Sun, Mar 11, 2007 at 09:03:41AM -0500, Ron Johnson wrote: > >> On 03/11/07 08:43, L.V.Gandhi wrote: > >>> When I copy files to vfat drives , filenames case is changed to lowercase. > >>> Is there any way to keep them as they are ie FileName as FileName > >>> instead of > filename or FILENAME as FILENAME instead of filename ? > >> FAT is not case-sensitive. > >> > > True, but it *is* case-preserving. > > I though that was only when MSFT did the 8.3 file-naming games. > No. The converted 8.3 names are all caps. The long names are case-preserved as when they are created. The linux vfat driver has some option that disallows all-caps and so will sometimes convert filenames to all lower-case. Regards, -Roberto -- Roberto C. Sanchez http://people.connexer.com/~roberto http://www.connexer.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFF9J5V5SXWIKfIlGQRAgaoAJ97IagrG+3dDuHHTMesGZ lT+mYbpACfRel+ WMODH/mdK0ZCBi5GTFD1A3M= =aL6l -----END PGP SIGNATURE----- |
|
|
|
#13 |
|
Messages: n/a
Hébergeur: |
Am 2007-03-11 15:55:10, schrieb Roberto C. Sanchez:
> On Sun, Mar 11, 2007 at 09:03:41AM -0500, Ron Johnson wrote: > > On 03/11/07 08:43, L.V.Gandhi wrote: > > > When I copy files to vfat drives , filenames case is changed to lowercase. > > > Is there any way to keep them as they are ie FileName as FileName > > > instead of > filename or FILENAME as FILENAME instead of filename ? > > > > FAT is not case-sensitive. > > > True, but it *is* case-preserving. Long time ago I was realy surprised while editing a FAT with a HEX editor and found out that the FAT contain mixed case Filenames. Thanks, Greetings and nice Day Michelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ ##################### Debian GNU/Linux Consultant ##################### Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSN LinuxMichi 0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFGCTByC0FPBMSS+BIRAtK4AJ0XNdsNZ9KPj19wkSnwZf YjkWg6vQCg058c XU3KeI9898HLbtAKhYQjTPY= =MrB8 -----END PGP SIGNATURE----- |
|
![]() |
| Outils de la discussion | |
|
|