<p>I need to figure out the hard drive name for a solaris box and it is not clear to me what the device name is.  On linux, it would be something like <code>/dev/hda</code> or <code>/dev/sda</code>, but on solaris I am getting a bit lost in the partitions and what the device is called.  I think that entries like <code>/dev/rdsk/c0t0d0s0</code> are the partitions, how is the whole hard drive referenced?</p>

[{'answer_id': 78366, 'author': 'JBB', 'author_id': 12332, 'author_profile': 'https://Stackoverflow.com/users/12332', 'pm_score': 5, 'selected': True, 'text': '<p>/dev/rdsk/c0t0d0s0 means Controller 0, SCSI target (ID) 0, and s means Slice (partition) 0.</p>\n\n<p>Typically, by convention, s2 is the entire disk. This partition overlaps with the other partitions.</p>\n\n<p>prtvtoc /dev/rdsk/c0t0d0s0 will show you the partition table for the disk, to make sure.</p>\n'}, {'answer_id': 78372, 'author': 'raldi', 'author_id': 7598, 'author_profile': 'https://Stackoverflow.com/users/7598', 'pm_score': -1, 'selected': False, 'text': '<p>c0t0d0s0 <em>is</em> the entire drive. The breakdown is:</p>\n\n<p>/dev/[r]dsk/c <strong>C</strong> t <strong>A</strong> d0s <strong>S</strong></p>\n\n<p>...where <strong>C</strong> is the controller number, <strong>A</strong> is the SCSI address, and <strong>S</strong> is the "slice". Slice 0 is the whole disk; the other slices are the partition numbers.</p>\n\n<p>See <a href="http://www.washington.edu/R870/DevicesDrivers.html" rel="nofollow noreferrer">this</a> for more info.</p>\n'}, {'answer_id': 79899, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': -1, 'selected': False, 'text': '<p>cXtYdZs2 is the whole drive. period.</p>\n'}, {'answer_id': 391942, 'author': 'tpgould', 'author_id': 32161, 'author_profile': 'https://Stackoverflow.com/users/32161', 'pm_score': 2, 'selected': False, 'text': "<p>What do you want to do to the whole disk? Look at the EXAMPLES section of the man page for the command in question to see how much of a disk name the command requires.</p>\n\n<p>zpool doesn't require a partition, as in: c0t0d0\nnewfs does: c0t0d0s0\ndd would use the whole disk partition: c0t0d0s2</p>\n\n<p>Note: s2 as the entire disk is just a convention. A root user can use the Solaris format command and change the extent of any of the partitions.</p>\n"}, {'answer_id': 657320, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 1, 'selected': False, 'text': '<p>The comments about slice 2 are only correct for drives with an SMI label.</p>\n\n<p>If the drive is greater than 1TB, or if the drive has been used for ZFS, the drive will have an EFI label and slice 2 will NOT be the entire disk. With an EFI label, slice 2 is "just another slice". You would then refer to the whole disk by using the device name without a slice, e.g. c0t0d0.</p>\n'}, {'answer_id': 8568676, 'author': 'jlliagre', 'author_id': 211665, 'author_profile': 'https://Stackoverflow.com/users/211665', 'pm_score': 2, 'selected': False, 'text': "<p>If you run Solaris on non SPARC hardware and don't use EFI, the whole hard drive is not <code>c0t0d0s2</code> but <code>c0t0d0p0</code>, <code>s2</code> is in that case just the Solaris primary partition. </p>\n"}, {'answer_id': 19933001, 'author': 'user2983806', 'author_id': 2983806, 'author_profile': 'https://Stackoverflow.com/users/2983806', 'pm_score': 1, 'selected': False, 'text': '<p>There are two types for disk label, one is SMI(vtoc), the other is GPT(EFI).</p>\n\n<p>On X86 platform and the disk is SMI labeled(default behavior):\ncXtXdXp0 is the whole physical disk\ncXtXdXp1-cXtXdXp4 are primary partitions, included the solaris partitions.</p>\n\n<p>cXtXdXs0-cXtXdXs8 are the partitions(slices) of the activate Solaris partitions.\ncXtXdXs2 is the whole activate Solaris partition, maybe not the whole disk.</p>\n\n<p>Hope I am clear.</p>\n\n<p>/Meng</p>\n'}, {'answer_id': 64383384, 'author': 'Kim.K.H', 'author_id': 7681987, 'author_profile': 'https://Stackoverflow.com/users/7681987', 'pm_score': 0, 'selected': False, 'text': '<p>C0 - Controller\nT0 - Target\nD0 - Disk\nS- - Slice</p>\n'}]
['https://Stackoverflow.com/questions/78336', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/13912/']