Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Reading a harddisk cluster by cluster

Posted on 2003-03-17
9
Medium Priority
?
364 Views
Last Modified: 2013-11-15
OS: Win2000

I have lost the partition table of my HD.
How can I scan the entire HD cluster by cluster looking for a certain string
without using external recovering tools?
Any example?
0
Comment
Question by:ginocomino
9 Comments
 
LVL 6

Expert Comment

by:gj62
ID: 8153225
You have to use the disk BIOS services, INT 13, I believe.  Check out http://www.clipx.net/ng/peter_norton/ng76349.php

0
 
LVL 86

Expert Comment

by:jkr
ID: 8153735
>>BIOS services, INT 13

Interrupts is a "no no" in Win32 user mode. Check out http://support.microsoft.com/default.aspx?scid=KB;en-us;100027& ("INFO: Direct Drive Access Under Win32")
0
 

Expert Comment

by:TheShadowOne
ID: 8153849
As the other guys said the Int 13 will provide you this service so, try this, I use this code to read the floppy disk so change the drive number to dl = 01 to read the C drive, also it will work on Win NT,

║asm{
║  mov ah,0x00         //RESET DISK
║  mov dl,0x00         //drive number
║  int 0x13
║  mov ah,0x02         //Interrupt code
║  mov al,psec         //Number of sectors to read
║  mov ch,cyl          //cylinder number 0-1023
║  mov cl,sec          //sector number 1-17
║  mov dh,head         //head number   0-1
║  mov dl,0x00         //drive number
║  push bx
║  push es
║  mov bx,ds
║  mov es,bx
║  mov bx,pdata
║  int 0x13
║  pop es
║  pop bx
║ }
0
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 
LVL 86

Expert Comment

by:jkr
ID: 8153892
>>As the other guys said the Int 13 will provide you this service

No. This will not work on Win32. Besides, that is 16bit assembler...
0
 
LVL 6

Expert Comment

by:gj62
ID: 8154009
Sorry, didn't see the OS listed.

My bad...

Haven't done this type of stuff much, but seem to recall you can use VWIN32_DIOC_DOS_INT13 through DeviceIoControl - or is that not for Win2000?  
0
 
LVL 86

Expert Comment

by:jkr
ID: 8154039
>>VWIN32_DIOC_DOS_INT13 through DeviceIoControl - or is that not for Win2000?  

IIRC, 'VWIN32*' control codes are for .vxd's - and that is Win9x...
0
 
LVL 6

Expert Comment

by:gj62
ID: 8154078
duh, sorry about that - too much fog inside the head today...

thanks!
0
 
LVL 20

Expert Comment

by:jmcg
ID: 10142700
Nothing has happened on this question in more than 9 months. It's time for cleanup!

My recommendation, which I will post in the Cleanup topic area, is to
PAQ, refund points (possibly interesting answers for other contexts).

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jmcg
EE Cleanup Volunteer
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 10205784
PAQed, with points refunded (50)

Computer101
E-E Admin
0

Featured Post

Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
VM backup deduplication is a method of reducing the amount of storage space needed to save VM backups. In most organizations, VMs contain many duplicate copies of data, such as VMs deployed from the same template, VMs with the same OS, or VMs that h…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Suggested Courses

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question