From owner-freebsd-questions Mon Sep 2 8:42:52 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF71437B400 for ; Mon, 2 Sep 2002 08:42:49 -0700 (PDT) Received: from sixshooter.v6.thrupoint.net (sixshooter.v6.thrupoint.net [65.242.152.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D26D43E72 for ; Mon, 2 Sep 2002 08:42:49 -0700 (PDT) (envelope-from jpb@sixshooter.v6.thrupoint.net) Received: by sixshooter.v6.thrupoint.net (Postfix, from userid 1000) id 2B7E2107A3; Mon, 2 Sep 2002 11:42:43 -0400 (EDT) Date: Mon, 2 Sep 2002 11:42:43 -0400 From: Jim Brown To: freebsd-questions@FreeBSD.ORG Subject: Re: creating extra partition on existing system Message-ID: <20020902154243.GB93281@sixshooter.v6.thrupoint.net> Mail-Followup-To: freebsd-questions@FreeBSD.ORG References: <5.1.0.14.0.20020902110309.00bc3648@mail.lusidor.nu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.1.0.14.0.20020902110309.00bc3648@mail.lusidor.nu> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Jimmy Lantz [2002-09-02 05:49]: > Hi, > > I have a filesystem where I would like to create /www and use like 1 GB > from the /usr . > how would I accomplish this without using fdisk and reinstall the system? > Tia > Jim. > > > > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/ad0s1a 128990 34162 84510 29% / > /dev/ad0s1f 257998 20 237340 0% /tmp > /dev/ad0s1g 7103768 1430424 5105044 22% /usr > /dev/ad0s1e 257998 390 236970 0% /var > procfs 4 4 0 100% /proc > > /dev/ad0s1b none swap sw 0 0 > /dev/ad0s1a / ufs rw 1 1 > /dev/ad0s1f /tmp ufs rw 2 2 > /dev/ad0s1g /usr ufs rw 2 2 > /dev/ad0s1e /var ufs rw 2 2 > /dev/acd0c /cdrom cd9660 ro,noauto 0 0 > /dev/acd1c /cdrom1 cd9660 ro,noauto 0 0 > proc /proc procfs rw 0 0 > All roads out of your situation involve pain. The least pain is acquiring another disk and throwing it in. If that is not possbile for whatever reason, you can try the following after producing a recovery disk (or bootable CD): archive the /usr filesystem using dump onto tape or CD. (dump supports flags. Not all archive programs support flags.) Reboot onto the recover disk, ensuring that /dev/ad0s1g does not get mounted. Delete the slice and rework for smaller size. Add other slice. Update /etc/fstab with new entries. Reboot. Use restore to restore your files onto smaller /usr partition. See, I told you the least pain is just slapping on another disk :-). HTH, jpb === To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message