RamDisk not showing up?

I’m trying to create a legacy (non-PnP) ram disk, so far it’s mostly working: I’ve created a device named \device\harddisk1\Partition0 and symlinked it to PhysicalDrive1, but for some reason the device shows up in certain tools such as HxD (under the Physical disks tab), but won’t show up when trying to list disks using most software. I’m not too worried about creating a logical disk that shows up in explorer as I only need it for raw access, but I’m just wondering if this is normal and if not, what must I do to have the disk show up everywhere?

>device shows up in certain tools such as HxD (under the Physical disks tab), but won’t show up when

trying to list disks using most software.

This is because it is not PnP.

Or maybe you forgot to support some IOCTLs.


Maxim S. Shatskih
Microsoft MVP on File System And Storage
xxxxx@storagecraft.com
http://www.storagecraft.com

>>I’ve created a device named \device\harddisk1\Partition0 and symlinked it
to PhysicalDrive1

You may want to rethink this. If someone looks at the world through
\device\harddisk1\Partition0 colored glasses, the are going to see a
partition device and not a physical device. On the flip side, if someone is
looking at the world through PhysicalDrive1 colored glasses, they will see
a physical drive.

Why have you set things up like this?

On Thu, Mar 12, 2015 at 4:32 AM, Maxim S. Shatskih
wrote:

> >device shows up in certain tools such as HxD (under the Physical disks
> tab), but won’t show up when
> >trying to list disks using most software.
>
> This is because it is not PnP.
>
> Or maybe you forgot to support some IOCTLs.
>
> –
> Maxim S. Shatskih
> Microsoft MVP on File System And Storage
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>


Jamey Kirby
Disrupting the establishment since 1964

This is a personal email account and as such, emails are not subject to
archiving. Nothing else really matters.

I made a little mistake there: \device\harddiskX\Partition0 and
PhysicalDriveX are actually both symlinks to \device\harddiskX\dr0, so
assumingly I only need to create \device\harddisk1\Dr0 and symlink
PhysicalDrive1 to it; however, I’m not sure if that solves my problem of
getting the device to show up when enumerating disks? From what I gather, a
lot of tools are simply bruteforcing PhsyicalDriveX and returning all
successful handles, so it will work for those, but are there other ways?

On Sat, Mar 14, 2015 at 4:52 PM, Jamey Kirby wrote:

> >>I’ve created a device named \device\harddisk1\Partition0 and symlinked
> it to PhysicalDrive1
>
> You may want to rethink this. If someone looks at the world through
> \device\harddisk1\Partition0 colored glasses, the are going to see a
> partition device and not a physical device. On the flip side, if someone is
> looking at the world through PhysicalDrive1 colored glasses, they will see
> a physical drive.
>
> Why have you set things up like this?
>
> ᐧ
>
> On Thu, Mar 12, 2015 at 4:32 AM, Maxim S. Shatskih > > wrote:
>
>> >device shows up in certain tools such as HxD (under the Physical disks
>> tab), but won’t show up when
>> >trying to list disks using most software.
>>
>> This is because it is not PnP.
>>
>> Or maybe you forgot to support some IOCTLs.
>>
>> –
>> Maxim S. Shatskih
>> Microsoft MVP on File System And Storage
>> xxxxx@storagecraft.com
>> http://www.storagecraft.com
>>
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>>
>> OSR is HIRING!! See http://www.osr.com/careers
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>>
>
>
>
> –
> Jamey Kirby
> Disrupting the establishment since 1964
>
> This is a personal email account and as such, emails are not subject to
> archiving. Nothing else really matters.

> — NTDEV is sponsored by OSR Visit the list at:
> http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See
> http://www.osr.com/careers For our schedule of WDF, WDM, debugging and
> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
> the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

>You may want to rethink this. If someone looks at the world through \device\harddisk1\Partition0

\device\harddisk1\Partition0 == \.\PhysicalDrive1

The partitions are …\Partition1, …\Partition2 etc.


Maxim S. Shatskih
Microsoft MVP on File System And Storage
xxxxx@storagecraft.com
http://www.storagecraft.com