From owner-freebsd-questions Sun Mar 7 22:45:27 1999 Delivered-To: freebsd-questions@freebsd.org Received: from server01.gw.total-web.net (server01.gw.total-web.net [209.186.12.2]) by hub.freebsd.org (Postfix) with ESMTP id 782A514D43 for ; Sun, 7 Mar 1999 22:45:18 -0800 (PST) (envelope-from bangpath@bellsouth.net) Received: from kagero.gw.total-web.net (ip-149-116.gw.total-web.net [209.186.149.116]) by server01.gw.total-web.net (2.5 Build 2640 (Berkeley 8.8.6)/8.8.4) with ESMTP id BAA00622 for ; Mon, 08 Mar 1999 01:43:13 -0500 Date: Mon, 8 Mar 1999 01:47:51 -0500 (EST) From: borehawg X-Sender: bangpath@kagero.gw.total-web.net To: freebsd-questions@freebsd.org Subject: moving filesystems Message-ID: X-Comment: My bologna has a first name... MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I recently started to become a little low on space in my /usr partition, so I deleted a partition off my windows drive (I have two SCSI drives) so I could break off /home to a separate partition and expand /usr a bit. My current setup is like this: (FreeBSD 3.1) /dev/da0s1a / /dev/da0s1b swap /dev/da0s1e /var /dev/da0s1f /usr <-- prolly will become /home /dev/da1s1 /worthless <-- Win95 partition /dev/da1s2a empty space <-- soon to be new /usr /dev/da2s1 /jaz (when mounted) /dev/da0 is a 1 GB drive /dev/da1 is a 2 GB drive with two 1 GB partitions (or slices now) My question: Do I use the dd command to move an entire partition across or is there another command better suited for something like this? If I use the dd command to move /usr from /dev/da1s2, would it be something like "dd /dev/da0s1f /dev/da1s2a" or do I need to use "dd if=/dev/da0s1f of=/dev/da1s2a" or something else? I assume I would need to boot into single-user mode and edit /etc/fstab to mount everything properly after moving things around. Can I move the partitions in multi-user mode, or do I need to do it in single-user mode to begin with? What other pitfalls do I need to be aware of before beginning this process? I would prefer to do this without losing any data and/or having to completly fdisk everything from scratch (and yes, I have definately backed up all the important stuff! :-) Or....any FAQs/Tutorials or other reference materials that I should read? BTW, since I am not subscribed to the list, please either reply directly or Cc: offlist. Thanks. --------------------------------------------- andrew ------> bangpath@bellsouth.net --------------------------------------------- C++? Java?? Perl??? To Hell with it all!!! AppleSoft Basic all the way! Dude! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message