1

Что такое сценарий отладки DOS для низкоуровневого форматирования жесткого диска?

2 ответа2

2

Я не пробовал это, но вот что я нашел ..

Я помню, как читал, может быть, из книги Скотта Мюллера по UGRP, может быть, из справочника Дэвида Дика по поддержке ПК, может быть из какой-то странной статьи в старом журнале, что вы можете сделать низкоуровневый формат на жестком диске с помощью отладки. Я вижу ссылку об этом здесь http://www.fdisk.com/fdisk/HardDrive.htm (он говорит, что это трудно, это должно быть сделано на SATA, хотя, если бы это был мой жесткий диск, я бы рискнул. Другая ссылка не специфично для SATA, сказал, что худшее, что может случиться, это форматирование жесткого диска)

там упоминаются некоторые сценарии отладки. Я не пробовал их.

Вот ссылка MS на выполнение низкоуровневого формата с отладкой
http://support.microsoft.com/kb/60089

В одной из ссылок упоминается, что худшее, что может случиться, - это форматирование жесткого диска.

Другая ссылка упоминается

Из того, что я прочитал, похоже, что скрипт работает в BIOS контроллера жесткого диска. (я думаю, это зеленая печатная плата, которую люди заменяют на идентичный или один и тот же чипсет, когда их жесткий диск не включается).

Эта ссылка упоминает это
http://www.computerhope.com/jargon/l/lowlevel.htm и эта ссылка выглядит отлично и предоставляет следующие сценарии
http://www.computerhope.com/rdebug.htm#4

Erase all hard drive information

This debug routine is used to erase all partition information on the hard disk drive and is only recommend for experienced users or users who are unable to delete the partition information through fdisk.

In the below debug routine, only type what is in bold from line 3 to 8, you will get a response if typed in properly. If you get a response continue to type the bold text as shown below in the below example.

A:\>debug <enter>
-F 200 L1000 0 <enter>
-A CS:100 <enter>
xxxx:0100 MOV AX,301 <enter>
xxxx:0103 MOV BX,200 <enter>
xxxx:0106 MOV CX,1 <enter>
xxxx:0109 MOV DX,80 <enter>

(80 for hd 0 or 81 for hd 1 )

xxxx:010C INT 13 <enter>
xxxx:010E INT 20 <enter>
xxxx:0110 <enter>
-g <enter>
Program terminated normally
-q<enter>

Once this debug routine is complete, reboot computer and all partitions should be erased. Before anything can be installed back onto the computer you must run Fdisk and recreate the partition as well as format the hard disk drive.

Additional information about fdisk can be found on our fdisk page.
Additional information about format can be found on our format page.
Erase hard drive and clear CMOS

Before doing the below routine ensure that you read our disclaimer as well as are sure that this is safe to do on your hard drive. Some computer hard drive manufacturers may void your warranty or this may cause damage to the hard drive when doing the below example. This routine is useful in clearing DDO and removing possible viruses. If this routine completes successfully it will erase everything from your Hard drive as well as your reset your CMOS values.

In the below debug routine, only type what is in bold from line 3 to 17, you will get a response if typed in properly. If you get a response continue to type the bold text as shown below in the below example.

A:\>debug <enter>
-fcs:200 400 0 <enter>
-acs:100 <enter>
-xxxx:0100 mov ax, 0 <enter>
-xxxx:0103 mov ax, cx <enter>
-xxxx:0105 out 70, al <enter>
-xxxx:0107 mov ax, 0 <enter>
-xxxx:010a out 71,al <enter>
-xxxx:010c inc cx <enter>
-xxxx:010d cmp cx,100 <enter>
-xxxx:0111 jb 103 <enter>
-xxxx:0113 mov ax,302 <enter>
-xxxx:0116 mov bx,200 <enter>
-xxxx:0119 mov cx,1 <enter>
-xxxx:011c mov dx,80 <enter>
-xxxx:011f int 13 <enter>
-xxxx:012l int 20 <enter>
-xxxx:0123 <enter> (without typing anything.)
-g <enter>
program terminated normally
If you are doing this debug routine to clear out a possible virus turn off your computer and wait and turn back on.
-q <enter>
Once back at DOS, reboot your computer

