I have an unusual situation where I had a hard drive with some bad sectors and moved the data to a new drive. I did the move with cp -Rfp and >& logfile. I moved the data (~285GB) with about 20 copy commands. The >& should have given me information about any files where there was a problem creating a copy. There were some, and I went and got a good copy from backup files for these.
The problem is that the old and new drives are not using the same amount of storage now. The original drive is using 305,921,662,976 bytes and the new drive is using 304,556,769,280 bytes. That is more or less a full gigabyte difference. Neither drive has compression enabled.
I need to figure out if there are actually files missing and which ones. This is a windows XP box with cygwin, so I have more or less the full kit of linux tools, plus python, perl, ruby, etc, so I don't really care which technology is used. Is there an ls command I can run that will tell me how many files are on the entire partition? That would help because if the number of files is different, I definitely know I am missing something. The number of files is in the millions, so this is not something I can really try with windows explorer.
Thanks for the advice,
Edited 5 Years Ago by LMHmedchem: n/a