From owner-freebsd-questions@FreeBSD.ORG Thu Jan 27 16:03:40 2005 Return-Path: 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 45A2316A4CE for ; Thu, 27 Jan 2005 16:03:40 +0000 (GMT) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF04643D39 for ; Thu, 27 Jan 2005 16:03:39 +0000 (GMT) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from frontend2.messagingengine.com (frontend2.internal [10.202.2.151]) by frontend1.messagingengine.com (Postfix) with ESMTP id 0DB28C5377C; Thu, 27 Jan 2005 11:03:39 -0500 (EST) X-Sasl-enc: d3AngI5HlSlYeT7tZg6hTA 1106841815 Received: from gumby.localhost (dsl-80-41-108-28.access.uk.tiscali.com [80.41.108.28]) by frontend2.messagingengine.com (Postfix) with ESMTP id 118A756F785; Thu, 27 Jan 2005 11:03:33 -0500 (EST) From: RW To: Tom Moyer , FreeBSD Questions Date: Thu, 27 Jan 2005 16:03:19 +0000 User-Agent: KMail/1.7.2 References: <14867363050126171245360b58@mail.gmail.com> <20050127153453.GA20848@gentoo-npk.bmp.ub> In-Reply-To: <20050127153453.GA20848@gentoo-npk.bmp.ub> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200501271603.20852.list-freebsd-2004@morbius.sent.com> Subject: Re: Moving/Removing Filesystems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jan 2005 16:03:40 -0000 On Thursday 27 January 2005 15:34, Nathan Kinkade wrote: > On Wed, Jan 26, 2005 at 08:12:55PM -0500, Tom Moyer wrote: > > I have a Windows XP installation on the first 20 GB of my harddrive > > and I would like to remove it and expand my FreeBSD install to fill > > the entire disk. Is there an easy way to do that without formatting > > the entire hard drive. I've updated the system to 5-STABLE and have > > installed many ports and I don't want to lose that (limited > > bandwidth). > > > > Thanks, > > Tom > > Poke around in the FAQs at freebsd.org. Here is one little tutorial on > adding a new harddisk to a system. Your not adding a new physical disk, > but the principles will the same. > > http://www.freebsd.org/doc/en_US.ISO8859-1/articles/formatting-media/index. >html > > Also see this document: > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#ADDING-DISK This will allow you to move your FBSD installation to the new slice. Once you have done that (and tested it) I think you can extend the final partion in the lower slice over the top of the second slice using fdisk, bsdlabel and growfs. So if you set all the other partitions to their required size, you should be able to achieve any layout you like. I've never done this myself, but see "man growfs" as a starting point. If you don't fancy that, you could simply repartition the second slice and use it as /usr or /home.