{"id":984,"date":"2023-09-03T20:07:16","date_gmt":"2023-09-03T18:07:16","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=984"},"modified":"2023-09-03T20:07:16","modified_gmt":"2023-09-03T18:07:16","slug":"installations-datum-von-linux-ermitteln","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/09\/03\/installations-datum-von-linux-ermitteln\/","title":{"rendered":"Installations-Datum von Linux ermitteln"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Ein Linux-System h\u00e4lt sein Installationsdatum in keiner Logdatei fest. Die Suche nach einer Protokolldatei ist dazu auch nicht n\u00f6tig.<br>Bei einer Neuinstallation wird immer die Systempartition (&nbsp;<em><strong>\/&nbsp;<\/strong>-Wurzelverzeichnis<\/em>) neu formatiert. Das kann zur Altersbestimmung eines Linux-Systems herangezogen werden.<br>Je nach verwendetem Dateisystem muss die Vorgehensweise entsprechend angepasst werden.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Ext4-Dateisystem<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Zuerst ist es notwendig, die Ger\u00e4tebezeichnung der Systempartition zu bestimmen. Dies ist jene Partition, die als Wurzelverzeichnis<em><strong>\u00a0\/<\/strong><\/em>\u00a0eingeh\u00e4ngt ist.<br>Folgender Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>df<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">listet alle Partitionen an dessen Einh\u00e4ngepunkten auf.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ist das so ermittelte Wurzelverzeichnis beispielsweise<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/dev\/sda2<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">zeigt nachfolgender Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo tune2fs -l \/dev\/sda2 | grep created<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">das Erstelldatum an.<br>Im Beispiel&#8230;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/bild-1-1.jpg\" alt=\"\" class=\"wp-image-985\" style=\"width:559px;height:419px\" width=\"559\" height=\"419\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/bild-1-1.jpg 562w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/bild-1-1-300x225.jpg 300w\" sizes=\"auto, (max-width: 559px) 100vw, 559px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>BTRFS-Dateisystem<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Distributionen wie z. B. Fedora verwenden das BTRFS-Dateisystem f\u00fcr die Systempartition. Mit dem Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo btrfs subvolume show \/ | grep Creation<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">kann hier das Installations-Datum ermittelt werden.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Das beigef\u00fcgte\u00a0<strong>grep<\/strong>\u00a0filtert die Ausgabe und gibt wiederum nur die relevante Zeile an.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ein Linux-System h\u00e4lt sein Installationsdatum in keiner Logdatei fest. Die Suche nach einer Protokolldatei ist dazu auch nicht n\u00f6tig.Bei einer Neuinstallation wird immer die Systempartition (&nbsp;\/&nbsp;-Wurzelverzeichnis) neu formatiert. Das kann zur Altersbestimmung eines Linux-Systems herangezogen werden.Je nach verwendetem Dateisystem muss die Vorgehensweise entsprechend angepasst werden. Ext4-Dateisystem Zuerst ist es notwendig, die Ger\u00e4tebezeichnung der Systempartition zu [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":61,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[15],"class_list":["post-984","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-system","tag-system"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/984","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=984"}],"version-history":[{"count":1,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/984\/revisions"}],"predecessor-version":[{"id":986,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/984\/revisions\/986"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/61"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=984"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=984"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=984"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}