Jump to content

Search the Community

Showing results for tags 'but HDDs are OK'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • Forum FAQ
  • AutoIt

Calendars

  • Community Calendar

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. I can do a raw write to a hard drive, even when hooked up through a USB bridge, but can not to a flash drive. Any theories?? **PLEASE BE CAREFUL WITH THIS TEST SCRIPT!!!!!!!! I have it hard-coded for \\.\PHYSICALDRIVE2, if you are unsure of what that is, or how to determine which drive that may be for you, or care at all about the data on that drive should you be able to identify it, then DO NOT RUN THIS TEST!! #include <WinAPI.au3> $ChunkSize = 8 * 1024 * 1024 ConsoleWrite("building zero fill data, be patient" & @CR) $ZeroFill = "" For $a = 1 To $ChunkSize $ZeroFill &= Chr(0) Next $Destination = _WinAPI_CreateFile("\\.\PHYSICALDRIVE2", 2, 4); CAREFUL!!!!!!!! BE SURE TO CHECK THIS!!!!! Local $nBytes, $nBytesWritten Local $tBuffer = DllStructCreate("byte[" & $ChunkSize & "]") Local $pBuffer = DllStructGetPtr($tBuffer) DllStructSetData($tBuffer, 1, $ZeroFill) $Write = _WinAPI_WriteFile($Destination, $pBuffer, $ChunkSize, $nBytesWritten) MsgBox(0, "Status", "Open Destination: " & $Destination & @CR & "Write: " & $Write) Setting the PHYSICALDRIVE number to a hard drive will return 1 for $Write. Any ideas would be appreciated, I have a suite of drive tools nearing completion and this issue has been stopping me for long enough! Forensic images, disk-to-disk cloning, testing, and wiping will be included in the suite. Thanks for any help! Ian
×
×
  • Create New...