From owner-freebsd-questions@FreeBSD.ORG Wed Apr 18 15:51:32 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DE46716A402 for ; Wed, 18 Apr 2007 15:51:32 +0000 (UTC) (envelope-from illoai@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id 4D1E913C448 for ; Wed, 18 Apr 2007 15:51:32 +0000 (UTC) (envelope-from illoai@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so371442ugh for ; Wed, 18 Apr 2007 08:51:31 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GG/obB4v2IkpLuD0A/iz0T9GzVZXj26xatp+R+sFmtsHQ1G4QW9O6KcGNeA+WYHx9cH+sicjZkTCVFD4DcNvHw/D6SjlfL0ikdtf/Tk3CL/PvyMGPr7+dHj3kfne0dfGGM51eoVaSDEQgxLKodFLiMO+nMTdz0/bEyNqM9MFKXA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=plCZIANr36R8V6jGS+6NNdbbUiP09brmXsRdtMeS8V5pWHDVwkdGR2wuL7/TZHUZt7toV0XLqFmzW2GFMCmtBT/qJePtqV2yhYwmA8Q04+jlD0pxdG5ck9z7g7tCmFootbbVR9GeGAXHNDu9CPHhQSKIMxERjbqgYVv3FUE2fv4= Received: by 10.82.116.15 with SMTP id o15mr1024382buc.1176911491279; Wed, 18 Apr 2007 08:51:31 -0700 (PDT) Received: by 10.82.185.16 with HTTP; Wed, 18 Apr 2007 08:51:30 -0700 (PDT) Message-ID: Date: Wed, 18 Apr 2007 10:51:30 -0500 From: "illoai@gmail.com" To: "Amarendra Godbole" In-Reply-To: <294439d20704180628j8598a14v31f84d171ac47708@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <294439d20704180628j8598a14v31f84d171ac47708@mail.gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Moving existing FreeBSD system to a new harddisk... 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: Wed, 18 Apr 2007 15:51:33 -0000 On 18/04/07, Amarendra Godbole wrote: > Hi, > > I have FreeBSD 6.2 installed on a Dell Latitude D400 laptop. The > harddisk is 40G, with FreeBSD occupying about 25G, and remaining to > Windows. I have received a replacement for this hard disk, which is a > bigger capacity one - 80G. I have to move the existing FreeBSD system > from the old to the new hard disk. I did find something here: > http://www.freebsddiary.org/driveswap.php. Still, I'd like to hear > someone's experience regarding the same. Thanks! > Dan's process seems fairly sound, from having done this myself. I use pax(1)* on the filesystems rather than tar(1) on the archives, and I tend to only backup /home, /etc, /var (especially /var/db/pkg), and /root. If you do not make some dreadful error your old drive is the backup, at least until you can confirm the state of the new drive. *cd / && pax -r -w -p e -X ./ /mnt && \ pax -r -w -p e -X ./var /mnt && etc etc for /usr /home and any other mountpoints (if I recall correctly. Note that with pax the -X flag is important in this case so it is not trying to copy /mnt into /mnt/mnt and into /mnt/mnt/mnt and so on) -- --