2011年4月1日 星期五

/dev/cciss/c0d0p* 是什麼意思

對於直接接SCSI卡的硬盤設備名叫/dev/sda,sdb.......
而HP DL 380 530 570 580 他們的硬盤是接到 RAID card上面的故叫 /dev/cciss/c0d0px
c0: first controller card
d0: first disk
p1: first partition
(他的分區命名類似BSD的分區)


usernam@hostname:~$ sudo fdisk /dev/cciss/c0d0

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (command 'c') and change display units to
         sectors (command 'u').

Command (m for help): m
Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the dos compatibility flag
   d   delete a partition
   l   list known partition types
   m   print this menu
   n   add a new partition
   o   create a new empty DOS partition table
   p   print the partition table
   q   quit without saving changes
   s   create a new empty Sun disklabel
   t   change a partition's system id
   u   change display/entry units
   v   verify the partition table
   w   write table to disk and exit
   x   extra functionality (experts only)

Command (m for help): p

Disk /dev/cciss/c0d0: 146.8 GB, 146778685440 bytes
255 heads, 32 sectors/track, 35132 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000eb9df

     所用裝置 Boot      Start         End      Blocks   Id  System
/dev/cciss/c0d0p1               1          62      248832   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/cciss/c0d0p2              62       35132   143087617    5  延伸的
Partition 2 does not end on cylinder boundary.
/dev/cciss/c0d0p5              62       35132   143087616   8e  Linux LVM

沒有留言:

張貼留言