Linux 每此次开机时 eth0 消失(详见下面),求解决方法!

2020-04-20 16:24:46 +08:00
 edr1412

ifconfig 显示只有 lo

ifconfig -a 显示 lo,eth0 和 wlan0

还导致我的 gnome 桌面启动不了

进 recovery 可以 service network-manager restart 或者 dpkg-reconfigure network-manager 来开启 eth0,然而重启后又老样子了

难道是启动这个的服务坏了?

系统老是莫名其妙地坏,昨天还好好的。。

3388 次点击
所在节点    Linux
16 条回复
edr1412
2020-04-20 16:34:28 +08:00
求高人指教
AmrtaShiva
2020-04-20 17:40:26 +08:00
什么网卡?
julyclyde
2020-04-20 17:43:46 +08:00
看看日志
luhuisicnu
2020-04-20 17:48:47 +08:00
网卡要配置开机启动,可以解决开机没有执行启动操作的问题
启动中报错,则要根据报错日志来解决了
Cyshall
2020-04-20 18:07:46 +08:00
systemctl enable network-manager 试试看?
edr1412
2020-04-20 18:11:22 +08:00
无脑 apt full-upgrade 解决了 apt 提示了几个 ELF 文件损坏 重装了几个 so 文件可以进去了
问题是 so 文件为什么自己会坏?而且我的系统好像一运行 find fd du 之类的就会变成只读文件系统,只能重启 fsck 解决,偶尔不能彻底就会出现这种问题,真是够了
不知道是不是硬盘有问题,或者难道是以 root 登录的问题?
这贴没人看,等下开帖再问一下
uprightzy
2020-04-20 18:16:10 +08:00
ifcfg-eth0 配置文件里加上 ONBOOT=yes 试试?不过就算没启动应该也不会导致 gnome 进不去
edr1412
2020-04-20 18:24:20 +08:00
@uprightzy 我好像没这文件。。
比起这个,可以看一下 6 楼,gnome 崩溃应该是一个叫 LibGL.so.1.7.0 的文件的锅,重装后基本好了。我更想知道为什么老是有文件损坏,感觉大家都没出过这种问题 QAQ
ysc3839
2020-04-20 19:14:12 +08:00
@edr1412 查一下硬盘 SMART 看看是不是有什么问题?
AmrtaShiva
2020-04-20 19:55:42 +08:00
该换硬盘了
edr1412
2020-04-20 22:04:38 +08:00
@ysc3839 PASSED 了 参数不会看啊
=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

SMART/Health Information (NVMe Log 0x02)
Critical Warning: 0x00
Temperature: 35 Celsius
Available Spare: 100%
Available Spare Threshold: 10%
Percentage Used: 7%
Data Units Read: 26,347,501 [13.4 TB]
Data Units Written: 21,055,362 [10.7 TB]
Host Read Commands: 439,120,754
Host Write Commands: 592,642,769
Controller Busy Time: 1,560
Power Cycles: 2,468
Power On Hours: 1,062
Unsafe Shutdowns: 71
Media and Data Integrity Errors: 0
Error Information Log Entries: 4,735
Warning Comp. Temperature Time: 0
Critical Comp. Temperature Time: 0
Temperature Sensor 1: 35 Celsius
Temperature Sensor 2: 39 Celsius

