Hard Drive Device Name in Solaris

I need to find out the hard drive name for the Solaris window, and I don’t understand what the name of the device is. In linux it will be something like /dev/hda or /dev/sda , but on solaris I get a little lost in partitions and what is called a device. I think that entries like /dev/rdsk/c0t0d0s0 are partitions, which is what the entire hard drive refers to?

+7
solaris
source share
7 answers

/ dev / rdsk / c0t0d0s0 means Controller 0, target SCSI (ID) 0 and s means Slice (partition) 0.

Usually, by convention, s2 is the entire disk. This section overlaps with other sections.

prtvtoc / dev / rdsk / c0t0d0s0 will show you the partition table for the disk.

+11
source share

What do you want to do for the whole disk? See the "EXAMPLES" section of the man page for the corresponding command to find out how much the command requires from the disk name.

zpool does not require partitioning, as in: c0t0d0 newfs does: c0t0d0s0 dd will use the entire disk partition: c0t0d0s2

Note: s2, since the entire drive is just a convention. The root user can use the Solaris format command and resize any of the partitions.

+2
source share

If you run Solaris on non-SPARC equipment and do not use EFI, the entire hard drive is not c0t0d0s2 , but c0t0d0p0 , s2 - this is only the main Solaris partition.

+2
source share

There are two types of disk labels: one is SMI (vtoc), the other is GPT (EFI).

On the X86 platform and on the disk, SMI is indicated (default behavior): cXtXdXp0 - the entire physical disk cXtXdXp1-cXtXdXp4 are the primary partitions that include the tanning beds.

cXtXdXs0-cXtXdXs8 are partitions (slices) of activated Solaris partitions. cXtXdXs2 is the entire Solaris partition, perhaps not the entire disk.

I hope I get it.

/ Maine

+1
source share

Slice 2 comments are valid only for drives labeled SMI.

If the drive is larger than 1 TB, or if the drive is used for ZFS, the drive will be labeled EFI, and slice 2 will NOT be a full drive. Using the EFI tag, slice 2 is “just another piece”. Then you must access the entire drive using the device name without a fragment, for example. c0t0d0.

0
source share

c0t0d0s0 - the entire drive. Failure:

/ dev / [r] dsk / c C t A d0s S

... where C is the controller number, A is the SCSI address, and S is the slice. Slice 0 - the entire disk; other fragments are section numbers.

For more information, see.

-2
source share

cXtYdZs2 is the entire disk. period.

-2
source share

All Articles