View previous topic :: View next topic |
Author |
Message |
hujuice Guru
Joined: 16 Oct 2007 Posts: 336 Location: Rome, Italy
|
Posted: Sun Dec 18, 2011 12:21 pm Post subject: How old my Gentoo system is? |
|
|
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 |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sun Dec 18, 2011 12:34 pm Post subject: |
|
|
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 |
|
|
Hypnos Advocate
Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
Posted: Sun Dec 18, 2011 12:42 pm Post subject: |
|
|
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 _________________ Personal overlay | Simple backup scheme |
|
Back to top |
|
|
platojones Veteran
Joined: 23 Oct 2002 Posts: 1602 Location: Just over the horizon
|
Posted: Sun Dec 18, 2011 12:54 pm Post subject: |
|
|
genlop -l will show you the dates you emerged all of your packages, including the first emerges you did. |
|
Back to top |
|
|
ToeiRei Veteran
Joined: 03 Jan 2005 Posts: 1191 Location: Austria
|
Posted: Sun Dec 18, 2011 12:58 pm Post subject: |
|
|
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 |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Sun Dec 18, 2011 1:11 pm Post subject: |
|
|
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 |
|
|
Hypnos Advocate
Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
Posted: Sun Dec 18, 2011 1:21 pm Post subject: |
|
|
Wouldn't logrotate kill older entries in emerge.log, just like in everything else? _________________ Personal overlay | Simple backup scheme |
|
Back to top |
|
|
ToeiRei Veteran
Joined: 03 Jan 2005 Posts: 1191 Location: Austria
|
Posted: Sun Dec 18, 2011 1:29 pm Post subject: |
|
|
that's exactly what I pointed out earlier. _________________ Please stand by - The mailer daemon is busy burning your messages in hell... |
|
Back to top |
|
|
hujuice Guru
Joined: 16 Oct 2007 Posts: 336 Location: Rome, Italy
|
Posted: Sun Dec 18, 2011 1:55 pm Post subject: |
|
|
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 |
|
|
hujuice Guru
Joined: 16 Oct 2007 Posts: 336 Location: Rome, Italy
|
Posted: Sun Dec 18, 2011 2:01 pm Post subject: |
|
|
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...
HUjuice _________________ Who hasn't a spine, should have a method.
Chi non ha carattere, deve pur avere un metodo. |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Sun Dec 18, 2011 2:09 pm Post subject: |
|
|
Hypnos wrote: | Wouldn't logrotate kill older entries in emerge.log, just like in everything else? | Not if you tell it not to.
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 |
|
|
hujuice Guru
Joined: 16 Oct 2007 Posts: 336 Location: Rome, Italy
|
Posted: Mon Feb 20, 2012 11:04 pm Post subject: |
|
|
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 |
|
|
den_RDC Apprentice
Joined: 25 Aug 2002 Posts: 166 Location: beercountry, Belgium;)
|
Posted: Sun Nov 12, 2017 10:21 pm Post subject: How old is your gentoo system... |
|
|
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 |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9679 Location: almost Mile High in the USA
|
Posted: Mon Nov 13, 2017 12:21 am Post subject: |
|
|
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 |
|
|
fturco Veteran
Joined: 08 Dec 2010 Posts: 1181 Location: Italy
|
Posted: Mon Nov 13, 2017 1:59 pm Post subject: |
|
|
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 |
|
|
Chiitoo Administrator
Joined: 28 Feb 2010 Posts: 2575 Location: Here and Away Again
|
Posted: Mon Nov 13, 2017 5:58 pm Post subject: ><)))°€ |
|
|
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 |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Mon Nov 13, 2017 6:22 pm Post subject: |
|
|
Merged above 4 posts.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9679 Location: almost Mile High in the USA
|
Posted: Mon Nov 13, 2017 9:26 pm Post subject: |
|
|
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 |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Fri Nov 17, 2017 4:38 pm Post subject: Gentoo nine lives |
|
|
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 |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9679 Location: almost Mile High in the USA
|
Posted: Fri Nov 17, 2017 5:01 pm Post subject: |
|
|
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 |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Fri Nov 17, 2017 6:50 pm Post subject: |
|
|
Merged above two posts.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
Hypnos Advocate
Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
Posted: Sun Nov 19, 2017 1:14 am Post subject: |
|
|
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 |
|
|
hujuice Guru
Joined: 16 Oct 2007 Posts: 336 Location: Rome, Italy
|
Posted: Sun Feb 10, 2019 10:26 pm Post subject: |
|
|
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 |
|
|
Ralphred Guru
Joined: 31 Dec 2013 Posts: 501
|
Posted: Mon Feb 11, 2019 7:50 pm Post subject: |
|
|
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 |
|
|
Tony0945 Watchman
Joined: 25 Jul 2006 Posts: 5127 Location: Illinois, USA
|
Posted: Tue Feb 12, 2019 7:00 pm Post subject: |
|
|
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 |
|
|
|