Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How old my Gentoo system is?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
hujuice
Guru
Guru


Joined: 16 Oct 2007
Posts: 336
Location: Rome, Italy

PostPosted: Sun Dec 18, 2011 12:21 pm    Post subject: How old my Gentoo system is? Reply with quote

Hello everybody.

I'm able enough to have NEVER need to RE-install Gentoo from scratch in a wide range of situations.
Example: my home computer has changed, the hardware is upgraded step by step and even in case of CPU changes, I kept the system, in the worst case recompling everything.
I manage many systems and it is usual for me, even more in server oriented ones.

So, I'm curious: when did I install a system?
How can I reenact the approximate date when I built my first, stage3, installation?

Any ideas?

Regards,
HUjuice
_________________
Who hasn't a spine, should have a method.
Chi non ha carattere, deve pur avere un metodo.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sun Dec 18, 2011 12:34 pm    Post subject: Reply with quote

1/ some directories create by the install : look into your /mnt for floppy... or /boot (/var, /etc... might have change while /boot... should never)
2/ if you use an ext FS than chance you never reformat it are high too: tune2fs -l /dev/rootfspath | grep created
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Sun Dec 18, 2011 12:42 pm    Post subject: Reply with quote

This is rather difficult on a Linux system, because the ext* filesystems store only the file access, change and modification dates, not the creation dates. Otherwise, you could just do "stat /var/lib/portage/world" or something.

Perhaps it's just easiest to look at when you joined the forums :P
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
platojones
Veteran
Veteran


Joined: 23 Oct 2002
Posts: 1602
Location: Just over the horizon

PostPosted: Sun Dec 18, 2011 12:54 pm    Post subject: Reply with quote

genlop -l will show you the dates you emerged all of your packages, including the first emerges you did.
Back to top
View user's profile Send private message
ToeiRei
Veteran
Veteran


Joined: 03 Jan 2005
Posts: 1191
Location: Austria

PostPosted: Sun Dec 18, 2011 12:58 pm    Post subject: Reply with quote

platojones wrote:
genlop -l will show you the dates you emerged all of your packages, including the first emerges you did.

genlop will parse the logfiles. If they were removed or cleaned out (tmpwatch?), no way to tell those first emerges either
_________________
Please stand by - The mailer daemon is busy burning your messages in hell...
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10589
Location: Somewhere over Atlanta, Georgia

PostPosted: Sun Dec 18, 2011 1:11 pm    Post subject: Reply with quote

Well, the earliest lines of /var/log/emerge.log (which genlop parses) actually show you the date that the first component of the Stage3 tarball was built by catalyst, which will be at least somewhat earlier than your system install. On my oldest system, the first few lines of my /var/log/emerge.log show:
Code:
# head /var/log/emerge.log | awk -f ~/scripts/interp.awk
02/18/04 17:18:00: Started emerge on: Feb 18, 2004 22:18:00
02/18/04 17:18:00:  *** emerge --oneshot --nodeps ccache
02/18/04 17:18:00:  >>> emerge (1 of 1) dev-util/ccache-2.3 to /
02/18/04 17:18:00:  === (1 of 1) Cleaning (dev-util/ccache-2.3::/usr/portage/dev-util/ccache/ccache-2.3.ebuild)
02/18/04 17:18:01:  === (1 of 1) Compiling/Merging (dev-util/ccache-2.3::/usr/portage/dev-util/ccache/ccache-2.3.ebuild)
02/18/04 17:18:19:  === (1 of 1) Post-Build Cleaning (dev-util/ccache-2.3::/usr/portage/dev-util/ccache/ccache-2.3.ebuild)
02/18/04 17:18:19:  >>> AUTOCLEAN: dev-util/ccache
02/18/04 17:18:19:  --- AUTOCLEAN: Nothing unmerged.
02/18/04 17:18:19:  ::: completed emerge (1 of 1) dev-util/ccache-2.3 to /
02/18/04 17:18:19:  *** Finished. Cleaning up...
but I know I didn't start the install until 2005.

