From owner-freebsd-questions@freebsd.org Thu Sep 12 23:33:12 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A2E65DDD66 for ; Thu, 12 Sep 2019 23:33:12 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from smtp.rcn.com (smtp.rcn.com [69.168.97.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46Tw7C27kJz3PrZ for ; Thu, 12 Sep 2019 23:33:10 +0000 (UTC) (envelope-from roberthuff@rcn.com) DKIM-Signature: v=1; a=rsa-sha1; d=rcn.com; s=20180516; c=relaxed/simple; q=dns/txt; i=@rcn.com; t=1568331190; h=From:Subject:Date:To:MIME-Version:Content-Type; bh=p6Nc0RMBqnBHVyHL61wMiyVk5HM=; b=TB6csFkLrOo5zHETNfaPn4YGRKv4mp9JwbOA73rgZyK3xYVGANSi6CssJun0ccZ/ QTNbZhG41lyuUt0KgpSmlzpwC3ut7MvI0oFWhwjFNWYicCGtDP4eGG2aZn7Rs6ns JEs1fxUk3zIklou8ZVLgfcEfygh+1RXK/VCZS8VyWQMgcM26NVjKCY1moUQp2kcO w77gIhgVvZX2gKjd+q5LS2tM4QuKWINqwWEFNExdu6/N7N+ZLFM/IRooOPRP4Q9T lU5b7JvoLQqwjkTbdsUC2s8uDwRS7R1iR5u5u38gZY+XfbzlNm8c4SNS7wD4m8PZ t2+CvcH+dCHMcwB9NxEZKw==; X_CMAE_Category: , , X-CNFS-Analysis: v=2.3 cv=J5TUEzvS c=1 sm=1 tr=0 a=9TgA2UwI6Wy+6BV4wQM/cQ==:117 a=9TgA2UwI6Wy+6BV4wQM/cQ==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=KGjhK52YXX0A:10 a=8nJEP1OIZ-IA:10 a=XRQyMpdBKAEA:10 a=J70Eh1EUuV4A:10 a=48faUk6PgeAA:10 a=WeBIM9OnVwH3v4Sq48sA:9 a=wPNLvfGTeEIA:10 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine X-Authed-Username: cm9iZXJ0aHVmZkByY24uY29t Received: from [209.6.230.48] ([209.6.230.48:41582] helo=jerusalem.litteratus.org.litteratus.org) by smtp.rcn.com (envelope-from ) (ecelerity 3.6.25.56547 r(Core:3.6.25.0)) with ESMTPSA (cipher=AES256-GCM-SHA384) id A0/63-07507-5B5DA7D5; Thu, 12 Sep 2019 19:33:10 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <23930.54709.191581.19474@jerusalem.litteratus.org> Date: Thu, 12 Sep 2019 19:33:09 -0400 From: Robert Huff To: Karl Denninger Cc: freebsd-questions@freebsd.org Subject: Re: Moving boot disk - does not seem easy? In-Reply-To: <7a80152a-4271-51e7-0f8c-ff65228249c1@denninger.net> References: <03d6bfcb-aaad-c3a5-d2a6-b14f819113c2@mansionfamily.plus.com> <7a80152a-4271-51e7-0f8c-ff65228249c1@denninger.net> X-Mailer: VM 8.2.0b under 26.3 (amd64-portbld-freebsd13.0) X-Rspamd-Queue-Id: 46Tw7C27kJz3PrZ X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=rcn.com header.s=20180516 header.b=TB6csFkL; dmarc=pass (policy=none) header.from=rcn.com; spf=pass (mx1.freebsd.org: domain of roberthuff@rcn.com designates 69.168.97.78 as permitted sender) smtp.mailfrom=roberthuff@rcn.com X-Spamd-Result: default: False [-4.88 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[rcn.com:s=20180516]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:69.168.97.0/24]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(-1.78)[ip: (-9.44), ipnet: 69.168.97.0/24(0.11), asn: 36271(0.48), country: US(-0.05)]; DWL_DNSWL_LOW(-1.00)[rcn.com.dwl.dnswl.org : 127.0.5.1]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[rcn.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[rcn.com,none]; RCVD_IN_DNSWL_LOW(-0.10)[78.97.168.69.list.dnswl.org : 127.0.5.1]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:36271, ipnet:69.168.97.0/24, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Sep 2019 23:33:12 -0000 Karl Denninger writes: > On 9/12/2019 16:26, james wrote: > > I had thought that this would be straightforward but it seems not.= > > > > I have a freebsd 12 system, UFS boots /ada0p2.=A0 Mounts some ZFS > > partitions and I'm away. > > > > I add a new PCIe card with a SATA SSD, and it grabs ada0. > > > > I want to move my boot to the SSD, not least because the boot prio= rity > > now favours it as ada0, and I had to manually boot ada1p2. > > > > There's not much on ada1p2 now, but I want the new ada0p2 to be > > smaller, so dd is not attractive. > > > > What's the easiest way to set ata0 to be much like ada0p2 was (giv= en > > that I booted from ada1p2)=3F > > > > Ideally I'd like boot and swap etc set up as well, which I kinda d= id > > already with sade. > > > > I already had the issue with freebsd-install/MANIFTEST missing and= did > > a basic install to ada0, but it seems a bit naff to unmount all my= ZFS > > mountpoints just to tar across all the rest of it. > > > > Any pointers=3F > > > I've done this many times and it's very easy. > =20 > Look at the old disk (e.g. "gpart ada1" and friends) so as to get th= e > proper partition settings (e.g. sizes, etc) > =20 > Use gpart to set up the NEW disk with the same basic configuration > (slice types, etc.) -- it is, of course, ok to change the sizes -- > it's just important that the data on the old disk fits. =09Use gpart to label the new disk - call it, say, "root". =09 =09In fstab, replace however you currently mount / with: /dev/gpt/root=09/=09=09ufs=09=09rw=09=091=091 =09changing "ufs" to "zfs" if appropriate. =09Power down system; unhook old drive; start system. Things should Just Work. =09=09=09Respectfully, =09=09=09=09Robert Huff