From owner-freebsd-fs@FreeBSD.ORG Mon Apr 26 03:09:36 2004 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B4BB816A4CE for ; Mon, 26 Apr 2004 03:09:36 -0700 (PDT) Received: from mk-smarthost-3.mail.uk.tiscali.com (mk-smarthost-3.mail.uk.tiscali.com [212.74.114.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6360543D4C for ; Mon, 26 Apr 2004 03:09:36 -0700 (PDT) (envelope-from adam@otterycomputers.com) Received: from [80.43.166.27] (port=63921 helo=postman.oocltd.dom) by mk-smarthost-3.mail.uk.tiscali.com with esmtp (Exim 4.30) id 1BI33O-000Kms-N2 for freebsd-fs@freebsd.org; Mon, 26 Apr 2004 11:09:34 +0100 Received: from localhost (localhost [127.0.0.1]) by postman.oocltd.dom (Postfix) with ESMTP id D49D05F9 for ; Mon, 26 Apr 2004 11:07:21 +0100 (BST) Received: from postman.oocltd.dom ([127.0.0.1]) by localhost (postman.oocltd.dom [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 55928-01 for ; Mon, 26 Apr 2004 11:07:20 +0100 (BST) Received: from [192.168.0.250] (unknown [192.168.0.250]) by postman.oocltd.dom (Postfix) with ESMTP id 577795EB for ; Mon, 26 Apr 2004 11:07:20 +0100 (BST) From: Adam Retter To: freebsd-fs@freebsd.org Content-Type: text/plain Organization: Ottery Office and Computer Ltd. Message-Id: <1082974173.233.13.camel@wokshopbsd.oocltd.dom> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Mon, 26 Apr 2004 11:09:33 +0100 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at otterycomputers.com Subject: How to Resize FreeBSD Partition? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Apr 2004 10:09:36 -0000 I could do with some help learning how to resize my freebsd partition. Ive looked on the web and been to #freebsdhelp of EfNet but so far havent found anything usefull. My workstation has a 20GB IDE Drive (ad0) which is split like this - Partition 1 (ad0s1) = Win98-SE (FAT32) 4GB / sysid=11 Partition 2 (ad0s2) = FreeBSD 6.471 GB / sysid=165 Partition 3 (ad0s3) = WinXP-Pro (NTFS) 6GB Unpartitioned Space = 2GB My FreeBSD partition has the following labels - ad0s2a = / (126MB) ad0s2f = /tmp (252MB) ad0s2g = /usr (4.6GB) ad0s2e = /var (252MB) procfs = /proc (4.0KB) Now my question is this - 1) How can I resize the FreeBSD partition ad0s2 to incorporate the 2GB of currently unpartitioned space? 2) How can I then resize my /usr label (ad0s2g) from 4.6GB to 4.6GB+2GB=6.6GB, i.e. to use this new 2GB of space? BTW - My System is FreeBSD 4.9-RELEASE on i386. Thanks very much - Adam Retter -- Adam Retter Ottery Office and Computer Ltd. Tel: +44(0)1404 814946 Fax: +44(0)1404 811786