I also connected the hdd to an ubuntu machine and it is recognized correctly.

It's unlikely to be this, as all Linux systems use UTC for their system clock, no matter what the hwclock and localtime are set to. Disk internals like the superblock are all set in UTC - unless they are FAT or possibly NTFS (I don't know much about the internals of NTFS) - but in this case it is ext4 and should be UTC.FM81 wrote: 1. May be your linux-system use different system-times, for example UBUNTU is set to a local time-zone and RasPi uses UTC.
Sorry, thats not correct! My system shows all these values in "Localtime", not in UTC?rpdom wrote:[It's unlikely to be this, as all Linux systems use UTC for their system clock, no matter what the hwclock and localtime are set to. ...
It is correct, and of course your system shows them in local time. That's the point. They will show in local time for the timezone you have selected. TryFM81 wrote:Sorry, thats not correct! My system shows all these values in "Localtime", not in UTC?rpdom wrote:[It's unlikely to be this, as all Linux systems use UTC for their system clock, no matter what the hwclock and localtime are set to. ...
(May be UTC is recommended, but that was not the question.)
Code: Select all
TZ=UTC ls -l
Code: Select all
"$ sudo nano /sbin/fake-hwclock"
See line 29 "date -u '+%Y-%m-%d %H:%M:%S' > $FILE"
I remove "-u" interpreted as Universal or UTC
My new line 29 "date '+%Y-%m-%d %H:%M:%S' > $FILE"
Then I eXited nano "Ctrl X" and "y" to save, and enter for same filename.
Tested by running "$ sudo fake-hwclock"
and then "$ cat /etc/fake-hwclock.data"
HOW TO: install FireJail and sandbox any app | HOW TO: improve browser experience | HOW TO: pepperflash in FireFox 2017
RE: superblock last write time is in the future | Re: Wine on Raspberry Pi | HOWTO: detached top menu bar (ie Atari ST, Amiga, Mac)
Looking for Grafx2 console art package? | PCManFM right click menu and Open As Root