none
I want to mount a disk with type of RemovableMedia,Base on Filedisk driver. RRS feed

  • Question

  • I want to mount a disk with type of RemovableMedia,Base on Filedisk driver.

    Hi,everybody:

    I want to mount a disk with type of RemovableMedia,Base on Filedisk driver.

    in case IOCTL_DISK_GET_DRIVE_GEOMETRY:

    disk_geometry->Cylinders.QuadPart = length / sector_size / 32 / 2; //0x792;// length / sector_size / 32 / 2;

    //I alread change it from FixedMedia to RemovableMedia,But System prompt that it can't fromat
    disk_geometry->MediaType = RemovableMedia;// RemovableMedia;//FixedMedia;


    disk_geometry->TracksPerCylinder = 2; //0xff;// 2;
    disk_geometry->SectorsPerTrack = 32;// 0x3f;// 32;
    disk_geometry->BytesPerSector = sector_size;// 0x200;// sector_size;


    Who can help me ? thankful for you....


    www.jiangkai.net

    Wednesday, July 27, 2016 11:09 AM

All replies

  • Be aware the Filedisk is stolen software, there is a large discussion of this on NTDEV hosted by http://www.osronline.com/   Also this is pretty lousy unstable software (the original was good but the 20 years of hacks by the thief have not helped, nor the changing OS requirements).

    There are a number of things that impact the determination of drive removability.  You need to study the disk class driver sample (which is the systems disk class driver) and see all the places removable is handled.


    Don Burn Windows Driver Consulting Website: http://www.windrvr.com

    Wednesday, July 27, 2016 11:42 AM
  • Thank you for your help

    www.jiangkai.net

    Wednesday, July 27, 2016 11:48 AM