From owner-freebsd-questions@freebsd.org Sun Aug 20 11:42:02 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8BBFEDCBC04 for ; Sun, 20 Aug 2017 11:42:02 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 029488383E for ; Sun, 20 Aug 2017 11:42:00 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id v7KBfO7k024192; Sun, 20 Aug 2017 21:41:24 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Sun, 20 Aug 2017 21:41:24 +1000 (EST) From: Ian Smith To: Manish Jain cc: Karl Vogel , "freebsd-questions@freebsd.org" Subject: Re: Anything specific to keep in mind restoring from rsync? In-Reply-To: Message-ID: <20170820202655.S19528@sola.nimnet.asn.au> References: <20170820001747.U98697@sola.nimnet.asn.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Aug 2017 11:42:02 -0000 On Sat, 19 Aug 2017 15:00:14 +0000, Manish Jain wrote: > > On 08/19/17 20:08, Ian Smith wrote: > > However, despite not having used it myself - and still assuming UFS - > > this seems a model job for growfs(8). The backup first is of course > > sensible, but by just resizing the partition with gpart and then using > > growfs, all that extra work should be obviated, if I'm reading it right. > > Hi Ian/others, > > That precisely was what I needed to do. Using MBR + UFS, I have : > > ada0s1 - Linux 30 GB -> 20 GB > ada0s2 - FreeBSD 30 GB -> 40 GB > > In effect the FreeBSD slice starts 10 GB to the left. Ah, if I'd not ASSumed you were just increasing its size upwards, to the right if you prefer, I wouldn't have mentioned growfs at all. > But I was unsure whether growfs has the capability to expand the root > filesystem in that manner (starting further to its left). So I just > rsynced my data to a backup. On the surface that'd seem difficult to impossible, as how would growfs find the original start of FS, apart from logistical difficulty (but not impossibility) of then shuffling blocks around to avoid clobbering unmoved data, however I skimmed the code and read its fairly detailed commentary, and finding no mention either way about such scenario I tend to conclude it's not mentioned because "who would even think you could do that!" .. but I've been wrong before, once or twice :) > Since the whole thing took just an hour or 2, I would not say there was > any inconvenience I faced anywhere : - ) Fair enough too, especially having to do it for the Linux partition also. One of the only? useful things about msdosfs was that - after a defrag - you could reduce the size of a partition to where data ended, which in the olden days was often suggested to make room for FreeBSD. cheers, Ian