From owner-freebsd-questions Thu Nov 9 0:36: 0 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mailhost01.reflexnet.net (mailhost01.reflexnet.net [64.6.192.82]) by hub.freebsd.org (Postfix) with ESMTP id D84D637B479 for ; Thu, 9 Nov 2000 00:35:57 -0800 (PST) Received: from 149.211.6.64.reflexcom.com ([64.6.211.149]) by mailhost01.reflexnet.net with Microsoft SMTPSVC(5.5.1877.197.19); Thu, 9 Nov 2000 00:34:28 -0800 Received: (from cjc@localhost) by 149.211.6.64.reflexcom.com (8.11.0/8.11.0) id eA98Zkr88138; Thu, 9 Nov 2000 00:35:46 -0800 (PST) (envelope-from cjc) Date: Thu, 9 Nov 2000 00:35:46 -0800 From: "Crist J . Clark" To: Qiang Xu Cc: freebsd-questions@FreeBSD.ORG Subject: Re: how to expand the file system by adding a hard drive? Message-ID: <20001109003546.S75251@149.211.6.64.reflexcom.com> Reply-To: cjclark@alum.mit.edu References: <380522645.973747683974.JavaMail.root@web582-mc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <380522645.973747683974.JavaMail.root@web582-mc>; from qiang_xu@mail.com on Thu, Nov 09, 2000 at 12:28:03AM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Nov 09, 2000 at 12:28:03AM -0500, Qiang Xu wrote: > Dear Sir/Madam: > My PC running FreeBSD has a 800M hard drive. When I run some program, I was told the file system is full. > So I want to add another hard drive. I am a newer in FreeBSD, I think it is the same way like Window and DOS. > I run /stnad/sysinstall and fdisk the second HD, then I label it, but where should I mount them. The mount point > /, /usr, /var has already been assigned. If I mount in other points will it work? > How can I add the second HD correctly, so I can have enough space to run the program? You can mount it wherever you want. Let's say as an example you decide that putting /usr/local on the new filesystem would be a good idea and that the new partition is ad1s1e, # newfs /dev/ad1s1e # Make new filesystem # mount /dev/ad1s1e /mnt # Temporary mount point # cd /usr/local # tar cf - . | tar xf - -C /mnt # Copy over the old /usr/local # ls -l /mnt # Check if the copy worked # umount /mnt # rm -rf ./* # Clean the old /usr/local # mount /dev/ad1s1e /usr/local # Put in the new So it is mounted at boot, add, /dev/ad1s1e /usr/local ufs rw 0 2 To /etc/fstab. Make sure it is after the /usr entry in fstab. -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message