F5F Stay Refreshed Software Operating Systems Is there always a question about an inactive partition?

Is there always a question about an inactive partition?

Is there always a question about an inactive partition?

Pages (2): 1 2 Next
J
Jerrex
Member
175
10-20-2026, 04:57 PM
#1
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.
J
Jerrex
10-20-2026, 04:57 PM #1

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.

C
Chronodran
Junior Member
39
10-20-2026, 09:52 PM
#2
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.
C
Chronodran
10-20-2026, 09:52 PM #2

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.

D
DeadMan68
Member
63
10-20-2026, 10:26 PM
#3
I can't believe that it's impossible to mark a drive as not mounted when you're using Windows these days.
D
DeadMan68
10-20-2026, 10:26 PM #3

I can't believe that it's impossible to mark a drive as not mounted when you're using Windows these days.

L
LorrenK
Senior Member
703
10-20-2026, 11:40 PM
#4
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.
L
LorrenK
10-20-2026, 11:40 PM #4

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.

Q
Qwertion
Junior Member
32
10-23-2026, 02:06 AM
#5
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.
Q
Qwertion
10-23-2026, 02:06 AM #5

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.

C
Crazy_Heaven
Posting Freak
811
10-27-2026, 06:44 AM
#6
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.
C
Crazy_Heaven
10-27-2026, 06:44 AM #6

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.

Z
Zk_Origins
Junior Member
12
10-27-2026, 04:10 PM
#7
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.
Z
Zk_Origins
10-27-2026, 04:10 PM #7

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.

B
bomb_man
Member
119
10-27-2026, 08:34 PM
#8
I'm not sure you can stop a random computer from putting that drive on its own. Does it make any difference why it's put there?
B
bomb_man
10-27-2026, 08:34 PM #8

I'm not sure you can stop a random computer from putting that drive on its own. Does it make any difference why it's put there?

M
Mel_Kawaii
Member
182
10-28-2026, 04:12 AM
#9
Because I don't want students messing up my system files, they often do it anyway.
M
Mel_Kawaii
10-28-2026, 04:12 AM #9

Because I don't want students messing up my system files, they often do it anyway.

B
byPexel
Junior Member
3
10-28-2026, 11:58 AM
#10
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
B
byPexel
10-28-2026, 11:58 AM #10

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

Pages (2): 1 2 Next