?
Solved

Changing Drive Letter Issue on External Backup Disks

Posted on 2011-03-01
16
Medium Priority
?
507 Views
Last Modified: 2012-05-11
Hello,

We are using 5 external usb hard disks and handy backup software in order to do differential backup of our data.
We have labeled the disks for every day from Monday to Friday.
Our issue is that sometimes (rare but happens) the drive letter of the disk is different than the previous time (or what we have assigned to it).
This has as a result that the backup software cannot find the appropriate labeled disk to start writing on.

i.e Today is Monday so the backup should run on disk with driveletter X:. However for some reason the driveletter is now Z:. So the backup process wont start.

Any advice?
Maybe if there was a way to guarantee permanent change of drive letter?
Or any other solution should be useful.
0
Comment
Question by:AJKBOC
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
16 Comments
 
LVL 12

Expert Comment

by:xmlmagician
ID: 35004727
what backup program do you run?
I think you should focus on resolving the change of letter issue, did you have a look at the logs?
0
 
LVL 2

Author Comment

by:AJKBOC
ID: 35004937
as stated earlier, am using Handy Backup
0
 
LVL 2

Expert Comment

by:Little_K
ID: 35005519
Hi AJKBOC,

If you need to change the drive letters this can be done manually by
right clicking my computer, select manage, go to disk manager and right click the disk that you want the drive letter to be changed on and select "change drive letter and paths".

Hope this helps
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 6

Expert Comment

by:expone
ID: 35005524
Go to Control Panel ==> Administrative Tools ==> Computer Management

Select "Disk Management" in the left panel and then right-click on your Z:drive (in the right panel) and choose "Change drive letter and paths" where you can change it to X: drive.

It should remember this setting from there onwards and always mount that drive to X:
0
 
LVL 2

Author Comment

by:AJKBOC
ID: 35005535
Dear sirs,
i will monitor this for one week and let you know.

Thanks
0
 
LVL 8

Expert Comment

by:subhashchy
ID: 35006008
also, you can add a secheduled task (Batch file) in windows task scheduler which willl run before the backup runs and make sure your USB got correct drive letter,if not it assigns correct one..backups will run smoothly.

0
 
LVL 2

Author Comment

by:AJKBOC
ID: 35006110
can you provide such a batch file?
0
 
LVL 8

Expert Comment

by:subhashchy
ID: 35006455
i guess so..can i know the volume lable of the USB drive ?
0
 
LVL 8

Expert Comment

by:subhashchy
ID: 35006561
so basicly you have 5-6 disks and you use ths eem one by one for each day. is that correct ?
If so then can you give me the drive leteer of each disk that you want like

monday= X:
tue = Y


something like that
0
 
LVL 2

Author Comment

by:AJKBOC
ID: 35006578
Monday = P:
Tuesday = Q:
Wednesday = R:
Thursday = S:
Friday = T:
0
 
LVL 8

Expert Comment

by:subhashchy
ID: 35006629
thanks for that.one last question.can you run below on command prompt and give me the output.

echo %date%
0
 
LVL 2

Author Comment

by:AJKBOC
ID: 35006720
This is the output I get.

C:\>echo %date%
01/03/2011
0
 
LVL 8

Assisted Solution

by:subhashchy
subhashchy earned 1000 total points
ID: 35006841
alright.. I tested this code on my system and seems to be working.
here is the condition.
. It assume you have 5 drives labled as MON - FRY (First 3 alphabets from date).

It basicaly scan for the drive labled for that day and assigned the drive letter you provided.


@echo off
set day=%date:~0,3%
if /i %day% == mon set ADL=P
if /i %day% == tue set ADL=q
if /i %day% == WED set ADL=r
if /i %day% == thu set ADL=s 
if /i %day% == FRY set ADL=t
echo today is %day% and so Drive letter will be %ADL%

echo list volume >%temp%\dskprt.txt
diskpart /s %temp%\dskprt.txt | find /i "%DAY%" >Volume.txt
for /f "tokens=3" %%a in (volume.txt) do (
echo USB drive current volume letter = %%a
set DL=%%a
)
echo. Checking drive letter ..
if /i %DL% == %ADL% (
echo Drive letter already assigned ..good to go..
echo Press enter to exit
pause 
)

if /i not %DL% == %ADL% (
echo. drive letter mismatch..attempting to assign new one
echo removing existing drive letter and assiging required one
echo select volume %DL% >%temp%\dskprt1.txt
echo remove letter=%DL% >>%temp%\dskprt1.txt
echo assign letter=%ADL%>>%temp%\dskprt1.txt
diskpart /s %temp%\dskprt1.txt
)

Open in new window


note then when i run echo %date% on my system the output is
Tue 03/01/2011. I m taking first 3 alpha from this output so it depends on date format.
you should also get the same not sure why..any idea ?
0
 
LVL 2

Author Comment

by:AJKBOC
ID: 35007660
dear sir,
this is because of the regional settings -> formats.
if i set the format to English(United Kingdom) then the result is as i stated earlier.
0
 
LVL 25

Accepted Solution

by:
kode99 earned 1000 total points
ID: 35009497
If you can send your backups to a path/directory you can mount the USB drives to a directory.  This is 100% always going to associate the drive to the same directory.  No batch files or anything special required.

This is done through disk management,  you just select the mount to folder option instead of the drive letter.

So you could have a c:\Backup\ directory then create a empty folder for each day which you then assign to the respective USB drives.

If you must have a drive letter for the backup software to work you can use a SUBST command to assign these directories to the drive letters you want.

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/subst.mspx?mfr=true

Non free but inexpensive option is a program that manages the letters for you,

http://www.uwe-sieber.de/usbdlm_e.html

0
 
LVL 8

Expert Comment

by:subhashchy
ID: 35015044
Can you chnge your settings to united states or if not then i guess you willl have to schedule the batch file for each day.... like on monday it should be scheuded to run as "Mybatch.bat MON".

Will that work for you? You will have to scheudle the batch file in task scheudler for each day
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We take a look at some of the most common obstacles that IT teams run into as they work relentlessly to keep all the alarms and sirens from going off at once.
A new hacking trick has emerged leveraging your own helpdesk or support ticketing tools as an easy way to distribute malware.
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question