Explain disk partitions!


 
Thread Tools Search this Thread
Operating Systems Solaris Explain disk partitions!
# 1  
Old 09-10-2011
Explain disk partitions!

Hi friends!
I hope you are all fine. Before I put forward my question, please have a look at the following commands and their ouputs!

Code:
# df -h
Filesystem             size   used  avail capacity  Mounted on
rpool/ROOT/s10x_u9wos_14a
                        36G   3.6G    31G    11%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                   906M   384K   906M     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
                        35G   3.6G    31G    11%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   906M    36K   906M     1%    /tmp
swap                   906M    28K   906M     1%    /var/run
rpool/export            36G    23K    31G     1%    /export
rpool/export/home       36G    21K    31G     1%    /export/home
rpool                   36G    32K    31G     1%    /rpool
#

And

Code:
 
# format
Searching for disks...done
 
AVAILABLE DISK SELECTIONS:
       0. c0d1 <DEFAULT cyl 4862 alt 2 hd 255 sec 63>
          /pci@0,0/pci-ide@1f,1/ide@0/cmdk@1,0
Specify disk (enter its number):

And

Code:
# ls /dev/dsk/c*
/dev/dsk/c0d1p0     /dev/dsk/c0d1s14    /dev/dsk/c1t0d0p1   /dev/dsk/c1t0d0s15  /dev/dsk/c2t0d0p2   /dev/dsk/c2t0d0s2
/dev/dsk/c0d1p1     /dev/dsk/c0d1s15    /dev/dsk/c1t0d0p2   /dev/dsk/c1t0d0s2   /dev/dsk/c2t0d0p3   /dev/dsk/c2t0d0s3
/dev/dsk/c0d1p2     /dev/dsk/c0d1s2     /dev/dsk/c1t0d0p3   /dev/dsk/c1t0d0s3   /dev/dsk/c2t0d0p4   /dev/dsk/c2t0d0s4
/dev/dsk/c0d1p3     /dev/dsk/c0d1s3     /dev/dsk/c1t0d0p4   /dev/dsk/c1t0d0s4   /dev/dsk/c2t0d0s0   /dev/dsk/c2t0d0s5
/dev/dsk/c0d1p4     /dev/dsk/c0d1s4     /dev/dsk/c1t0d0s0   /dev/dsk/c1t0d0s5   /dev/dsk/c2t0d0s1   /dev/dsk/c2t0d0s6
/dev/dsk/c0d1s0     /dev/dsk/c0d1s5     /dev/dsk/c1t0d0s1   /dev/dsk/c1t0d0s6   /dev/dsk/c2t0d0s10  /dev/dsk/c2t0d0s7
/dev/dsk/c0d1s1     /dev/dsk/c0d1s6     /dev/dsk/c1t0d0s10  /dev/dsk/c1t0d0s7   /dev/dsk/c2t0d0s11  /dev/dsk/c2t0d0s8
/dev/dsk/c0d1s10    /dev/dsk/c0d1s7     /dev/dsk/c1t0d0s11  /dev/dsk/c1t0d0s8   /dev/dsk/c2t0d0s12  /dev/dsk/c2t0d0s9
/dev/dsk/c0d1s11    /dev/dsk/c0d1s8     /dev/dsk/c1t0d0s12  /dev/dsk/c1t0d0s9   /dev/dsk/c2t0d0s13
/dev/dsk/c0d1s12    /dev/dsk/c0d1s9     /dev/dsk/c1t0d0s13  /dev/dsk/c2t0d0p0   /dev/dsk/c2t0d0s14
/dev/dsk/c0d1s13    /dev/dsk/c1t0d0p0   /dev/dsk/c1t0d0s14  /dev/dsk/c2t0d0p1   /dev/dsk/c2t0d0s15
#

Now my question is that I have only one single IDE harddisk and IDE CD-ROM drive, why is /dev/dsk directory showing so many disks and slices? I had Solaris 10 automatically partition my harddisk during the installation with ZFS. s1, s2... sx, mean slices or partitions, then what does p1,p2..px mean? Please don't get mad at me, I am a novice and in the process of learning.
And one more thing, I have just purchased the book titled, "Solaris 10: The complete Reference 2005, by McGraw Hill". Here is a paragraph from the book which says.

Code:
 
Disk Partitions
If you consent to using fdisk, you will see a screen similar to the foll
Total disk size is 2048 cylinders
Cylinder size is 4032 (512 byte) blocks
Cylinders
Partition  Status  Type  Start  End  Length  %
=========  ======  ====  =====  ==== ======  ===
1                  UNIX   0     1023  1024   50
2                  DOS    1024  2047  1024   50
SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Exit (update disk configuration and exit)
5. Cancel (exit without updating disk configuration)
Enter Selection:

