中古コンピュータに問題があるかどうかをテストする方法は?

中古コンピュータに問題があるかどうかをテストする方法は?

システムに問題があるかどうかを知らせる中古ノートブックまたはLinuxを実行しているPCで使用できるコマンドはありますか?それでは、それらは何ですか?

たとえば、バッテリ寿命/ステータス、ハードドライブスペース、不良セクタ、不良RAM、バス速度、ビデオ/オーディオハードウェアとドライバの仕様、LANカードの仕様などがあります。

ベストアンサー1

上から下から始めましょう。このガイドはディストリビューションに限定されません。 (これらのコマンドのほとんどは基本的に、またはパッケージリポジトリを介してほとんどのディストリビューションで利用できます。)ハードウェア仕様。これを行うには、次のいくつかのオプションがあります。

オールインワンオプション:

inxi --admin --verbosity=7 --filter --width #<- Lists your complete system specs
lshw #<- Lists your complete system specs, sudo recommended
hwinfo > hwinfo.txt #<-Writes your hardware info in extreme detail to hwinfo.txt

オールインワンGUIオプション:

hardinfo #<- A pretty good GUI system information utility, also offers benchmarks.
i-nex #<- Similar to CPU-Z on windows
lshw-gtk <- GUI for lshw

ターゲットオプション:

cat /sys/devices/virtual/dmi/id/board_{vendor,name,version} #<- Lists your motherboard details.
lspci -Q #<- Lists all your internal hardware and checks online for missing/updated names.
lspci -v | grep "VGA controller" #<- Displays your currently active graphics card. Very useful on laptops with hybrid/switchable graphics. (Typically this is the integrated card unless you have configured it otherwise)
lspci -v | grep "3D controller" #<- Displays your Nvidia Dedicated GPU. For laptops with hybrid/switchable graphics.
lspci -v | grep "Display controller" #<- Displays your ATI/AMD Dedicated GPU. For laptops with hybrid/switchable graphics.
lsusb #<- Lists all your USB hardware.
lscpu #<- Lists detailed processor info (alternative: cat /proc/cpuinfo )
fdisk -l #<- Lists your hard drives and partitions (may requires sudo access).
free -h --si #<- Lists your memory information, total is your total, available is your total free memory.
cat /proc/meminfo #<- Much more detailed info on your memory
ip link #<- lists your network devices and their status

カーネルエラーをすばやく確認することもできます。

cat /proc/kmsg | grep -i Error #<-Lists errors detected by the kernel (often hardware related ones), probably requires sudo access.

今、私たちが何を扱っているのかを知っているので、確認してみましょう。熱意lm_sensors、ほとんどのディストリビューションでは、デフォルトではlm_sensorsがパッケージ名ですが、時にはセンサーです。

次のように呼び出されます。

sensors-detect #<-Detect sensors on your pc; you only need to do this once. Requires sudo.
sensors #<-Display current values for known sensors on your pc

後でGUIユーティリティを使用してこれらのセンサーを監視するには、次のものを使用できます。psensor

Nvidia GPUに関する温度やその他の情報を表示するには、そのGPU用の専用ドライバがインストールされている場合を実行しますnvidia-smi

次はハードドライブ診断ほとんどのLinuxディストリビューションでは、fsckは起動時に実行され(ほぼ標準でLinux mintで実行されます)、ハードドライブのエラーと不良セクタを確認して修正するため、これを行う必要はほとんどありません。 fsckはマウントされたドライブで実行できないため、ハードドライブをさらに診断するにはシステムをシャットダウンし、次のサードパーティ製ユーティリティを使用する必要があります。システム回復ディスク(または他のLive CD / USB)または究極のブートディスク。またインテリジェントモニタリングツールsmartctlはSMARTテストを実行するために使用でき、fsckと同様に、現在マウントされているドライブではより詳細なテストを実行することはできません(ただし、多くのドライブはオフラインのときにこれらのテスト実行を自動的にサポートします)。それにもかかわらず、オペレーティングシステムができることははるかに多いです。HDパラメータハードドライブの分析と調整に使用できます。

dd if=/dev/zero of=$HOME/testfile bs=1G count=1 conv=fdatasync oflag=direct #<- Measures throughput of your hard drive (whichever one has your home folder on it).
hdparm -Tt /dev/sdx #<- Gives read speed information on hard drive sdx. I won't cover this in more detail, but you can look for guides on it.
smartctl -Hic /dev/sdx #<- Gives basic info of hard drive sdx and runs an overall health assesment. (If the assessment fails either the drive has failed or is in the process of failing) it then lists the drives SMART capabilities.
smartctl -t short /dev/sdx #<- Runs a short SMART test (cannot be run on a mounted drive (some drives support offline data collection and can automatically run the test on shutdown))

