Get the App
SLTechnology News&Howtos  ›  Development  › 

How to back up the primary boot partition of a hard disk to a file

Shulou Source: shulou.com Published: 2022-06-03 08:36:58 11月15日 Update

This article mainly explains "how to back up the hard disk master boot partition to a file", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to back up the hard disk master boot partition to a file.

C:\ DOS > DEBUG

-A100

1078 0100 mov ax,0201; 02 = read, 01 = number of sectors read

1078 mov bx,0200 0103; after reading, put it at 0200 of the memory

1078 0106 mov cx,0001; 00 = track number, 01 = starting sector number

1078 0109 mov dx,0080; 00 = 0 head, 80 represents hard disk

1078 010C int 13; BIOS disk interrupt

1078 010E int 20; end

1078Drex 0110 ^ C

-Group100; execute from 0100

Program terminated normally; program display

-rcx; the CX register defines the size of the saved file

CX 0000; set file size

: 300; 300H = 768 bytes

-n mainboot.dat; saved in the file mainboot.dat

-w; write files

Writing 00300 bytes; program display

-Q; quit DEBUG

At this point, I believe you have a deeper understanding of "how to back up the hard disk master boot partition to a file". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: File hard disk backup content size program learning practical deeper representative interest memory area code byte practicality practical register easy to operate method more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno vpn Linux Shulou Information NVidia