From owner-freebsd-questions@FreeBSD.ORG Thu Sep 15 23:45:47 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 5804E16A41F for ; Thu, 15 Sep 2005 23:45:47 +0000 (GMT) (envelope-from micahjon@u.washington.edu) Received: from smtpout1.ywave.com (unknown [216.227.100.60]) by mx1.FreeBSD.org (Postfix) with SMTP id ECE4043D46 for ; Thu, 15 Sep 2005 23:45:46 +0000 (GMT) (envelope-from micahjon@u.washington.edu) Received: (qmail 20098 invoked by uid 502); 15 Sep 2005 23:45:46 -0000 Received: from dsl13079.ywave.com (HELO ?192.168.1.65?) (micahjon@ywave.com@66.243.212.79) by 0 with SMTP; 15 Sep 2005 23:45:46 -0000 X-CLIENT-IP: 66.243.212.79 X-CLIENT-HOST: dsl13079.ywave.com Message-ID: <432A07A9.2010402@u.washington.edu> Date: Thu, 15 Sep 2005 16:45:45 -0700 From: Micah Lieske User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050908) X-Accept-Language: en-us, en MIME-Version: 1.0 To: hal References: <6A23C530-2275-4D84-89AE-88FC6DB586EB@cc.usu.edu> In-Reply-To: <6A23C530-2275-4D84-89AE-88FC6DB586EB@cc.usu.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: resize/combine disk partitions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Sep 2005 23:45:47 -0000 hal wrote: > I have three adjacent disk partitions as reported by > bsdlabel. > > ad0s1g /local > ad0s1b swap > ad0s1h /home > > /local is at around 107% full all the time and needs to > grow. /home is nearly empty ( new machine). > > What I want to do is combine ad0s1g and h into > a new /local and add another disk for /home. > > I have tried sysinstall disklabel to delete > the three partitions g, b, and h then recreate swap and > /local. But noooooo the program says it can't write > to the disk. BTW /local and /home were umounted and I > was in single user mode. > > I suppose I could get creative with mount points but I > would rather resize/combine the three partitions into two. > > How can I do that (short of a reinstall)? > > hal If you just want to wipe out the partitions and recreate, you can use sysinstall as you tried, with one exception that I found. You have to boot from the live CD (CD 1 in 5.4). Sysinstall doesn't seem to want to write labels out to drives that are in use. I recently juggled ALL my partitions around and sysinstall in single user mode with only / mounted wasn't enough. I had to reboot and use the live/install CD. Keep in mind that the "w" command to write changes is invisible when using the sysinstall from the install CD, but it still works and you still have to use it. Micah