Remount Writer?

Discussion in 'CycloDS' started by Ethanx94, Feb 22, 2009.

  1. Ethanx94

    Ethanx94 GBAtemp Regular

    Aug 8, 2007
    United States
    In the parallel dimension
    Is there a way to remount the sd card writer? It's a lil annoying to have to pull it out and stick it back in everytime. [​IMG]

    Edit: I can do it through device manager if I disable and re-enable USB Mass Storage Device but I'm looking for a dos command so I can make a bat script when I put another card in.

    Figured it out. I tend to figure a lot of things out after I post something on the temps. So to give this topic a purpose I'll post what I did if anyone else is as lazy.

    DL: Devcon

    Extract and "cd" to the directory. Then type:
    CODEdevcon restart USBSTOR\*

    Or to make a bat file then enter the following and replace [] with your directory (without brackets, keeping quotes)
    CODE"[insert directory]\devcon.exe" restart USBSTOR\*
  2. blanco613

    blanco613 GBAtemp Regular

    Sep 28, 2008
    United States
    no? that really doesn't have to do with the cyclods either
  3. JPH

    JPH Banned

    Jul 11, 2006
    United States
    Well you could just install a card reader to your computer or keep the cycloDS card reader in your usb port all the's that really a problem? youre just being super lazy lol
  4. unz

    unz Chaotic Neutral

    Jul 14, 2008
    Curmudgeon's Corner
    I've always suspected remounting a USB drive could be done, just using the command line, probably without needing any software. But I had no idea what the necessary command would be.

    I also thought a batch file would be the fastest way of launching said command.

    But by the time you navigated to the .bat file's shortcut, double clicked to start it, and finally ran the code, you could have replugged the USB drive just as fast, if not faster. So I decided it was pointless and went and did something more constructive instead.

    And that's the story of why I made this delicious sandwich.

    Okay, just kidding.
    A quick Google came up with this:

    XP has a command "mountvol" which can mount and unmount volumes. This could probably be scripted somehow to achieve the desired effect.
    Here's an example:
    MOUNTVOL [drive:]path VolumeName
    MOUNTVOL [drive:]path /D
    MOUNTVOL [drive:]path /L
    ÂÂÂÂpathÂÂÂÂÂÂÂÂSpecifies the existing NTFS directory where the mount
    ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂpoint will reside.
    ÂÂÂÂVolumeNameÂÂSpecifies the volume name that is the target of the mount
    ÂÂÂÂ/DÂÂÂÂÂÂÂÂÂÂRemoves the volume mount point from the specified directory.
    ÂÂÂÂ/LÂÂÂÂÂÂÂÂÂÂLists the mounted volume name for the specified directory.
    Possible values for VolumeName along with current mount points are:
    To unmount my USB drive from E:, I run:
    mountvol E: /D
    To remount:
    mountvol E: \\?\Volume{8069fde6-a7c2-11d9-aee8-93136b4447f9}\
    The problem comes in when trying to identify the GUID for the volume. I'm not sure how to automate that part of it.
    From: Here (scroll down)