On Wed, Oct 05, 2005 at 12:51:57PM +0200, Abel Talaversn Estevez wrote:
> Hi all,
> 
> How could I resize an OpenBSD partition?
> 
> I have a /var partition of 20 GB and I want to have it of about 1 GB and I 
> don't know how to do it.

(0. copy your disklabel somewhere safe)
1. copy your files somewhere safe
2. umount /var
3. edit the partition with: disklabel(8)
4. create a new filesystem within the modified partition: newfs(8)
5. mount /var
6. copy your files back

read the manual pages, additional examples of disklabel usage are
available in the FAQ!

-- 
steven

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

Reply via email to