打印分区信息
首先运行不带参数的prtpart以获得磁盘的物理设备名称,通常是cNdNp0。
# prtpartFdisk information for device /dev/rdsk/c0d0p0Block Size : 512 bytesController : ideDisk : cmdkCapacity : 93 GB# start block # nblocks startCylSecHd endCylSecHd OSType 1: 0000000063 0102398247 0/ 1/ 1 ff/ff/fe IFS: NTFS 2: 0102398310 0092952090 ff/ff/fe ff/ff/fe Solaris x86
这里磁盘的ID是c0d0p0,再运行如下命令以打印所有的逻辑设备和分区类型
# prtpart /dev/rdsk/c0d0p0 -ldevsFdisk information for device /dev/rdsk/c0d0p0** NOTE **/dev/dsk/c0d0p0 - Physical device referring to entire physical disk/dev/dsk/c0d0p1 - p4 - Physical devices referring to the 4 primary partitions/dev/dsk/c0d0p5 ... - Virtual devices referring to logical partitionsVirtual device names can be used to access EXT2 and NTFS on logical partitions/dev/dsk/c0d0p1 IFS: NTFS/dev/dsk/c0d0p2 Solaris x86
Mount分区
Mount NTFS分区
# mount -F ntfs /dev/dsk/c0d0p1 /Windows
Mount FAT32 / FAT16
# mount -F pcfs /dev/dsk/c0d0p /Windows
Mount Ext2 / Ext3
# mount -F ext2fs /dev/dsk/c0d0p /Linux