From owner-freebsd-questions Fri Sep 13 12:39:44 2002 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 C08FB37B400 for ; Fri, 13 Sep 2002 12:39:40 -0700 (PDT) Received: from sage-one.net (adsl-65-71-135-137.dsl.crchtx.swbell.net [65.71.135.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9331943E72 for ; Fri, 13 Sep 2002 12:39:39 -0700 (PDT) (envelope-from jackstone@sage-one.net) Received: from sagea (sagea [192.168.0.3]) by sage-one.net (8.11.6/8.11.6) with SMTP id g8DJdbS47882; Fri, 13 Sep 2002 14:39:38 -0500 (CDT) (envelope-from jackstone@sage-one.net) Message-Id: <3.0.5.32.20020913143937.00fbeac8@mail.sage-one.net> X-Sender: jackstone@mail.sage-one.net X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Fri, 13 Sep 2002 14:39:37 -0500 To: Gerard Samuel , FreeBSD Questions From: "Jack L. Stone" Subject: Re: Moving boot drives In-Reply-To: <3D823681.5040706@trini0.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 03:03 PM 9.13.2002 -0400, Gerard Samuel wrote: >Im changing disks in one of my boxes. >Im following a post made by Dean on >http://www.freebsddiary.org/driveswap.php. >I dont think my problem is with the procedure of moving data from drive >to drive. >When I reboot with the new drive I get "Invalid Partition" >Before I moved the data, I would add the drive to the system (while it >was off of course), enter /stand/sysinstall, >fdisk the drive, set it to be bootable. Then enter disklabel, create >the partitions, and write the changes to disk. >Is that enough to make a drive to be bootable, or am I missing something. >Thanks > >-- >Gerard Samuel >http://www.trini0.org:81/ >http://dev.trini0.org:81/ > As the handbook advises, dump/restore is best way to move a filesystem. I use a script that does the FDISK, disklabels, dumps and restores any partition(s) from one disk to another, including the root/bootable. Never have to enter sysinstall at all. It's automatic, except for any resizing of partitions perhaps desired. I don't trust tar to do that or any other method, except perhaps dd. If dd is used (makes an image), the new HD must be equal or larger in size. If larger, the extra cannot be used though. Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net jackstone@sage-one.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message