Solved How do I (unusualy)clean a single partition using DISKPART?

codekiddy

New member
Power User
Local time
9:03 PM
Messages
145
Hello and thanks for reading,

I want to achive a simple goal and need your help:
-I have 320GB external HD which has 2 partitions assigned as (X and Y),
-HD is marked as disk 1 and it's online
-partition X has some data which may not be wiped out
-while partition Y is going to be deleted and recreated.

usualy I do:
diskpart
sel dis 1
sel par Y
delete partition
cre par pri

sel par 2

format label = Y

now partition has been recreated as I wanted BUT,
part of the disk where that partition was has not been zerro-ed as it would be if we would do it like this:

diskpart
sel dis 1
clean all
cre par pri
size = 153000
sel par 1
format label = X
cre par pri

sel par 2
format label = Y


now in this second example partitioin has realy been zerroed(the whole HD acctualy) because we used clean all, but the cost to achive this delux was destroing partition X as well :cool:, and this is not wanted by my goal because I wanna keep partition X since it contains data.

My question is:
how to do recreate partiton Y so that I "zerro-it" like whole disk with clean all.
only part Y of the disk should be zerroed not part X

thanks alot.

btw: don't ask me "why do I want to do this?" I hate that :D
 

My Computer My Computer

Computer Manufacturer/Model Number
Toshiba Satelite P300D 13J (Short model No: PSPDCE)
OS
Windows 7 Enterprise x64 SP1 Version 6.1 Build 7601
CPU
x64bit AMD Turion(tm) X2 Ultra Dual-Core Mobile ZM-82
Memory
4096 (2048 + 2048) MB, DDR2 RAM (800 MHz), max 8,192 MB
Graphics Card(s)
ATI Mobility Radeon™ HD 3650+HyperMemory™(512MB VRAM+2302MB)
Sound Card
Manufacturer: harman/kardon
Monitor(s) Displays
Generic PnP Monitor (MONITOR\LPLA101)
Screen Resolution
1440 x 900 (19" LCD)
Hard Drives
HDD1: TOSHIBA MK3252GSX ATA Device (IDE 320 GB 5,400 o/min) ,
HDD2: Msft Virtual Disk SCSI Disk Device (Virtual Hard Drive),
HDD3: TOSHIBA MK3263GSX USB Device (USB Mobile HDD) (TakeMS MemLine)
PSU
Batery: technology : lithium-ion
Cooling
integrated cooler + 3x external cooler
Keyboard
USB Logitech S520
Mouse
USB Logitech S520
Internet Speed
WAN: 7,2 Mbit/sec, WLAN: 54 Mbit/sec + Bluetooth®
Not possible, sorry.

DiskPart Command-Line Options said:
clean
Removes any and all partition or volume formatting from the disk with focus. On master boot record (MBR) disks, only the MBR partitioning information and hidden sector information are overwritten. On GUID partition table (GPT) disks, the GPT partitioning information, including the Protective MBR, is overwritten; there is no hidden sector information.
clean all
Specifies that each and every sector on the disk is zeroed, which completely deletes all data contained on the disk.

DiskPart Command-Line Options

From the above, it is clear that these commands apply to the disk as a whole, and not to individual partitions. This is because, as part of their execution, they erase the partition information (MBR/GPT) tables. You will need to use the format command to erase a specific partition.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dwarf Dwf/11/2012 r09/2013
OS
Windows 8.1 Pro RTM x64
CPU
Intel Core-i5-3570K 4-core @ 3.4GHz (Ivy Bridge) (OC 4.4GHz)
Motherboard
ASRock Z77 Extreme4-M
Memory
4 x 4GB DDR3-1600 Corsair Vengeance CMZ8GX3M2A1600C9B (16GB)
Graphics Card(s)
MSI GeForce GTX770 Gaming OC 2GB
Sound Card
Realtek High Definition on board solution (ALC 898)
Monitor(s) Displays
ViewSonic VA1912w Widescreen (VGA)
Screen Resolution
1440x900
Hard Drives
OCZ Agility 3 SSD 120GB SATA III x2 (RAID 0)
Samsung HD501LJ 500GB SATA II x2
Hitachi HDS721010CLA332 1TB SATA II
Iomega 1.5TB Ext USB 2.0
WD 2.0TB Ext USB 3.0
PSU
XFX Pro Series 850W Semi-Modular
Case
Gigabyte IF233
Cooling
1 x 120mm Front Inlet 1 x 120mm Rear Exhaust
Keyboard
Microsoft Comfort Curve Keyboard 3000 (USB)
Mouse
Microsoft Comfort Mouse 3000 for Business (USB)
Internet Speed
NetGear DG834Gv3 ADSL Modem/Router (Ethernet) ~4.0 Mb/s (O2)
Antivirus
Avast! 8.0.1497
Browser
IE 11
Other Info
Optical Drive: HL-DT-ST BD-RE BH10LS30 SATA Bluray
Lexmark S305 Printer/Scanner/Copier (USB)
WEI Score: 8.1/8.1/8.5/8.5/8.25
Asus Eee PC 1011PX Netbook (Windows 7 x86 Starter)
AFAIU-nderstand
if I use this:
format fs=NTFS

this will reformat the partition and check for disk errors on partition with focus?
but it will not zerro-it, thus, anyone can be able to recover that partition, is that correct?

thanks!
 

My Computer My Computer

Computer Manufacturer/Model Number
Toshiba Satelite P300D 13J (Short model No: PSPDCE)
OS
Windows 7 Enterprise x64 SP1 Version 6.1 Build 7601
CPU
x64bit AMD Turion(tm) X2 Ultra Dual-Core Mobile ZM-82
Memory
4096 (2048 + 2048) MB, DDR2 RAM (800 MHz), max 8,192 MB
Graphics Card(s)
ATI Mobility Radeon™ HD 3650+HyperMemory™(512MB VRAM+2302MB)
Sound Card
Manufacturer: harman/kardon
Monitor(s) Displays
Generic PnP Monitor (MONITOR\LPLA101)
Screen Resolution
1440 x 900 (19" LCD)
Hard Drives
HDD1: TOSHIBA MK3252GSX ATA Device (IDE 320 GB 5,400 o/min) ,
HDD2: Msft Virtual Disk SCSI Disk Device (Virtual Hard Drive),
HDD3: TOSHIBA MK3263GSX USB Device (USB Mobile HDD) (TakeMS MemLine)
PSU
Batery: technology : lithium-ion
Cooling
integrated cooler + 3x external cooler
Keyboard
USB Logitech S520
Mouse
USB Logitech S520
Internet Speed
WAN: 7,2 Mbit/sec, WLAN: 54 Mbit/sec + Bluetooth®
In order to securely erase a disk, the information stored on it needs to be rendered unreadable and unrecoverable. This is not as easy as it sounds, because of the phenomenon of residual magnetism (which is what data recovery specialists look for in order to recover lost data).

Basically, when you write to a disk (and that includes formatting and the clean/clean all commands as well as actual data), the existing data is not erased first. Instead, the new data is written on top. Being the most recent data stored in that location, its magnetic properties are the strongest. The HDD hardware/firmware in standard drives is designed to only recognise the stronger signal, and thus effectively ignores what has previously been written to that location. In effect, it filters out all but the strongest signal. Disk recovery specialists use special equipment that does not filter the signals, but this equipment is expensive (hence the cost, which is passed on to their customers).

There are a number of disk erasers available, and they perform their job in pretty much the same way. This is generally achieved by writing to the disk multiple times to render the residual magnetism associated with the original data sufficiently weak to be no longer viable for recovery.

Disk Wipe - Free software

   Warning
Please read the instructions/help files carefully prior to use.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dwarf Dwf/11/2012 r09/2013
OS
Windows 8.1 Pro RTM x64
CPU
Intel Core-i5-3570K 4-core @ 3.4GHz (Ivy Bridge) (OC 4.4GHz)
Motherboard
ASRock Z77 Extreme4-M
Memory
4 x 4GB DDR3-1600 Corsair Vengeance CMZ8GX3M2A1600C9B (16GB)
Graphics Card(s)
MSI GeForce GTX770 Gaming OC 2GB
Sound Card
Realtek High Definition on board solution (ALC 898)
Monitor(s) Displays
ViewSonic VA1912w Widescreen (VGA)
Screen Resolution
1440x900
Hard Drives
OCZ Agility 3 SSD 120GB SATA III x2 (RAID 0)
Samsung HD501LJ 500GB SATA II x2
Hitachi HDS721010CLA332 1TB SATA II
Iomega 1.5TB Ext USB 2.0
WD 2.0TB Ext USB 3.0
PSU
XFX Pro Series 850W Semi-Modular
Case
Gigabyte IF233
Cooling
1 x 120mm Front Inlet 1 x 120mm Rear Exhaust
Keyboard
Microsoft Comfort Curve Keyboard 3000 (USB)
Mouse
Microsoft Comfort Mouse 3000 for Business (USB)
Internet Speed
NetGear DG834Gv3 ADSL Modem/Router (Ethernet) ~4.0 Mb/s (O2)
Antivirus
Avast! 8.0.1497
Browser
IE 11
Other Info
Optical Drive: HL-DT-ST BD-RE BH10LS30 SATA Bluray
Lexmark S305 Printer/Scanner/Copier (USB)
WEI Score: 8.1/8.1/8.5/8.5/8.25
Asus Eee PC 1011PX Netbook (Windows 7 x86 Starter)
WOW, I didn't know that after clean all command, disk is still recoverable :D
thanks for explaining this! rep+
 

My Computer My Computer

Computer Manufacturer/Model Number
Toshiba Satelite P300D 13J (Short model No: PSPDCE)
OS
Windows 7 Enterprise x64 SP1 Version 6.1 Build 7601
CPU
x64bit AMD Turion(tm) X2 Ultra Dual-Core Mobile ZM-82
Memory
4096 (2048 + 2048) MB, DDR2 RAM (800 MHz), max 8,192 MB
Graphics Card(s)
ATI Mobility Radeon™ HD 3650+HyperMemory™(512MB VRAM+2302MB)
Sound Card
Manufacturer: harman/kardon
Monitor(s) Displays
Generic PnP Monitor (MONITOR\LPLA101)
Screen Resolution
1440 x 900 (19" LCD)
Hard Drives
HDD1: TOSHIBA MK3252GSX ATA Device (IDE 320 GB 5,400 o/min) ,
HDD2: Msft Virtual Disk SCSI Disk Device (Virtual Hard Drive),
HDD3: TOSHIBA MK3263GSX USB Device (USB Mobile HDD) (TakeMS MemLine)
PSU
Batery: technology : lithium-ion
Cooling
integrated cooler + 3x external cooler
Keyboard
USB Logitech S520
Mouse
USB Logitech S520
Internet Speed
WAN: 7,2 Mbit/sec, WLAN: 54 Mbit/sec + Bluetooth®
An old thread I know but I have a need to perform this function. That is do a rigorous clean of a single partition. "Disk Wipe" looked great but this review (by one!) thinks otherwise.

I'm thinking of:
1) Deleting all the partition files
2) Use CCleaner Tools>Drive Wiper to wipe the partition free space (all the partition in this case)
3) Do a reformat of the partition in question.

A very clunky approach but it is the only way I know at the moment.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Own build
OS
Windows 7x64 Home Premium SP1
CPU
Intel i7 2600k
Motherboard
ASUS P8Z68 Deluxe
Memory
G.Skill Ripjaws (DDR3-1600) 2x4GB
Graphics Card(s)
Nvidia GeForce GTS 450; Intel HD Graphics 3000(GT2+)
Monitor(s) Displays
Dell Ultrasharp IPS panel U2311H, Samsung SyncMaster P2350
Screen Resolution
1920x1080
Hard Drives
Samsung 850 Pro SSD 256GB, Samsung SSD 840 120GB, Seagates 1TB Barracuda ST31000528AS x2
PSU
Seasonic M12II 520W
Case
Lian Li Lancool PC-K60
Cooling
Case: 1x120mm, 3x140mm CPU: Hyper 212+
Keyboard
Logitech MK520 (wireless)
Mouse
Logitech MK520
Internet Speed
6-7 Mbps
Antivirus
Norton Security Premium, Malwarebytes on 2 (MSE on 3rd PC)
Browser
FireFox
Other Info
Audio: Logitech Z523 2.1
That is not what the Disk Wipe web site says:

Disk Wipe is Free, portable Windows application for permanent volume data destruction. With Disk Wipe you can erase all disk data and prevent recovery of those data. Formatting a hard drive with regular method leaves an open possibility to recover the data back. Many companies and users who just dumped their old hard drives in rubbish had found this the hard way. Disk Wipe solves this problem efficiently, using a powerful algorithms which fill the volume with useless rubbish binary data multiple times. The possibility of recovering information from drive formatted with Disk Wipe is almost non existent.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
That is not what the Disk Wipe web site says:
Yes I know. It would make life easy. The acid test would be to run Disk Wipe then attempt a RAW partition recovery which doesn't rely on the file system info. I may do the test but I'm feeling lazy :sleepy:

