Unix/Linux Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

How to use FORMAT and PARTITION command on Solaris 9

Solaris


Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 02-07-2007
duke0001 duke0001 is offline
Registered User
 
Join Date: Nov 2005
Last Activity: 31 March 2014, 4:56 PM EDT
Posts: 166
Thanks: 0
Thanked 0 Times in 0 Posts
How to use FORMAT and PARTITION command on Solaris 9

I am seeking advice from experts in this forum. Please help me.

I have tow disks on Sun Sparc box. Disk one has been installed Solaris 9 system. The disk two has been partitioned as one disk with 140 GB on the partition /dev/dsk/c1t1d0s6. Right now, I want to modify it as two partitions. I have typed ' man format' to read the description. But I am still not sure about these synopsises. I like to partition disk two as two partitions. one will be using the same partition as /dev/dsk/c1t1d0s6 with about 90 GB. another partition will be /dev/dsk/c1t1d0s5 with about 50 GB. Could you please help me on necessary steps using FORMAT or PARTITION commands with options. I will appreciated your kindness very much. The current partitioned table layout like this:

Part tag flag cylinders size
0 root wm 0 - 12 129.19MB
1 swap wu 13 - 25 129.19MB
2 backup wu 0 - 14086 136.71GB
3 unassigned wm 0 0
4 unassigned wm 0 0
5 unassigned wm 0 0
6 usr wm 26 - 14086 136.36GB
7 unassigned wm 0 0

Last edited by duke0001; 02-07-2007 at 11:55 AM..
Sponsored Links
    #2  
Old Unix and Linux 02-07-2007
suntac suntac is offline
Registered User
 
Join Date: Jul 2005
Last Activity: 10 December 2007, 11:32 AM EST
Location: Amsterdam
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by duke0001
I am seeking advice from experts in this forum. Please help me.

I have tow disks on Sun Sparc box. Disk one has been installed Solaris 9 system. The disk two has been partitioned as one disk with 140 GB on the partition /dev/dsk/c1t1d0s6. Right now, I want to modify it as two partitions. I have typed ' man format' to read the description. But I am still not sure about these synopsises. I like to partition disk two as two partitions. one will be using the same partition as /dev/dsk/c1t1d0s6 with about 90 GB. another partition will be /dev/dsk/c1t1d0s5 with about 50 GB. Could you please help me on necessary steps using FORMAT or PARTITION commands with options. I will appreciated your kindness very much.

you can use the format command to format a drive.... for example: format /dev/rdsk/c0t5d0s2

You can use partition in the format menu to partition your disk...

Regards,
Johan Louwers.
Sponsored Links
    #3  
Old Unix and Linux 02-07-2007
mhm4 mhm4 is offline
Registered User
 
Join Date: Jul 2005
Last Activity: 22 August 2008, 3:36 PM EDT
Location: Chicago, IL
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by suntac
you can use the format command to format a drive.... for example: format /dev/rdsk/c0t5d0s2

You can use partition in the format menu to partition your disk...

Regards,
Johan Louwers.



The drive is already formatted. Just change the partitions using the format command -> par -> select slice -> label the disk and you are done.
    #4  
Old Unix and Linux 02-07-2007
duke0001 duke0001 is offline
Registered User
 
Join Date: Nov 2005
Last Activity: 31 March 2014, 4:56 PM EDT
Posts: 166
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks. I have done with these steps.
1. umount current filesystem.
2. use format / partition / modify to re-partition 2nd disk into 2 partitions. One is 36GB and another one is 100GB.
3. re-create filesystem on each of partition and mount them. Done!!
Sponsored Links
    #5  
Old Unix and Linux 02-08-2007
lowbyte lowbyte is offline
Registered User
 
Join Date: Jan 2007
Last Activity: 3 January 2011, 2:33 AM EST
Posts: 82
Thanks: 0
Thanked 1 Time in 1 Post
Hey,

you're sure you take partition number 2 or partition 2 (number 1)?
Remember - partition 2 is the whole disk, don't change this partition!!

Changing partitions is easy:
format -> partition -> number of partition
set new values
when ready take a look with print partition table,
the label the disk.
After quit the format program, construct new filesystems
on your new partitions and mount them. Don't forget the /etc/vfstab

CU
lowbyte
Sponsored Links
    #6  
Old Unix and Linux 02-08-2007
duke0001 duke0001 is offline
Registered User
 
Join Date: Nov 2005
Last Activity: 31 March 2014, 4:56 PM EDT
Posts: 166
Thanks: 0
Thanked 0 Times in 0 Posts
lowbyte:

Thanks for your help. I worked on 2nd disk (I also have 1st disk with partition) to modify original partition as two partitions. One is named as /dev/dsk/c1t1d0s6 and another one as /dev/dsk/c1t1d0s7. Then I check the cylinders and label the partition. Then I rebuilt FS and mount them.
Sponsored Links
    #7  
