Suppose I would want to restore trusted files to partitions (after some
hacker has succesfully attacked my system) as well as the boot sectors of
these partitions and I had made backups of these sectors by (example):

dd if=/dev/hda  of=/mnt/floppy/MBR             bs=512 count=1
dd if=/dev/hda2 of=/mnt/floppy/bootrecord_hda2 bs=512 count=1

the restoring the bootsector can be simply done by

dd if=/mnt/floppy/MBR             of=/dev/hda  bs=512 count=1
dd if=/mnt/floppy/bootrecord_hda2 of=/dev/hda2 bs=512 count=1 

Or not?
I just don't want to take any risks of deleting all partition information.


Ed

Disclaimer
************************************************************************
Aan dit bericht kunnen geen rechten worden ontleend. 
Dit bericht is uitsluitend bestemd voor de geadresseerde.
Als u dit bericht per abuis hebt ontvangen, wordt u verzocht het te 
vernietigen en de afzender te informeren.
Wij adviseren u om bij twijfel over de juistheid of de volledigheid van 
de mail contact met afzender op te nemen.
************************************************************************



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to