IT/Hardware/Hard Drives: Difference between revisions
Walttheboss (talk | contribs) |
Walttheboss (talk | contribs) (cannot mount ntfs drive) |
||
Line 20: | Line 20: | ||
<code>rsync -avP --numeric-ids --exclude='/dev' --exclude='/proc' --exclude='/sys' root@failedharddrivehost:/ /path/to/destination/</code> | <code>rsync -avP --numeric-ids --exclude='/dev' --exclude='/proc' --exclude='/sys' root@failedharddrivehost:/ /path/to/destination/</code> | ||
=== nfts problems === | |||
These are many and this is just one. | |||
Common error: | |||
wrong fs type, bad option, bad superblock on /dev/sdc1, missing codepage or helper program, or other error | |||
When a drive gets confused about its hibernation state etc. | |||
sudo ntfsfix -b -d /dev/sdc1 | |||
here <code>-b</code> stands for <code>--clear-bad-sectors</code> and <code>-d</code> stands for <code>--clear-dirty</code> | |||
this should fix it. |
Latest revision as of 04:46, 21 October 2024
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.
rsync -avP --numeric-ids --exclude='/dev' --exclude='/proc' --exclude='/sys' root@failedharddrivehost:/ /path/to/destination/
nfts problems
These are many and this is just one.
Common error:
wrong fs type, bad option, bad superblock on /dev/sdc1, missing codepage or helper program, or other error
When a drive gets confused about its hibernation state etc.
sudo ntfsfix -b -d /dev/sdc1
here -b
stands for --clear-bad-sectors
and -d
stands for --clear-dirty
this should fix it.