From owner-freebsd-questions@FreeBSD.ORG Thu Nov 19 13:04:05 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6FA241065679 for ; Thu, 19 Nov 2009 13:04:05 +0000 (UTC) (envelope-from ndhert@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by mx1.freebsd.org (Postfix) with ESMTP id F12DA8FC0C for ; Thu, 19 Nov 2009 13:04:04 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id d23so919318fga.13 for ; Thu, 19 Nov 2009 05:04:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=179CuZhInNvGC9MkrvmDveHUJnMaSTbTu7ZbRfhwaUg=; b=WazZckhD5+pECArm8etMpscNv5yTeBqrRMOyqdQuPOF5weEpl2tiWvrXipCWfgDpQx ifKKY4Zu/zZ3XMxMUr50/YCiZd/+XDgAUFtFSjI3mE063EpDxwqIaLJmzu8Jym6g+7Ek IjsHkR2NYIs9DDrmMs5zYTUY1tlkbd4enbflc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=haA1c24ID3l+7zsUyMTHUsZdooI451Jcz497g/Qen2yb1lRRRhP2uCjeRhNFY129Ou FuiS1GOg3N97U+YYNzyD/o7o2NCgCUJGbvWdoWp9URvLiWeZuCiyv9RNmwOooQ6q/Uc8 B3wxTfjPZQWlrxcdM/zZlPGkYB/LNX6qNM9DE= MIME-Version: 1.0 Received: by 10.216.89.12 with SMTP id b12mr2232174wef.93.1258635843848; Thu, 19 Nov 2009 05:04:03 -0800 (PST) Date: Thu, 19 Nov 2009 14:04:03 +0100 Message-ID: <8021a2660911190504s65a197d7r60205a648f27c187@mail.gmail.com> From: n dhert To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: moving an entire system 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: Thu, 19 Nov 2009 13:04:05 -0000 I want to move the contents of a freebsd72 system entirely to different hardware (also Intel 64-bit), using dump/restore These are the filesystems now: /dev/da0s1a 2026030 650876 1213072 35% / /dev/da0s1e 20308398 652820 18030908 3% /tmp /dev/da0s1f 95719170 12449998 75611640 14% /usr /dev/da0s1d 20308398 2960282 15723446 16% /var /dev/da1p1 2175407698 168279068 1833096016 8% /home How should one proceed? I have an 286 Gb external USB disk formatted with a single slice large enough to hold all dumps of all fileystems, mounted on /seagate /dev/da2s1a 283810126 12 260463064 0% /seagate a. put the original machine in single-user mode b. use dump (could L be left out if machine is in single-user mode?) /sbin/dump -0aL -f /seagate/dumpofroot.dmp /dev/da0s1a /sbin/dump -0aL -f /seagate/dumpoftmp.dmp /dev/da0s1e /sbin/dump -0aL -f /seagate/dumpofusr.dmp /dev/da0s1f /sbin/dump -0aL -f /seagate/dumpofvar.dmp /dev/da0s1d /sbin/dump -0aL -f /seagate/dumpofhome.dmp /dev/da1p1 c. on the target machine, do a complete install of freeBSD72 from CD with same partition layout as original machine (On the target machine /home will be on /dev/da0s1g (no longer on /dev/da1p1)) d. target machine, plug in the external USB disk and mount it # mkdir /seagate # mount /dev/da2s1a /seagate e. restore file systems How exactly ? is this ok for /home : # umount /home # /sbin/newfs /dev/da0s1g # /sbin/mount /dev/da0s1g /mnt # cd /mnt # /sbin/restore rf /seagate/dumpofhome.dmp # umount /mnt # mount /dev/da0s1g /home for /tmp, /usr and /var? It is safe to use same procedure? or else, how to do ? And what for / file system ??? will same procedure work ?