Old Unix and Linux 11-09-2007
panchpan panchpan is offline
Registered User
 
Join Date: Aug 2007
Last Activity: 7 September 2012, 3:01 AM EDT
Location: Australia
Posts: 128
Thanks: 1
Thanked 0 Times in 0 Posts
I am finding difficulty in creating and allocating correct size to File Systems on solarix x86 box. Please see below contents I followed on screen and in the end It shows that /app file system is created of size 135GB , I wanted it to be 30gb as mentioned during 'format' command in 'Enter Partitiion size' :

root@unknown # df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t0d0s0 15496821 7472292 7869561 49% /
/devices 0 0 0 0% /devices
ctfs 0 0 0 0% /system/contract
proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
swap 17574616 808 17573808 1% /etc/svc/volatile
objfs 0 0 0 0% /system/object
/usr/lib/libc/libc_hwcap2.so.1
15496821 7472292 7869561 49% /lib/libc.so.1
fd 0 0 0 0% /dev/fd
swap 17573844 36 17573808 1% /tmp
swap 17573840 32 17573808 1% /var/run
root@unknown # format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
0. c0t0d0 <DEFAULT cyl 17832 alt 2 hd 255 sec 63>
/pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@0,0
1. c0t2d0 <DEFAULT cyl 17846 alt 2 hd 255 sec 63>
/pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@2,0
2. c0t3d0 <DEFAULT cyl 17845 alt 2 hd 255 sec 63>
/pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@3,0
Specify disk (enter its number): 0
selecting c0t0d0
[disk formatted]
Warning: Current Disk has mounted partitions.
/dev/dsk/c0t0d0s0 is currently mounted on /. Please see umount(1M).
/dev/dsk/c0t0d0s1 is currently used by swap. Please see swap(1M).


FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
fdisk - run the fdisk program
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> p


PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit
partition> p
Current partition table (original):
Total disk cylinders available: 17832 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks
0 root wm 524 - 2482 15.01GB (1959/0/0) 31471335
1 swap wu 1 - 523 4.01GB (523/0/0) 8401995
2 backup wm 0 - 17831 136.60GB (17832/0/0) 286471080
3 unassigned wm 2483 - 4441 15.01GB (1959/0/0) 31471335
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
8 boot wu 0 - 0 7.84MB (1/0/0) 16065
9 unassigned wm 0 0 (0/0/0) 0

partition> 3
Part Tag Flag Cylinders Size Blocks
3 unassigned wm 2483 - 4441 15.01GB (1959/0/0) 31471335

Enter partition id tag[unassigned]: usr
Enter partition permission flags[wm]:
Enter new starting cyl[2483]: 2483
Enter partition size[31471335b, 1959c, 4441e, 15366.86mb, 15.01gb]: 30gb

partition> p
Current partition table (unnamed):
Total disk cylinders available: 17832 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks
0 root wm 524 - 2482 15.01GB (1959/0/0) 31471335
1 swap wu 1 - 523 4.01GB (523/0/0) 8401995
2 backup wm 0 - 17831 136.60GB (17832/0/0) 286471080
3 usr wm 2483 - 6399 30.01GB (3917/0/0) 62926605
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
8 boot wu 0 - 0 7.84MB (1/0/0) 16065
9 unassigned wm 0 0 (0/0/0) 0
partition> label
Ready to label disk, continue? y
partition>q

root@unknown # newfs /dev/rdsk/c0t0d0s2
newfs: construct a new file system /dev/rdsk/c0t0d0s2: (y/n)? y
Warning: 5208 sector(s) in last cylinder unallocated
/dev/rdsk/c0t0d0s2: 286471080 sectors in 46627 cylinders of 48 tracks, 128 sectors
139878.5MB in 2915 cyl groups (16 c/g, 48.00MB/g, 5824 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488, 885920,
Initializing cylinder groups:
..........................................................
super-block backups for last 10 cylinder groups at:
285576352, 285674784, 285773216, 285871648, 285970080, 286068512, 286166944,
286265376, 286363808, 286462240
root@unknown # mount /dev/dsk/c0t0d0s2 /app
root@unknown # df -k /app
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t0d0s2 141066718 65553 139590498 1% /app
root@unknown #

Please advice, what is wrong I am doing above?
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Unix or Linux Image More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help me to format partition trantuananh24hg Red Hat 2 09-15-2010 03:44 AM
problem to format linux partition praneshmishra08 Linux 0 09-02-2008 07:16 AM
How to access a solaris partition vibhor_agarwali Solaris 14 07-11-2007 09:36 AM
Solaris 8 partition - compression civic2005 Solaris 2 04-23-2007 05:13 AM
format fat partition in unix NaRtHeXs UNIX for Dummies Questions & Answers 2 08-07-2001 06:33 AM



All times are GMT -4. The time now is 05:49 AM.