From owner-freebsd-questions@FreeBSD.ORG Fri Nov 7 04:54:02 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 781AB16A4CE for ; Fri, 7 Nov 2003 04:54:02 -0800 (PST) Received: from mailout.informatik.tu-muenchen.de (mailout.informatik.tu-muenchen.de [131.159.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 250A243FF2 for ; Fri, 7 Nov 2003 04:54:01 -0800 (PST) (envelope-from barner@in.tum.de) Received: by zi025.glhnet.mhn.de (Postfix, from userid 1000) id 211015DB; Fri, 7 Nov 2003 13:53:57 +0100 (CET) Date: Fri, 7 Nov 2003 13:53:56 +0100 From: Simon Barner To: Marty Landman Message-ID: <20031107125356.GA2949@zi025.glhnet.mhn.de> References: <6.0.0.22.0.20031106205334.03dfeaa8@pop.face2interface.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NzB8fVQJ5HfG6fxh" Content-Disposition: inline In-Reply-To: <6.0.0.22.0.20031106205334.03dfeaa8@pop.face2interface.com> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at informatik.tu-muenchen.de cc: freebsd-questions@freebsd.org Subject: Re: moving /usr X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Nov 2003 12:54:02 -0000 --NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Please enter a subject next time -- many people will skip your message otherwise. > I've installed 4.8 off CD onto a PII-200 w/ 80MB ram and two ide's, prima= ry=20 > has 1GB, secondary has 2GB. >=20 > Don't understand how to allocate /usr to the secondary ide or even give i= t=20 > more space on the primary, and I run out of room with only 1/4 GB for /us= r=20 > to install most of the binaries. Would like for starters to allocate both= =20 > those hd's to FreeBSD and have enough room to install Samba and see if I= =20 > can then communicate over my LAN. So, if I understand you right, you have space left on your 2GB hd, and you would like to move your /usr partition there? 1.) Allocate space on that 2nd hard disk: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-steps.html You can also use /stand/sysinstall for this. 2.) Shutdown to single user mode 3.) Assuming that your new user is mounted on /mnt/usr.new, the following command will copy everything from /usr there. # /usr # tar -cpf - -C /usr . | tar xpvf - -C /mnt/usr.new Please also refer to the tar(1) man page! 3.) Now edit /etc/fstab and make your new copy the default (the best is to write the partition of the old /usr on a piece of paper, or keep it as a comment in /etc/ftab. 4.) Done. Unmount /mnt/usr.new and mount it to /usr. There isn't even a need to reboot :-) Simon --NzB8fVQJ5HfG6fxh Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/q5XkCkn+/eutqCoRAl3RAJ9OrSnC0Yffj/fA8rC4q6JGfwUsUACfQN23 8wZUEf/8SXkWrECegIHSIEc= =3OoX -----END PGP SIGNATURE----- --NzB8fVQJ5HfG6fxh--