Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

How can I make a Local Disk appear as Removable?

- - - - -

  • Please log in to reply
8 replies to this topic

#1
Multibooter

Multibooter

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 896 posts
  • Joined 21-March 08
  • OS:98SE
  • Country: Country Flag
The Hitachi Filter Driver can make a specific device appear as "Local Disk" instead of "Removable Disk" in My Computer. I need to do the reverse: Make a a "Local Disk" (ATAPI, SCSI, Firewire, USB, SATA/eSATA) appear as a "Removable Disk" under WinXP. Here an example: How can I make the internal HDD appear as a Removable Disk in My Computer?

Could one change some parameters in Cfadisk.inf to make the Hitachi Filter Driver work the other way around? Under Win98 it is quite easy: Device Manager -> Disk drives -> right-click on specific drive -> Properties -> Settings tab -> select "Removable".

Any ideas on how to change the disk type under WinXP?


How to remove advertisement from MSFN

#2
dencorso

dencorso

    Iuvat plus qui nihil obstat

  • Supervisor
  • 5,952 posts
  • Joined 07-April 07
  • OS:98SE
  • Country: Country Flag

Donator

Perhaps Anton Bassov's reverse-dummydisk (to make "removable" a "fixed" drive), will do the trick, see: "How to boot/install from USB key? - the historical thread", post #422. But AFAIK it's restricted to USB devices. Maybe you can convince Anton Bassov to generalise the driver for you... I'm sure jaclaz or ilko_t can help you much more than I can, on this matter, though.

#3
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,579 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag
AFAICR a "Filter Driver" is a "Filter Driver" ;).

cfadisk.sys is a "generic" Filter Driver.

If you install it on a USB device "gendisk", see here:
http://www.msfn.org/...68-page-12.html
you will filter USB, if you apply it to other bus, it should filter it.

But "normal" dummydisk.sys is ALREADY "targeted" to USBSTOR.SYS:
http://www.codeproje...ct_hooking.aspx
and I presume that the same applies to reversed version rdummy.sys.

I presume that some changes need to be made in the Source, of which I am not sure of the availability.

Ilko_t at the time took contacts with Anton Bassov, and may be able to answer.

Maybe it would be easier to modify the source of cfadisk.sys to get a "rcfadisk.sys" :unsure:
Definitely nothing in the .inf will do.

jaclaz

#4
Multibooter

Multibooter

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 896 posts
  • Joined 21-March 08
  • OS:98SE
  • Country: Country Flag

Maybe it would be easier to modify the source of cfadisk.sys to get a "rcfadisk.sys" :unsure: Definitely nothing in the .inf will do.

Thanks dencorso, thanks jaclaz, it looks quite involved. I was just trying to find a quick way to get some old software to work perhaps.

Specifically, I am currently trying to get 2 old programs, FixDVD! and FixUDF!, to diagnose and repair UDF-formatted non-CD/DVD media (floppies, zip disks, jaz disks, LS-120 disks, HDDs, SDHC & CF cards) using various interfaces under Win98SE and WinXP (ATAPI, SCSI, parallel port, PCMCIA, Firewire, USB and eSATA). FixDVD! and FixUDF! are comparable to Chkdsk under FAT.

Up to now I have only been able to make FixDVD! and FixUDF! diagnose and repair UDF-formatted Jaz and zip disks. These are removable media, so I speculated that by making other UDF-formatted media appear removable, FixDVD! and FixUDF! might swallow them.

When I attempt to diagnose under Win98 or WinXP UDF-formatted HDDs or UDF-formatted SDHC cards, FixDVD! and FixUDF! terminate with the message "Unable to lock the disk. Scan aborted". BTW, I had gotten the same message when trying to diagnose a DVD-RAM disk in a USB DVD-drive. These 2 old disk utilities require direct disk access, like chkdsk, but running them with parameters in a Win98 DOS window between LOCK ... UNLOCK commands didn't help.

If you have any ideas about how to chkdsk UDF-formatted HDDs, or about UDF-formatted mass storage devices in general, please post them at http://www.msfn.org/...98-t139363.html I myself will eventually add more articles there.

A little OT, it looks like the sluggish-file-delete problem under Win98-cum-IE6 http://www.msfn.org/...fix-t84451.html does not occur (or occurs in a much less severe form) when deleting e.g. 6000 files from my UDF-formatted HDD.

Edited by Multibooter, 01 December 2009 - 09:58 PM.


#5
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,579 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag
I would try seeing what happens in XP using a USB adapter and rdummy.sys.

Another approach.
Do a dd-like copy and mount it in IMDISK (as Removable) this should do for corrupted data:
http://www.boot-land...?showtopic=7783



jaclaz

#6
Multibooter

Multibooter

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 896 posts
  • Joined 21-March 08
  • OS:98SE
  • Country: Country Flag

I would try seeing what happens in XP using a USB adapter and rdummy.sys.

Hi jaclaz,
1) I am not sure how to install rdummy.sys on an already installed WinXP.
- I booted into WinXP with a UDF-formatted USB HDD connected (displayed as "Local disk"),
- copied rdummy.sys to \WinXP\system32\drivers\,
- made a .reg file from the code in posting #418, http://www.msfn.org/...4-page-398.html
- ran the .reg file.
But upon rebooting into WinXP the USB HDD is still displayed as a "Local disk". Any suggestions?

