Re: Backing up all files on hdd - dd'ing - boot
On Tue, 20 May 2003, [iso-8859-1] Roberto Sanchez wrote:
> > > If you have another drive that is larger than the one your system is on,
> > you
> > > can do something like this (substituting for your corresponding
> > partitions):
> > >
...
> If you notice, I made the assumption that he is going to use a new drive that
> is _larger_ than his old drive.
yes ... and if one makes the new target partition bigger than the prev
source, than your target is only the same size ad the original source
- rest of it is typically unused
> When you quoted me you forgot to include my last line:
>
> "Swap the second drive into the spot of the first and toss the old drive."
didnt forget... i just left that out, common sense, to toss failing disks
or risk losing data on it ... and play/experiment with
symptoms/recovery/backup methodologies
> Again, good for normal backup procedures (it is what I use at home), but he
> said he wants to ghost a failing drive. If you dd it, instead of tar'ing it,
> you can also capture all the MBR and other stuff that will eliminate the
> need to do any setup, just "plug and play."
if the mbr and boot info is on /dev/hda1... than it might work
some folks put boot info on /dev/hda ... so dd'ing /dev/hda1 will not
make the new disk bootable
might need to do:
old# dd if=/dev/hda of=/tmp/boot.info.txt bs=512
new# dd if=/old_disk/tmp/boot.info.txt of=/dev/hda bs=512
or just re-run lilo/grub ... 100x easier and more certain that it'd work
right during booting of the new disks
c ya
alvin
Reply to: