/dev目錄下找不到裝置檔案

leon830216發表於2014-03-15
%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部落格 ” ,連結:http://blog.itpub.net/22558114/viewspace-1122101/,如需轉載,請註明出處,否則將追究法律責任。

相關文章