より徹底したハードドライブのベンチマークには、以下を使用してください。ペオ、WindowsユーザーフレンドリーなCrystalDiskmarkに似た形式を使用して、この回答をご覧くださいまたはを使用してくださいkdiskmark

メモリテストで完全なメモリテストを行うには、メモリテストユーティリティ(例:記憶力テスト 86+、通常livecdに含まれていますが(インストールしてgrubを更新して表示することもできます)、実行中のLinux環境では次のものを使用できます。メモリテスター

memtester 1024 5 #<- Sets aside 1GB(1024MB) free memory, and runs tests on it 5 times, then displays results.

これは、他のデバイスとデータをやり取りする速度(および量)をテストすることなく、LANデバイスのパフォーマンスを正しく診断するための最良の方法です。しかし、これを行うには、次のものを使用できます。アイパフまたはNetcat(CNC) これと組み合わせるDD(以前はハードドライブのテストに使用していました。)コンピュータでサーバーをホストし、そのアドレスを使用して自分に接続すると、ネットワークカード自体のスループットを実際にテストできます。ローカルホストまたは127.0.0.1

iperf -s #<- Starts iperf server (run this on the device you want to connect to, yes, as I said you need another computer for this)
iperf -c <address of server computer> #<- Connects and displays transfer rate information.
nc -vvlnp 12345 >/dev/null #<- Starts a netcat server (requires open firewall port for port 12345 if you have a strict firewall)
dd if=/dev/zero bs=1M count=1K | nc -vvn <server IP address> 12345

バッテリーテストには2つのオプションがあります。GNOMEバッテリーワークテーブル(グラフィック)または通信インターフェース(ターミナル)または優れたパワー(ターミナル) 以下はコマンド例です。

acpi -ib #<- Lists battery status, basic specs and gives an idea of it's health (shows it's charge level last time it was "full")
upower -i /org/freedesktop/UPower/devices/battery_BAT0 #<- Should provide detailed battery information.

サウンドテスト用。なぜこれをしたいのかわかりません。サウンドがうまくいくとうまくいきますが、うまくいかないとうまくいきませんが、とにかくALSAでやってみましょう(それですべてのディストリビューションで動作します)。あなたはする必要がありますアルサユーティリティこのために。

speaker-test -c 6 -t wav #<- Runs test sound on 6 speaker channels (for 5.1 speaker setup, you can use -c 2 for stereo speakers), just to see what happens.
speaker-test -r 96000 -f S32LE #<- Test stereo wav sound at 32-bit on 96khz frequencies. You can use this to test the maximum supported format and frequency (for example, while you sepcify 32-bit format, it may set to 16-bit format, if it does this then it will say so so read the output)
aplay -l #<- Lists sound output devices.
speaker-test -D hw:0,0 -c 4 -r 48000 -t wav #<- Test on specific hard ware device 0,0 at 4 channels with 48khz rate.
arecord -l #<- Lists recording devices.
arecord -f dat -d 20 -D hw:0,0 test.wav #<- Test specific recording device by outputting to a file in basic DAT quality
aplay -f dat test.wav #<- Play the recorded test file.

追加のテスト(CPUとGPUのパフォーマンス)には、専用のベンチマーク/ストレステストプログラムが必要な場合、または専用のテスト環境で起動する必要があります。すでに述べたユーティリティに加えて、私が推奨するベンチマークユーティリティのリストは次のとおりです。グラフィックベンチマークと同様に、垂直同期が無効になっていることを確認することをお勧めします。

  • GLXギア(メサの一部、OpenGLパフォーマンスの非常に基本的なテスト)
  • ビックスキューブ(vulkan-toolsの一部、非常に基本的なVulkanパフォーマンステスト)
  • ユニジパラダイスまたはユニオンバレー(過負荷状況で3Dゲーミングパフォーマンスをテストするためのグラフィックベンチマークプログラム)
  • システム作業台(CPU、メモリ、ハードディスクなどのコマンドラインベンチマークツール、ガイド)
  • 圧力(コマンドラインCPUとHDDストレステストユーティリティ)

最後に、テストを完全に完了するには、ハードウェアテストブートCDから起動する必要があることを忘れないでください。究極のブートディスク実行中のオペレーティングシステムでは(少なくとも効率的ではありませんが)実行できないことが多いためです。

おすすめ記事