
我最近遇到了很多死機和奇怪的突然重新啟動的情況。大多數情況下,這種情況發生在我使用串流媒體時。定格無限循環持續(約)1 秒的音訊。我以為我已經找到並解決了好幾次了,但每次都錯了。
我嘗試在啟動期間運行 memtest,但它凍結在 15%、30% 或 40%,具體取決於我選擇的設定。我知道某些 BIOS 和主機板可能並且確實會發生這種情況。
我運行 SMART 並看到一些標記為預先失敗的功能。 (我計劃購買一個較新的驅動器,並在有能力的情況下將舊驅動器的內容複製到其替換驅動器上)。
下列的這個答案到我的問題,我跑了sudo journalctl -b -1 -e
。
我的理解是從這個問題UFW BLOCK 表示連線被阻止。它在輸出的尾部出現很多(我將輸出重定向到文字檔案)。
在這些本機 IP 位址上,254 是我的路由器,103 是我的 PC
Aug 27 17:53:44 Hope systemd[1]: Starting Hostname Service...
Aug 27 17:53:44 Hope dbus-daemon[997]: [system] Successfully activated service 'org.freedesktop.hostname1'
Aug 27 17:53:44 Hope systemd[1]: Started Hostname Service.
Aug 27 17:53:44 Hope hud-service[3437]: void DBusMenuImporter::slotGetLayoutFinished(QDBusPendingCallWatcher*): "No such interface “com.canonical.dbusmenu” on object at path /org/ayatana/bamf/window/65013137"
Aug 27 17:53:49 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=00:30:67:9f:6e:01:44:fe:3b:c4:a4:0d:08:00 SRC=192.168.1.254 DST=192.168.1.103 LEN=302 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=51143 DPT=42922 LEN=282
Aug 27 17:54:09 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=00:30:67:9f:6e:01:44:fe:3b:c4:a4:0d:08:00 SRC=192.168.1.254 DST=192.168.1.103 LEN=302 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=51143 DPT=42922 LEN=282
Aug 27 17:54:14 Hope systemd[1]: systemd-hostnamed.service: Succeeded.
Aug 27 17:54:28 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=00:30:67:9f:6e:01:94:9a:a9:a4:76:8c:08:00 SRC=192.168.1.237 DST=192.168.1.103 LEN=467 TOS=0x00 PREC=0x00 TTL=128 ID=62508 PROTO=UDP SPT=1900 DPT=42922 LEN=447
Aug 27 17:54:49 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=00:30:67:9f:6e:01:94:9a:a9:a4:76:8c:08:00 SRC=192.168.1.237 DST=192.168.1.103 LEN=467 TOS=0x00 PREC=0x00 TTL=128 ID=62514 PROTO=UDP SPT=1900 DPT=42922 LEN=447
Aug 27 17:55:08 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=00:30:67:9f:6e:01:44:fe:3b:c4:a4:0d:08:00 SRC=192.168.1.254 DST=192.168.1.103 LEN=415 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=1900 DPT=42922 LEN=395
Aug 27 17:55:28 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=00:30:67:9f:6e:01:44:fe:3b:c4:a4:0d:08:00 SRC=192.168.1.254 DST=192.168.1.103 LEN=415 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=1900 DPT=42922 LEN=395
Aug 27 17:55:49 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=00:30:67:9f:6e:01:44:fe:3b:c4:a4:0d:08:00 SRC=192.168.1.254 DST=192.168.1.103 LEN=302 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=51143 DPT=42922 LEN=282
Aug 27 17:56:09 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=00:30:67:9f:6e:01:44:fe:3b:c4:a4:0d:08:00 SRC=192.168.1.254 DST=192.168.1.103 LEN=415 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=1900 DPT=42922 LEN=395
Aug 27 17:56:29 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=00:30:67:9f:6e:01:44:fe:3b:c4:a4:0d:08:00 SRC=192.168.1.254 DST=192.168.1.103 LEN=415 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=1900 DPT=42922 LEN=395
Aug 27 17:56:48 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=00:30:67:9f:6e:01:94:9a:a9:a4:76:8c:08:00 SRC=192.168.1.237 DST=192.168.1.103 LEN=467 TOS=0x00 PREC=0x00 TTL=128 ID=62554 PROTO=UDP SPT=1900 DPT=42922 LEN=447
Aug 27 17:57:09 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=00:30:67:9f:6e:01:44:fe:3b:c4:a4:0d:08:00 SRC=192.168.1.254 DST=192.168.1.103 LEN=302 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=51143 DPT=42922 LEN=282
Aug 27 17:57:28 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=00:30:67:9f:6e:01:44:fe:3b:c4:a4:0d:08:00 SRC=192.168.1.254 DST=192.168.1.103 LEN=415 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=1900 DPT=42922 LEN=395
Aug 27 17:57:49 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=00:30:67:9f:6e:01:94:9a:a9:a4:76:8c:08:00 SRC=192.168.1.237 DST=192.168.1.103 LEN=467 TOS=0x00 PREC=0x00 TTL=128 ID=62573 PROTO=UDP SPT=1900 DPT=42922 LEN=447
Aug 27 17:58:08 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=00:30:67:9f:6e:01:94:9a:a9:a4:76:8c:08:00 SRC=192.168.1.237 DST=192.168.1.103 LEN=467 TOS=0x00 PREC=0x00 TTL=128 ID=62579 PROTO=UDP SPT=1900 DPT=42922 LEN=447
Aug 27 17:58:29 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=00:30:67:9f:6e:01:94:9a:a9:a4:76:8c:08:00 SRC=192.168.1.237 DST=192.168.1.103 LEN=467 TOS=0x00 PREC=0x00 TTL=128 ID=62589 PROTO=UDP SPT=1900 DPT=42922 LEN=447
Aug 27 17:58:48 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=00:30:67:9f:6e:01:94:9a:a9:a4:76:8c:08:00 SRC=192.168.1.237 DST=192.168.1.103 LEN=467 TOS=0x00 PREC=0x00 TTL=128 ID=62595 PROTO=UDP SPT=1900 DPT=42922 LEN=447
Aug 27 17:59:08 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=00:30:67:9f:6e:01:44:fe:3b:c4:a4:0d:08:00 SRC=192.168.1.254 DST=192.168.1.103 LEN=415 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=1900 DPT=42922 LEN=395
Aug 27 17:59:28 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=00:30:67:9f:6e:01:94:9a:a9:a4:76:8c:08:00 SRC=192.168.1.237 DST=192.168.1.103 LEN=467 TOS=0x00 PREC=0x00 TTL=128 ID=62606 PROTO=UDP SPT=1900 DPT=42922 LEN=447
Aug 27 17:59:48 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=00:30:67:9f:6e:01:94:9a:a9:a4:76:8c:08:00 SRC=192.168.1.237 DST=192.168.1.103 LEN=467 TOS=0x00 PREC=0x00 TTL=128 ID=62613 PROTO=UDP SPT=1900 DPT=42922 LEN=447
Aug 27 18:00:08 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=00:30:67:9f:6e:01:94:9a:a9:a4:76:8c:08:00 SRC=192.168.1.237 DST=192.168.1.103 LEN=467 TOS=0x00 PREC=0x00 TTL=128 ID=62619 PROTO=UDP SPT=1900 DPT=42922 LEN=447
Aug 27 18:00:35 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=00:30:67:9f:6e:01:30:cd:a7:a8:fd:fc:08:00 SRC=192.168.1.205 DST=192.168.1.103 LEN=267 TOS=0x00 PREC=0x00 TTL=64 ID=92 PROTO=UDP SPT=1900 DPT=42922 LEN=247
Aug 27 18:00:48 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=00:30:67:9f:6e:01:94:9a:a9:a4:76:8c:08:00 SRC=192.168.1.237 DST=192.168.1.103 LEN=467 TOS=0x00 PREC=0x00 TTL=128 ID=62635 PROTO=UDP SPT=1900 DPT=42922 LEN=447
Aug 27 18:01:08 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=00:30:67:9f:6e:01:94:9a:a9:a4:76:8c:08:00 SRC=192.168.1.237 DST=192.168.1.103 LEN=467 TOS=0x00 PREC=0x00 TTL=128 ID=62641 PROTO=UDP SPT=1900 DPT=42922 LEN=447
Aug 27 18:01:28 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=00:30:67:9f:6e:01:94:9a:a9:a4:76:8c:08:00 SRC=192.168.1.237 DST=192.168.1.103 LEN=467 TOS=0x00 PREC=0x00 TTL=128 ID=62647 PROTO=UDP SPT=1900 DPT=42922 LEN=447
Aug 27 18:01:48 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=00:30:67:9f:6e:01:44:fe:3b:c4:a4:0d:08:00 SRC=192.168.1.254 DST=192.168.1.103 LEN=415 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=1900 DPT=42922 LEN=395
Aug 27 18:02:08 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=00:30:67:9f:6e:01:44:fe:3b:c4:a4:0d:08:00 SRC=192.168.1.254 DST=192.168.1.103 LEN=415 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=1900 DPT=42922 LEN=395
Aug 27 18:02:29 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=00:30:67:9f:6e:01:94:9a:a9:a4:76:8c:08:00 SRC=192.168.1.237 DST=192.168.1.103 LEN=467 TOS=0x00 PREC=0x00 TTL=128 ID=62669 PROTO=UDP SPT=1900 DPT=42922 LEN=447
Aug 27 18:02:49 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=00:30:67:9f:6e:01:44:fe:3b:c4:a4:0d:08:00 SRC=192.168.1.254 DST=192.168.1.103 LEN=415 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=1900 DPT=42922 LEN=395
Aug 27 18:03:09 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=00:30:67:9f:6e:01:94:9a:a9:a4:76:8c:08:00 SRC=192.168.1.237 DST=192.168.1.103 LEN=467 TOS=0x00 PREC=0x00 TTL=128 ID=62681 PROTO=UDP SPT=1900 DPT=42922 LEN=447
Aug 27 18:03:28 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=00:30:67:9f:6e:01:44:fe:3b:c4:a4:0d:08:00 SRC=192.168.1.254 DST=192.168.1.103 LEN=415 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=1900 DPT=42922 LEN=395
我正在查看文件的正確部分嗎?
這裡有崩潰原因線索嗎?
我還可以去哪裡看看?
自由-h
total used free shared buff/cache available
Mem: 15Gi 3.5Gi 7.9Gi 377Mi 4.3Gi 11Gi
Swap: 28Gi 0B 28Gi
sysctl 虛擬機交換
虛擬機交換性 = 60
交換-s
Filename Type Size Used Priority
/dev/sda5 partition 29668348 0 -2
sudo lshw -C 內存
*-firmware
description: BIOS
vendor: American Megatrends Inc.
physical id: 0
version: 080015
date: 03/26/2010
size: 64KiB
capacity: 1MiB
capabilities: isa pci pnp apm upgrade shadowing escd cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer int10video acpi usb ls120boot zipboot biosbootspecification
*-cache:0
description: L1 cache
physical id: 5
slot: L1-Cache
size: 256KiB
capacity: 256KiB
capabilities: pipeline-burst internal varies
configuration: level=1
*-cache:1
description: L2 cache
physical id: 6
slot: L2-Cache
size: 1MiB
capacity: 1MiB
capabilities: pipeline-burst internal varies
configuration: level=2
*-cache:2
description: L3 cache
physical id: 7
slot: L3-Cache
size: 6MiB
capacity: 6MiB
capabilities: pipeline-burst internal varies
configuration: level=3
*-memory:0
description: System Memory
physical id: 24
slot: System board or motherboard
size: 16GiB
*-bank:0
description: DIMMProject-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>PO-Revision-Date: 2012-02-05 00:26+0000Last-Translator: Andi Chandler <Unknown>Language-Team: English (United Kingdom) <[email protected]>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2021-08-02 16:47+0000X-Generator: Launchpad (build 8bd362bf86c4b35e805f897f03c203e3576a7006) Synchronous 667 MHz (1.5 ns)
product: CMV4GX3M1A1333C9
vendor: Corsair
physical id: 0
serial: 00000000
slot: DIMM0
size: 4GiB
width: 64 bits
clock: 667MHz (1.5ns)
*-bank:1
description: DIMMProject-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>PO-Revision-Date: 2012-02-05 00:26+0000Last-Translator: Andi Chandler <Unknown>Language-Team: English (United Kingdom) <[email protected]>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2021-08-02 16:47+0000X-Generator: Launchpad (build 8bd362bf86c4b35e805f897f03c203e3576a7006) Synchronous 667 MHz (1.5 ns)
product: CMV4GX3M1A1333C9
vendor: Corsair
physical id: 1
serial: 00000000
slot: DIMM1
size: 4GiB
width: 64 bits
clock: 667MHz (1.5ns)
*-bank:2
description: DIMMProject-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>PO-Revision-Date: 2012-02-05 00:26+0000Last-Translator: Andi Chandler <Unknown>Language-Team: English (United Kingdom) <[email protected]>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2021-08-02 16:47+0000X-Generator: Launchpad (build 8bd362bf86c4b35e805f897f03c203e3576a7006) Synchronous 667 MHz (1.5 ns)
product: CMV4GX3M1A1333C9
vendor: Corsair
physical id: 2
serial: 00000000
slot: DIMM2
size: 4GiB
width: 64 bits
clock: 667MHz (1.5ns)
*-bank:3
description: DIMMProject-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>PO-Revision-Date: 2012-02-05 00:26+0000Last-Translator: Andi Chandler <Unknown>Language-Team: English (United Kingdom) <[email protected]>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2021-08-02 16:47+0000X-Generator: Launchpad (build 8bd362bf86c4b35e805f897f03c203e3576a7006) Synchronous 667 MHz (1.5 ns)
product: CMV4GX3M1A1333C9
vendor: Corsair
physical id: 3
serial: 00000000
slot: DIMM3
size: 4GiB
width: 64 bits
clock: 667MHz (1.5ns)
*-memory:1 UNCLAIMED
description: RAM memory
product: MCP61 Memory Controller
vendor: NVIDIA Corporation
physical id: 4
bus info: pci@0000:00:00.0
version: a1
width: 32 bits
clock: 66MHz (15.2ns)
capabilities: ht bus_master cap_list
configuration: latency=0
*-memory:2 UNCLAIMED
description: RAM memory
product: MCP61 Memory Controller
vendor: NVIDIA Corporation
physical id: 1.2
bus info: pci@0000:00:01.2
version: a2
width: 32 bits
clock: 66MHz (15.2ns)
configuration: latency=0
進一步更新:所以,我打開我的電腦,並從每個 RAM 上的 GRUB 選單中使用 Memtest68+ 5.01。他們都通過了。花了幾個小時。我不急於再次這樣做。
更新頂部進一步更新:我還查看了 UFW BLOCK 記錄,並明確允許我的網路上更常見的廣播。因此,這些 UDP 錯誤不太可能成為持續存在的問題。
進一步進一步更新:我整理了大部分 UDP 區塊,最後一次運行結束如下:
Sep 03 21:34:42 Hope systemd[1]: Started Run anacron jobs.
Sep 03 21:34:42 Hope systemd[1]: anacron.service: Succeeded.
Sep 03 21:34:42 Hope anacron[19507]: Anacron 2.3 started on 2021-09-03
Sep 03 21:34:42 Hope anacron[19507]: Normal exit (0 jobs run)
Sep 03 21:35:56 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=01:00:5e:00:00:01:44:fe:3b:c4:a4:0d:08:00 SRC=192.168.1.254 DST=224.0.0.1 LEN=36 TOS=0x00 PREC=0xC0 TTL=1 ID=0 PROTO=2
Sep 03 21:38:01 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=01:00:5e:00:00:01:44:fe:3b:c4:a4:0d:08:00 SRC=192.168.1.254 DST=224.0.0.1 LEN=36 TOS=0x00 PREC=0xC0 TTL=1 ID=0 PROTO=2
Sep 03 21:39:01 Hope CRON[19572]: pam_unix(cron:session): session opened for user root by (uid=0)
Sep 03 21:39:01 Hope CRON[19571]: pam_unix(cron:session): session opened for user root by (uid=0)
Sep 03 21:39:01 Hope CRON[19573]: (root) CMD ( [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Sep 03 21:39:01 Hope CRON[19571]: pam_unix(cron:session): session closed for user root
Sep 03 21:39:01 Hope CRON[19574]: (root) CMD ( [ -x /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean)
Sep 03 21:39:01 Hope CRON[19572]: pam_unix(cron:session): session closed for user root
Sep 03 21:39:02 Hope systemd[1]: Starting Clean php session files...
Sep 03 21:39:02 Hope sessionclean[19644]: /usr/lib/php/sessionclean: 35: php7.0: not found
Sep 03 21:39:02 Hope systemd[1]: phpsessionclean.service: Succeeded.
Sep 03 21:39:02 Hope systemd[1]: Finished Clean php session files.
Sep 03 21:40:06 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=01:00:5e:00:00:01:44:fe:3b:c4:a4:0d:08:00 SRC=192.168.1.254 DST=224.0.0.1 LEN=36 TOS=0x00 PREC=0xC0 TTL=1 ID=0 PROTO=2
Sep 03 21:42:11 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=01:00:5e:00:00:01:44:fe:3b:c4:a4:0d:08:00 SRC=192.168.1.254 DST=224.0.0.1 LEN=36 TOS=0x00 PREC=0xC0 TTL=1 ID=0 PROTO=2
更新#1:
memtest
運轉時凍結。懷疑 RAM 損壞,或需要將 RAM 重新插入插槽。 RAM 位於插槽 DIMM0-3 中。卸下 DIMM1-3 並重新測試memtest
。如果memtest
執行沒有錯誤,則在插槽 DIMM1 中重新新增一條 DIMM,然後重新測試,依此類推。
大更新(根據要求)
自由-h
total used free shared buff/cache available
Mem: 15Gi 3.3Gi 5.0Gi 144Mi 7.4Gi 11Gi
Swap: 4.0Gi 0B 4.0Gi
請求 grep
# swap was on /dev/sda5 during installation
#UUID=01eaad91-0858-4b01-8cad-76671cf8682d none swap sw 0 0
/swapfile none swap sw 0 0
交換
Filename Type Size Used Priority
/swapfile file 4194300 0 -2
硬碟截圖
更新的sudo journalctl -b -1 -e
.
我已經解決了一些 UDP 阻止報告,因為它們是無害的家庭網路廣播。
Sep 05 17:25:06 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=01:00:5e:00:00:01:44:fe:3b:c4:a4:0d:08:00 SRC=192.168.1.254 DST=224.0.0.1 LEN=36 TOS=0x00 PREC=0xC0 TTL=1 ID=0 PROTO=2
Sep 05 17:27:11 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=01:00:5e:00:00:01:44:fe:3b:c4:a4:0d:08:00 SRC=192.168.1.254 DST=224.0.0.1 LEN=36 TOS=0x00 PREC=0xC0 TTL=1 ID=0 PROTO=2
Sep 05 17:29:16 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=01:00:5e:00:00:01:44:fe:3b:c4:a4:0d:08:00 SRC=192.168.1.254 DST=224.0.0.1 LEN=36 TOS=0x00 PREC=0xC0 TTL=1 ID=0 PROTO=2
Sep 05 17:30:01 Hope CRON[31486]: pam_unix(cron:session): session opened for user root by (uid=0)
Sep 05 17:30:01 Hope CRON[31487]: (root) CMD ([ -x /etc/init.d/anacron ] && if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start >/dev/null; fi)
Sep 05 17:30:01 Hope CRON[31486]: pam_unix(cron:session): session closed for user root
Sep 05 17:31:21 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=01:00:5e:00:00:01:44:fe:3b:c4:a4:0d:08:00 SRC=192.168.1.254 DST=224.0.0.1 LEN=36 TOS=0x00 PREC=0xC0 TTL=1 ID=0 PROTO=2
Sep 05 17:32:33 Hope systemd[1]: Started Run anacron jobs.
Sep 05 17:32:33 Hope anacron[31544]: Anacron 2.3 started on 2021-09-05
Sep 05 17:32:33 Hope anacron[31544]: Normal exit (0 jobs run)
Sep 05 17:32:33 Hope systemd[1]: anacron.service: Succeeded.
Sep 05 17:33:01 Hope smartd[1067]: Device: /dev/sda [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 107 to 108
Sep 05 17:33:01 Hope smartd[1067]: Device: /dev/sdb [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 153 to 157
Sep 05 17:33:02 Hope smartd[1067]: Device: /dev/sdc [SAT], 1 Currently unreadable (pending) sectors
Sep 05 17:33:26 Hope kernel: [UFW BLOCK] IN=eth0 OUT= MAC=01:00:5e:00:00:01:44:fe:3b:c4:a4:0d:08:00 SRC=192.168.1.254 DST=224.0.0.1 LEN=36 TOS=0x00 PREC=0xC0 TTL=1 ID=0 PROTO=2
我以為硬碟太熱了。原來這些是索引值。
答案1
記憶體測試
您可能遇到硬體問題。
去https://www.memtest86.com/並免費下載/運行它們memtest
來測試您的記憶力。至少完成一次所有 4/4 測試,以確認良好的記憶力。這可能需要幾個小時才能完成。
交換
除非您休眠,否則您的交換分區太大。我們將用 4G /swapfile 取代它。
筆記rm
:和命令使用不當dd
可能會導致資料遺失。建議複製/貼上。
在裡面terminal
...
sudo swapoff -a # turn off swap
sudo rm -i /swapfile # remove old /swapfile
sudo dd if=/dev/zero of=/swapfile bs=1M count=4096
sudo chmod 600 /swapfile # set proper file protections
sudo mkswap /swapfile # init /swapfile
sudo swapon /swapfile # turn on swap
free -h # confirm 16G RAM and 4G swap
sudo -H gedit /etc/fstab
使用或編輯 /etc/fstab sudo pico /etc/fstab
。
確認 /etc/fstab 中的此 /swapfile 行...並確認沒有其他「交換」行...在此行中使用空格...確認沒有製表符...
/swapfile none swap sw 0 0
筆記:刪除其他現有的交換線。用於gparted
刪除/dev/sda5。
reboot # reboot and verify operation
更新#1:
memtest
運轉時凍結。懷疑 RAM 損壞,或需要將 RAM 重新插入插槽。 RAM 位於插槽 DIMM0-3 中。卸下 DIMM1-3 並重新測試memtest
。如果memtest
執行沒有錯誤,則在插槽 DIMM1 中重新新增一條 DIMM,然後重新測試,依此類推。
更新#2:
您的 sdc 驅動器似乎有一個或多個壞塊。我們來繪製一下地圖吧...
注意:不要中止壞塊掃描!
注意:不要對 SSD 進行壞塊操作
注意:首先備份您的重要文件!
注意:這將需要幾個小時
注意:您可能有待處理的硬碟故障
在「嘗試 Ubuntu」模式下啟動至 Ubuntu Live DVD/USB。
在terminal
...
sudo fdisk -l
# 辨識所有「Linux 檔案系統」分割區
sudo e2fsck -fcky /dev/sdXX
# 唯讀測試
或者
sudo e2fsck -fccky /dev/sdXX
# 無損讀/寫入測試(受到推崇的)
-k 很重要,因為它保存先前的壞塊表,並將任何新的壞塊添加到該表中。如果沒有 -k,您將丟失所有先前的壞塊資訊。
-fccky 參數...
-f Force checking even if the file system seems clean.
-c This option causes e2fsck to use badblocks(8) program to do
a read-only scan of the device in order to find any bad blocks.
If any bad blocks are found, they are added to the bad block
inode to prevent them from being allocated to a file or direc‐
tory. If this option is specified twice, then the bad block scan
will be done using a non-destructive read-write test.
-k When combined with the -c option, any existing bad blocks in the
bad blocks list are preserved, and any new bad blocks found by
running badblocks(8) will be added to the existing bad blocks
list.
-y Assume an answer of `yes' to all questions; allows e2fsck to be
used non-interactively. This option may not be specified at the
same time as the -n or -p options.
更新#3:
刪除 /dev/sda5 後,您的 HDD 上留下了 28G 未分配的空間。您可以將該空間新增至 /dev/sda1。
確保您對重要的 Ubuntu 檔案有良好的備份,因為此過程可能會損壞或遺失資料。
請記住以下幾點:
始終以發出交換在任何已安裝的交換分割區上,並透過發出交換在同一個交換分割區上
A移動將滑鼠指標指向分區的中心並用手形遊標向左/向右拖曳來完成
A調整大小透過使用方向箭頭遊標將分區的左/右側拖曳到左/右來完成
如果任何分區不能移動/調整大小以圖形方式,您可能必須手動輸入所需的特定數字資料(除非我指示您這樣做,否則不要這樣做)
你開始任何移動/調整大小右鍵單擊主視窗下部窗格中的分區,然後從彈出式選單中選擇所需的操作,然後在新視窗中完成該操作移動/調整大小窗戶
請執行下列操作...
筆記:如果該過程不完全按照我概述的那樣進行,停止立即且不要繼續。
- 在“Try Ubuntu”模式下啟動至 Ubuntu Live DVD/USB
- 開始
gparted
- 刪除/dev/sda2 擴充分區
- 調整大小/dev/sda1 的右側一直到右側
- 點擊“應用”圖標