When your computer comes back on from doing the above you will get an error message as booting up the computer, such as Invalid Configuration. You must enter CMOS and set the time and date, save, and reboot again. Once rebooted, you will then need to run fdisk and recreate the partitions. Once created, you will then need to format the hard drive and proceed as normal.

Ссылка на fdisk.com упоминает кучу ссылок
http://support.microsoft.com/kb/q106419/

Кажется, есть проблемы, упоминается ВНИМАНИЕ: Некоторые компьютеры требуют использования стороннего программного обеспечения для разбиения жесткого диска, поскольку системный ПЗУ BIOS не полностью поддерживает параметры жесткого диска, который используется, или потому, что жесткий диск имеет более 1024 цилиндров данных. Если вы не уверены, поддерживает ли ваша система жесткий диск, проконсультируйтесь с производителем оборудования или производителем программного обеспечения для создания разделов, прежде чем продолжить. также MS-DOS версии 3.3 может адресовать несколько разделов жесткого диска, с основным разделом DOS до 32 МБ и расширенным разделом DOS, содержащим логические диски до 32 МБ каждый; и MS-DOS версий 4.0, 4.01, 5.0, 6.0 и 6.2 могут адресовать несколько разделов жесткого диска размером до 2 гигабайт (ГБ).

Вот ссылка Dell http://support.dell.com/us/en/kb/document.asp?DN=TT1011054, но она не работает .. большинство не включили ее, но, к счастью, похоже, что сценарий все еще доступен здесь http://www.allquests.com/question/2211276/Windows-Defragmenter-corrupts-disk.html

http://support.dell.com/us/en/kb/document.asp?DN=TT1011054 и скопирован здесь:

"MS-DOS?? Partition Removal Debug Script 

CAUTION: This debug script is for advanced users only. Its purpose is to remove all formatting and partitioning information from your hard disk when FDISK is unable to do so. THIS WILL ALSO REMOVE ALL DATA AND PROGRAMS FROM THE DRIVE. REPEAT: The next steps will remove all data from hard-disk drive. We URGE YOU to make a back-up of any data and programs that you wish to save before proceeding. REMEMBER: ALL DATA WILL BE LOST! Be sure you have the necessary bootable media and files to reboot your system and install your operating system (boot disk with CDROM drivers, MSCDEX, FDISK, FORMAT, SYS, etc). 

Turn on the computer. When the message Starting MS-DOS?? appears press [F5]. If you are using Windows?? 95, when the message Starting Windows 95 appears press [F8]. Then select Command Prompt Only. 
At the DOS command prompt, type the following:
debug[Enter]
where [ENTER] is to press the enter key once. 
CAUTION: Performing the following will remove all data from your hard disk drive.

NOTE: Type the following bolded text only. You will receive an error if you type anything other than the bold text. The non-bolded text represents what will appear on your screen once you press [Enter] after typing each command.

-F 200 L1000 0 [Enter] 
-A CS:100 [Enter]
xxxx:0100 MOV AX,301 [Enter] 
xxxx:0103 MOV BX,200 [Enter] 
xxxx:0106 MOV CX,1 [Enter] 
xxxx:0109 MOV DX,80 [Enter] 

NOTE: ( -- "80" for hd 0, "81" for hd 1 ) 

xxxx:010C INT 13 [Enter] 
xxxx:010E INT 20 [Enter] 
xxxx:0110 [Enter] 
-G [Enter] 
"Program terminated normally" 


Turn off the computer. On the next startup the hard drive will need to be partitoned and formatted. "
0

На контроллере Western Digital вы только что начали отладку и набрали:

G=C800:5

И это приведет к низкоуровневому форматированию диска для большинства дисков WD и Seagate того времени. Затем вы разделяете его с помощью FDISK и форматируете его:

C:>format c: /s /v:CDRIVE

Всё ещё ищете ответ? Посмотрите другие вопросы с метками .