Date: Tue, 13 Nov 2001 22:44:51 -0500 From: Brian T.Schellenberger <bts@babbleon.org> To: Alexey Koptsevich <kopts@astro.washington.edu>, <mobile@FreeBSD.ORG> Subject: Re: swapping partitions Message-ID: <01111322445100.00684@i8k.babbleon.org> In-Reply-To: <Pine.LNX.4.33.0111122214000.18292-100000@geographos.astro.washington.edu> References: <Pine.LNX.4.33.0111122214000.18292-100000@geographos.astro.washington.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01111322445100.00684>