From owner-freebsd-questions@FreeBSD.ORG Thu Feb 12 07:23:24 2004 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 0032C16A4CE for ; Thu, 12 Feb 2004 07:23:23 -0800 (PST) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85BEF43D31 for ; Thu, 12 Feb 2004 07:23:23 -0800 (PST) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.7p1+Sun/8.11.7) id i1CFNGq17261; Thu, 12 Feb 2004 10:23:16 -0500 (EST) From: Jerry McAllister Message-Id: <200402121523.i1CFNGq17261@clunix.cl.msu.edu> To: nospam@users.sourceforge.net (Rob) Date: Thu, 12 Feb 2004 10:23:16 -0500 (EST) In-Reply-To: <402B7071.90209@users.sourceforge.net> from "Rob" at Feb 12, 2004 09:24:17 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: How to safely merge two slices on harddisk? 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, 12 Feb 2004 15:23:24 -0000 > > > Jerry McAllister wrote: > >> > > > > In any case, do not use /stand/sysinstall for this. You need more direct > > control and should use disklabel directly. As mentioned in my previous > > posting use the command > > 'disklabel -e -r asd1s1' > > and then edit the tmp file > > Malcolm Kay wrote: > > > > A good chance it will work -- but pre-existing 'f' and 'g' data is lost. > > > Thank you guys for your help. > I actually did use sysinstall (sorry, Jerry) and mission is accomplished. You are lucky. sysinstall makes some assumptions in the way it calls disklabel. Your situation fit neatly within those assumptions. > Yes, indeed, I lost the data is the two merged partitions 'f' and 'g', but > that was no problem; I needed to keep the data in all other partitions. > Sysinstall did all that for me. Well, it just let you define those other partitions in the same way they were before so effectively it left them alone. > > Meanwhile I learned a lot more about disklabel, thanks to your comments. > Great and many thanks, Disklabel is actually quite easy to use. The man page combined with the fdisk man page can be rather confusing. The approach to writing them seem rather convoluted to me. If I felt competent enough on the subject, I would take a shot at rewriting them, but there are two many details about the extra features I do no know about. But, the main stuff is reall quite straightforward to use. ////jerry > Rob. > _______________________________________________