IT/Hardware/Hard Drives: Difference between revisions

From msgwiki
< IT‎ | Hardware
Jump to navigation Jump to search
Access restrictions were established for this page. If you see this message, you have no access to this page.
No edit summary
No edit summary
Line 15: Line 15:


You can expect 75 to 300 TBW on a 1/2 TB (512 GB) drive.
You can expect 75 to 300 TBW on a 1/2 TB (512 GB) drive.
=== Copying a root files system ===
This is when for some reason you can't or don't want to clone the partition.
<nowiki><code>rsync -avP --numeric-ids --exclude='/dev' --exclude='/proc' --exclude='/sys' root@failedharddrivehost:/ /path/to/destination/</code></nowiki>

Revision as of 04:35, 13 November 2020

I like Samsung SSD drives. That's a full stop at the end of the previous sentence!

General

Smart Control

This is software for managing hard drives. It works well for Samsung SSDs

You will need to install smartctl which comes in the gsmartcontrol package. It is no longer standalone.

The most important piece of information is the Total Terabytes Written. Find with the command below.

sudo /usr/sbin/smartctl -A /dev/sda | awk '$0~/LBAs/{ printf "TBW %.1f\n", $10 * 512 / 1024^4 }'

The graphical tool gives you Total LBAs written. Take that number and divide by 2,000,000,000 to roughly get TBW.

You can expect 75 to 300 TBW on a 1/2 TB (512 GB) drive.

Copying a root files system

This is when for some reason you can't or don't want to clone the partition.

<code>rsync -avP --numeric-ids --exclude='/dev' --exclude='/proc' --exclude='/sys' root@failedharddrivehost:/ /path/to/destination/</code>