My Notebook
by kerner1000
Hard disk and docking station need to support S.M.A.R.T.
For S.M.A.R.T., smartmontools
is needed.
On (QNAP) NAS, install Entware.
ssh on NAS.
Install smartmontools
: opkg install smartmontools
.
Connected the external device.
run dmesg to see dev
address of the external device. Output will look something like this:
sd 13:0:0:0: [sdi] Spinning up disk...
[798870.006728] sd 13:0:0:0: Attached scsi generic sg8 type 0
[798871.003044] ............ready
[798882.053671] sd 13:0:0:0: [sdi] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[798882.058613] sd 13:0:0:0: [sdi] Write Protect is off
Here, the device address is `/dev/sdi`.
Get S.M.A.R.T. error log: # smartctl /dev/sdi -l error
.
Start a short self test: # smartctl /dev/sdi -t short
.
Start a long self test: # smartctl /dev/sdi -t long
.
Run bad blocks scan: badblocks -n /dev/sdi
.
Tip: use tmux
(opkg install tmux
) to keep process alive after exiting the terminal.