centos - meetbill/op_practice_book GitHub Wiki
常见问题
1 分区时提示 You have not created a /boot/efi partition
EFI启动,安装的时候就需要建立 /boot/efi 分区
解决方法
- (1)进BIOS,把启动模式EFI改成Legacy
- (2)划分一个/boot/efi分区,挂载点/boot/efi,默认Efi System Partion类型(文件系统格式为FAT),大小200M,系统会自动强制为主分区
uefi启动模式只支持GPT分区方式,如果使用BIOS启动模式只能使MBR分区方式。
2 查看网卡UUID
虚拟机新增的网卡没有生成配置文件时可以使用
#nmcli con
3 从虚拟机硬盘文件.vmdk恢复数据
使用Disk Genius
可以直接打开虚拟硬盘文件并导出数据
选择【硬盘】-->【打开虚拟硬盘文件】进行导出下数据
4 Linux 开机提示 kernel panic - not syncing: Attempted to kill init!
- 开机到 grub 界面时按 e
- 选择 kernel 行按 e
- 在最后一行添加 enforcing=0 按回车保存退出
- 按 b 重启
5 messages 中报硬盘错误
Nov 8 21:17:12 MDS1 kernel: ata1.00: status: { DRDY ERR }
Nov 8 21:17:12 MDS1 kernel: ata1.00: error: { UNC }
Nov 8 21:17:12 MDS1 kernel: ata1.00: configured for UDMA/133
Nov 8 21:17:12 MDS1 kernel: ata1: EH complete
Nov 8 21:17:12 MDS1 kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
Nov 8 21:17:12 MDS1 kernel: ata1.00: irq_stat 0x40000001
Nov 8 21:17:12 MDS1 kernel: ata1.00: failed command: READ DMA
Nov 8 21:17:12 MDS1 kernel: ata1.00: cmd c8/00:08:00:02:00/00:00:00:00:00/e0 tag 0 dma 4096 in
Nov 8 21:17:12 MDS1 kernel: res 51/40:08:00:02:00/00:00:00:00:00/40 Emask 0x9 (media error)
Nov 8 21:17:12 MDS1 kernel: ata1.00: status: { DRDY ERR }
Nov 8 21:17:12 MDS1 kernel: ata1.00: error: { UNC }
Nov 8 21:17:12 MDS1 kernel: ata1.00: configured for UDMA/133
Nov 8 21:17:12 MDS1 kernel: sd 2:0:0:0: [sdk] Unhandled sense code
Nov 8 21:17:12 MDS1 kernel: sd 2:0:0:0: [sdk] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Nov 8 21:17:12 MDS1 kernel: sd 2:0:0:0: [sdk] Sense Key : Medium Error [current] [descriptor]
Nov 8 21:17:12 MDS1 kernel: Descriptor sense data with sense descriptors (in hex):
Nov 8 21:17:12 MDS1 kernel: 72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00
Nov 8 21:17:12 MDS1 kernel: 00 00 02 00
Nov 8 21:17:12 MDS1 kernel: sd 2:0:0:0: [sdk] Add. Sense: Unrecovered read error - auto reallocate failed
Nov 8 21:17:12 MDS1 kernel: sd 2:0:0:0: [sdk] CDB: Read(10): 28 00 00 00 02 00 00 00 08 00
Nov 8 21:17:12 MDS1 kernel: Buffer I/O error on device sdk, logical block 64
Nov 8 21:17:12 MDS1 kernel: ata1: EH complete