On Wednesday 01 August 2001 03:03 am, you wrote:
> On Tuesday, 31 Jul 2001, Jim Gallagher wrote:
> >I'm trying to use dd on tomsrtbt to backup a 3 GB disk partition. I can
> > get 2 GB off the partition, but that's it. Is dd using a long to count
> > bytes? If so, any change of changing this to a long long?
>
> If you're dd-ing to a file on an ext2 partition, there's a file size
> limit there of 2Gb.

there are a couple ways around this...
one could pipe the output from dd to gzip, unless the partition is full of 
compressed files, that should bring it down below 2GB, of course this is 
slower both in reading and restoring
another option is something like this:

dd if=/dev/hda1 of=hda1-1.bak bs=1945600k count=1 skip=0
dd if=/dev/hda1 of=hda1-2.bak bs=1945600k count=1 skip=1

this *should* work, just replace hda1 (in the /dev and of= entries), it's 
based on the method for spreading a tar archive over multiple floppies, but 
in this case it's reading from a device and writing to a file.
to restore you'd do

dd if=hda1-1.bak of=/dev/hda1 bs=1945600k count=1 skip=0
dd if=hda1-2.bak of=/dev/hda1 bs=1945600k count=1 skip=1

again, this *should* work, but I can't garuntee it
it'd be preferable to just backup the partition with tar and gzip if possible.

Reply via email to