If you are talking data of high commercial value or of high National security then you physically destroy the HDD.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Own build
OS
Windows 7x64 Home Premium SP1
CPU
Intel i7 2600k
Motherboard
ASUS P8Z68 Deluxe
Memory
G.Skill Ripjaws (DDR3-1600) 2x4GB
Graphics Card(s)
Nvidia GeForce GTS 450; Intel HD Graphics 3000(GT2+)
Monitor(s) Displays
Dell Ultrasharp IPS panel U2311H, Samsung SyncMaster P2350
Screen Resolution
1920x1080
Hard Drives
Samsung 850 Pro SSD 256GB, Samsung SSD 840 120GB, Seagates 1TB Barracuda ST31000528AS x2
PSU
Seasonic M12II 520W
Case
Lian Li Lancool PC-K60
Cooling
Case: 1x120mm, 3x140mm CPU: Hyper 212+
Keyboard
Logitech MK520 (wireless)
Mouse
Logitech MK520
Internet Speed
6-7 Mbps
Antivirus
Norton Security Premium, Malwarebytes on 2 (MSE on 3rd PC)
Browser
FireFox
Other Info
Audio: Logitech Z523 2.1
An old thread I know but I have a need to perform this function. That is do a rigorous clean of a single partition. "Disk Wipe" looked great but this review (by one!) thinks otherwise.

