You can change the partition flag from unnassigned to usr and save the partition table without affecting the underlying data. However, if you now attempt to do anything with the partition - i.e. newfs it, at this point you will be overwriting any data that resides there.
First off, check what is actually mounted as a file system and match this up with your parition table.
#df -k | grep '^/' to show mounted partitions ignore /proc since this is a virtual filesystem. As Mark says partition 6 and 7 may be in use but simply marked unassigned.
#swap -l to list swap partitions
If you are running disk management software, the device paths will contain vx (Veritas) or md (Disksuite). For these you need to see how they have been allocated.
# vxdisk list to list disks under Veritas control and
# vxprint -hrt shows how partitions have been assigned.
# metastat to see how Disksuite is layed out
Commonly Veritas uses encapsulation to take over control of the whole disk - so any unassigned space is allocated as free space under Veritas control.
If your system is simply using normal device files /dev/dsk/... then you still have to carry out a couple more checks to see if the space really is free.
If you have a database system running on your server, it may be using raw devices. ls -l /dev/dsk will show a list of links to the underlying device files. cd to this underlying directory and call fuser -f * to see if any processes are attached to the unassigned slices.
Finally your supplier may have used the unused slices to take a back up a copy of your system before shipping it. By attempting to fsck the raw device you can see if it has a filesystem created on it and what it was last mounted as.
If you are unsure, your best bet might be to call the people who set your system up and find out how the system is layed out. This should really have been documented.
Main Topics
Browse All Topics





by: mrquinPosted on 2003-04-26 at 18:39:14ID: 8403248
A filesystem could be labeled as unassigned by the administrator after the installation was done. It does
not mean it is not being utilized. The options for disk drive labelling are:
unassigned boot root swap
usr backup stand var
home alternates
(this is found when you format a drive, look at the partition table, the try to assign a partition
partition> print
Current partition table (original):
Total disk cylinders available: 19156 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 515 - 19155 36.27GB (18641/0/0) 76055280
1 swap wu 0 - 514 1.00GB (515/0/0) 2101200
2 backup wm 0 - 19155 37.27GB (19156/0/0) 78156480
3 unassigned wm 0 0 (0/0/0) 0
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
partition> 4 (attempt to assign partition 4)
Part Tag Flag Cylinders Size Blocks
4 unassigned wm 0 0 (0/0/0) 0
Enter partition id tag[unassigned]: ? (I typed in a question mark)
Expecting one of the following: (abbreviations ok):
unassigned boot root swap
usr backup stand var
home alternates
Enter partition id tag[unassigned]:
you can reassign the labeling yet still have data on that partition)
Also...if you have a database on your system (ie: Oracle), it could be utilizing this disk space (a raw partition with no filesystem built on it).
Hope this helps...
Mark