2) If I could make the "Local Disk" appear as type "CD Drive" in My Computer under WinXP, FixUDF! will possibly swallow the USB HDD. Is there any way to make a "Local Disk" appear as a "CD Drive" in My Computer? In this way a LOT of other old/abandoned UDF/DVD-RAM software might possibly work with UDF-formatted HDDs (The revision UDF v2.01 was released on 15-Mar-2000, so it's an old standard, the current release is 2.60. "For next releases of UDF, changes are discussed in relation to using UDF on very large hard disk media, and using UDF on holographic storage media.") http://en.wikipedia....sal_Disk_Format

3) An old product description of FixUDF! stated that it works with HDDs and removable drives, but this info has been deleted from newer product descriptions of the same product. The modification date of the last version of FixUDF! v2.0.0 I have seen is 12-Dec-2001. Windows XP was first released on 25-Oct-2001. Could it be that FixUDF! only works on HDDs with the initial release of WinXP, not with later SPs? I have been using SP2 Pro. Could it be that the msg "Unable to lock the disk. Scan aborted" is caused by something in the SPs?

Edited by Multibooter, 02 December 2009 - 01:03 PM.


#7
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,579 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag
1) You should try these batches/snippets:
@ECHO OFF
::rdummyinstall.cmd
COPY rdummy.sys %Windir%\System32\Drivers\
PAUSE
sc create rdummy binPath= %Windir%\System32\Drivers\rdummy.sys type= kernel start= disabled group= "System Reserved" DisplayName= "USB HD as Removable Filter"
sc query rdummy
sc qc rdummy
PAUSE

@ECHO OFF
::rdummystart.cmd
sc config rdummy start= demand
sc query rdummy
sc qc rdummy
PAUSE
sc start rdummy
sc query rdummy
sc qc rdummy
PAUSE

@ECHO OFF
::rdummystop.cmd
ECHO You cannot STOP the rdummy service!
ECHO Run rdummydisable.cmd and reboot.
ECHO If you want to remove it, run rdummyremove.cmd
ECHO A reboot is needed ANYWAY.
PAUSE

@ECHO OFF
::rdummydisable.cmd
sc cconfig rdummy start= disable
sc query rdummy
sc qc rdummy
ECHO NOW it's time to reboot for the changes to take effect....
PAUSE

@ECHO OFF
::rdummyremove.cmd
sc delete rdummy
sc query rdummy
sc qc rdummy
PAUSE

I am sure you can "fill the gaps" or assemble them in a better way.

2) Not AFAIK, I presume that a filter driver could be written, but cannot really say.

3) It is possible, XP has also the VSS services that do strange things on the system, I would try using good ol' 2K, seemingly OT :ph34r:, but maybe not too much ;):
http://www.boot-land...?showtopic=9195

jaclaz

#8
Multibooter

Multibooter

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 896 posts
  • Joined 21-March 08
  • OS:98SE
  • Country: Country Flag

Could it be that FixUDF! only works on HDDs with the initial release of WinXP, not with later SPs? I have been using SP2 Pro. Could it be that the msg "Unable to lock the disk. Scan aborted" is caused by something in the SPs?

3) It is possible, XP has also the VSS services that do strange things on the system, I would try using good ol' 2K, seemingly OT :ph34r:, but maybe not too much ;):
http://www.boot-land...?showtopic=9195

Thanks jaclaz,
I installed the initial release of Windows 2000 and then tested FixUDF! and FixDVD!. Both programs could then check and repair errors on a UDF-formatted ATAPI 120GB HDD in the left bay of my laptop. This is a break-through, it was the first time that I got this software to check and repair a UDF-formatted HDD.

Under the initial release of Win2k these 2 programs, however, cannot check/fix USB mass storage devices (e.g. a USB HDD or a SDHC card-reader), their drive letters are not displayed in the drive letter selector of FixDVD!/FixUDF!. Also, under the 1st release of Win2000, the SAI UDF file system driver (read/write) does not work on USB mass storage devices: a UDF-formatted HDD attached via USB is read-only (the read-only MS UDF file system driver is probably active there), while at the same time a UDF-formatted ATAPI HDD in the left bay of my laptop is read AND write, i.e. the SAI UDF file system driver works there.

So FixUDF! and FixDVD! do work with UDF-formatted HDDs, if you use a specific version of Windows and a specific interface. I will eventually check whether these 2 programs work also with Win2K SP1 and SP2 and with the 1st release of WinXP. Under which of these 3 versions of Windows might FixUDF! work with UDF-formatted USB mass storage devices (USB HDD, SDHC cards, CF cards)?

BTW, the file modification date of the files installed by the 1st version of Windows 2000 is 12-7-99 12:00 PM, so WINDOWS 2000 is exactly 10 years old today!

Edited by Multibooter, 08 December 2009 - 12:12 AM.


#9
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,579 posts
  • Joined 23-July 04
  • OS:none specified
  • Country: Country Flag

WINDOWS 2000 is exactly 10 years old today!


and, believe me ;), STILL GOING STRONG! :thumbup

rdummy.sys "should" work on 2K too. :unsure:

jaclaz




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users