Solaris(x86 64) Disk Partition

Hi, in this article I will explain the disk configuration on our Solaris machine. I do the operations on Solaris x86 64 operating system on Oracle Virtualbox. The situation for SPARC architecture may be different.

The disk structure in Solaris is different from operating systems like Ubuntu, RedHat, so there are no sda, sba, sda1 disk formatting here for new users.

When those familiar with the Linux operating system variants want to see unformatted or formatted disks

ls -ltrh /dev/sd*

However, there are no such structures in the saris / dev in this way. Oralce called it three different names

  • Logical device name
  • Physical device name
  • Instance name


Locigal Device Name

Users (if authorized) can access these logical names via commands via the terminal.  All logical devices are kept under / dev, / dev / dsk is the directory where the names of the logical devices are kept / dev / rdsk is the directory where the names of the physical devices are held.



For example, all logical volumes started with c, followed by the disk number or partition number if the physical number and drive number are the last. Comparing to Linux, starting with c1d, sda,
We can call sdc starting with c1t and sdc starting with c2d.
Physical device name

Physical addresses of disks

ls -la can be accessed from the / dev / rdsk directory.


The arrows indicate the physical addresses of our disks, the logical addresses indicate these physical addresses with the symbolic link. We can also learn the physical address of a logical unit.

ls -la /dev/dsk/c1d0

I will add a disk to my virtual machine and then mount it to a lost directory.

For this process, we will enter the format shell that is ready on solaris with the format command in the terminal and we will perform our operations there.

I have already used the disks 0,1 and 2 I have not formatted the 3rd yet, let’s continue with 3

On the upper side, we say that we have selected our logical disk named c2d1, and on the lower side we can see what can be done with the FORMAT menu.

Let’s write fdisk and start formatting the disk

He asks us whether to accept partition as default or we can set it manually or leave it automatically with y, first of all I will do it manually
Since there is no partition already formatted, let’s type 1 and continue, then I chose SOLARIS2 in this step that will ask us about our partition type, and you can determine according to your wishes and needs.
In the last step, the cylinders will ask us to determine the size. We can use our entire disk for a single partition, or if we want to do more than one partition, we use up to a certain range and leave the other ranges empty. For example, I wrote 1-2087 because I will use them all.
As you can see in the picture, the disc is active and they are all used. Now it’s time to mount a directory with this disk.
In / etc / vfstab we need to add the directory to mount.
vim /etc/vfstab

mount /setupORA

If you receive an error such as mount: / dev / dsk / c2d1s2 is not this fstype
newfs /dev/dsk/c2d1s2
newfs: construct a new file system /dev/rdsk/c2d1s2: (y/n)? y

If you get an error, close the line you added in your vfstab file and run it

mount /setupORA

Your mount seems to have been successful, I hope it was useful to discuss.

About Deniz Parlak

Hi, i’m Security Data Scientist & Data Engineer at My Security Analytics. I have experienced Advance Python, Machine Learning and Big Data tools. Also i worked Oracle Database Administration, Migration and upgrade projects. For your questions [email protected]

Leave a Reply

Your email address will not be published. Required fields are marked *