Is there always a question about an inactive partition?
Is there always a question about an inactive partition?
Hey, I'm stuck here. I made a bootable USB drive using Ventoy inside an Asus case with a Samsung 970 evo 1TB SSD. When I start Ventoy, it makes two parts of the drive: one for putting files in and another tiny 32MB part that holds the boot info. The issue is that I can't turn off the 32MB part so it won't get mounted when I plug my computer into it.
I tried running a command called "diskpart" to mark the partition as inactive, but Windows says the partition is already marked inactive. Even though the message says that, the system still mounts and shows up on my drive. The problem happens on all my computers (Windows 7, 10, and 11) no matter what kind of machine it is.
I've been looking for a few weeks to find a simple script or trick to put code in the autorun.inf file that automatically undoes this mounting when I connect the drive. But nothing has worked yet. Can anyone help me fix this? Thanks, Dragos Manea. EDIT: Actually, I want to be able to prevent it from showing up on any new computer too, even ones that haven't been used before.
Windows is really dumb. It tries to connect to every device you can see. I hit this problem when trying to set up a fiber channel RAID array shared between two computers. If you don't tell the hardware to hide some specific partitions, the first computer that turns on will try to mount all of them. I never found a way to fix this inside the Windows world.
If I am doing this correctly, just let all three things mount up and then use a script or command line thing called autorun to take them off in reverse order. Powershell might come in handy here. By the way: https://superuser.com/questions/182...it...powershell https://www.geekfrost.com/remove-partiti...powershell Eject might also work okay: https://www.thewindowsclub.com/mount-unm...-windows-8 https://answers.microsoft.com/en-us...le...4c06f950d3 As I mentioned, Task Scheduler could be used. Detecting if the drive is mounted or not might trigger it to unmount.
The first two steps require me to pick a specific drive number on my own; there isn't an automatic way to do that. The third option won't work here, and neither will the fourth one since I'm connecting it via USB and not using a standard setup for new notebooks or PCs. Thanks for getting back to me.
You are welcome, but now I have more questions in my head. Does the disk number change? If it doesn't change, you should be able to make a script that lets me type or pick an input for that specific disk number. Or if the number changes sometimes, write a script to find out what the current number is and save that info in a variable. Then use that saved value when running the input script. The first link talks about Windows 8, but the actual problem seems to be on Windows 10 or 11. Your post was written for Windows 11—so is this laptop's operating system actually Windows 11? And what kind of new device are you talking about? Do you mean a new laptop or just some USB memory sticks? My suggestion is to open the Disk Management window and show everything clearly on screen. Please take a picture, put it on Imgur (www.imgur.com), and then tell me more about your needs here.
The situation is like this: I work at a university. I keep plugging in my USB drive onto many different computers (and you know the drive number changes if I swap out the notebook). I want it so that no matter which PC or laptop I connect to, that 32mb partition never gets mounted. Many of those notebooks are new ones where this is the first time they ever get connected to my drive. I hope I explained myself clearly enough; English is my second language.
Because I don't want students messing up my system files, they often do it anyway.
Inactive means the hard drive cannot start up your computer from it. This isn't about mounting drives or giving them specific permissions. You can hide a drive and make it so it won't show up or let you change its settings using Diskpart, by running these commands: set volume attributes readonly; set volume attributes hidden