硬盘也就用了 2 年多(悲)
ysc3839
2020-04-20 23:14:17 +08:00
@edr1412 我也不会看……
HEROic
2020-04-21 09:32:32 +08:00
@edr1412 smartctl -a /dev/sdx 看盘完整信息
edr1412
2020-04-21 23:32:42 +08:00
@HEROic 我这输出差不多就这些,可能版本不对?
(而且是 nvme 的盘)
完整输出如下,看不出来什么问题啊
~➤ smartctl -a /dev/nvme0
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.5.0-kali1-amd64] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number: SAMSUNG MZVLW256HEHP-00000
Serial Number: S33VNX0J830662
Firmware Version: CXB7401Q
PCI Vendor/Subsystem ID: 0x144d
IEEE OUI Identifier: 0x002538
Total NVM Capacity: 256,060,514,304 [256 GB]
Unallocated NVM Capacity: 0
Controller ID: 2
Number of Namespaces: 1
Namespace 1 Size/Capacity: 256,060,514,304 [256 GB]
Namespace 1 Utilization: 245,101,670,400 [245 GB]
Namespace 1 Formatted LBA Size: 512
Namespace 1 IEEE EUI-64: 002538 b871b10881
Local Time is: Tue Apr 21 23:17:42 2020 CST
Firmware Updates (0x16): 3 Slots, no Reset required
Optional Admin Commands (0x0017): Security Format Frmw_DL Self_Test
Optional NVM Commands (0x001f): Comp Wr_Unc DS_Mngmt Wr_Zero Sav/Sel_Feat
Warning Comp. Temp. Threshold: 68 Celsius
Critical Comp. Temp. Threshold: 71 Celsius

Supported Power States
St Op Max Active Idle RL RT WL WT Ent_Lat Ex_Lat
0 + 7.60W - - 0 0 0 0 0 0
1 + 6.00W - - 1 1 1 1 0 0
2 + 5.10W - - 2 2 2 2 0 0
3 - 0.0400W - - 3 3 3 3 210 1500
4 - 0.0050W - - 4 4 4 4 2200 6000

Supported LBA Sizes (NSID 0x1)
Id Fmt Data Metadt Rel_Perf
0 + 512 0 0

=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

SMART/Health Information (NVMe Log 0x02)
Critical Warning: 0x00
Temperature: 28 Celsius
Available Spare: 100%
Available Spare Threshold: 10%
Percentage Used: 7%
Data Units Read: 26,378,665 [13.5 TB]
Data Units Written: 21,075,815 [10.7 TB]
Host Read Commands: 439,576,387
Host Write Commands: 592,951,401
Controller Busy Time: 1,562
Power Cycles: 2,470
Power On Hours: 1,064
Unsafe Shutdowns: 71
Media and Data Integrity Errors: 0
Error Information Log Entries: 4,737
Warning Comp. Temperature Time: 0
Critical Comp. Temperature Time: 0
Temperature Sensor 1: 28 Celsius
Temperature Sensor 2: 35 Celsius

Error Information (NVMe Log 0x01, max 64 entries)
Num ErrCount SQId CmdId Status PELoc LBA NSID VS
0 4737 0 0x000a 0x4004 - 0 0 -
1 4736 0 0x000a 0x4004 - 0 0 -
2 4735 0 0x000a 0x4004 - 0 0 -
3 4734 0 0x000a 0x4004 - 0 0 -
4 4733 0 0x000a 0x4004 - 0 0 -
5 4732 0 0x000a 0x4004 - 0 0 -
6 4731 0 0x000a 0x4004 - 0 0 -
7 4730 0 0x000a 0x4004 - 0 0 -
8 4729 0 0x000a 0x4004 - 0 0 -
9 4728 0 0x000a 0x4004 - 0 0 -
10 4727 0 0x000a 0x4004 - 0 0 -
11 4726 0 0x000a 0x4004 - 0 0 -
12 4725 0 0x000a 0x4004 - 0 0 -
13 4724 0 0x000a 0x4004 - 0 0 -
14 4723 0 0x000a 0x4004 - 0 0 -
15 4722 0 0x000a 0x4004 - 0 0 -
... (48 entries not shown)
edr1412
2020-04-21 23:34:17 +08:00
Error Information Log Entries 倒是启动一次就加 1 呢。。
HEROic
2020-04-22 19:44:29 +08:00
@edr1412 这个 error log 没影响。 smarctl 好像对 nvme 固态支持不大好。。下面那些参数不是厂家看不出来谁说谁 把盘移到 win 下扫下坏块?用厂家官方工具检查下?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/664331

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX