Re: Backing up all files on hdd - dd'ing - boot
dd works best for identical drives, as you will also copy any drive
geometry stuff in the MBR to the new drive, though you can set that up
again.
I remember reading about how dd will copy the bad sector list as well,
which is not desirable.
My preferred truly clean way is to boot linux from a cd, recreate the
partitions and filesystems on the new drive by hand, restore the
tar/cpio/dump/other to the partitions one at a time, mount the new
drive somewhere and do a "/whereyoumountedthenewdrive/sbin/lilo
-iforgettheoptions" or grub or what have you to lay down a boot sector.
That last step is essential; the lilo in the filesystem you restored
must be used unless you are using an identical version of lilo on the
boot cd or you will have errors booting.
--- Alvin Oga <aoga@Maggie.Linux-Consulting.com> wrote:
>
> 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
>
>
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
Reply to: