Remount Writer?

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

Feb 22, 2009

Remount Writer? by Ethanx94 at 2:02 AM (769 Views / 0 Likes) 3 replies

  1. Ethanx94
    OP

    Member Ethanx94 GBAtemp Regular

    Joined:
    Aug 8, 2007
    Messages:
    279
    Location:
    In the parallel dimension
    Country:
    United States
    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

    Member blanco613 GBAtemp Regular

    Joined:
    Sep 28, 2008
    Messages:
    150
    Location:
    usa
    Country:
    United States
    no? that really doesn't have to do with the cyclods either
     
  3. JPH

    Banned JPH Banned

    Joined:
    Jul 11, 2006
    Messages:
    6,892
    Country:
    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 time..how's that really a problem? youre just being super lazy lol
     
  4. unz

    Member unz Chaotic Neutral

    Joined:
    Jul 14, 2008
    Messages:
    283
    Location:
    Curmudgeon's quarters
    Country:
    Australia
    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:

    Code:
    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
    ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂpoint.
    ÂÂÂÂ/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:
    
    ÂÂÂÂ\\?\Volume{0a111e45-a795-11d9-bdb3-806d6172696f}\
    ÂÂÂÂÂÂÂÂC:\
    
    ÂÂÂÂ\\?\Volume{0a111e41-a795-11d9-bdb3-806d6172696f}\
    ÂÂÂÂÂÂÂÂD:\
    
    ÂÂÂÂ\\?\Volume{8069fde6-a7c2-11d9-aee8-93136b4447f9}\
    ÂÂÂÂÂÂÂÂE:\
    
    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)
     

Share This Page