How to Create Paritition and Mount in Solaris 10?
Partitions are called 'Slices' in Solaris
df
df -h
VTOC = volume Table of contents
<FDISK not required in SPARC, because of using SCSI>
***SLICES rules in x86 using VTOC***
~ Maximum 10 slices (0 to 9)
~ Slices 2,8,9 are reserved
~ slice 2 - VTOC (Disk's label and Slices OS) So can't change
~ slices 0,1,3,4,5,6,7 allowed to used (total 7)
/dev/dsk/c0t0d0s0
's0' is reserved for root mount point
run 'df' to check allocations
prtvtoc /dev/dsk/c0t0d0s0
/dev/dsk/c0t0d0s0
c0 : First controller
t0 : First Target (Only of SCSI Used)
d0 : First DISK
s0 : First Slice (1st partition)
ls -l /dev/dsk/c0t0d0*
format
0
FORMAT MENU:
q
cat /etc/vfstab
format
0
format> disk
format> ?
format> current
format> fdisk
CREATE PARTITION
DELETE PARTITION
..SO ON..
delete first if any...
no partitions
format> fdisk
y
Got first parition
5
format> partition
partition> print
4 Unassigned wm 0 - 0
partition> 4
Partition id tag[unassigned]
partition permission[wm]
new start cyl[0]
size [0b,0c] 5gb
partition> print
partition> quit
format> save
format> quit
To format slices:
newfs /dev/rdsk/c0t1d0s4
To automatically mount file systems during booting process:
gedit /etc/vfstab
/dev/dsk/c0t1d0s4 /dev/rdsk/c0t1d0s4 /data1 ufs 2 yes -
To verify:
mount -a
df
Partitions are called 'Slices' in Solaris
df
df -h
VTOC = volume Table of contents
<FDISK not required in SPARC, because of using SCSI>
***SLICES rules in x86 using VTOC***
~ Maximum 10 slices (0 to 9)
~ Slices 2,8,9 are reserved
~ slice 2 - VTOC (Disk's label and Slices OS) So can't change
~ slices 0,1,3,4,5,6,7 allowed to used (total 7)
/dev/dsk/c0t0d0s0
's0' is reserved for root mount point
run 'df' to check allocations
prtvtoc /dev/dsk/c0t0d0s0
/dev/dsk/c0t0d0s0
c0 : First controller
t0 : First Target (Only of SCSI Used)
d0 : First DISK
s0 : First Slice (1st partition)
ls -l /dev/dsk/c0t0d0*
format
0
FORMAT MENU:
q
cat /etc/vfstab
format
0
format> disk
format> ?
format> current
format> fdisk
CREATE PARTITION
DELETE PARTITION
..SO ON..
delete first if any...
no partitions
format> fdisk
y
Got first parition
5
format> partition
partition> print
4 Unassigned wm 0 - 0
partition> 4
Partition id tag[unassigned]
partition permission[wm]
new start cyl[0]
size [0b,0c] 5gb
partition> print
partition> quit
format> save
format> quit
To format slices:
newfs /dev/rdsk/c0t1d0s4
To automatically mount file systems during booting process:
gedit /etc/vfstab
/dev/dsk/c0t1d0s4 /dev/rdsk/c0t1d0s4 /data1 ufs 2 yes -
To verify:
mount -a
df
No comments:
Post a Comment