From owner-freebsd-mobile Tue Nov 13 19:45:18 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from mail7.nc.rr.com (fe7.southeast.rr.com [24.93.67.54]) by hub.freebsd.org (Postfix) with ESMTP id D610637B405 for ; Tue, 13 Nov 2001 19:45:14 -0800 (PST) Received: from i8k.babbleon.org ([66.57.85.154]) by mail7.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Tue, 13 Nov 2001 22:45:07 -0500 Content-Type: text/plain; charset="iso-8859-1" From: Brian T.Schellenberger To: Alexey Koptsevich , Subject: Re: swapping partitions Date: Tue, 13 Nov 2001 22:44:51 -0500 X-Mailer: KMail [version 1.2] References: In-Reply-To: MIME-Version: 1.0 Message-Id: <01111322445100.00684@i8k.babbleon.org> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tuesday 13 November 2001 01:21, Alexey Koptsevich wrote: > Hello, > > Now I have /dev/ad0s1 DOS partition and /dev/ad0s2 -- partition intended > for suspend-to-disk. Since s2d does not work in this configuration I would > like to try to move s2d partition first. Can I do it in the following way: > > dd if=/dev/ad0s1 of=/tmp/somefile > swap two first partitions in sense of size > dd if=/tmp/somefile of=/dev/ad0s2 > > Will it work afterwards, or I have to make any additional changes? You have a /tmp dir big enough to hold an entire slice? Before trying any such operation I'd definately back up everything on the disk. You'd need to change /etc/fstab if you mount the MS-DOS partition. That's about it if both partitions are the same type, since you aren't changing the number of slices or any slices used directly by FreeBSD for anything. But I din't think you'll like the results--Windows always tries to use C: for the first physical partition it finds of the proper type, and always boots from C:, so you won't be able to use Windows if you try such a thing, unless the S2D parition has a different identifier, in which case you should be golden but you'll need to change the IDs as well as the sizes. Personaly, I'd recommend going into a Linux install to do this: the Linux fdisk command is much nicer than either the Windows or FreeBSD version. Better yet, buy Partition Magic. Regardless, back up everything before you try this! > > Thanks, > Alex > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-mobile" in the body of the message -- Brian T. Schellenberger . . . . . . . bts@wnt.sas.com (work) Brian, the man from Babble-On . . . . bts@babbleon.org (personal) http://www.babbleon.org -------> Free Dmitry Sklyarov! (let him go home) <----------- http://www.eff.org http://www.programming-freedom.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message