Skip to content
Tags

Using a Command File with Format in Solaris

November 21, 2011

Do you need to slice up your disks with a simple partition table like this?

Current partition table (original):
Total disk cylinders available: 32766 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 32765 32.00GB (32766/0/0) 67104768
1 unassigned wu 0 0 (0/0/0) 0
2 backup wu 0 - 32765 32.00GB (32766/0/0) 67104768
3 unassigned wu 0 0 (0/0/0) 0
4 unassigned wu 0 0 (0/0/0) 0
5 unassigned wu 0 0 (0/0/0) 0
6 unassigned wu 0 0 (0/0/0) 0
7 unassigned wu 0 0 (0/0/0) 0

Use the -f option with format to take command input from the file instead of standard input.

E.g.

whole_slice_0:

p
0
root
wm
0
$
1
unassigned
wu
0
0
3
unassigned
wu
0
0
4
unassigned
wu
0
0
5
unassigned
wu
0
0
6
unassigned
wu
0
0
7
unassigned
wu
0
0
la

So then to slice up the disk using the command file:

format -f whole_slice_0 c2t6d0

Advertisements

From → SysAdmin

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: