SVSDriveSwitch

SVSDriveSwitch
Jordan's picture

They say necessity is the mother of invention. That explains it. I have a laptop that has a partitioned drive and way back when I got it, I installed SVS to the 30gig system drive without really thinking about installing it to the 80gig partition. Now several months—and about 15 layers—later I've gotten to the point where I want to move the FSLRDR directory from my C: drive to my E: drive because I'm running out of space.

There are several juice articles that explain how to do this manually but let's be honest; moving all the layers manually is a pain. Being the lazy person I am, if that were my only option, I'd just keep letting layers take up space on my smaller drive until I was forced to act.

That's why I wrote SVSDriveSwitch, which is a relatively simple batch file that will do all the work for you. SVSDriveSwitch loops through all your installed layers and exports them, deletes the old layers, changes the registry key for the redirect area, and then re-imports all the layers for you. It's not the most efficient way to move redirects, you probably won't want to push this out to fix multiple machines, but it is the simplest approach and gets the job done with relatively little work on your end—which is what's really important.

Set up and Use

SVSDriveSwitch is simple to use but there are a few things you need to know:

  1. The download file is a .txt but you need to rename it to a .bat file for it to work
  2. The script exports all the VSAs to the folder the script is in, so I recommend creating a new folder wherever you like though I don't recommend the root of any drive, I've seen SVSDriveSwitch try to import VSAs that were in other locations on the dive when you do that.
  3. The default drive that the script moves the FLRDR directory to is E:\, because it's the drive I wanted to use. If you need a different drive you need to edit the batch file and change this part E:\fslrdr under the REG command (it's the third to last line of code) to what ever drive you want.
  4. This last part is very important, you need to restart your system before you can use your moved layers! The driver needs to reload with the changes that were made and if you don't you'll get 1040 errors because SVS can't find the layers at the old location.

Notes and Tips

  • SVSDriveSwith doesn't delete the old FSLRDR directory, I decided to leave that out since I didn't want to do anything complicated and could expect that C:\fslrdr would always be the directory that needed to be removed.
  • If you're moving the redirect to a different drive because of space, remember that the VSAs that get exported are saved to whatever location SVSDriveSwith is ran from. So if C: doesn't have room, just run the script from the new drive that has the space.
  • This process can take quite a while depending on the number of layers you have in SVS and their size. It's probably best to run it over a lunch break or overnight because Exporting and Importing can be processor intensive and slow down the system.
  • Lastly, SVSDriveSwitch doesn't prompt you for a reset so please remember to do so.
License: Altiris EULA
By downloading this software, you agree to the terms and conditions in the Altiris End User License Agreement
Support: User-contributed tools on the Juice are not supported by Altiris Technical Support. If you have questions about a tool, please communicate directly with the author by visiting their profile page and clicking the 'contact' tab.
4.125
Average: 4.1 (40 votes)
AttachmentSize
SVSDriveSwitch.txt457 bytes

Necessary

cnimmer's picture

This is very necessary, as I was having the same issue. It would be nice if the SVS installer would allow you to choose a different drive on install.

Actually it does, or at

Jordan's picture

Actually it does, or at least there's a commandline switch for it.

/fslrdr=location (so /fslrdr=E:\flsrdr as an example)

Drive switch at installation

Swami's picture

Have a look at this one too..
http://juice.altiris.com/node/3110
The redirection is set while installation itself.
But be watchout for Export of a layer, most of the times, if you have redirected to any other drive other than C, then its most likely that the exported VSA may not work in another machine.
As such there is no known fix. You may also refer the knowledge base as its a known bug.

Regards,
Swami

It shouldn't because drive

Jordan's picture

It shouldn't because drive location isn't saved in a layer and is set on import based off of the regkey I change in this script, which is why my script works.

Oops !! Made a mistake.

Swami's picture

I have tried this tool, blindly, without seeing the content inside the batch file. Instead of opening it, executed it. It deleted all the layers & it didn't import any layer. Now I can’t create any thing new too. I'm getting error code 18. Opps! I don’t have E Drive. All I have is C & D Drives only.

I feel at lest there should be a warning / caution that it will delete all the existing contents.

I will try with uninstalling and reinstalling the SVS and update you.

Any helping hand please?

Swami's picture

I have tried my level best to reinstall SVS.
I have even tried the Installation error work around. But still its of no use. Any helping hand please?

The command prompt shows nothing after executing. It simply returns back to C:\SVS_Setup>

I have too many apps out side SVS. I don’t want to format and reload the OS - as it will be my last options.

Does any one, faced similar problem?
If so what helped you out?
Please share it.

Thanks & Regards,
Swami

Ok, based off of what you

Jordan's picture

Ok, based off of what you told me in your two posts try this however this will result in all your reg info for SVS and it's layers being deleted, don't do steps 5,6,7 if you don't have backups. These steps pretty much delete everything that SVS uses, Steps 2-4 should be done by the Uninstall, 5-7 aren't necessary but if you want to get rid of everything you'll need to do them, and step 8 is required to finish the Uninstall process.

1) Uninstall SVS
2) Check for fsllib32.dll in the windows/sys32, if you find it delete it.
3) Check for FSLX.sys in windows/sys32/drivers, if you find it delete it
4) Check HKLM>System>Altiris>SVS, if there's anything there delete it

-------------------

5)Check HKLM>System>Altiris>FSL if there's anything there delete it
6)Check HKLM>Software>FSLRDR> if there's anything there delete it
7) Delete your c:\FSLRDR directory (or what ever you renamed it to)

-----------

8) Reset your computer, needs to happen for SVS to get out of the systems memory.
9) Reinstall SVS.

WOW ! Thanks a million

Swami's picture

Your Tip worked !!
I could reinstall SVS and now its working fine.
You have saved my day & the pain of formatting and reloading the OS
Thanks a lot again.

Regards,
Swami.

Glad to hear it. I've

Jordan's picture

Glad to hear it.

I've decided to rewrite the tool in .Net so that we don't have the same problem that comes with the batch file, namely that you'll have to enter a new path to run the app instead of the current method.