From owner-freebsd-questions@FreeBSD.ORG Thu Sep 25 20:39:53 2003 Return-Path: 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 A79CE16A4B3 for ; Thu, 25 Sep 2003 20:39:53 -0700 (PDT) Received: from mail3.panix.com (mail3.panix.com [166.84.1.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id A7A614401A for ; Thu, 25 Sep 2003 20:39:52 -0700 (PDT) (envelope-from jester@panix.com) Received: from panix2.panix.com (panix2.panix.com [166.84.1.2]) by mail3.panix.com (Postfix) with ESMTP id D94699825E for ; Thu, 25 Sep 2003 23:39:51 -0400 (EDT) Received: (from jester@localhost) by panix2.panix.com (8.11.6p2-a/8.8.8/PanixN1.1) id h8Q3dpr10696 for freebsd-questions@freebsd.org; Thu, 25 Sep 2003 23:39:51 -0400 (EDT) Date: Thu, 25 Sep 2003 23:39:51 -0400 From: Jesse Sheidlower To: freebsd-questions@freebsd.org Message-ID: <20030926033951.GA9516@panix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: Upgrading HD difficulties X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Sep 2003 03:39:53 -0000 I have been trying for some time to upgrade the HD in my FreeBSD 4.8 laptop, attempting many different things but all with no success. I don't have a separate enclosure for it, and it being a laptop I can only put in one drive at a time. My basic plan has been to back up the current HD to another computer, install the new HD, boot from the Mini CD, use the Fixit shell on the CD to mount the new HD, mount the other computer over NFS, and transfer everything into the newly mounted directory. Originally I tried with dump, but I kept getting loads of errors, so I switched to tar. I made one tarfile of /usr (which is relatively large), and one of everything else. For example: # mount_nfs 192.168.1.2:/OtherComputerHD /mnt2 # newfs /dev/ad0s1 # mount /dev/ad0s1 /mnt # cd /mnt # tar xf /mnt2/original.tar # tar xf /mnt2/original-usr.tar (I actually had to install mount and tar onto the NFS filesystem and run them from there; I'm not showing that here.) I then rebooted, from the new HD this time, rather than the CD, and things started to work OK. But eventually I ran into filesystem problems--sync problems, or other things, and I had to run fsck -y manually to fix them. But though this did clean the filesystem, the stuff that was there wasn't what I had untar'd into place--it seemed to be a bare minimun copy of the OS. This has repeated more than once. I obviously don't know what I'm doing, but would be very grateful for any suggestions for how to get this new HD in. I want it to be exactly the same as the existing one, but with more room; I'm not trying to do anything fancy or switch anything around. Especially by this point I'm willing to do anything to get things working again, as I really need my computer back! Thanks for any ideas. Jesse Sheidlower