|
Not as you think you could do...
Found a good description here:
Can I install programs on a D drive? - Quora[^]
Q: Can programs be installed on a D drive?
Some can. Some can be partially installed on D:. Some cannot be installed on D:.
1. Programs that are totally self contained, including all their library functions that are statically linked and built in to the application. These programs do not follow a normal Windows installation. They can be copied onto any locally accessible drive space including USB pendrives, and executed directly from there. Uninstallation is simply a case of deleting the associated file(s).
2. Other programs that use a normal Windows installation may allow the main program components and data files to be installed on D:, but dynamic link libraries (DLLs) and various settings in the Windows registry will be on C:.
3. Some of these programs using Windows installation may not offer the option of where to install the programs.
Programs in group 1 can be copied or moved around freely. Programs in group 2 that allow some of their content to be in a user defined can have this content relocated, but only by uninstalling and reinstalling. Programs in group 3 generally cannot be moved even within C:.
|
|
|
|
|
My experience with Windows is install apps with their default settings - upgrades tend to break otherwise. Then you can save the data wherever you'd like, but you may have to override the save dialog defaults to do so.
|
|
|
|
|
As you told - some apps write info where they want. So even you employ all settings to block writing from outside the OS to your new SSD it will probably break several applications... And it will be Office and VS to first break...
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
When you install your applications, you can choose the drive and folder instead of accepting the defaults. That being said, Visual Studio has to be on the same drive as the OS else it won't work correctly. I'm not sure if this is still the case. I usually install those seldom-used applications on my HDD.
|
|
|
|
|
I am not sure if that works.
I mean, yup you could do that by hand with all your data but when it comes to visual studio or any other MS Software i guess they only install on C.
At least that's what i tried on my system and visual studio filled up my tiny os ssd. But the games and data are all split across the other 5 disks and ssds.
Rules for the FOSW ![ ^]
MessageBox.Show(!string.IsNullOrWhiteSpace(_signature)
? "This is my signature: " + Environment.NewLine + _signature
: "404-Signature not found");
|
|
|
|
|
Paul,
If I were assigned the task of protecting your drive I would:
1.) Install Windows 11 Enterprise[^]
2.) Install all your development tools.
3.) Enable the Unified Write Filter[^] on the system partition.
This will block ALL changes to the drive, including changes made by Windows Update. In order to update the operating system or install new software you would need to enter service mode[^]. You may also need to whitelist the registry files and other locations.
Siemens has some good documentation[^] about how they are using this feature to protect their industrial products.
Non-Enterprise 'Retail' versions of Windows are governed by a different license[^] and you have agreed that updates are managed by Microsoft. This UWF feature is unavailable to the average user.
Good Luck,
-David Delaune
|
|
|
|
|
Hmm. That's probably more extreme than I wanted - this is a working development machine, after all.
Oh well ... the new SSD can be OS and "must install on C" apps, and I'll just discourage the other apps as best I can.
Only reason I wanted to do it was so it was simpler to update with a clean install from time to time. You know how messy they get after a while ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Alright,
Then I would recommend following most of the STIG security template[^] on your new development workstation.
Some of those changes might affect your SAMBA setup, frequently test/reboot to check for breakages.
|
|
|
|
|
OriginalGriff wrote: Anyone know if it's possible to tell Windows that "this disk is for you, and you only"? You'd need some heavy registry editing for that; and even if you do, not all installers adhere to it.
If you own a Paradox Game (Stellaris, Crusader Kings), Heroes of the Storm, or Oxygen not Included; they save their games and put the mods in the "Documents" folder, which is part of the Windows environment.
I have the OS on the SSD, since it was "static" data in my mind, hardly ever written to. Not true with all those updates. Aw, my worst mistake was not moving the "temp" folder. You'd also need to move "downloads" and the like. I'm still moving folders. The best way to make it work is using virtual machines.
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
>>hardly ever written to
Don't forget the bazillion log entries generated every nanosecond.
>64
If you can keep your head while those about you are losing theirs, perhaps you don't understand the situation.
|
|
|
|
|
OriginalGriff wrote: the idea this time is the 480 for OS only, the 1TB for apps only, and the HDD for data.
I think you'll end up with relatively little on your apps-only drive. Despite your best attempts, installers will continue spewing data all over your OS drive and registry. If it was possible to place all apps on a drive by itself, so you could rebuild the OS and point it to the app drive so you don't have to reinstall apps...that would be a worthy endeavor. But I don't see the point given that it's practically impossible to separate apps from the OS.
A data drive, however, makes total sense to me. I try not to save things locally on any machine, and save everything to a system across my LAN acting as a NAS.
|
|
|
|
|
My "manually" administered and cleaned OS drive (W10) is at 194 GB; that's the best I can do with what I use. (There may be default SQL server database space that can / should be moved).
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
You would think, wouldn't you, that some 30 years on Microsoft might have added a feature to enforce an "Op.System-only drive" and provide intelligent defaults for applications that try to put their stuff somewhere else.
I have a hunch that in some cases it might be feasible to create a W:/ partition, install Windows on there, and just leave "legacy" applications to install on the C: per default. (Changing %AppDir% etc might help too...) My understanding is that Windows won't let you install it on an A: or B: drive because it still reserves these letters for floppy drives. Perhaps installing your "real" Windows in W: whilst also providing a C: drive would give greatest compatibility with those badly-behaved apps that one actually needs...
|
|
|
|
|
Bingo! Win 11 does let you set a default location for new apps: Back to Basics: How to change the default save location in Windows 11 - gHacks Tech News[^]
I'll try it - and if I set the bootable SSD as "W:" and the app SSD as "C:" then redirect all the non-data locations to C: it could help.
Thanks for that - good idea ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
In fact Win10 has a similar screen, which I found by chance the other day when my C: (SSD) was getting perilously full. I already moved all my documents, photos, dev websites etc to D: (HD) and applications that ask are also all installed to D:. I've updated all the "default save locations" as per the screenshot but not installed anything since so no idea if it works; I suspect it still depends on apps being "good citizens" of Windows.
As I keep falling over well-hidden (to me) Win10 hacks I assumed everyone else was familiar with this screen!
Just don't blame me if the W: drive turns out to be a really bad idea long-run...
|
|
|
|
|
It's possible to change the location for things like 'My Documents' to keep in on a separate drive / partition.
Usually when installing you can choose the destination directory, so just make sure you point it to the non OS drive. You can try to use portable versions of apps as well.
|
|
|
|
|
I do something similar, but the opposite way round.
I have 2 systems that I swap between 2 monitors and a wireless keyboard.
The way I do it is with a USB switch similar to this one:
USB Switch Selector,USB 2.0 KVM Switcher Box Switch Hub for 2 PC Sharing 4 USB Devices,One-Button Swapping for Keyboard, Mouse, Scanner, Printer, Computer … : Amazon.co.uk: Business, Industry & Science
It basically has 4 usb inputs on the front, and 2 usb outputs on the back, allowing me to just press the button on the top, so that what ever is plugged into the front is only seen on the selected output.
Since everything is USB A standard connections, it's likely you can reverse it (Although I've never tried) and I do recall when looking for this I did see some that worked the opposite way round too.
I would say that if you put your 2 separate drives into USB enclosures, you should in theory be able to switch the drives between the two independent outputs, so that each OS install only sees the drive you want it to.
Failing that, it shouldn't take to much effort to actually make a suitable switch using an MCU and a digital switch IC of some description.
|
|
|
|
|
My initial concern would be that anything you do today to enforce it, could break tomorrow with an update. The "C" drive has always been a problematic thing with Windows. Sometimes, I am tempted to just make one giant C drive raid array and be done with it.
|
|
|
|
|
Junctions are your friend!
For instance, Outlook always likes to use the system drive for some things (ie. C:\Users\{username}\AppData\Local\Microsoft\Outlook).
Let it set it up. Shut down Outlook.
Move the data to the drive you want and create a junction in place of the original directory Outlook created.
I do this with a few applications, ensuring that my data is on an 8TB Raid 5 array instead of on the system volume.
The only caveat is that it CAN give you deceptive disk usage numbers from some utilities that don't understand junctions.
|
|
|
|
|
I tried this a couple Windows versions ago and had nothing but pain. There were apps that didn't work and settings kept flipping back to their default location. I now blithely accept where Windows wants to put things and my machines just seem to work better.
Outside of a dog, a book is a man's best friend; inside of a dog, it's too dark to read. -- Groucho Marx
|
|
|
|
|
So.... let me see if I understand this correctly. You have some notion that apps that don't behave well will suddenly work as desired through trickery at the OS level???
Seriously, if you have an app that stores data without giving you a chance to interject, why do you think the app will still work when you block its desired location?? It will break the app if it can't write to the location. If the developer didn't let you choose the place for storing something it will not likely recover from being blocked.
Most software today stores settings information in the "AppData" folder. I place that in quotes because the location is (or was up through 10) a virtual location that could be changed through a registry key. Most of the locations used are (or were) virtualized so you could change the location. This would include the default location(s) for programs to be installed. (There is one for 64 bit and another for 32 bit last I checked.)
But if a developer doesn't know about the virtual locations - then such will get blindly ignored. And if a developer:
- Didn't bother to learn to use the system call for the desired directory and hard coded it
- Didn't bother to prompt you for the location
Then chances are the same developer doesn't have code to gracefully handle your attempts to protect against said developer. Now that could be a good thing since the software likely sucks anyway. But that is anotheer discussion.
|
|
|
|
|
So there's this to consider:
1. ba((r|a|b|c)|z+)
2. ba((r|(a|(b|c)))|z(z)*)
3. ba([ra-c]|z+)
There are 3 major algorithms for converting a state machine to a regular expression.
Of these, the cleanest is probably the state-removal method, which I've employed.
#1 is the original expression
#2 is the expression recreated from a state machine using the state removal method
#3 is the result of my new algorithm, based around the state removal method, but with improvements.
Instead of building a string expression, I built out an abstract syntax tree for my regex
After it is built, I can then do high level analysis and reduction on that expression tree.
The result is #3.
Woo! I went from not being able to solve this for years to improving on it pretty significantly.
I was hoping to get this sorted out this week, and here it is. And to think I only just solved this on Christmas eve. I'm pretty happy with this result.
Real programmers use butterflies
|
|
|
|
|
OGs post earlier today about black holes has triggered another internal (and this time external) cry of 'WHO CARES?'
I see paleontologists spending enormous amounts of time and money trying to trace the minute evolutions of fossilized remains; astronomers doing the same for stars long gone in time and space; and mathematicians trying to solve conundrums and speculations decades old - and the best I can come up with some times is 'WHO CARES?'
I am not interested in the excruciating details of the path evolution took (and the dead ends) to get where we are today, nor am I greatly concerned with the methods used to fold n-space planes into n-1 graphs.
So, I will now put on my flame retardant undies and stand defiant in the face of the washed public who read the Scientific American, the online magazines, etc.
Thar's only two possibilities: Thar is life out there in the universe which is smarter than we are, or we're the most intelligent life in the universe. Either way, it's a mighty sobering thought. (Porkypine - via Walt Kelly)
|
|
|
|
|
That applies to everything else too. There is not a single thing in either the past, present, or future, that actually matters.
|
|
|
|
|