From owner-freebsd-questions Wed May 15 23: 6:13 2002 Delivered-To: freebsd-questions@freebsd.org Received: from tierzero.apana.org.au (sa.apana.org.au [203.14.158.1]) by hub.freebsd.org (Postfix) with ESMTP id 9266C37B40C for ; Wed, 15 May 2002 23:06:08 -0700 (PDT) Received: from there (dialup-13.pasa.apana.org.au [203.14.158.142]) by tierzero.apana.org.au (8.11.1/8.11.1) with SMTP id g4G6A5112948; Thu, 16 May 2002 15:40:05 +0930 (CST) (envelope-from bastill@sa.apana.org.au) Message-Id: <200205160610.g4G6A5112948@tierzero.apana.org.au> Content-Type: text/plain; charset="iso-8859-1" From: Brian Astill Reply-To: bastill@sa.apana.org.au To: questions@FREEBSD.org Subject: root on ad0s3a and /usr/local on ad1s3h Date: Wed, 15 May 2002 22:23:04 +0930 X-Mailer: KMail [version 1.3] Cc: "Annelise Anderson" , "Greg 'groggy' Lehey" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Interesting how good advice given to a newbie can be incomplete (but didn't I say that ...?) or, due to a lack of vital local information - positively dangerous. First, Greg Lehey was most helpful, and after providing a specific amplification of his earlier answer (CAN newfs ad1s3 - BUT! 14 May 2002 16:23:02 +0930) I could understand, follow his instructions and produce a working ad1s3 - Yeah! Now to Annelise advice on moving /usr/local from drive 0 to ad1s3. (/usr/home on separate disk 9/5/02 13:31) Looked good - BUT! Annelise didn't know that both as root and as user, my default shell is /usr/local/bin/bash. So I copied files from /usr/local to /usr/newlocal (there is a trap here - see below), changed /usr/local to /usr/local2 and then went to edit /etc/fstab and found I could not. Problem - my commands and my favourite file manager and editor are in /usr/local, which no longer existed. YUK! I could not su, nor could I logout as user and login as root, because my shell did not exist. I couldn't login as myself, either - same reason. HELP - I'm locked out of my own system! :-( Fortunately Greg was contactable and he talked me through to single user mode, made a few helpful suggestions and thought I could manage from there. WRONG (I'm far more stupid than he thinks!). Ben, another very knowledgeable friend talked me through the mess and we followed Annelise' advice by a somewhat circuitous route! But we got there! Yeah! again! That trap I mentioned earlier? "cp /usr/local /usr/newlocal" did NOT simply copy all the files in local to newlocal. Instead it copied itself into newlocal, to produce /usr/newlocal/local, which was NOT what we wanted! Hope this rambling helps somebody. -- Regards, Brian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message