Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Feb 2001 21:55:18 -0600 (CST)
From:      Nick Rogness <nick@rogness.net>
To:        Brad W <bradley_watts@hotmail.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Transfer disk space form /usr to root partition
Message-ID:  <Pine.BSF.4.21.0102122152500.61398-100000@cody.jharris.com>
In-Reply-To: <Pine.BSF.4.21.0102122127200.61398-100000@cody.jharris.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 12 Feb 2001, Nick Rogness wrote:

	Forgot to mention some minor detail...see bottom of message.

[snip]
> 	1) Add a new disk to the system
> 	2) fdisk and disklabel it (via /stand/sysinstall or manually)
> 	3) mount the filesystem(s) on the new disk 
> 	(example: Where ad1 is the new disk)
> 
> 		# mount /dev/ad1s1a /mnt
> 		# mount /dev/ad1s1f /mnt/usr
> 		# mount /dev/ad1s1e /mnt/var
> 
> 	4) Dump the data and restore it.  This copies your existing
> 	filesystems to the new disk, example:
> 
> 		# dump 0af - / |(cd /mnt;restore xf -)
> 		# dump 0af - /usr |(cd /mnt/usr;restore xf -)
> 		# dump 0af - /var |(cd /mnt/var;restore xf -)
> 
> 	5) edit and change your /etc/fstab file to reflect the new
> 	changes, save it and reboot!

	Forgot to mention that you will need to swap the location of the
	drives on your ide chain...swap new disk with old...then reboot.

Nick Rogness <nick@rogness.net>
- Keep on routing in a Free World...  
  "FreeBSD: The Power to Serve!"



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.21.0102122152500.61398-100000>