利用solaris的mknod變更format(陣列裝置識別符號)

wisdomone1發表於2009-11-12
bash-3.00# ls -l /dev/rdsk/c2t1d0s0  --rac2上面的裝置,檢視底層/devices裝置,找到主和次裝置號
lrwxrwxrwx   1 root     root          89 11月  5日 11:15 /dev/rdsk/c2t1d0s0 -> ../../devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w203400a0b8391069,0:a,raw
bash-3.00# ls -l /devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w203400a0b8391069,0:a,raw
crw-r-----   1 640      oinstall 118, 16 11月 11日 17:01 /devices/pci@7c0/pci@0/pci@1/pci@0,2/SUNW,qlc@1/fp@0,0/ssd@w203400a0b8391069,0:a,raw  --注意塗紅部分為主,次裝置號

然事利用mknod變更此裝置的裝置(用format)識別符號
mknod /dev/rdsk/同於rac1上面(用format)看到的裝置識別符號名字  c 118  16



下附上官方說明文件
bash-3.00# man mknod
正在重新格式化頁面。請等待... 完成

System Administration Commands                          mknod(1M)

NAME
     mknod - make a special file

SYNOPSIS
     mknod name b major minor

     mknod name c major minor

     mknod name p

DESCRIPTION
     mknod makes a directory entry for a special file.

OPTIONS
     The following options are supported:

     b        Create a block-type special file.

     c        Create a character-type special file.

     p        Create a FIFO (named pipe).

OPERANDS
     The following operands are supported:

     major    The major device number.

     minor    The minor device number; can be either  decimal  or
              octal.  The  assignment  of major device numbers is
              specific to each system. You must be the super-user
              to use this form. of the command.

     name     A special file to be created.

USAGE
     See largefile(5) for the  description  of  the  behavior  of
     mknod  when  encountering  files  greater than or equal to 2
     Gbyte ( 2**31 bytes).

SunOS 5.10          Last change: 16 Sep 1996                    1

System Administration Commands                          mk




來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9240380/viewspace-619528/,如需轉載,請註明出處,否則將追究法律責任。

相關文章