Write raw disk problem.

I want to write raw disk at 64bit Vista, must I write a driver to implement
it?
If I have to write a driver, which kind of driver should I write, disk
function driver or disk filter driver?
Thanks.

Any chance you can define and explain the problem to us? If you are asking
how to write to any HD at any time, from any user, then I and others will
not tell you. That is viral activity and if you don’t know how, you may
find little help. The changes made in Vista to protect volumes from direct
access are a good thing. Cheating this protection is a bad idea and it is
far too easy for the bad guys to use your implementation to bypass security.

“George” wrote in message news:xxxxx@ntdev…
>I want to write raw disk at 64bit Vista, must I write a driver to implement
>it?
> If I have to write a driver, which kind of driver should I write, disk
> function driver or disk filter driver?
> Thanks.
>
>

I want to write a IDE HDD directly to change some hidden partition’s data.
At XP, I will use CreateFile() to get the disk’s handle, and use WriteFile()
to write it. But at 32 bit Vista I found I write file failed if the buffer’s
size is more than 4MB. And I also find a news that we can’t write the raw
disk directly at 64bit Vista. So if we want to write it, how should we do?
Thanks.

“David Craig” дÈëÏûÏ¢ÐÂÎÅ:xxxxx@ntdev…
> Any chance you can define and explain the problem to us? If you are
> asking how to write to any HD at any time, from any user, then I and
> others will not tell you. That is viral activity and if you don’t know
> how, you may find little help. The changes made in Vista to protect
> volumes from direct access are a good thing. Cheating this protection is
> a bad idea and it is far too easy for the bad guys to use your
> implementation to bypass security.
>
> “George” wrote in message news:xxxxx@ntdev…
>>I want to write raw disk at 64bit Vista, must I write a driver to
>>implement it?
>> If I have to write a driver, which kind of driver should I write, disk
>> function driver or disk filter driver?
>> Thanks.
>>
>>
>
>
>

When we encountered similar problem, we got around it
by writing to an unformatted parition.

The objective was to clone an NTFS partition. Source
and target partitions were created as NTFS partitions
of same size with diskmgmt.msc. Source partition and
target partitions opened with CreateFile() with read
and write access respectively. But WriteFile() failed.
When target partition was created with same
diskmgmt.msc as an unformatted partition, it
succeeded.

Hope this helps.

— George wrote:

> I want to write a IDE HDD directly to change some
> hidden partition’s data.
> At XP, I will use CreateFile() to get the disk’s
> handle, and use WriteFile()
> to write it. But at 32 bit Vista I found I write
> file failed if the buffer’s
> size is more than 4MB. And I also find a news that
> we can’t write the raw
> disk directly at 64bit Vista. So if we want to write
> it, how should we do?
> Thanks.
>
>
> “David Craig”
> дÈëÏûÏ¢ÐÂÎÅ:xxxxx@ntdev…
> > Any chance you can define and explain the problem
> to us? If you are
> > asking how to write to any HD at any time, from
> any user, then I and
> > others will not tell you. That is viral activity
> and if you don’t know
> > how, you may find little help. The changes made
> in Vista to protect
> > volumes from direct access are a good thing.
> Cheating this protection is
> > a bad idea and it is far too easy for the bad guys
> to use your
> > implementation to bypass security.
> >
> > “George” wrote in
> message news:xxxxx@ntdev…
> >>I want to write raw disk at 64bit Vista, must I
> write a driver to
> >>implement it?
> >> If I have to write a driver, which kind of driver
> should I write, disk
> >> function driver or disk filter driver?
> >> Thanks.
> >>
> >>
> >
> >
> >
>
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR
> Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

Get news delivered with the All new Yahoo! Mail. Enjoy RSS feeds right on your Mail page. Start today at http://mrd.mail.yahoo.com/try_beta?.intl=ca

You have to use ATA pass through and you MUST run the app as the system
admin. Beyond that you are SOL. If it happens to be one of the new FDE
drives, and it’s the SP you want to muck with … you’re even more SOL since
it is the drive hardware that will not permit it, unless you have the
certificates and keys that say you can.


The personal opinion of
Gary G. Little

“George” wrote in message news:xxxxx@ntdev…
>I want to write a IDE HDD directly to change some hidden partition’s data.
>At XP, I will use CreateFile() to get the disk’s handle, and use
>WriteFile() to write it. But at 32 bit Vista I found I write file failed if
>the buffer’s size is more than 4MB. And I also find a news that we can’t
>write the raw disk directly at 64bit Vista. So if we want to write it, how
>should we do? Thanks.
>
>
> “David Craig” дÈëÏûÏ¢ÐÂÎÅ:xxxxx@ntdev…
>> Any chance you can define and explain the problem to us? If you are
>> asking how to write to any HD at any time, from any user, then I and
>> others will not tell you. That is viral activity and if you don’t know
>> how, you may find little help. The changes made in Vista to protect
>> volumes from direct access are a good thing. Cheating this protection is
>> a bad idea and it is far too easy for the bad guys to use your
>> implementation to bypass security.
>>
>> “George” wrote in message news:xxxxx@ntdev…
>>>I want to write raw disk at 64bit Vista, must I write a driver to
>>>implement it?
>>> If I have to write a driver, which kind of driver should I write, disk
>>> function driver or disk filter driver?
>>> Thanks.
>>>
>>>
>>
>>
>>
>
>
>
>