From owner-freebsd-questions Thu May 17 6:24:22 2001 Delivered-To: freebsd-questions@freebsd.org Received: from c576194-a.saltlk1.ut.home.com (c576194-a.saltlk1.ut.home.com [65.5.60.246]) by hub.freebsd.org (Postfix) with SMTP id 7DBBF37B423 for ; Thu, 17 May 2001 06:24:20 -0700 (PDT) (envelope-from mupi@mknet.org) Received: (qmail 7461 invoked from network); 17 May 2001 13:21:18 -0000 Received: from localhost (HELO mukappa.home.com) (7rnt18@127.0.0.1) by localhost with SMTP; 17 May 2001 13:21:18 -0000 From: Mike Porter Reply-To: mupi@Mknet.org To: Richard Smith , Sue Blake Subject: Re: Installing Date: Thu, 17 May 2001 07:21:18 -0600 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="us-ascii" Cc: questions@freebsd.org References: <092901c0de59$7075ae30$0300a8c0@oracle> <20010517091433.N26110@welearn.com.au> <20010517012523.A326@gaia.home.rdls.net> In-Reply-To: <20010517012523.A326@gaia.home.rdls.net> MIME-Version: 1.0 Message-Id: <01051707211801.04193@mukappa.home.com> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wednesday 16 May 2001 18:25, Richard Smith wrote: > On Thu, May 17, 2001 at 09:14:34AM +1000, Sue Blake wrote: > > Tim, see the FAQ under System Administration where it explains > > what to do if you've lost your root password. > > Your /usr/partition is not mounted at that stage, which is > > why you can't see (or use) its contents. > > > > [...] At the question about the shell to use, hit ENTER. You'll be > > dropped to a # prompt. Enter mount -u / to remount your root > > filesystem read/write, then run mount -a to remount all the > > filesystems. Run passwd root to change the root password then run > > exit to continue booting. > > Why does the FAQ suggest that the `mount -u /' command precede the > `mount -a' command when both mount(8) and experiment show it as > being unnecessary? > > i.e. a simple `mount -a' achieves the same result. becuase (as happened to me yesterday....) mount -a may fail. I added a new disk to my system, without stopping to think about the device numbering, and wound up unable to boot becuase my former /usr/local had moved from ad0 to ad1. To correct this, I had to first creade the /dev entries for ad1s2*, then edit /etc/fstab to change ad0s2e to ad1s2e, after which it worked like a charm. BTW that's another vote for DEVFS from me, since as I understand it, although I would still have to change /etc/fstab, I wouldn't have to go in and manually create each slice entry; that's a whole other ball of wax though. mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message