This is one I haven't seen before.
Here is a partial listing produced by ls -l
-rwxr-xr-x 1 greenman greenman 829322 Aug 11 15:15 moonbeam-tree1.jpg
-rwxr-xr-x 1 greenman greenman 838243 Jun 13 2009 MudgeeBathroom.jpg
Notice that the difference is in the column that follows the date -- in some cases, it is the time, in others, it is the year. I am not sure why this is happening; what drew my attention to it is that I have a digital picture frame that will read the ones with the year in the file name, but will not read the ones with the time.
Any idea why this problem, and more importantly, any idea how to fix the files so they display the year and not the time? touch is a disaster -- it converts the files the years to times, so now they are not readable.
This problem is not just on the SD memory card to which the files are copied, it is also on the system hard disk, so it isn't a ext4-FAT problem.
Edit: I discovered that I can use touch in this way, and the file names come out right:
touch -t 201301011200 Zorro.jpg
-rwxr-xr-x 1 greenman greenman 846509 Jan 1 2013 Zorro.jpg
So this is a workaround (losing the access time information) but does not resolve the problem, if it really is one.
Here is a partial listing produced by ls -l
-rwxr-xr-x 1 greenman greenman 829322 Aug 11 15:15 moonbeam-tree1.jpg
-rwxr-xr-x 1 greenman greenman 838243 Jun 13 2009 MudgeeBathroom.jpg
Notice that the difference is in the column that follows the date -- in some cases, it is the time, in others, it is the year. I am not sure why this is happening; what drew my attention to it is that I have a digital picture frame that will read the ones with the year in the file name, but will not read the ones with the time.
Any idea why this problem, and more importantly, any idea how to fix the files so they display the year and not the time? touch is a disaster -- it converts the files the years to times, so now they are not readable.
This problem is not just on the SD memory card to which the files are copied, it is also on the system hard disk, so it isn't a ext4-FAT problem.
Edit: I discovered that I can use touch in this way, and the file names come out right:
touch -t 201301011200 Zorro.jpg
-rwxr-xr-x 1 greenman greenman 846509 Jan 1 2013 Zorro.jpg
So this is a workaround (losing the access time information) but does not resolve the problem, if it really is one.
Comment