Jump to content

removing os

Go to solution Solved by BlueChinchillaEatingDorito,
1 hour ago, swabro said:

I would like to know how I can wipe my pc and all its partions as if it had nothing installed on it when it was built thanks in advance 🙂

Boot into a Windows install media, open the command prompt by pressing Shift + F10. Then launch diskpart.

diskpart

Microsoft DiskPart version 10.0.22621.1

Copyright (C) Microsoft Corporation.
On computer: 
DISKPART> list disk
  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online         1397 GB      0 B
  Disk 1    Online          232 GB  1024 KB        *

Select your target disk by entering select <Disk ###>. I'll use disk 1 as an example as it's my boot drive. Don't worry I'm not actually doing it, just simulating it. After selecting it, type clean and it'll wipe the drive of all partitions. If you want to erase the data (i.e. zero out that drive), you can do clean all. Be warned clean all will take longer to perform because it'll be writing data throughout the entire drive. 

select disk 1
clean

And you should have a blank drive now with no partitions. Repeat with the rest of the drives as needed.

 

Don't try to do this when booted into an actual Windows install, even if the drive you want to wipe is connected as a secondary drive. Windows will fight you when you try to clean anything that it recognizes as a Windows installation, even if it's not the one currently booted up. Windows PE which is what the installer would be running is more lenient as it needs to in order for people to re-install Windows.

Windows/Linux install USB, wipe all drives from there, reinstall your OS of choice using the aforementioned install USB.

A grumpy school IT guy with too many computers.

 

Primary:
Intel Core i9-10900K
48GB DDR4-3600 (2x16+2x8)

RTX 3060 12GB

a lot of SATA SSDs, too many some might say

 

Secondary:

Intel Core i7-4790K
16GB DDR3-1600
GTX 750 Ti

 

HTPC:
Intel Xeon e5-1620 v2
48GB ECC DDR3-1600
GT 730 1GB GDDR5

 

Laptop (ThinkPad W540)
Intel Core i7-4900MQ
32GB DDR3L-1600 (4x8)

Quadro K2100M

2880x1620 IPS Display
a glass trackpad stolen from an X1 Carbon G3

 

I have more... these are the ones that get used fairly often though.

Link to comment
https://linustechtips.com/topic/1477703-removing-os/#findComment-15726848
Share on other sites

Link to post
Share on other sites

1 hour ago, swabro said:

I would like to know how I can wipe my pc and all its partions as if it had nothing installed on it when it was built thanks in advance 🙂

Boot into a Windows install media, open the command prompt by pressing Shift + F10. Then launch diskpart.

diskpart

Microsoft DiskPart version 10.0.22621.1

Copyright (C) Microsoft Corporation.
On computer: 
DISKPART> list disk
  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online         1397 GB      0 B
  Disk 1    Online          232 GB  1024 KB        *

Select your target disk by entering select <Disk ###>. I'll use disk 1 as an example as it's my boot drive. Don't worry I'm not actually doing it, just simulating it. After selecting it, type clean and it'll wipe the drive of all partitions. If you want to erase the data (i.e. zero out that drive), you can do clean all. Be warned clean all will take longer to perform because it'll be writing data throughout the entire drive. 

select disk 1
clean

And you should have a blank drive now with no partitions. Repeat with the rest of the drives as needed.

 

Don't try to do this when booted into an actual Windows install, even if the drive you want to wipe is connected as a secondary drive. Windows will fight you when you try to clean anything that it recognizes as a Windows installation, even if it's not the one currently booted up. Windows PE which is what the installer would be running is more lenient as it needs to in order for people to re-install Windows.

Intel® Core™ i7-12700 | GIGABYTE B660 AORUS MASTER DDR4 | Gigabyte Radeon™ RX 6650 XT Gaming OC | 32GB Corsair Vengeance® RGB Pro SL DDR4 | Samsung 990 Pro 1TB | WD Green 1.5TB | Windows 11 Pro | NZXT H510 Flow White
Sony MDR-V250 | GNT-500 | Logitech G610 Orion Brown | Logitech G402 | Samsung C27JG5 | ASUS ProArt PA238QR
iPhone 12 Mini (iOS 18.3) | iPhone 15 (iOS 18.3.1) | KZ AZ09 Pro x KZ ZSN Pro X | Sennheiser HD450bt
Intel® Core™ i7-1265U | Kioxia KBG50ZNV512G | 16GB DDR4 | Windows 11 Enterprise | HP EliteBook 650 G9
Intel® Core™ i5-8520U | WD Blue M.2 250GB | 1TB Seagate FireCuda | 16GB DDR4 | Windows 11 Home | ASUS Vivobook 15 
Intel® Core™ i7-3520M | GT 630M | 16 GB Corsair Vengeance® DDR3 |
Samsung 850 EVO 250GB | macOS Catalina | Lenovo IdeaPad P580

Link to comment
https://linustechtips.com/topic/1477703-removing-os/#findComment-15726850
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×