LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-04-2014, 04:26 PM   #1
piyush128k
Member
 
Registered: Jun 2012
Posts: 68
Blog Entries: 1

Rep: Reputation: Disabled
how to find out when the linux was installed on my system


i need to know when a linux distro was installed on the system
 
Old 11-04-2014, 04:30 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Try
Code:
tune2fs -l /dev/sda1 | grep 'Filesystem created:'
Kind regards
 
2 members found this post helpful.
Old 11-04-2014, 05:39 PM   #3
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,610

Rep: Reputation: 702Reputation: 702Reputation: 702Reputation: 702Reputation: 702Reputation: 702Reputation: 702
Cool. Works on raid or logical volumes too:
Code:
 tune2fs -l /dev/mapper/d2vg-lv1 |grep 'Filesystem created'
Filesystem created:       Tue Nov  4 15:39:59 2014
 
Old 11-04-2014, 06:22 PM   #4
piyush128k
Member
 
Registered: Jun 2012
Posts: 68
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
i do df -h and i see the file systems listed e.g.

[root@slcac810 /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 48G 2.9G 43G 7% /
/dev/sda1 190M 73M 108M 41% /boot

so i do this:- tune2fs -l /dev/mapper/d2vg-lv1 |grep /dev/sda
and it doe snot work.

Could you be kind enough to give me an example that i could understand. I believe i am probably doing something really stupid that it is not working
 
Old 11-04-2014, 06:52 PM   #5
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 3,880
Blog Entries: 1

Rep: Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998Reputation: 1998
Quote:
Originally Posted by piyush128k View Post
so i do this:- tune2fs -l /dev/mapper/d2vg-lv1 |grep /dev/sda
and it doe snot work.

Could you be kind enough to give me an example that i could understand. I believe i am probably doing something really stupid that it is not working
Why not try the really clear method suggested above?

Think...

Last edited by astrogeek; 11-04-2014 at 06:56 PM.
 
Old 11-04-2014, 06:56 PM   #6
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 510

Rep: Reputation: 120Reputation: 120
Quote:
Originally Posted by piyush128k View Post
i do df -h and i see the file systems listed e.g.

[root@slcac810 /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 48G 2.9G 43G 7% /
/dev/sda1 190M 73M 108M 41% /boot

so i do this:- tune2fs -l /dev/mapper/d2vg-lv1 |grep /dev/sda
and it doe snot work.

Could you be kind enough to give me an example that i could understand. I believe i am probably doing something really stupid that it is not working
Obviously you have no "/dev/mapper/d2vg-lv1" device, so you getting an error.
You need to run
Code:
tune2fs -l /dev/sda2 | grep 'Filesystem created:'
it will show the filesystem creation date. In most cases this date is the date when system installation was started.
 
Old 11-04-2014, 07:01 PM   #7
piyush128k
Member
 
Registered: Jun 2012
Posts: 68
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Thank you..so dumb of me. thank you sir
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to find if 2 databases are installed on the system? Nikhil_Lagwankar Linux - Server 8 12-10-2013 05:50 AM
To find the version of ncurses installed on linux system though shell command Gurpreet1 Linux - Newbie 3 09-03-2013 04:05 AM
Linux File System. Can't find Installed pkg. Ace Blackwell Slackware 6 01-27-2013 01:08 AM


All times are GMT -5. The time now is 12:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration