From owner-freebsd-questions@FreeBSD.ORG Fri Sep 22 19:33:21 2006 Return-Path: X-Original-To: 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 4EFA716A412 for ; Fri, 22 Sep 2006 19:33:21 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBD3743D55 for ; Fri, 22 Sep 2006 19:33:20 +0000 (GMT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id k8MJW9qf041158; Fri, 22 Sep 2006 15:32:09 -0400 (EDT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id k8MJW9Qg041157; Fri, 22 Sep 2006 15:32:09 -0400 (EDT) (envelope-from jerrymc) Date: Fri, 22 Sep 2006 15:32:08 -0400 From: Jerry McAllister To: Jeff Cross Message-ID: <20060922193208.GA41114@gizmo.acns.msu.edu> References: <45142A20.5040601@averageadmins.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45142A20.5040601@averageadmins.com> User-Agent: Mutt/1.4.2.2i Cc: questions@freebsd.org Subject: Re: Resizing Partitions, Losing Windows XP... 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: Fri, 22 Sep 2006 19:33:21 -0000 On Fri, Sep 22, 2006 at 01:23:28PM -0500, Jeff Cross wrote: > I have been dual booting FreeBSD and Windows XP for quite sometime. > However, I never boot into Windows XP any longer. I can pretty much do > everything I need to do from within FreeBSD. Is there a way that I can > wipe out the Windows XP partition, resize the FreeBSD partition, and > install a standard FreeBSD MBR (no boot manager) without slicking and > reloading the hard drive? > > I really like the way I have my stuff setup within FreeBSD and would > hate to have to recreate a lot of it as well as install applications > over again. Could I do a dump of my current FreeBSD partition, reformat > and partition the whole drive, install FreeBSD, and then restore my data > to the new partition or would this cause issues? That would be one good way of doing it. Just make sure and check your dumps before wiping everything. (create a scratch space. Cd to it and read a few things back from the dumps and check them. You don't need to reformat the drive - that is too low level for this. Just fdisk it and put all the disk in one slice - slice 1. Make that slice marked bootable. Then use bsdlabel (disklabel pre 5.xxx) to divide up the slice in to partitions. They will need to be the same partition identifiers (a-h) as used currently. Finally, use newfs to build filesystems on the partitions (except for swap) and then restore the dumps to their original partitions. Make sure you mount the partition as something and then cd in to that appropriate partition to do the restore. You will need to do the wiping and rebuilding from some other media such as a fixit CD or another bootable disk. You can't wipe the slice that you are running from. An alternative would be to leave the existing slice alone, but use fdisk to mark the MS slice as a FreeBSD slice (not bootable) and then either create one single partition in that slice or divide it as you choose and use newfs to create file systems. Then, create a mount point for each new partition you made (put them in /etc/fstab and mount them up. Then move some of your big directories in the existing FreeBSD slice over then and made symlinks to them. That way you would free up room in the FreeBSD bootable slice, but not have to dump/restore and rebuild everything. It is quicker and works just as well, but slightly less clean, though it could be helpful if your file systems are too large for your backup media. ////jerry > > Any assistance is greatly appreciated! > > Jeff Cross > http://www.averageadmins.com/ > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"