linux系统引导流程(7)

发布时间:2021-06-08

linux系统引导流程

另两个应用

Dmesg 内核驱动硬件的信息

[root@localhost ~]# dmesg | grep sda

SCSI device sda: 20971520 512-byte hdwr sectors (10737 MB)

sda: Write Protect is off

sda: Mode Sense: 61 00 00 00

sda: cache data unavailable

sda: assuming drive cache: write through

SCSI device sda: 20971520 512-byte hdwr sectors (10737 MB)

sda: Write Protect is off

sda: Mode Sense: 61 00 00 00

sda: cache data unavailable

sda: assuming drive cache: write through

sda: sda1 sda2 sda3 sda4 < sda5 >

sd 0:0:0:0: Attached scsi disk sda

SELinux: initialized (dev sda2, type ext3), uses xattr

EXT3 FS on sda2, internal journal

EXT3 FS on sda5, internal journal

SELinux: initialized (dev sda5, type ext3), uses xattr

EXT3 FS on sda1, internal journal

SELinux: initialized (dev sda1, type ext3), uses xattr

Adding 2096472k swap on /dev/sda3. Priority:-1 extents:1 across:2096472k

通过这个命令可以判断硬件是否可以被识别

/var/log 这个文件里放的都是系统的日志,文件

Grep sshd /var/log/messages

精彩图片

热门精选

大家正在看