Mounting filesystems
From Genunix
Mounting filesystems
On Solaris, hard disks are addressed differently from Linux. Some typical device names are:
/dev/dsk/c0t0d0s0
/dev/dsk/c2t4d0s1
/dev/dsk/c0d1p0
/dev/dsk/c1d0p2:2
- c0
- Specifies the controller index. c0 will refer to the first controller.
- t0
- Specifies the SCSI Target id. Also used on ATAPI and USB devices. (/dev/sda on linux)
- d0
- Specifies the SCSI Logical unit (LUN).
- s0
- The slice number from a SunOS disk label. Solaris x86 supports slices s0-s15. Generally s2 refers to the rest of the disk.
- p0
- Solaris x86 *only* p0 refers to the whole physical disk. p1-p4 refer to the 4 primary partitions.
- :l
- Solaris x86 *only* Refers to the FAT partition number. FAT partitions will be numbered as p0:1, p0:2 etc. If your p4 is the extended partition, then p4:1, p4:2 etc refer to FAT partitions in the extended partition.
Mounting Partitions
The mount command on Solaris requires the following syntax:
# mount [options] devicefile mountpoint
Unlike in Linux, the mountpoint may only be an absolute path.
For example: To mount the 2nd FAT partition on the extended partition on the second IDE hard disk to /mnt/fat2 , use the following command:
# mount -F pcfs /dev/dsk/c0d1p2:2 /mnt/fat2
The -F option specifies the filesystem type. Note pcfs is the equivalent for msdos and vfat on Linux.
