12
2012
Filter Drivers – Removable Media as Fixed Disk in Windows
USB Flash Drives are seen as Removable Media and USB Hard Disks are seen as fixed drives in Windows.Due to this USB Flash Drives cannot be partitioned using the inbuilt Disk Management Utility.Also all the partitions of a partitioned USB Flash Drive cannot be accessed simultaneously.However they can be partitioned and accessed one by one using Bootice.
Important Facts about Windows and USB Storage Devices
- USB Flash Drives cannot be partitioned using Windows Disk Management
- USB Hard Disks can be partitioned using Windows Disk Management
- Third Party Tools can partition a USB Flash Drive. But all partitions will not be visible.Only the first partition will be visible
- All partitions of a USB Flash Drive are visible in Linux
However a USB Flash Drive can be disguised as a USB Hard Disk using Filter drivers.This way a USB Flash Drive can be partitioned using the inbuilt Disk Management Tool(diskmgmt.msc) and all the partitions of the USB Flash Drive can be accessed simultaneously in Windows Explorer.
A filter driver is a Microsoft Windows driver that adds value to peripheral devices or supports a specialized device in the personal computer. It is a driver/program/module that is inserted into the existing driver stack to perform some specific function.
In this case Filter Drivers make USB Flash Drives (Removable media) appear as fixed drives in Windows.
There are three filter drivers which can be used for this purpose.The pros and cons of each driver will be discussed
Hitachi Microdrive Filter Driver – cfadisk.sys
Video Tutorial for installing Hitachi Microdrive Filter Driver
Install Hitachi Microdrive Filter Driver
- Download cfadisk.zip.I have modified the cfadisk.inf to work with all USB Flash Drives using USBSTOR\GenDisk as posted by cdob@msfn
- Open Device manager (devmgmt.msc) and check for your USB drive in “Disk Drives”.
- Right click on the entry for your drive and select option to update driver.
- Don’t use windows update
- Browse my Computer for driver software – Locate and install driver software manually
- Let me pick from a list of device drivers on my computer
- Have disk
- Browse to location of downloaded cfadisk.inf
- Update the driver
Your USB Flash Drive will be immediately detected as a Fixed Disk and you can then partition or access your partitions on your USB Flash Drive.
Uninstall Hitachi Microdrive Filter Driver
Follow steps 1 to 7.Then select Disk drive and update.Your USB Flash Drive will recognized correctly as Removable Media.It will no longer be disguised as a Fixed Drive.
Features of Hitachi Microdrive Filter Driver
- No Restart required.
- Only Specific USB Flash Drive is disguised as a Fixed Drive.Other USB Flash Drives are still seen as Removable Media
- Switching between Removable and Fixed modes can be done without restart by installing or uninstalling the filter driver
- Tedious procedure for installation and uninstallation
Anton Bassov – Dummydisk.sys
Install Dummydisk.sys
- Download dummydisk.zip and extract the package
- Run INSTALL_DUMMY.cmd
- Reboot the computer
Uninstall Dummydisk.sys
Run REMOVE_DUMMY.cmd and reboot
Features
- Easy to install and uninstall
- Disguises all USB Flash Drives as Fixed Drives
- Restart is required after install or uninstall of the driver
- Driver once started cannot be stopped
- Switching between Removable Mode and Fixed Mode requires a reboot
Karyonix – diskmod.sys
Diskmod.sys was originally written to allow pagefile.sys to reside in a USB Hard Disk.However its other features include disguising UFDs as HDDs and HDDs as UFDs.
Install and use diskmod.sys
Update: For Windows 7 64 bit you need to enable TESTSIGNING before installing Diskmod.
Run command prompt as admin and execute this command
- Download and extract diskmod-0.0.2.2.zip
- Right Click on diskmod.inf – Install
- Run UFDasHDD.bat and replug your USB Flash Drive to make it appear as Fixed Disk
- Run UFDNormal.bat and replug your USB Flash Drive to make it appear normally as Removable Media
- Run USBHDDasUFD.bat and replug your USB Hard Disk to make it appear as Removable Media
- Run USBHDDnormal.bat and replug your USB Hard Disk to make it appear normally as Fixed Disk.
Features
- USB Flash Drives can be disguised as USB HDDs
- USB HDDs can be disguised as USB Flash Drives.This feature was missing in cfadisk.sys and dummydisk.sys
- Easy to install.No Reboot required
- Very easy to switch between Removable and Fixed modes for both USB Flash Drives and USB HDDs.You just have to change a value in the registry and replug your USB Device
- All connected USB Devices are affected.Karyonix’s post at reboot.pro mentions that individual USB Devices can be targetted without affecting the other connected USB Devices.However I have not been able to get that setting working
Diskmod is one of the best filter drivers available for disguising a UFD as a USB HDD or vice versa.
Mount Hidden partitions without Unhiding it »
Great stuff…clearest explanation I have seen of this procedure yet. Will this work for SD/MMC cards as well?
Cheers.
I haven’t tried this for SD/MMC cards.I will try and let you know.
How about installing OS on to a USB Flashdisk. Is it possible? If so, how can we do it? Thanks :)
I have tried install XP but always get BSOD on startup.
I tried Diskmod.sys with Win 7 SP1. It does not work to disguise USB Flash Drives as USB HDDs
Please make a note that these options DO NOT WORK with 64bit Windows 7. The first two simply do not work, the third rendered my system unbootable.
Behaviour confirmed! on Win 7 64bit all these filters doesn’t work
Is there an alternative for us Win 7 64bit users? I have my flash drive partitioned just fine but need to use the other partitions without using Bootice.
Latest version of RMPrepUSB has a feature to set any one of four primary partitions as the accessible one in Windows (similar to Bootice function)
There’s dude that seemed to have made a 64bit version of the cfadisk.sys:
http://www.hardwareluxx.de/community/f230/win-7-x64-removable-als-fixed-laufwerk-anzeigen-lassen-geloest-797059.html#post16546825
You can install Diskmod on Windows 64 bit by enabling TESTSIGNING.
Execute the following command and then install Diskmod on 64 bit Windows.
Bcdedit.exe -set TESTSIGNING ON
I have updated the article with this command
Trying to run this on win 8 but it tells the driver is not digitally signed?
Any advice?
Karyonix – diskmod.sys
I could not make my Toshiba PC with integrated SD reader, to recognize it as HD… but, if I plug an USB Flash, then it recognize it as a HDD (DiskMod.sys)
I will try to tweak the registrery about the enum SD branch…I think that the values there are the key of this…
1) Download and extract diskmod-0.0.2.2.zip
2) Right Click on diskmod.inf – Install
3) Run UFDasHDD.bat and replug your USB Flash Drive to make it appear as Fixed Disk
I got a question regarding about step 3.
I copy the diskmod-0.0.2.2.zip into the USB 3.0 pen drive, using PC 1.
I took the USB 3.0 pen drive, and stick into the USB 2.0 port of PC 2.
PC 2 boots up and took a long time to load all drivers.
I finally got into Window 7 x64, and it is in TEST MODE now.
I unzip the diskmod zip file, and install diskmod.inf, reboot my PC 2.
I went back to the folder- diskmod, and run as Admin on the UFDasHDD.bat.
I can only see a few seconds, of the command prompt did some thing and closed.
Now this step puzzle me, replug the drive, meaning physically pull out the
pen drive and plug it back again?
Thanks
Yes. You need to physically pull out the pen drive and plug it back again.
How to uninstall diskmod ?
I tried diskmod, and it was disaster ! Still have no USB access – instead having multiple partitions accessible I can not access SD cards at all. And for some time I lost most of my partitions on hard disks too. Indeed worst piece of SW I tried in last 10 years. Avoid like plague ! And where is unisntall option ? Now I need to spend another 2 hours while figure out how to complete remove this crap …
After little googling found uninstall script, which even works, it seems :
http://reboot.pro/topic/9461-page-file-in-usb-hard-disk/page-2
Now, I really don’t want to be negative or harsh, but according to comments here and on some other forums, diskmod has serious problems on many configurations. For me it seems more as some hack, what worked for author, but is really not recommended – because high risk of making system useless, damaged, or at least just because multiple partitions on removable will work not.
OMG I can’t uninstall diskmod, because reboot.pro is down and I can’t download the diskmod_uninstall.inf! Could someone please print it out here? diskmod didn’t work on my win7 64bit and now I can’t see my usb.
[Version]
Signature=”$WINDOWS NT$”
Provider=%Provider%
DriverVer=12/12/2009,0.0.2.2
[DefaultInstall.ntx86]
DelReg=DelReg_DiskModClassFilter
DelFiles=DelFiles_DiskMod_x86
[DefaultInstall.ntamd64]
DelReg=DelReg_DiskModClassFilter
DelFiles=DelFiles_DiskMod_amd64
[DelReg_DiskModClassFilter]
HKLM,SYSTEM\CurrentControlSet\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318},LowerFilters,0x00018002,diskmod
[DefaultInstall.ntx86.Services]
DelService = diskmod
[DefaultInstall.ntamd64.Services]
DelService = diskmod
[DelFiles_DiskMod_x86]
diskmod.sys
[DelFiles_DiskMod_amd64]
diskmod.sys
diskmo64.sys
[DestinationDirs]
DefaultDestDir=12
[SourceDisksNames]
1=%DiskName1%,,,””
[Strings]
Provider = “Karyonix”
DiskModService = “DiskMod Filter Driver”
DiskName1 = “DiskMod Installation Disk”
BTW: it worked for me… with an cardbus memory-reader… so, I moved the paging file to it… XP sp3
It is now on. But I will paste uninstall script here, for case :
diskmod_uninstall.inf :
[Version]
Signature=”$WINDOWS NT$”
Provider=%Provider%
DriverVer=12/12/2009,0.0.2.2
[DefaultInstall.ntx86]
DelReg=DelReg_DiskModClassFilter
DelFiles=DelFiles_DiskMod_x86
[DefaultInstall.ntamd64]
DelReg=DelReg_DiskModClassFilter
DelFiles=DelFiles_DiskMod_amd64
[DelReg_DiskModClassFilter]
HKLM,SYSTEM\CurrentControlSet\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318},LowerFilters,0x00018002,diskmod
[DefaultInstall.ntx86.Services]
DelService = diskmod
[DefaultInstall.ntamd64.Services]
DelService = diskmod
[DelFiles_DiskMod_x86]
diskmod.sys
[DelFiles_DiskMod_amd64]
diskmod.sys
diskmo64.sys
[DestinationDirs]
DefaultDestDir=12
[SourceDisksNames]
1=%DiskName1%,,,””
[Strings]
Provider = “Karyonix”
DiskModService = “DiskMod Filter Driver”
DiskName1 = “DiskMod Installation Disk”
Thanks for the help. I am really struggling for the solution. One question , will it work on any USB drive brand?
Yes, it should work on any one.
Can you reupload it files to mediafire please? In dropbox always get error 509 :(
Well installation via diskmod.inf somehow did worked for me.
I’ve Vista. There is no ‘ Install’ in the context menu so I tried
%SystemRoot%\System32\InfDefaultInstall.exe diskmod.inf
No luck.
Well finally I found out that
%SystemRoot%\System32\InfDefaultInstall.exe “f:\tmp\diskmod\diskmod.inf”
might do the trick.
Anyway just for fun I created a batch-script that does the same:
diskmod_install.cmd
@prompt -$g
@set DrvName=DiskMod
@set DrvPath=system32\drivers
@set RegPathDiskDriveClass=”HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}”
@echo.
@echo === ‘%DrvName%’ Install Script v1===
@echo.
@call :CheckForOtherFilters
@call :ShowStatus 1. Copy File to System
copy diskmod.sys %systemroot%\%DrvPath%\*.*
@call :ShowStatus 2. Create diskmod service
:: sc delete %DrvName%
sc create %DrvName% ^
binPath= %DrvPath%\diskmod.sys ^
type= kernel ^
start= boot ^
error= normal ^
group= “SCSI Class” ^
DisplayName= “DiskMod Filter Driver”
reg add “HKLM\SYSTEM\CurrentControlSet\services\%DrvName%\Parameters” /v Paging /t REG_DWORD /d 2 /f
:: USBHDDNormal.bat
reg add “HKLM\SYSTEM\CurrentControlSet\services\%DrvName%\Parameters” /v Removable /t REG_DWORD /d 2 /f
@call :ShowStatus 3. Add diskmod as lower filter to Class ‘DiskDrive’
reg add %RegPathDiskDriveClass% /v LowerFilters /t REG_MULTI_SZ /d %DrvName% /f
@call :ShowStatus Done. Next (USB)-Drive you will mount will be make use of %DrvName% !
@call :ShowStatus
@pause
@goto :eof
:ShowStatus
@echo ____________________________________________________________
@echo –^> %*
@goto :eof
… or download it here:
http://deioncube.in/files/cw2k/Tools/diskmod_UsbStick-Partitions-for-Windows.7z
Can’t access files. Link is disabled.
Please I need to learn how to create a CDFS partition on a flash drive and also how to write to the partition.
Great stuff. Some really comprehensive and thorough, and easy to understand yet not overly hold-your-hand stuff here.
Might wanna make note though that the Hitachi Microdrive Filter Driver method only works for x32 systems, since the driver is x32 and no x64 driver exists (that I know of), and also that enabling TESTSIGNING to get #3 to work introduces watermarks on your desktop.
I got diskmod to work by following all the instructions except I had to run the UFDasHDD as administrator. Otherwise would not work.
Please, I need help here. I did this “diskmod.inf – Install” and ran the UDFnormal.bat on my windows 7 64bit but forgot to do set this “Bcdedit.exe -set TESTSIGNING ON”.
When I restarted my pc it went to Asus preload wizard and can’t boot to my windows. How can I fix this? I know there’s an easy fix. Please help. I have important data on my hdd and several programs, can’t afford to format it.
i followed the guide for cfadisk.sys and got to the last step: select cfadisk.inf -> when i choose it and click OK i get this pop up:
The chosen map does not contain a compatible softwaredriver device.
If the map contains a driver, control that it is developed for windwos x64- based systems.
Afterwards i followed the guide for TESTSIGNING, but made no difference.
What is wrong?
Hi, Bharat Balegere.
Could you, please, add cfadisk for 64 bit (also modified)?
Used diskmod with win7 64 and the install made me reboot. Ran .bat file as directed and usb is still showing up as removable… -_-
What about Window 10 64 Bit using diskmod??? Has anyone done this? Is TESTSIGNING required? Thanks in advance.
Hi guys ,
I got bad news the install of diskmod was a disaster. My computer does’t start anymore. Partitions of the HDD gotcorrupted. I have spent ****hours**** trying to recover my system but it seems unrecoverable.Definitely no boot. I have have searched the issue in the Net and there is at least another person with exactly the same problem. Thus Diskmod is rather a virus than a useful application, At least I can now access my data and my partitions after spending hours with partitioning software, but it seems that I will have to install win 7 from the scratch. :.- ((((
If you have the same problem mail me, may be in a future I would have found a solution.
Best,
Says it doesn’t work for 64x based systems. :(
hi i have fried my pc as well can you tell me how you fixed yours
Peter did you ever resolve the issue? My Windows 7 is also broken after installing diskmod and boots into repair mode but can’t repair itself. Any solution?
My Windows 7 doesn’t boot anymore since installing diskmod. Anybody figure out a way to resolve this?
Peter, were you able to resolve your issue? My Windows 7 is also no longer booting…
do NOT I repeat do NOT use diskmod! It leaves your system unbootable!
I am trying to have a guy port dummydisk.sys to x64 architecture OSes. Its hard to do because most of it is written with assembly code. Please contact me at Zero3K at teknik.io if any of you are capable of helping with finishing the port of it (he managed to do around 40-50% or more of it).
Why would a small change to a small USB thumb-drive…. make the entire system unbootable… and can never be recovered? Huh?
Hello everyone. has anyone found a way to uninstall this virus shit? my computer is blocked and I have very important files Really big shit !!
@Peter How did you go about solving the problem?
I did the same bullshit and I’m in deep trouble, I need to recover my data: /
A big thank-you !