I didn't face such a thing about Fdisk during the installation of Solaris 10, what is this book talking about then?
# 2  
Old 09-10-2011
Quote:
Originally Posted by gabam
Now my question is that I have only one single IDE harddisk and IDE CD-ROM drive, why is /dev/dsk directory showing so many disks and slices?
It shows two disks, which is what you have, and either used or potential partitions and slices.
Quote:
s1, s2... sx, mean slices or partitions, then what does p1,p2..px mean?
Slices and partitions aren't interchangeable terms. s0, s1, ..., s15 means slice, i.e. kind of logical partitions used by Solaris and *BSDs (where they are called partitions). You can have up to 16 on x86, they all appear here.
p0 means the whole disk
p1 to p4 means the four BIOS primary partition.
Quote:
I didn't face such a thing about Fdisk during the installation of Solaris 10, what is this book talking about then?
You answered your own question here:
Quote:
I had Solaris 10 automatically partition my harddisk during the installation with ZFS.
As you choose to have the installer partition your disk, you weren't presented that menu.
# 3  
Old 09-11-2011
Code:
 
 
As you choose to have the installer partition your disk, you weren't presented that menu.

I installed Oracle Solaris 10 x86 again, this time creating partitions manually, still I didn't see that menu. Maybe Oracle Solaris 10 is different than Sun Solaris 10!!!
# 4  
Old 09-11-2011
You are using a 6 years old book. There have been several updates to Solaris 10 since 2005.
Why not using the official documentation ? Oracle Solaris 10 9/10 Installation Guide: Basic Installations - Oracle Solaris 10 9/10 Installation Guide: Basic Installations
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Fdisk partitions on boot disk and disaster recovery

I'm preparing to recover a Oracle Fire X4170 server in a disaster recovery test at a different location than in prod. I have some questions about fdisk partitions. I'm using Solaris 10 update 10. On my prod server, the boot disk has 2 partitions, diagnostic and solaris. Is the diagnostic... (1 Reply)
Discussion started by: TKD
1 Replies

2. Solaris

How to modify a disk with mounted partitions?

Hi Guys, I was wondering; can a disk with mounted partitions be modified? If yes, how can this be done? Thanks lots (1 Reply)
Discussion started by: cjashu
1 Replies

3. UNIX for Dummies Questions & Answers

Partitions.

Hi All, My colleague says . On some boxes we have /var/,/opt are inside root and on some they are not on root they are separately. So please any one explain me what actually the difference is. Thanks is Advance. (3 Replies)
Discussion started by: rama krishna
3 Replies

4. UNIX for Advanced & Expert Users

Partitions

Hello masters, Actually, i am user of Ubuntu, but I want to use Debian too. I have a computer with a product key for w7 so i will use too, only for games... The structure I have thought is the next with 1TiB of capacity. Primary: 50 GB NTFS for W7 Extended: Logical: 20 GB FAT32... (3 Replies)
Discussion started by: albertogarcia
3 Replies

5. SCO

create disk partitions in sco

i have one 9 gb hdd having root 2 gb fs now i want to create additional 1gb fs in remaining space unix partation created in entired 9gb thanx (1 Reply)
Discussion started by: sudhir69
1 Replies

6. Solaris

How to create new partitions in solaris,from the raw disk?

Hi all, I would like to know how to make new partitions.... I currently have allocated 60G for various slices (I have totally used 4 out of 7 available slices... I am running only solaris on my box. My plan is to have entire disk dedicated to solaris and run other OS from within... (19 Replies)
Discussion started by: wrapster
19 Replies

7. UNIX for Dummies Questions & Answers

Cannot label disk when partitions are in use as described

:confused: Hello, In my Solaris system, I want to resize my mounted home directory slice. 1.I unmount the slice, #umount /export/home 2.Resize the directory #format>partition> 3.#format>label 4.#format>Cannot label disk when partitions are in use as described. So, How can label ? Thanks (2 Replies)
Discussion started by: XNOR
2 Replies

8. UNIX for Dummies Questions & Answers

unix partitions

how to access/sliceing different partions using divvy (1 Reply)
Discussion started by: sobin
1 Replies

9. UNIX for Advanced & Expert Users

partitions

HI. i installed solaris on a x86 machine and i only partition for 4 gig when it suppose to be 8. i only using 4 gig right now how can i start using the other four. please help, thanks in advance Meeh (2 Replies)
Discussion started by: souldier
2 Replies
Login or Register to Ask a Question