How can I determine when Ubuntu was installed in my computer? There was a different question posted here.
As I found here sudo grep ubiquity /var/log/installer/syslog | less
should work for Ubuntu.
last
works for Fedora.
-
2
sudo dumpe2fs $(mount | grep 'on \/ ' | awk '{print $1}') | grep 'Filesystem created:'
Use this command for check when was the OS installed.
Use last
. It helped me find the installation date on Fedora 14. The last line stating wtmp begins Tue Nov 9 22:35:12 2010
is the installation date.
-
wtmp begins Wed Feb 2 16:24:52 2011. This is what I get with last command in Ubuntu. Approximately my OS had been installed on November 2010. – Bakhtiyor Feb 9 '11 at 15:33
-
1
-
3I wouldn't rely on that. For example, FreeBSD rotates /var/log/wtmp by default, so when I run last on one of my FreeBSD boxes I get "wtmp begins Thu Feb 3 09:50:42 EST 2011". My Slackware box does the same thing, I installed the OS on it years ago but last reports that wtmp began last week. I don't have an Ubuntu box handy to check. – mazianni Feb 9 '11 at 15:43
-
@Dharmit. sudo grep ubiquity /var/log/installer/syslog | less worked for me. Could you please post it as an answer, so that I could select your answer as an accepted one. – Bakhtiyor Feb 9 '11 at 15:58
-
1
/var/log/installer
,/boot
, anddumpe2fs
all look OK to me. – Mikel Feb 9 '11 at 10:41/boot
. Whendumpe2fs
and/var/log/installer
point to the same answer I won't keep any doubt. – phunehehe Feb 9 '11 at 11:49