By the way, the little script I use to interpret the timestamps is
interp.awk:
#!/usr/bin/awk
{
    Len = length($1);
    Time = strftime("%D %T", substr($1, 1, Len - 1));
    Tail = substr($0, Len);
    print Time Tail;
}
- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Sun Dec 18, 2011 1:21 pm    Post subject: Reply with quote

Wouldn't logrotate kill older entries in emerge.log, just like in everything else?
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
ToeiRei
Veteran
Veteran


Joined: 03 Jan 2005
Posts: 1191
Location: Austria

PostPosted: Sun Dec 18, 2011 1:29 pm    Post subject: Reply with quote

that's exactly what I pointed out earlier.
_________________
Please stand by - The mailer daemon is busy burning your messages in hell...
Back to top
View user's profile Send private message
hujuice
Guru
Guru


Joined: 16 Oct 2007
Posts: 336
Location: Rome, Italy

PostPosted: Sun Dec 18, 2011 1:55 pm    Post subject: Reply with quote

Logs are managed/rotated, even emerge.log, so genlop has a short memory.
Also, changing CFLAGS, I did an emerge -e about one year ago.

To dig into /boot is a good idea.
Here at home, for example, I can find the symlink /boot/grub/menu.lst (2 sept 2008) that could be my last fresh installation.

Play with ls -lc and find or sort will give my oldest file.
(2 sept 2008 again)
Did I correctly managed my rsync during disk changes?

Another way (not my way) could be /etc/kernels/. But I don't have such a directory (it is managed by genkernel, I believe).

2008? I don't remember... :)

Regards,
HUjuice
_________________
Who hasn't a spine, should have a method.
Chi non ha carattere, deve pur avere un metodo.
Back to top
View user's profile Send private message
hujuice
Guru
Guru


Joined: 16 Oct 2007
Posts: 336
Location: Rome, Italy

PostPosted: Sun Dec 18, 2011 2:01 pm    Post subject: Reply with quote

What I learnt (later) is that emerge.log must be kept.
I manually rotate it once a year and I keep the previous year only... :cry:

HUjuice
_________________
Who hasn't a spine, should have a method.
Chi non ha carattere, deve pur avere un metodo.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10589
Location: Somewhere over Atlanta, Georgia

PostPosted: Sun Dec 18, 2011 2:09 pm    Post subject: Reply with quote

Hypnos wrote:
Wouldn't logrotate kill older entries in emerge.log, just like in everything else?
Not if you tell it not to. :wink:

Edit: Correction. I've never modified logrotate's behavior with respect to /var/log/emerge.log: it just isn't part of the default logrorate configuration on my system. Has this been different for others?

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
hujuice
Guru
Guru


Joined: 16 Oct 2007
Posts: 336
Location: Rome, Italy

PostPosted: Mon Feb 20, 2012 11:04 pm    Post subject: Reply with quote

My oldest file seems to be /etc/shells, April, 5, 2007.

With respect to my memory, it should be more realistc than the /boot/grub/menu.lst.

Bye,
HUjuice
_________________
Who hasn't a spine, should have a method.
Chi non ha carattere, deve pur avere un metodo.
Back to top
View user's profile Send private message
den_RDC
Apprentice
Apprentice


Joined: 25 Aug 2002
Posts: 166
Location: beercountry, Belgium;)

PostPosted: Sun Nov 12, 2017 10:21 pm    Post subject: How old is your gentoo system... Reply with quote

My gentoo install is dying - after a lot of update woes due to it not being used for half a year, i've decided I will no longer try to fix it and either reinstall or use another linux distro.

