PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > filename case
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

filename case

Réponse
 
LinkBack Outils de la discussion
Vieux 11/03/2007, 14h50   #1
L.V.Gandhi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut filename case

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

  Réponse avec citation
Vieux 11/03/2007, 15h10   #2
Ron Johnson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: filename case

-----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
  Réponse avec citation
Vieux 11/03/2007, 16h10   #3
Andrei Popescu
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: filename case

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
  Réponse avec citation
Vieux 11/03/2007, 16h10   #4
Andrei Popescu
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: filename case

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
  Réponse avec citation
Vieux 11/03/2007, 17h50   #5
Cédric Lucantis
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: filename case

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
  Réponse avec citation
Vieux 11/03/2007, 18h10   #6
Cédric Lucantis
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: filename case

> > 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
  Réponse avec citation
Vieux 11/03/2007, 18h20   #7
L.V.Gandhi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: filename case

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
  Réponse avec citation
Vieux 11/03/2007, 18h40   #8
L.V.Gandhi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: filename case

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
  Réponse avec citation
Vieux 11/03/2007, 18h40   #9
Cédric Lucantis
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: filename case

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
  Réponse avec citation
Vieux 11/03/2007, 21h00   #10
Roberto C. Sanchez
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: filename case

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-----

  Réponse avec citation
Vieux 12/03/2007, 00h00   #11
Ron Johnson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: filename case

-----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
  Réponse avec citation
Vieux 12/03/2007, 01h30   #12
Roberto C. Sanchez
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: filename case

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-----

  Réponse avec citation
Vieux 27/03/2007, 16h10   #13
Michelle Konzack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: filename case

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-----

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 18h23.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,18895 seconds with 21 queries