ITPub博客

首页 > Linux操作系统 > Linux操作系统 > /dev目录下找不到设备文件

/dev目录下找不到设备文件

原创 Linux操作系统 作者:leon830216 时间:2014-03-15 10:43:40 0 删除 编辑
http://publib.boulder.ibm.com/infocenter/dsichelp/ds6000ic/index.jsp?topic=%2Fcom.ibm.storage.smric.help.doc%2Ff2c_linuxdevnaming_2hsag8.html
--
For Red Hat, the kernel automatically creates the device files for 128 devices. For SUSE, there are only special device files for the first 16 disks. You must create the device files for additional disks by using the mknod command. For 2.6 kernels, the special device files are only created when they are detected and recognized by the kernel. The /proc/partitions file lists all the ‘sd’ devices that are recognized by the SCSI disk driver, including the sd name, major number, minor number, and size of each disk device.
--

Linux系统启动是会自动加载一些设备,并在/dev目录下创建相应的设备文件,
如果没有被自动创建,可通过mknod命令创建。scsi设备号可通过cat /proc/partitions命令获得。

mknod [设备文件名] [设备类型] [主设备号] [次设备号]
mknod /dev/sde b 8 96


其他显示磁盘信息的命令:

lsblk

lsscsi
fdisk
sfdisk
ll /dev/sd*

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/22558114/viewspace-1122101/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: RAC相关概念
请登录后发表评论 登录
全部评论

注册时间:2009-09-18

  • 博文量
    160
  • 访问量
    380471