On the plus side, as far as I can tell from file age and memory, this system has been rolling since 2005 and thus managed a respectable 12 year lifetime. Any older installs around ?
_________________
Fan of the "Survivor Warriors of the Evil Empire of Bloody Destruction and Bloody Darkness"
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Mon Nov 13, 2017 12:21 am    Post subject: Reply with quote

I'm still using my first installed Gentoo installation from ~2004 (maybe 2003) when I decided against Fedora after RH9 went lights out, and it's still going well as a 24/7 server. Granted it's no longer on a physical machine anymore, but it was not a fresh reinstall when that hardware was decommissioned and transferred to a virtual disk on newer hardware.

The only thing over those 13-14 years that almost got me to reinstall was the apache1 to apache2 upgrade. That was painful because I had so many customizations. Alas I eventually got through it.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
fturco
Veteran
Veteran


Joined: 08 Dec 2010
Posts: 1181
Location: Italy

PostPosted: Mon Nov 13, 2017 1:59 pm    Post subject: Reply with quote

My Gentoo systems have been installed pretty recently (November 2016) even if I first started using Gentoo in January 2004. This is due to the fact that I sometimes become mentally weak and install other distributions... But I always come back to Gentoo sooner or later! :)
Back to top
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 2575
Location: Here and Away Again

PostPosted: Mon Nov 13, 2017 5:58 pm    Post subject: ><)))°€ Reply with quote

Running my first successful Gentoo installation from late 2010, though most of it has of course changed, and it has even moved from spinning rust to an SSD.

It also moved to using a different motherboard, CPU, and RAM (and soon back to the old for a while at least, as an RMA process is nigh).

Everything has been working very well, using 'unstable' since 2013 I think, but I may have to move to a clean, fresh-like installation soon due to an audio issue I'm having incredibly difficult time with tracking down...
_________________
Kindest of regardses.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10589
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Nov 13, 2017 6:22 pm    Post subject: Reply with quote

Merged above 4 posts.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Mon Nov 13, 2017 9:26 pm    Post subject: Reply with quote

I trimmed my emerge.log so that doesn't help (I stopped trimming when my disk space problem went away). The first entry, which is truncated, is now 2009. It's clearly truncated as the first entry is 13 of 14 which is very odd. I must have flushed logs during an emerge.

Thus I still don't really have proof of 2003-2004 first install other than a few 2004 directories that were left behind from an old baselayout or something. Maybe I have something from an 8mm backup tape that probably has dilapidated beyond readability :( Making dating difficult I still have cruft from my even older RH9 and older installs dated pre 2002, which I am fairly certain that I did not use Gentoo back then.

