Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: making an ext HDD a specific letter drive regardless of the computer  (Read 2545 times)

0 Members and 1 Guest are viewing this topic.

SegaOutrun

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 406
  • Last login:March 28, 2019, 03:02:05 am
  • Brakes are overrated
ive got an external HDD and I want to move my emulators on to it. I also want to make it portable so i can run it on any PC. The issue of course is all the folder paths will be different depending on what computer i plug it into because the Drive letter will change. Is there anyway I can make my ext hdd always show up as specific Drive letter (for example, a less common letter like N:/) or if not, a batch file that will change it on the drive letter once its plug in to avoid having to do it manually?

Thanks

sollyscomputers

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 127
  • Last login:March 06, 2019, 01:31:51 am
  • Jukebox? check! Now on to cocktail cab
    • Softweb Developments
Re: making an ext HDD a specific letter drive regardless of the computer
« Reply #1 on: June 09, 2014, 08:11:53 pm »
Depending on your operating system but mostly all the same.

Make sure your USB device is plugged in

1.  Right click on 'My Computer'
2. Click on 'Manage'
3. Click 'Disk Management'
4. Right click on the drive you want to change the drive letter
5. Click 'Change drive letter and paths'
6. Click 'Change' button.
7. Select the drive letter you want (usually in the high end of alphabet) to assign to the drive
8. Click 'OK'
9. Click 'Yes' to confirm

You're done.  Every time you connect that device to that computer, it will have the same drive letter.



SegaOutrun

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 406
  • Last login:March 28, 2019, 03:02:05 am
  • Brakes are overrated
Re: making an ext HDD a specific letter drive regardless of the computer
« Reply #2 on: June 09, 2014, 10:01:17 pm »
I am aware on how to do it manually but, im looking for a way to default it regardless of what computer i plug it into. or a bat file that basically does all those steps for me.

JDFan

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3448
  • Last login:March 03, 2025, 10:29:54 am
  • I want to build my own arcade controls!
Re: making an ext HDD a specific letter drive regardless of the computer
« Reply #3 on: June 09, 2014, 11:33:11 pm »
I am aware on how to do it manually but, im looking for a way to default it regardless of what computer i plug it into. or a bat file that basically does all those steps for me.

Don't think you can since each system is going to have different letters already assigned and if the one you want is already assigned you would have to first change that drive to free up the letter you want (which could mess up that system and cause other problems) So trying to automatically do this could be more trouble than it is worth --- much easier to manually do each system the one time (so you can ensure there is not already a drive assigned that letter and decide whether it can safely be changed) -- How many systems do you plan on plugging the drive into ??

