Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

resize /usr system

Status
Not open for further replies.
Aug 10, 2001
21
0
0
US
This is what I have on my system.


Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t1d0s0 149071 32395 101769 25% /
/dev/dsk/c0t1d0s4 600651 427719 112867 80% /usr
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
/dev/dsk/c0t1d0s3 532063 75609 403248 16% /var
/dev/dsk/c0t1d0s5 220015 13025 184989 7% /opt

I need to increase the size of /usr. If I format that slice to increase that size, would i lose my data? How would I go about increasing the size of /usr?
 
You can grow but not shrink a UFS filesystem if you manage to increase the size of the partition it lives in, with the following command:
usr/lib/fs/ufs/mkfs -G -M /current/mount /dev/rdsk/cXtYdZsA newsize
Specifying the current mount point and raw device as well as the new size in 512 byte blocks.
You can do this even when the filesystem is mounted and in use.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top