centos找不到新建的硬盘信息

如果在系统开启之前的硬盘信息,可以通过 fdisk -l查看。

如果系统启动之后,再添加的硬盘信息可能通过 fdisk -l查询不到。

此时重新扫面:

root@localhost /\]# echo "- - - "\> /sys/class/scsi_host/host0/scan \[root@localhost /\]# echo "- - - "\> /sys/class/scsi_host/host1/scan \[root@localhost /\]# echo "- - - "\> /sys/class/scsi_host/host2/scan 再查看: ```bash [root@localhost /]# fdisk -l Disk /dev/sda: 21.5 GB, 21474836480 bytes, 41943040 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0x000c9cf0 Device Boot Start End Blocks Id System /dev/sda1 * 2048 2099199 1048576 83 Linux /dev/sda2 2099200 41943039 19921920 8e Linux LVM Disk /dev/sdb: 21.5 GB, 21474836480 bytes, 41943040 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mapper/centos-root: 18.2 GB, 18249416704 bytes, 35643392 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mapper/centos-swap: 2147 MB, 2147483648 bytes, 4194304 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes [root@localhost /]# ```

相关推荐
xu_yule3 分钟前
Linux_13(多线程)页表详解+轻量级进程+pthread_create
linux·运维·服务器
江湖有缘2 小时前
Linux系统之htop命令基本使用
linux·运维·服务器
CodeByV2 小时前
【Linux】基础 IO 深度解析:文件、描述符与缓冲区
linux
u***32435 小时前
使用python进行PostgreSQL 数据库连接
数据库·python·postgresql
青瓷程序设计8 小时前
动物识别系统【最新版】Python+TensorFlow+Vue3+Django+人工智能+深度学习+卷积神经网络算法
人工智能·python·深度学习
tobebetter95278 小时前
How to manage python versions on windows
开发语言·windows·python
F_D_Z8 小时前
数据集相关类代码回顾理解 | sns.distplot\%matplotlib inline\sns.scatterplot
python·深度学习·matplotlib
xu_yule8 小时前
Linux_12(进程信号)内核态和用户态+处理信号+不可重入函数+volatile
linux·运维·服务器
虾..8 小时前
Linux 环境变量&&进程优先级
linux·运维·服务器
i***t9198 小时前
Linux下MySQL的简单使用
linux·mysql·adb