One method you could use would be to use redirection paths but that still would require a manual setup the first time on each system but at least avoids any problems with already assigned drive letters ( see starting bottom of page 1 "Permanent assignment basics" of this article : ( http://news.office-watch.com/t/n.aspx?a=659 ) for details
« Last Edit: June 09, 2014, 11:35:18 pm by JDFan »

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 12:27:54 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: making an ext HDD a specific letter drive regardless of the computer
« Reply #4 on: June 09, 2014, 11:40:04 pm »
You could probably do it, but it'd have to be a crazy letter like Z because as JD mentioned, most of your common letters will be reserved.  In a modern pc C-J are usually already used by the hard drives, optical drives and multi-card reader. 

I guess you could also use A or B... it isn't like you are going to find a pc with a floppy on it anymore. 

ed12

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3972
  • Last login:March 31, 2018, 03:44:39 pm
  • it is what it is..."Nobody Said It Was Easy"....
Re: making an ext HDD a specific letter drive regardless of the computer
« Reply #5 on: June 10, 2014, 12:05:56 am »
i am still baffed ?
as to why.?
usb windows will see it as removable drive
internal sata/ide? windows will still see it
linux if command it will see it
i am baffed ?
it is all in the boot sector >mbr</>format<
the question still baff's me

ed
Shipping something from the U.S. to Canada for repair/exchange?  Please use USPS to avoid (additional?/excessive?) shipping charges.  PM me if you have any questions.

EMDB

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 865
  • Last login:September 05, 2023, 09:18:51 am
  • Project RetroCade
Re: making an ext HDD a specific letter drive regardless of the computer
« Reply #6 on: June 10, 2014, 03:02:40 am »
USB Drive Letter Manager for Windows: http://www.uwe-sieber.de/usbdlm_e.html

Malenko

  • KNEEL BEFORE ZODlenko!
  • Trade Count: (+58)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 14019
  • Last login:July 02, 2025, 09:03:11 pm
  • Have you played with my GingerBalls?
    • forum.arcadecontrols.com/index.php/topic,142404.msg1475162.html
Re: making an ext HDD a specific letter drive regardless of the computer
« Reply #7 on: June 10, 2014, 09:00:59 am »
i am still baffed ?

Its not about the drive being read, its about the drive letter not changing. He wants the Drive to always be the same letter, so he can set up batch files that will work on the machines he plugs it into.
If you're replying to a troll you are part of the problem.
I also need to follow this advice. Ignore or report, don't reply.

ed12

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3972
  • Last login:March 31, 2018, 03:44:39 pm
  • it is what it is..."Nobody Said It Was Easy"....
Re: making an ext HDD a specific letter drive regardless of the computer
« Reply #8 on: June 10, 2014, 12:04:40 pm »
oh thk u
i truly was confused

ed
Shipping something from the U.S. to Canada for repair/exchange?  Please use USPS to avoid (additional?/excessive?) shipping charges.  PM me if you have any questions.

SegaOutrun

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 406
  • Last login:March 28, 2019, 03:02:05 am
  • Brakes are overrated
Re: making an ext HDD a specific letter drive regardless of the computer
« Reply #9 on: June 10, 2014, 04:01:20 pm »
thanks everyone but most of the solutions presented are for setting a specific letter to a specific computer. I was looking for a specific letter to any computer. I have my entire hyperspin on an ext hdd and want to let say go to a friends house, plug it in and play without anyone having to do any configurations. But most of the apps use paths for roms, plugin, etc so if on my computer my external hdd is D:/ and when i plug it into my friends computer and the ext hdd is now E:/, all the paths are now broken.

I guess the only solution is setting my paths to an uncommon letter (for ex. U:/) and when i put it into another computer, manually change the ext hdd to U:/. I was just hoping to skip this step or have it done automatically

JDFan

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3448
  • Last login:March 03, 2025, 10:29:54 am
  • I want to build my own arcade controls!
Re: making an ext HDD a specific letter drive regardless of the computer
« Reply #10 on: June 10, 2014, 04:24:39 pm »
thanks everyone but most of the solutions presented are for setting a specific letter to a specific computer. I was looking for a specific letter to any computer. I have my entire hyperspin on an ext hdd and want to let say go to a friends house, plug it in and play without anyone having to do any configurations. But most of the apps use paths for roms, plugin, etc so if on my computer my external hdd is D:/ and when i plug it into my friends computer and the ext hdd is now E:/, all the paths are now broken.

I guess the only solution is setting my paths to an uncommon letter (for ex. U:/) and when i put it into another computer, manually change the ext hdd to U:/. I was just hoping to skip this step or have it done automatically

Pretty much this - since you can not know for certain what drive letters their system is going to already have assigned ( For example my desktop has assigned letters to L: before I even plug in any USB drives due to the multi card reader assigning a letter to each of the card types even if no drive is attached to them !) Once I plug in my External backup drive it gets assigned M:

pbj

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11054
  • Last login:Today at 07:06:16 am
  • Obey.
    • The Chris Burke Band
Re: making an ext HDD a specific letter drive regardless of the computer
« Reply #11 on: June 10, 2014, 04:29:44 pm »
Cheese and crackers, people.  Paths are relative.  You don't need to specify drive letters if you're running everything off the external drive. 

Stop being so desperate to be correct, take a breath, and think occasionally.

 :cheers:

EMDB

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 865
  • Last login:September 05, 2023, 09:18:51 am
  • Project RetroCade
Re: making an ext HDD a specific letter drive regardless of the computer
« Reply #12 on: June 12, 2014, 04:06:33 pm »
Cheese and crackers, people.  Paths are relative.  You don't need to specify drive letters if you're running everything off the external drive. 

Stop being so desperate to be correct, take a breath, and think occasionally.

 :cheers:
I say relative paths in this case...

ark_ader

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5645
  • Last login:March 02, 2019, 07:35:34 pm
  • I glow in the dark.
Re: making an ext HDD a specific letter drive regardless of the computer
« Reply #13 on: June 15, 2014, 05:06:55 pm »
If memory serves you can use drive names up to xx: so you can have drive AA and that should be legal for all windoze and DOS from 5.0 and onwards.
If I had only one wish, it would be for three more wishes.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 12:27:54 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: making an ext HDD a specific letter drive regardless of the computer
« Reply #14 on: June 20, 2014, 12:00:13 am »
Cheese and crackers, people.  Paths are relative.  You don't need to specify drive letters if you're running everything off the external drive. 

Stop being so desperate to be correct, take a breath, and think occasionally.

 :cheers:

Except... that they aren't.  Many programs won't accept a relative path in their settings...... so yeah. 

Haze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1296
  • Last login:October 04, 2023, 08:30:02 am
  • I want to build my own arcade controls!
    • MAME Development Blog
Re: making an ext HDD a specific letter drive regardless of the computer
« Reply #15 on: June 20, 2014, 05:33:30 am »
Cheese and crackers, people.  Paths are relative.  You don't need to specify drive letters if you're running everything off the external drive. 

Stop being so desperate to be correct, take a breath, and think occasionally.

 :cheers:

Except... that they aren't.  Many programs won't accept a relative path in their settings...... so yeah.

that's a flaw in the programs tho, like the hundreds of old games (both DOS and Windows) that assume the CD-ROM is d:/  (how ridiculous does that seem to people now)

You *can't* assume drive letters, if the software you have requires you to then find better software, or (if development is still active) highlight what a bad idea it is and hope the author of the software sees how important allowing them is.

unfortunately relative paths alone do mean you can't reference a drive other than the one your software is on, so if you wanted a dual drive plug-in system (roms on one, chds on another) you still couldn't do that, there there is no 'fixed drive letters across different computers' solution.  At best you could write a script that scans all possible drive letters looking for some dummy file you left on the root of the drive, and writing out a config file based on that, but that's kinda gross, and anybody sensible has auto-play disabled so it would still need to be executed manually.

pbj

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11054
  • Last login:Today at 07:06:16 am
  • Obey.
    • The Chris Burke Band
Re: making an ext HDD a specific letter drive regardless of the computer
« Reply #16 on: June 20, 2014, 09:45:10 am »
Except... that they aren't.  Many programs won't accept a relative path in their settings...... so yeah.

We aren't discussing "many programs."

We are discussing emulators.

I've yet to encounter one that doesn't work with relative paths.  Feel free to spend an hour on Google finding an exception that nobody uses anymore.

 :tool:

SavannahLion

  • Wiki Contributor
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5986
  • Last login:December 19, 2015, 02:28:15 am
Re: making an ext HDD a specific letter drive regardless of the computer
« Reply #17 on: June 21, 2014, 03:53:55 am »
I'm not feeling so hot so I'm not really inclined to fully test this thought process out.

If Autoplay is disabled on that PC, there's not a whole lot you can do to get around that without doing some partition voodoo to bypass it. So if you can accept a one click operation, in lieu of autoplay, you should be OK. I'll leave it to you to figure out how to get a script to autorun when a drive is plugged in if such operation is allowed on that PC.

Second problem is that you need admin rights to make the changes. That said... Try this basic framework I whipped up.
Code: [Select]
@ECHO OFF
REM SET THE DESIRED DRIVE LETTER
SET testnudr=U
REM GET THE CURRENT DRIVE LETTER
SET testdr=%~d0
REM PATH TO THE DISKPART SCRIPT FILE
SET testfile=%~d0\test.txt
REM USE DISKPART TO "SET THE FOCUS" TO THE DRIVE
>%testfile% ECHO select volume=%testdr:~0,1%
REM I GET PROBLEMS IF I DON'T HAVE A BLANK LINE BETWEEN EACH COMMAND??
>>%testfile% ECHO=
REM WHY U? MEH.....
>>%testfile% ECHO assign letter=%testnudr%
REM DON'T BLINK, ENTER THE ADMIN PASSWORD WHEN IT COMES UP.
call diskpart.exe /s %testfile%

Open up NOTEPAD (must be notepad or some other "barebones" text editor. Don't use Word for this!!) and give it some random file name. Like test.bat. Put it into the ROOT directory, eg E:\test.bat of the external drive. DON'T DO THIS ON YOUR PRIMARY INTERNAL DRIVE :)

Now... copy and paste the code above into that batch file and save it. Now, every time you plug in the drive and it's not the right drive letter, run that batch file.

Some caveats.

I like my scripts to run silent. I didn't capture any errors that might crop up with DISKPART.

The script doesn't bother to check if another drive already exists in the desired "slot". I can add it in easily enough but it would dilute what I wanted to show you, the use of Diskpart.

Diskpart should be on WinXP or later. I tested the above script on Win8 and it worked fine. If you're still using anything pre-WinXp, I can't help you.

You can also accomplish the same thing using PowerShell instead of Batch. I was aiming for lowest common denominator.

Here are some links that are worth reading.
Windows Batch Scripting
http://en.wikibooks.org/wiki/Windows_Batch_Scripting
DiskPart Command-Line options
http://technet.microsoft.com/en-us/library/cc766465%28v=ws.10%29.aspx

Be careful with it. Only you can be responsible if you don't read up and understand what each command does.