I'm thinking of:
1) Deleting all the partition files
2) Use CCleaner Tools>Drive Wiper to wipe the partition free space (all the partition in this case)
3) Do a reformat of the partition in question.

A very clunky approach but it is the only way I know at the moment.
Actually for those interested...I used this method and it wasn't as "clunky" as I thought. It worked like a charm. I and my son just used the one pass to delete all free space. There are more secure options DoD, NSA type multipass cleaning which can be done with CCleaner but who really needs this.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Own build
OS
Windows 7x64 Home Premium SP1
CPU
Intel i7 2600k
Motherboard
ASUS P8Z68 Deluxe
Memory
G.Skill Ripjaws (DDR3-1600) 2x4GB
Graphics Card(s)
Nvidia GeForce GTS 450; Intel HD Graphics 3000(GT2+)
Monitor(s) Displays
Dell Ultrasharp IPS panel U2311H, Samsung SyncMaster P2350
Screen Resolution
1920x1080
Hard Drives
Samsung 850 Pro SSD 256GB, Samsung SSD 840 120GB, Seagates 1TB Barracuda ST31000528AS x2
PSU
Seasonic M12II 520W
Case
Lian Li Lancool PC-K60
Cooling
Case: 1x120mm, 3x140mm CPU: Hyper 212+
Keyboard
Logitech MK520 (wireless)
Mouse
Logitech MK520
Internet Speed
6-7 Mbps
Antivirus
Norton Security Premium, Malwarebytes on 2 (MSE on 3rd PC)
Browser
FireFox
Other Info
Audio: Logitech Z523 2.1
Back
Top