Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Mar 1999 01:47:51 -0500 (EST)
From:      borehawg <bangpath@bellsouth.net>
To:        freebsd-questions@freebsd.org
Subject:   moving filesystems
Message-ID:  <Pine.BSF.4.05.9903080123280.248-100000@kagero.gw.total-web.net>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9903080123280.248-100000>