This machine had a fairly long history, it started as a single disk system when I was first learning about Gentoo, but subsequently got migrated without reinstall to a software RAID5. It got upgraded to another software RAID5 later on, and now resides on the aforementioned virtual machine, which is still sitting on yet another software RAID5. (no plans of SSD for this machine unless it's a bcache, this machine was meant to be a shellbox/fileserver...)
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Fri Nov 17, 2017 4:38 pm    Post subject: Gentoo nine lives Reply with quote

I have an Intel NUC here, being bored I started looking at files in /var. Found some stale files. From 2007, apparently this install is ten years old now. Hmmm ... this is rather new NUC, with SSD drive. I don't remember what was the first hardware I installed it on. I think it was an Atom box after that. And then another Atom. Then I discovered some news items from Funtoo, dated 2009. Apparently I converted from Funtoo to Gentoo at some point. Every time the hardware changed I obviously chose to rebuild it with new CFLAGS and new kernel instead of fresh install. Funny, ten years of history. At least 4 different boxes, maybe 5. Who knows how many hard drives.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Fri Nov 17, 2017 5:01 pm    Post subject: Reply with quote

Had another thread merge recently.

https://forums.gentoo.org/viewtopic-t-905932-highlight-.html

It is faster this way to get a working system, and then later optimize it at leisure... and still end up with something similar to what you'd get when starting from scratch.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10589
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Nov 17, 2017 6:50 pm    Post subject: Reply with quote

Merged above two posts.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Sun Nov 19, 2017 1:14 am    Post subject: Reply with quote

Been running the same Gentoo Linux install from 2002 for personal tasks. It now lives on a VM on a Windows host, alongside a number of other Linux VMs for various dev tasks.

Of course, like Theseus's ship, it bears little resemblance to the original state ...

The earliest that any file on my system was last modified was 2005, found via:

Code:
# find / | xargs stat -c "%y %n" | sort -n

_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
hujuice
Guru
Guru


Joined: 16 Oct 2007
Posts: 336
Location: Rome, Italy

PostPosted: Sun Feb 10, 2019 10:26 pm    Post subject: Reply with quote

After years, I've found a good answer for some systems, i.e. desktop systems running dbus or systems running systemd.
Code:
ls -l /etc/machine-id

dbus and systemd, in fact, generate that file on their first run.
KVM and Linux container guests should also have this file.

Some link:
https://linux.die.net/man/1/dbus-uuidgen
http://man7.org/linux/man-pages/man5/machine-id.5.html
http://man7.org/linux/man-pages/man1/systemd-machine-id-setup.1.html (see here what systemd expects from dbus, KVM and Linux container)
https://unix.stackexchange.com/questions/402999/it-is-ok-to-change-etc-machine-id

My hosts with neither dbus nor systemd, instead, don't have that file.

Regards,
HUjuice
_________________
Who hasn't a spine, should have a method.
Chi non ha carattere, deve pur avere un metodo.
Back to top
View user's profile Send private message
Ralphred
Guru
Guru


Joined: 31 Dec 2013
Posts: 501

PostPosted: Mon Feb 11, 2019 7:50 pm    Post subject: Reply with quote

eccerr0r wrote:
I'm still using my first installed Gentoo installation from ~2004 (maybe 2003) when I decided against Fedora after RH9 went lights out, and it's still going well as a 24/7 server.

This seems like a reliable method, I remember FC2 to FC3 being a chore, and thinking at the time this was almost as bad as reinstalling windows. I'd switched to Gentoo on a spare drive before FC4 was out. I tested FC4 on the "FC disk" for about a week, then formatted it and added it as media storage to Gentoo, never looked back.
My media machine has database entries from 2005 so that's an easy one.
My server was built from scratch when I moved to this house so that's easy too (2014).

The closest I've come to a rebuild since was moving from K8 to Zen when I had a new SDD at the same time, I nearly dropped a stage 3 on it restored world and /etc/portage*, but opted to re-compile with the omitted flags on the old system, then move the drive over for copying to the SSD.
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Tue Feb 12, 2019 7:00 pm    Post subject: Reply with quote

Checking 'ls -alt /mnt`, February 8, 2006
The first floor machine is March 17, 2010, although I'm sure my grandson was using it before then. Maybe with Fedora.
Basement server is July 12, 2011

First floor machine is on at least the third hard disk. Some sort of Western Digital Black -> Western Digital Velociraptor -> Crucial MX500 SSD.
It's also on it's second CPU and motherboard. Ditto for the basement. Third or fourth for the main machine. Athlon 64 Winchester (still somewhere in my basement) to Athlon II Windsor to Phenom II X6. Can't remember if there was a 64 bit install before the Athlon 64. Probably had a k6-2 32 bit, so I had to reinstall for 64 bit. I never had a k7. The Athlon II was resurrected to serve as a Windows 7 build machine, but now that I have successfully built Palemoon 28.3.1 in a Win7 virtual machine on Gentoo, I might as well retire it. It only has 2G memory and the virtual win 7 has 8G and builds much faster.

This machine dual boots, but as soon as I find a 1 TB SSD at a good price, I will switch from dual booting to running Windows XP in a virtual machine and single boot Gentoo.


Last edited by Tony0945 on Tue Feb 12, 2019 11:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum