From owner-freebsd-questions@FreeBSD.ORG Mon Sep 18 08:33:50 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5753F16A403 for ; Mon, 18 Sep 2006 08:33:50 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2871243D69 for ; Mon, 18 Sep 2006 08:33:44 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.pc (patr530-a149.otenet.gr [212.205.215.149]) (authenticated bits=128) by igloo.linux.gr (8.13.8/8.13.8/Debian-2) with ESMTP id k8I8WKfg015108 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 18 Sep 2006 11:33:18 +0300 Received: from gothmog.pc (gothmog [127.0.0.1]) by gothmog.pc (8.13.7/8.13.7) with ESMTP id k8I8VYgT001510; Mon, 18 Sep 2006 11:31:58 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.pc (8.13.7/8.13.7/Submit) id k8I0B3xR003220; Mon, 18 Sep 2006 03:11:03 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Mon, 18 Sep 2006 03:11:02 +0300 From: Giorgos Keramidas To: Viswas Nair Message-ID: <20060918001102.GA3169@gothmog.pc> References: <73d604760609160745k6419a381y4fb9269610246d94@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <73d604760609160745k6419a381y4fb9269610246d94@mail.gmail.com> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-2.171, required 5, AWL -0.55, BAYES_00 -2.60, DNS_FROM_RFC_ABUSE 0.20, MANY_EXCLAMATIONS 0.78, UNPARSEABLE_RELAY 0.00) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: Crippled FreeBSD! Need help! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Sep 2006 08:33:50 -0000 On 2006-09-16 20:15, Viswas Nair wrote: > I have managed to scr** up my FBSD 6.1 installation. This is what > happened: > > I had an installation of BSD with which I was experimenting and > managed to get it to work to my taste. Call this installation A. This > installation had a lot of unwanted ports installed so I decided to do > a new installation. > > I installed BSD in another partition. Call this installation B. > > I wanted to custom build the kernel in B and hence created the config > file needed for the custom build. > > I used sysinstall to copy the src from the 6.1 CD. When I marked Base > inside sysinstall to be copied, it gave me an error: Write failure on > transfer! (wrote -1 bytes of 1425408 bytes). I know this is not a > problem with the CD because I was able to copy the base and src in > another machine that I have. Src however got copied in B. > > I couldnt do a make buildworld because it gave me an error saying that > it didnt know what buildworld was. > > I knew i needed the base files to get it to work. A friend of mine had > helped me custom build the kernel in installation A. > > So I mounted the partition and copied the files in /usr/src (only > files, excluded /usr/src/sys) from installation A to installation B. > > Then when I did a make buildworld it gave me an error that it was > unable to cd into a directory by thename /somepath/usr.bin. I dont > remember what somepath was. I couldn't note it down. > > Then I mounted the 6.1 CD and went into the 6.1Release folder and into > the base directory and ran ./install.sh. It asked me if I wanted to > copy files to / and i said yes. I attempted make buildworld again and > it did not work. > > When this did not work, I decided to restart the machine and try > again. However, after restarting, the login prompt does not accept my > user id and password. And when i type "root" for user, it logs me in > without asking for a password. I am clueless whats happening here. > Please help. You have managed to wipe out your /etc/master.passwd file (among other things, but let's fix this first). Backup copies of master.passwd are kept in `/var/backups', so you can always look there and restore it. Unless you have added many users during the last day or so, all should be there already :)