Backup Files order different from original

Page 1 of 2 12 LastLast

  1. Posts : 7
    Windows 7 Home 64bit
       #1

    Backup Files order different from original


    My original files order on C:\Romans is as follows.
    I copied the files to USB flash drive G by drag and drop.
    The backup files order on drive G is different from C drive.
    e.g. Romans14.mp3 becomes the first file listed on drive G.
    Why?
    How to fix this problem?

    Microsoft Windows [Version 6.1.7600]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.

    Code:
    c:\Romans>dir
     Volume in drive C is Acer
     Volume Serial Number is 5CBC-C608
    
     Directory of c:\Romans
    
    07/08/2011  06:17 PM    <DIR>          .
    07/08/2011  06:17 PM    <DIR>          ..
    18/05/2011  09:29 PM         1,075,034 45  Romans01.mp3
    18/05/2011  09:29 PM           915,791 45  Romans02.mp3
    18/05/2011  09:29 PM           923,524 45  Romans03.mp3
    18/05/2011  09:29 PM           865,950 45  Romans04.mp3
    18/05/2011  09:29 PM           778,283 45  Romans05.mp3
    18/05/2011  09:29 PM           821,019 45  Romans06.mp3
    18/05/2011  09:29 PM           877,235 45  Romans07.mp3
    18/05/2011  09:29 PM         1,397,489 45  Romans08.mp3
    18/05/2011  09:29 PM         1,075,766 45  Romans09.mp3
    18/05/2011  09:29 PM           684,871 45  Romans10.mp3
    18/05/2011  09:29 PM         1,237,204 45  Romans11.mp3
    18/05/2011  09:29 PM           676,303 45  Romans12.mp3
    18/05/2011  09:29 PM           559,065 45  Romans13.mp3
    18/05/2011  09:29 PM           800,228 45  Romans14.mp3
    18/05/2011  09:29 PM         1,044,838 45  Romans15.mp3
    18/05/2011  09:29 PM           795,004 45  Romans16.mp3
                  16 File(s)     14,527,604 bytes
                   2 Dir(s)  235,175,964,672 bytes free
    Code:
    c:\Romans>dir G:
     Volume in drive G has no label.
     Volume Serial Number is 3C31-7C4F
    
     Directory of G:\
    
    18/05/2011  09:29 PM           800,228 45  Romans14.mp3
    18/05/2011  09:29 PM         1,044,838 45  Romans15.mp3
    18/05/2011  09:29 PM           795,004 45  Romans16.mp3
    18/05/2011  09:29 PM         1,075,034 45  Romans01.mp3
    18/05/2011  09:29 PM           915,791 45  Romans02.mp3
    18/05/2011  09:29 PM           923,524 45  Romans03.mp3
    18/05/2011  09:29 PM           865,950 45  Romans04.mp3
    18/05/2011  09:29 PM           778,283 45  Romans05.mp3
    18/05/2011  09:29 PM           821,019 45  Romans06.mp3
    18/05/2011  09:29 PM           877,235 45  Romans07.mp3
    18/05/2011  09:29 PM         1,397,489 45  Romans08.mp3
    18/05/2011  09:29 PM         1,075,766 45  Romans09.mp3
    18/05/2011  09:29 PM           684,871 45  Romans10.mp3
    18/05/2011  09:29 PM         1,237,204 45  Romans11.mp3
    18/05/2011  09:29 PM           676,303 45  Romans12.mp3
    18/05/2011  09:29 PM           559,065 45  Romans13.mp3
                  16 File(s)     14,527,604 bytes
                   0 Dir(s)   3,986,284,544 bytes free
      My Computer


  2. Posts : 2,752
    Windows 7 Pro x64 (1), Win7 Pro X64 (2)
       #2

    Just out of curiosity, what is the file format on the USB flash drive?

    FAT32? NTFS?

    Did you FORMAT the drive before using it?

    Do you get the same result if you do the directory display in two steps:
    CD G
    DIR
      My Computer


  3. Posts : 7
    Windows 7 Home 64bit
    Thread Starter
       #3

    dsperber said:
    Just out of curiosity, what is the file format on the USB flash drive?

    FAT32? NTFS?

    Did you FORMAT the drive before using it?

    Do you get the same result if you do the directory display in two steps:
    CD G
    DIR
    I did not format the drive before using it.
    After formatting the USB drive to NTFS, the backup files appear in the same order as the original files in drive C which is formatted to NTFS when running the DIR command.
    However, the NTFS file format on the USB drive is not recognized by my standalone CD/mp3 player.
    Therefore I like to format the USB drive to FAT32 so that my standalone CD/mp3 player can use it.
    How to make the files copied from NTFS drive to the FAT32 formatted USB drive appear in the same order?
    Do I name the files in a specific way?
      My Computer


  4. Posts : 2,752
    Windows 7 Pro x64 (1), Win7 Pro X64 (2)
       #4

    albertkao said:
    I did not format the drive before using it.
    Not unusual, but it also might clearly be responsible for the symptom.

    It's too late now that you've formatted it to NTFS, but do you know what file format it was in originally? If you had looked at the drive using DISKMGMT before you formatted it, you would have seen there what Win7 thought it was. Oh well.


    After formatting the USB drive to NTFS, the backup files appear in the same order as the original files in drive C which is formatted to NTFS when running the DIR command.
    Not surprising.


    However, the NTFS file format on the USB drive is not recognized by my standalone CD/mp3 player.
    Also not surprising.

    Most PMP's that support removable microSD cards (e.g. Cowon J3, which I have) REQUIRE that the media be formatted with FAT32. They do not support NTFS.

    Only if you intended to use your USB drive strictly with Windows would NTFS formatting be an acceptable approach. If you also need to use it with music players, I believe you're going to have to go with FAT32.


    Therefore I like to format the USB drive to FAT32 so that my standalone CD/mp3 player can use it.
    Agreed.


    How to make the files copied from NTFS drive to the FAT32 formatted USB drive appear in the same order?

    Do I name the files in a specific way?
    I don't think there's any difference in the ordering with FAT32 vs. NTFS. I suspect that whatever your drive was formatted with originally may have been the issue. I have a feeling that if you re-format it to FAT32 that it will mirror your NTFS source file name sequence.


    Note that there IS one subtle difference between NTFS and FAT32, insofar as the dates of the folder/files are concerned. NTFS and Win7 recognizes daylight savings time, whereas FAT32 and Win7 does not.

    So depending on when during the calendar year you copied a file from NTFS source to FAT32 target, and then when during the calendar year you compare the source/target files, your date/times may match exactly or they may not. For example if you copied the file during daylight savings time and then you compare it while still in daylight savings time, they'll look the same. But if you copied it during standard time and then compare it while in daylight savings time, they will differ.

    And the time difference is not just 1-hour as you might expect. It's 1-hour and 2-seconds!!! Don't ask me to explain it. That's just the way it works.

    I know this because the portable music collection for my Cowon J3 stored on internal/external storage of the J3 is living on a FAT32 environment. My PC's music collection is on an NTFS environment. When I use Beyond Compare to sync updates to my PC music collection onto the J3, I will see "differences" of date/time where the time is off by 1-hour and 2-seconds, for exactly the situation I describe above.

    But as far as the alphabetical name sequence of FAT32 vs. NTFS, they are identical from the perspective of Windows.
      My Computer


  5. Posts : 7
    Windows 7 Home 64bit
    Thread Starter
       #5

    dsperber said:
    albertkao said:
    I did not format the drive before using it.
    Not unusual, but it also might clearly be responsible for the symptom.

    It's too late now that you've formatted it to NTFS, but do you know what file format it was in originally? If you had looked at the drive using DISKMGMT before you formatted it, you would have seen there what Win7 thought it was. Oh well.


    After formatting the USB drive to NTFS, the backup files appear in the same order as the original files in drive C which is formatted to NTFS when running the DIR command.
    Not surprising.


    Also not surprising.

    Most PMP's that support removable microSD cards (e.g. Cowon J3, which I have) REQUIRE that the media be formatted with FAT32. They do not support NTFS.

    Only if you intended to use your USB drive strictly with Windows would NTFS formatting be an acceptable approach. If you also need to use it with music players, I believe you're going to have to go with FAT32.


    Therefore I like to format the USB drive to FAT32 so that my standalone CD/mp3 player can use it.
    Agreed.


    How to make the files copied from NTFS drive to the FAT32 formatted USB drive appear in the same order?

    Do I name the files in a specific way?
    I don't think there's any difference in the ordering with FAT32 vs. NTFS. I suspect that whatever your drive was formatted with originally may have been the issue. I have a feeling that if you re-format it to FAT32 that it will mirror your NTFS source file name sequence.


    Note that there IS one subtle difference between NTFS and FAT32, insofar as the dates of the folder/files are concerned. NTFS and Win7 recognizes daylight savings time, whereas FAT32 and Win7 does not.

    So depending on when during the calendar year you copied a file from NTFS source to FAT32 target, and then when during the calendar year you compare the source/target files, your date/times may match exactly or they may not. For example if you copied the file during daylight savings time and then you compare it while still in daylight savings time, they'll look the same. But if you copied it during standard time and then compare it while in daylight savings time, they will differ.

    And the time difference is not just 1-hour as you might expect. It's 1-hour and 2-seconds!!! Don't ask me to explain it. That's just the way it works.

    I know this because the portable music collection for my Cowon J3 stored on internal/external storage of the J3 is living on a FAT32 environment. My PC's music collection is on an NTFS environment. When I use Beyond Compare to sync updates to my PC music collection onto the J3, I will see "differences" of date/time where the time is off by 1-hour and 2-seconds, for exactly the situation I describe above.

    But as far as the alphabetical name sequence of FAT32 vs. NTFS, they are identical from the perspective of Windows.
    What is the procedure to ensure that the display order of the files on the NTFS & FAT32 environment are the same?
      My Computer


  6. Posts : 24,479
    Windows 7 Ultimate X64 SP1
       #6

    Just a shot, with the USB drive attached open it in explorer and right click in an empty spot, click Sort By and select Name. Try different ones to see if that will sort the way you wish.
    If you format the drive again, UNcheck Quick format. Some AData drive comes with some built-in software but a full format should get rid of it.


    Alternatively instead of this naming scheme:
    18/05/2011 09:29 PM 1,075,034 45 Romans01.mp3
    18/05/2011 09:29 PM 915,791 45 Romans02.mp3
    18/05/2011 09:29 PM 923,524 45 Romans03.mp3
    18/05/2011 09:29 PM 865,950 45 Romans04.mp3
    18/05/2011 09:29 PM 778,283 45 Romans05.mp3

    Try this way:
    18/05/2011 09:29 PM 1,075,034 45 Romans1.mp3
    18/05/2011 09:29 PM 915,791 45 Romans2.mp3
    18/05/2011 09:29 PM 923,524 45 Romans3.mp3
    18/05/2011 09:29 PM 865,950 45 Romans4.mp3
    18/05/2011 09:29 PM 778,283 45 Romans5.mp3

    In other words, drop the leading zeroes.
      My Computer


  7. Posts : 2,752
    Windows 7 Pro x64 (1), Win7 Pro X64 (2)
       #7

    albertkao said:
    What is the procedure to ensure that the display order of the files on the NTFS & FAT32 environment are the same?
    Well again, I don't believe there should be ANY difference in the display order of the files on NTFS vs. FAT32, given the same directory being presented by Windows Explorer or similar products. There's no Windows setting or configuration option to control this.

    However as Britton30 pointed out, sometimes the "ASCII collating sequence" can seem unusual and unexpected (by humans) depending on the program doing the "sorting". This usually involves the presence or absence of extra "zeros" somewhere in the name. We tend to want to see names like this as "numeric" with the expected sequence accordingly, but often this is not the case depending on what program/tool you are browsing/saving with.

    Anyway, to avoid speculation... do you have an actual example of an actual contradiction of sequence between NTFS and FAT32? Can you please post a screenshot of this, so that we can see exactly what your particular "failing" situation looks like, and the file names involved?
      My Computer


  8. Posts : 7
    Windows 7 Home 64bit
    Thread Starter
       #8

    dsperber said:
    albertkao said:
    What is the procedure to ensure that the display order of the files on the NTFS & FAT32 environment are the same?
    Well again, I don't believe there should be ANY difference in the display order of the files on NTFS vs. FAT32, given the same directory being presented by Windows Explorer or similar products. There's no Windows setting or configuration option to control this.

    However as Britton30 pointed out, sometimes the "ASCII collating sequence" can seem unusual and unexpected (by humans) depending on the program doing the "sorting". This usually involves the presence or absence of extra "zeros" somewhere in the name. We tend to want to see names like this as "numeric" with the expected sequence accordingly, but often this is not the case depending on what program/tool you are browsing/saving with.

    Anyway, to avoid speculation... do you have an actual example of an actual contradiction of sequence between NTFS and FAT32? Can you please post a screenshot of this, so that we can see exactly what your particular "failing" situation looks like, and the file names involved?
    I format the USB drive to FAT32.
    I remove the prefix string "45 " from all the filenames.
    Attached are two screenshots of the same USB drive.
    The order displayed in DOS console fails - Romans08.mp3 appears first.
    The order displayed in Explorer is ok.
    Backup Files order different from original Attached Files
      My Computer


  9. Posts : 2,752
    Windows 7 Pro x64 (1), Win7 Pro X64 (2)
       #9

    albertkao said:
    I format the USB drive to FAT32.
    I remove the prefix string "45 " from all the filenames.
    Attached are two screenshots of the same USB drive.
    The order displayed in DOS console fails - Romans08.mp3 appears first.
    The order displayed in Explorer is ok.
    Ok. I now have the answers.

    (1) A FAT32 directory itself is, like FAT16, not alphabetically arranged or indexed in any way. The entries are simply "chained" to each other in physical sequence based on creation date/time, i.e. the order in which the files pointed to by those directory entries were created.

    So if you start at the front of the directory chain and browse sequentially, you will be actually reading the entries in date/time sequence, not in alphabetical sequence.

    (2) In contract, an NTFS directory is highly indexed so as to provide superior performance. It is actually delivered in alphabetical sequence if you browse it sequentially.

    (3) DOS directory displays are purely physical in that they browse the directory chain sequentially. So when presenting the directory for a FAT32 disk you are actually seeing the entries presented in date/time order, because that's how the physical entry chain was created as new files were added... by chaining a new directory entry at the end of the current chain.

    So a DOS directory display of a FAT32 disk delivers entries in date/time sequence, because that's how FAT32 delivers "GETNEXT directory entry" because that's how the chain is built. In contrast, a DOS directory display of an NTFS disk delivers "GETNEXT directory entry" in alphabetical sequence, because that's how the NTFS indexed directory structure is returned.

    (4) If you want a DOS directory from FAT16 or FAT32 to be presented in alphabetical sequence, you must add the "/on" operand which specifies "order by NAME". If you leave off the "/on" operand you'll just see the directory in physical chain sequence, which means by date/time.

    (5) Windows Explorer ALWAYS PRESENTS THE CONTENTS OF A FOLDER IN ALPHABETICAL SEQUENCE, no matter whether the folder resides on FAT16, FAT32 or NTFS. So even though the underlying true physical directory entry chain on FAT32 is really arranged by date/time, Windows Explorer sorts it alphabetically for presentation.

    (6) Although your screenshot shows all of your files created on the same date and time, I'm certain that you somehow created that ROMANS08.mp3 file first, so that its directory entry is physically first.


    I don't have any non-NTFS hard disks, but I do have FAT32 on my portable music player storage. (drive letter Y). And I happen to have a folder on the portable music player that contains files which exhibit the date/time vs. alphabetical characteristic.

    I also happen to have a duplicate of the music collection folder on my PC's hard drive (drive letter D), which is NTFS and which has the identical date/time vs. alphabetical characteristic.

    So, I now present a demonstration of the above discussion, using my own FAT32 vs. NTFS identical folders, to show the exact same results you're getting.

    There is nothing wrong with any of the results. It is simply that if you use DOS to do a directory display then you will get date/time sequence from FAT32 unless you specify "/on" as well to request alphabetical sequence. In contrast, a DOS directory display from NTFS will always be alphabetical since that's the physical nature and structure of the indexed NTFS directory entry chain.

    And in contrast, an Explorer display is always alphabetical, no matter FAT32 or NTFS.

    (1) Explorer view of NTFS folder -> alphabetical



    (2) Explorer view of FAT32 folder -> alphabetical



    (3) DOS view of (a) FAT32 with "DIR" -> date/time sequence, (b) FAT32 with "DIR /on" -> alphabetical sequence, and (c) NTFS with "DIR" -> alphabetical sequence

    Last edited by dsperber; 18 Aug 2011 at 23:58.
      My Computer


  10. Posts : 2,752
    Windows 7 Pro x64 (1), Win7 Pro X64 (2)
       #10

    albertkao said:
    My original files order on C:\Romans is as follows.
    I copied the files to USB flash drive G by drag and drop.
    The backup files order on drive G is different from C drive.
    e.g. Romans14.mp3 becomes the first file listed on drive G.
    I'm still thinking about this issue...

    After my post above that at least explains the difference between FAT16/FAT32 directories and NTFS directories, and why this results in different directory display sequences whether using DOS ("DIR" or "DIR /on") vs. Windows Explorer, I still had a question about the source folder going into the copy process.

    I thought you'd simply used a DOS "COPY", and then were looking at the results with a DOS "DIR", and I assumed that the source directory was equally out-of-order alphabetically. But now looking again at your original two directories I see that it's not. The source directory on C is in sequence alphabetically.

    Also, your C-drive is NTFS, so it would have to be alphabetical.

    Now I see you say that you used drag/drop to do the copy from C to G (your FAT32 USB drive). Did you select all files together from C, and then drag/drop/copy them onto G together? Or did you do it in two steps... first 14-16, and then 1-13 in a second drag/drop/copy?

    I still am 100% positive that a DOS "DIR" command is purely in physical directory order, which means date/time order of when the files were actually created. So in order for 14-16 to appear first in your DIR of the target G version of the directory, that would imply that 14-16 had been created first (in time), and then 1-13 had been created subsequently.

    So... do you recall the order in which or how you did the original copy? Was it all 16 at once in one drag/drop/copy, and somehow Windows scrambled which files got created first on G? Or did you actually do 14-16 first, and then 1-13 second?

    Have you tried just doing a DOS COPY, to see (or confirm) that the output directory on G will look EXACTLY like the input directory on C? I would think that has to happen, since the DOS COPY is a loop of individual copies, retrieving an input file from the input directory via GETNEXT and copying it, and then retrieving the next input file from the input directory via GETNEXT and copying it, etc. You'd think that this would produce an exact duplicate in sequence of the files on the ouput, matching the input files... per the DOS DIR sequence.


    Again, I know that the DOS DIR command works the way it does. That's why they added an "/on" opeand, to allow you to request an alphabetcial display instead of the date/time sequence which is what DIR just does on FAT16/FAT32.

    So I'm still unhappy, until we can explain how/why files 14-16 got created first on G, and 1-13 second.

    I can certainly try this myself (which I probably will). I will use both Windows Explorer and Free Commander (an Explorer equivalent) for the drag/drop of all 16 files at once, to see how it comes out. And I will also try a DOS COPY.
      My Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 02:31.
Find Us