From owner-freebsd-ports@FreeBSD.ORG Mon Sep 22 09:03:39 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 209F416A4B3 for ; Mon, 22 Sep 2003 09:03:39 -0700 (PDT) Received: from mail.westbend.net (ns1.westbend.net [216.47.253.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29BF843FA3 for ; Mon, 22 Sep 2003 09:03:38 -0700 (PDT) (envelope-from hetzelsw@westbend.net) Received: from Admin02 (admin02.westbend.net [216.47.253.19]) by mail.westbend.net (8.12.9/8.12.9) with SMTP id h8MG3Y2a064710; Mon, 22 Sep 2003 11:03:34 -0500 (CDT) (envelope-from hetzelsw@westbend.net) Message-ID: <016101c38123$14713db0$13fd2fd8@Admin02> From: "Scot W. Hetzel" To: , References: <002a01c37ff9$4880f120$0300a8c0@winfirst.com> Date: Mon, 22 Sep 2003 11:03:30 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Spam-Status: No, hits=-0.6 required=8.0 tests=QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02, USER_AGENT_OE version=2.43 Subject: Re: Moving Ports directory X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2003 16:03:39 -0000 From: "Michael Dunham" > I'm using FreeBSD Current on an older machine. I have two hard disks > attached, one 3gb and one 2gb. I have put the root on the 3gb drive but it > is now about 80% full. I would like to move the Ports directory to the 2gb > drive so I can run a new kernel build. > > What are the steps to move the /usr/ports directory to the other drive? > Is the 2Gb drive currently being used? If not, you could dedicate the entire drive or a partition to /usr/ports. mount /dev/ad1s1g /mnt tar -cf - -C /usr/ports . | tar xpf - -C /mnt rm -rf /usr/ports/* umount /mnt edit /etc/fstab and add an entry for the 2GB drive /dev/ad1s1g /usr/ports ufs rw 2 2 then mount /usr/ports mount /usr/ports If you can't dedicate the entire drive or a partition, then you'll need to do the following: mkdir <2GB drive mount point>/ports tar -cf - -C /usr/ports . | tar xpf - -C <2Gb drive mount point>/ports rm -rf /usr/ports ln <2Gb drive mount point>/ports /usr/ports Scot