From owner-freebsd-questions@FreeBSD.ORG Fri Nov 11 13:27:20 2005 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 717EE16A41F for ; Fri, 11 Nov 2005 13:27:20 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail28.sea5.speakeasy.net (mail28.sea5.speakeasy.net [69.17.117.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D09C43D45 for ; Fri, 11 Nov 2005 13:27:19 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 24551 invoked from network); 11 Nov 2005 13:27:19 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail28.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 11 Nov 2005 13:27:19 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 7DC6D28446; Fri, 11 Nov 2005 08:27:18 -0500 (EST) Sender: lowell@be-well.ilk.org To: Dave Webster References: <1131613531.814.17.camel@Freeman.myLQ.ca> From: Lowell Gilbert Date: 11 Nov 2005 08:27:18 -0500 In-Reply-To: <1131613531.814.17.camel@Freeman.myLQ.ca> Message-ID: <44iruz1fih.fsf@be-well.ilk.org> Lines: 45 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: FreeBSD questions Subject: Re: adding a second hard drive 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: Fri, 11 Nov 2005 13:27:20 -0000 Dave Webster writes: > To solve a problem I'm having with /var running out of space, I decided > to add a second hard drive. > > I found info at freebsd.org on adding disks using sysinstall and > followed the advice. The old disk is a Maxtor 6Y080L0 80G as ad0 and > the new disk is a Maxtor 6Y120P0 as ad3. I ran sysinstall, chose ad3 > and parition it with: / 512M, /swap 2G, /tmp 3G, /var 4G, /usr > 30G, /data 76G. Did an installation with Kern source and documentation. > Added a new user, and set a password for root. I added the FreeBSD boot > manager. > > I rebooted to ad0 (didn't have the FreeBSD boot manager on this drive > yet), and found I could no longer login as the regular user and that my > root password was the one I had just set up on ad3. I adduser my old > login and assigned it the original ID and got back the settings in my > home directory, although I don't know what I've doen to the > configuration files in /etc. > > I tried to put the FreeBSD boot manager on ad0 with: > boot0cfg -B ad0 but get an erro: > boot0cfg: open /de/ad0: no such file or directory > > I've googled this problem but have found little help except that it > shouldn't happen and it should be reported. > > I'm running FreeBSD 5.4 stable. I'm temped to start over from scratch > but would hate to lose everythin on ad0 without first transferring it to > ad3. I've tried to mount ad3 and ad3c (the only references to ad3 > in /dev) using: > mount /dev/ad3 /mnt/bigdrive but get an error: > mount: /dev/ad3 on /mnt/bigdrive: incorrect super block > > So I'm pretty lost. Any help would be greatly appreciated. I've spent > 4-5 hrs googling for solutions but nothing seems to work. It sure *sounds* like you accidentally did your install to the old disk instead of the new one. If that is the case, then your old data are indeed lost -- overwritten with the new install. Also, it sounds like you were following the advice for moving your whole system to the new disk, whereas the advice for *adding* the new disk to the old one would have been more appropriate. That's the "disk formatting tutorial" article in the documentation collection.