From owner-freebsd-questions Tue Jul 30 16:57:17 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 6E7D737B400 for ; Tue, 30 Jul 2002 16:57:15 -0700 (PDT) Received: from rambo.simx.org (rambo.simx.org [80.65.205.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CF8C43E3B for ; Tue, 30 Jul 2002 16:57:14 -0700 (PDT) (envelope-from listsub@rambo.simx.org) Received: from rambo.simx.org (rocky [192.168.0.2]) by rambo.simx.org (8.12.5/8.12.5) with ESMTP id g6UNv0AM013198; Wed, 31 Jul 2002 01:57:05 +0200 (CEST) (envelope-from listsub@rambo.simx.org) Message-ID: <3D47280F.80506@rambo.simx.org> Date: Wed, 31 Jul 2002 01:58:07 +0200 From: "Roger 'Rocky' Vetterberg" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc2) Gecko/20020618 Netscape/7.0b1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Roman Neuhauser Cc: freebsd-questions Subject: Re: moving an installation to another disk References: <20020730160756.GC275@freepuppy.bellavista.cz> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Roman Neuhauser wrote: > hi there, > > i just bought new disk, and want to move my existing freebsd > installation over. i could install freebsd afresh on the new disk, and > copy important files (/etc/* /usr/local/etc/*) over, but i'd rather > avoid that. i have more than just configuration files on this computer, > and i *don't* want to reinstall all the software if i don't have to. > > btw, i've read /usr/share/doc/en/articles/formatting-media/, and tried > to format the new disk (ad1) using /stand/sysinstall (fdisk + > disklabel). i managed to let fdisk confuse me with the confirm dialog > after pressing "w", and answered "no" (don't write). the newfs disklabel > performed then completely confused the system. my existing (ad0s1) > filesystems disappeared, and i had to cycle the power. the box then came > up just fine, thank you, but what the fsck was that? > > also, the /usr/share/doc/en/articles/formatting-media/ howto is > obviously outdated (the behavior it describes doesn't match that > observed in reality), and /usr/share/doc/handbook/disks-adding.html is > inaccurate just as well. for example, it says "Sysinstall will not > create entries in /etc/fstab for you, so the mount point you specify is > not important". excuse me, but this is bs. sysinstall will > oh-so-willingly (try to) mount the fs at the mount point specified! > > first, i don't remember asking it to do that. > > second, if you specify a mount point with another fs mounted, sysinstall > won't newfs the new partitions. > > hrmpf. i've been sitting on this mail on and off for a few hours, and it > perverted into more of a rant than a support question. sorry for that, > here is the question: > > how do i transfer a freebsd install from one disk to another? the disks > are different, so afaik dd is not an option. > > also, the current disk is partitioned into /, /tmp, /usr, /var, and > swap, and i'd rather have just /boot, /, and swap on the new one. > Do not underestimate the power of the documentation. A complete step by step howto explaining how to move your entire system to a new disk, not necessarily of the same size: http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#NEW-HUGE-DISK -- R To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message