On Mon, 27 Mar 2000, mike ledoux <[EMAIL PROTECTED]> wrote:
> On Mon, 27 Mar 2000, Paul Lussier wrote:
> 
> 
> I usually just keep a hard copy, and restore the table by hand if
> there is a problem.  But then, I've never had much luck with automated
> recovery tools--there's usually something on my system that they don't
> know about and can't deal with.
> 
> For each drive, I run '/sbin/fdisk -l $drive >> /tmp/ptable' and
> '/sbin/fdisk -l -u $drive >> /tmp/ptable'.  When I'm done, I just make
> a hard copy printout of /tmp/ptable, which contains all of the
> information I've ever needed to restore a partition table by hand.

If you want the actual partition table do something like this:

    dd if=/dev/hda of=/tmp/mbr.hda bs=512 count=1

I believe 512 (1 sector) is the correct size. Restore with a similar
command.

I don't normally do this unless I am screwing around with the MBR in 
a weird way and think I might really hose things. Perhaps it is
a good practice in general... I have never used partition magic or
similar utilities so I don't know how they mess up the above strategy.

Karl Runge


**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************

Reply via email to