Re: backing up a drive
Dmitri Minaev wrote:
>On 3/21/06, Robert Brockway <email@example.com> wrote:
>>>There may be a way around this limitation or to fix it after
>>Following a reimaging from dd the options to expand the filesystem are:
>>1. Resize the filesystem using suitable tools if possible.
>>2. Take the data off using a tool like dump, xfsdump (for xfs), cpio or
>>tar and remake the filesystem before restoring.
>Or send the dd output to a file instead of a partition. Then you can
>use the free space on the target partition for other files.
Surley Dmitri's method here is best because `dd if=<physical device>
for example: `dd if=/dev/hda of=/disk2/backup1.img`
will not only give a bit-for-bit copy of the entire drive that's easily
rewritten onto to the original media, but is also a simple (and
portable) file, so you don't need to worry about finding an identical
disk to do the initial disk dump onto.
Only do this in single user mode though, right? Or better still, on a
cold system running from a pair of rescue floppies or a debian installer CD.