From owner-freebsd-questions Sun Oct 6 03:11:51 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA00913 for questions-outgoing; Sun, 6 Oct 1996 03:11:51 -0700 (PDT) Received: from agora.rdrop.com (root@agora.rdrop.com [199.2.210.241]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id DAA00885 for ; Sun, 6 Oct 1996 03:11:46 -0700 (PDT) Received: from diablo.ppp.de by agora.rdrop.com with smtp (Smail3.1.29.1 #17) id m0v9qBU-0008s4C; Sun, 6 Oct 96 03:11 PDT Received: from allegro.lemis.de by diablo.ppp.de with smtp (Smail3.1.28.1 #1) id m0v9pIp-000QoTC; Sun, 6 Oct 96 10:15 MET From: grog@lemis.de (Greg Lehey) Organisation: LEMIS, Schellnhausen 2, 36325 Feldatal, Germany Phone: +49-6637-919123 Fax: +49-6637-919122 Received: (grog@localhost) by allegro.lemis.de (8.6.9/8.6.9) id LAA26162; Sun, 6 Oct 1996 11:04:28 +0200 Message-Id: <199610060904.LAA26162@allegro.lemis.de> Subject: Re: help on newfs and a new partition To: andreas@klemm.gtn.com (Andreas Klemm) Date: Sun, 6 Oct 1996 11:04:28 +0200 (MET DST) Cc: questions@FreeBSD.org (FreeBSD Questions) In-Reply-To: from "Andreas Klemm" at Oct 5, 96 01:17:48 pm X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Andreas Klemm writes: > > On Fri, 4 Oct 1996, Doug White wrote: > >> On Fri, 4 Oct 1996, Sergios wrote: >> >>> please somebody help me. I have a 700 Mb free space on wd1 and I >>> want to move >>> /usr/local there. with other unices I have made a mount >>> /mnt and >>> (cd /usr/local; tar cf - .)|(cd /mnt; tar xfv -) >> >> That'll work once the filesystem exists. > > I recommend using the tar's p flag when extracting the stuff to > get the same permissions after extractimg ;-) > > otherwise you might wonder why permissions of all files changed > to root regarding to root's umask settings ;-) This doesn't happen under FreeBSD. Did you see it under System V? In any case, this (traditional) method of copying is no longer necessary. cp has an -R option which says "recursively copy subdirectories", so instead of (cd /usr/local; tar cf - .)|(cd /mnt; tar xfv -) you can write cp -pR /usr/local /mnt The -p option has the same meaning as with tar: keep the original permissions. >> Take a look at the disklabel(8) man page for details. > > Wasn't this covered by the handbook ?! Or wasn't the recommendation. > to use the /stand/sysinstall program, that has an easier handling ?! I've seen too many people shoot themselves in the foot with sysinstall on a running system. There's another message floating around in -questions at the moment which says that it core dumps. What we desperately need is a 'diskadd' program which bases on sysinstall, but which performs appropriate checks and functions for a running system. Unfortunately, nobody's got round to doing it yet. I wrote a new section on using disklabel for "The Complete FreeBSD", and somebody has offered to change it to HTML. I suppose I should tidy up the text and give it to him. Watch this space. Greg