From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A6DD715ACFB for ; Wed, 19 Apr 2023 08:00:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E402EE08F9; Wed, 19 Apr 2023 08:00:42 +0000 (UTC) Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EC4DFE089D for ; Wed, 19 Apr 2023 08:00:40 +0000 (UTC) Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1pp2k2-0003mC-OS for gentoo-user@lists.gentoo.org; Wed, 19 Apr 2023 10:00:38 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Nikos Chantziaras Subject: [gentoo-user] Re: Finally got a SSD drive to put my OS on Date: Wed, 19 Apr 2023 11:00:33 +0300 Message-ID: References: <3a8a143d-38f0-b7ea-4aa1-10c0b3a2a1e0@gmail.com> <50d5c2a3-76cc-39bc-290a-c6d3d9e0d7c4@gmail.com> <81fde7b8-cc55-fcae-79ea-4dd2a78eb8a0@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Content-Language: en-US In-Reply-To: <81fde7b8-cc55-fcae-79ea-4dd2a78eb8a0@gmail.com> X-Archives-Salt: 98a32353-a313-41a1-b8c0-d3ebe83edd8d X-Archives-Hash: fe5db6f527fb1c2d9cb93f0fbfd79ad8 On 19/04/2023 04:45, Dale wrote: > Filesystem created:       Sun Apr 15 03:24:56 2012 > Lifetime writes:          993 GB > > That's for the main / partition.  I have /usr on it's own partition tho. > > Filesystem created:       Sun Apr 15 03:25:48 2012 > Lifetime writes:          1063 GB > > I'd think that / and /usr would be the most changed parts of the OS. > After all, /bin and /sbin are on / too as is /lib*.  If that is even > remotely correct, both would only be around 2TBs.  That dang thing may > outlive me even if I don't try to minimize writes.  ROFLMBO I believe this only shows the lifetime writes to that particular filesystem since it's been created? You can use smartctl here too. At least on my HDD, the HDD's firmware keeps tracks of the lifetime logical sectors written. Logical sectors are 512 bytes (physical are 4096). The logical sector size is also shown by smartctl. With my HDD: # smartctl -x /dev/sda | grep -i 'sector size' Sector Sizes: 512 bytes logical, 4096 bytes physical Then to get the total logical sectors written: # smartctl -x /dev/sda | grep -i 'sectors written' 0x01 0x018 6 37989289142 --- Logical Sectors Written Converting that to terabytes written with "bc -l": 37988855446 * 512 / 1024^4 17.68993933033198118209 Almost 18TB.