Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 May 2010 08:12:05 -0300 (ADT)
From:      "A. Wright" <andrew@qemg.org>
To:        Jon Theil Nielsen <jontheil@gmail.com>
Cc:        User Questions <freebsd-questions@freebsd.org>, Christopher Key <cjk32@cam.ac.uk>
Subject:   Re: More than 8 partitions
Message-ID:  <alpine.BSF.2.00.1005120807230.64303@qemg.org>
In-Reply-To: <AANLkTil9Xey43nDf130e_RRE3ZNsI1RQwrp-B9XPTqBr@mail.gmail.com>
References:  <y2z8f82c35c1004301044pd7168618qa23eb66438350a5d@mail.gmail.com> <4BDC794B.2060009@cam.ac.uk> <q2s8f82c35c1005011910w1ad4792ehd90f38d3a8883519@mail.gmail.com> <4BDDBED0.7040504@cam.ac.uk> <AANLkTil9Xey43nDf130e_RRE3ZNsI1RQwrp-B9XPTqBr@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help


> On 2010/5/2, Christopher Key <cjk32@cam.ac.uk> wrote:
>
>> frhed.  Next write the data back to the disk:
>>
>> dd if=/tmp/hdr of=/dev/da0s2


On 2010/5/12, Jon Theil Nielsen wrote:

> obviously this is not the case. So I'll dd the existing partitions to
> another drive, use gpart to create "enough" partitions and then dd the old
> content back. I could easily use a standard disk layout, but the other
> approach will add some to my FreeBSD knowledge..


Just pointing out a rabbit hole here . . .

You should be aware, too that if you want to _change_ the size
(or any of several other params) of the filesystem, you don't
really want dd, you want to dump(8) the filesystem and then use
restore(8) -- as the man page says, this is the only reliable
way to change various filesystem params.

Using dd will be fine only if the sizes and all other params are
to be identical (which is the case in Chris' comment, but not in
the general case).

Andrew.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1005120807230.64303>