For partitions, use fdisk. For slices use prtvtoc. There may be a nifty program like divvy in the future, but, for now, use the following command to list the slice layout to a file in /tmp:
prtvtoc -f /tmp/mytoc
If you do a cat /tmp/mytoc, you will see something like the following, where;
SLICE is the slice number in decimal,
TAG designates whether it is a root, boot, swap, home, or .... slice
FLAG field defines whether the slice is valid, read-only, and/or
unmountable (that field is similar to the permissions field 644
or 755 in that it contains numbers that are added
START and SIZE fields refer to the sector that the slice begins
on and the number of sectors that the slice occupies,
respectively.
#SLICE TAG FLAGS START SIZE
0 0x5 0x201 63 16305912
1 0x2 0x200 1076355 6152895
2 0x3 0x201 642600 433755
3 0x0 0x0 0 0
4 0xb 0x200 7229250 8787555
5 0x0 0x0 0 0
6 0xc 0x201 64260 578340
7 0x1 0x201 63 34
8 0xd 0x201 97 15968
9 0x0 0x0 0 0
10 0x9 0x200 16065 48195
11 0x0 0x0 0 0
12 0x0 0x0 0 0
13 0x0 0x0 0 0
14 0x0 0x0 0 0
15 0xf 0x201 16016805 16065
An important slice to look at is slice 4, the home slice, because you will use it as a perfect template for creating your own slices, when you need to. The 0xb and 0x200 are what I'm referring to.
<mschalit@pacbell.net>
gerberb@zenez.com
|