What can be recovered with the Backup of DBR?
The back up of DBR may help you to get rid of the above Error messages. These Error Messages On the screen wait for the user to put a bootable disk with the above mentioned programs in the floppy drive and press a key.
The drive should be accessible if you boot the system from the bootable floppy or CD. Although the hard disk is not bootable, yet generally that should not affect access to the data of the disk drive. After booting the system with the bootable disk you can access the data.
By restoring the backup of DBR You can overcome the problems generated, as mentioned above.
Programs for Making and Restoring Backups of DBR:
The programs for making the Backups of DBR’s and restoring them are almost similar to the programs of MBR backup and to restore.
For example, if you are going to write the programs for making backup of DBR of First logical drive of the disk and to restore it back, the parameters specified by dinfo structure will be changed as follows:
Parameter |
What it means |
dinfo.drive = 0x80 |
It indicates the Physical drive 80H that is the first Hard disk drive. |
dinfo.head = 1 |
It points to head number 1 |
dinfo.track = 0 |
It points to track 0 |
dinfo.sector = 1 |
First sector of the floppy that is sector 1 |
dinfo.sector = 1 |
Number of sectors to consider for read operation = 1 |
dinfo.buffer = dbuf |
Data buffer for the operation |
Here we see that only the location of the sector to read/write is changed. Here the C-H-S is given as 0-1-1 as the DBR of first logical drive is stored here.
|