From: ws@xivic.bo.open.de (Wolfgang Schelongowski) Subject: Re: DOS partition Date: Sun, 29 Aug 1993 12:53:46 MEST
teffta@cs690-3.erie.ge.com (Andrew R. Tefft) writes:
> In article <CCEI0y.FF3@world.std.com> swift@world.std.com (Peter Lu) writes:
> >
> > I inadvertently did a "dd of=/dev/hda if=..." and trashed the
> >partition table on my C disk. Luckily, I knew its layout and just
> >manually recovered the partition set-up. However, the first partition I
>
> Hm I think I will use dd to back up the important part of my
> drive in case I ever do something like this.
>
> Question -- how many bytes should I save? I know next to nothing
> about the layout of these drives.
Well, dd of=/dev/hda if=/dev/null DESTROYS ALL of your /dev/hda.
You must save your _complete_ disk to recover from _that_.
To save your bootsector (includes partition table),
dd if=/dev/hda of=<your save file> bs=512 count=1
and save that file on a floppy. You restore by
dd of=/dev/hda if=<your save file> bs=512 count=1