Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: diskpart clean zeros LBA 0 to LBA 2047

26 Jun 2014   #11
jumanji

Windows 7 Home Premium 32 bit
 
 

Definitely. Clean command not only zeros sector 0 deleting the MBR code and partition table but
also zeros all the sectors upto 2047.

I do not know what sort of installation failures you are talking about and also I am not an installation specialist by any stretch of imagination. My own conviction is that if the HDD has been wiped clean to start with there should be no installation problem at all.

What all I wish to convey is if one is recommending diskpart clean on a working HDD, it is always prudent to check before the 63 or 2048 factor. Safe if it is 2048 ,destructive if it is 63.


My System SpecsSystem Spec
.
26 Jun 2014   #12
gregrocker

 

I'm sorry jumanji I am not getting you at all.

Please explain exactly how these findings could affect wiping the hard drive with Diskpart Clean Command which is what we have been recommending for installation failures for years. There have been no complaints about it being unsafe, and it is intended to be destructive of MBR, partition table and by extension data.
My System SpecsSystem Spec
26 Jun 2014   #13
Layback Bear

Windows 7 Pro. 64/SP-1
 
 

I need 4 brain cells because my 3 brain cells are not getting the job done on this subject.

My understanding is the Diskpart Clean Command is designed to wipe the MBR and partitions and the Clean All Command was designed to not only wipe the MBR and partitions but also wipe the whole drive.
I'm not understanding why one would care what little spot on a hard drive the MBR is located. It's either wiped or it isn't.

If a recovery program is used to get data it either gets the data or it doesn't. Where the data is located on the drive doesn't matter.

When you do a Clean Command only; you will be able to install Windows 7 which will make a new MBR and partition and install Windows 7. The rest of the garbage on the drive will be gone when it's wrote over buy new data installed. If you do a Clean Command All once again you just install Windows 7 and nothing has to be wrote over to remove it.

What do I not understand? I'm sure trying to understand.
Maybe I will never know.

For sure I don't understand this. What is destroyed. Can't one just format to NTSF and get on with their lives.

Safe if it is 2048 ,destructive if it is 63.
My System SpecsSystem Spec
.

26 Jun 2014   #14
jumanji

Windows 7 Home Premium 32 bit
 
 

Quote   Quote: Originally Posted by gregrocker View Post
I'm sorry jumanji I am not getting you at all.

Please explain exactly how these findings could affect wiping the hard drive with Diskpart Clean Command which is what we have been recommending for installation failures for years. There have been no complaints about it being unsafe, and it is intended to be destructive of MBR, partition table and by extension data.
Sorry Greg, I got confused by the terminology you used and in the process confused you.

A quick explanation:

1. On a guestimate almost 95% of Windows 7 Systems, the start sector - the beginning of the first partition is LBA 2048.

2. Rest 5% can have the start sector at LBA 63

Note: When I formatted my external drive with Windows Disk Management, the start sector is LBA 2048.

When I formatted the same drive with bootable PW, the start sector is LBA 63.

The same applies to system drive. When installed from the Installation Disk maintaining the System
Reserved partition, the System Reserved partition will start at LBA 2048.

If I format the drive with PW before installing Windows to eliminate the System Reserved Partition,
the first partition will start at LBA 63

The point to note is there are systems with partitions starting at LBA 63.

When you advocated diskpart clean for "Windows Installation Failures" it is quite possible that all systems you dealt with had the starting partition, (where the NTFS File system is written during formatting) at 2048 that constituting 95% of the population. Though it wrote zeros to all sectors 0 to 2047, the file system on 2048 is still in tact. Partition Wizard during scan will identify the starting partition by the NTFS file system present and successfully write the partition table on to sector 0. You will also Rebuild MBR to write the MBR code. All operations successful and the drive now is accessible as before. You can claim 100% success.

Take my case. On my system preformatted before installing Windows 7 in 2009, the starting sector is on LBA 63.Now that I know that diskpart clean writes zeros to all sectors upto 2047 and will wipe the NTFS file system on it making it impossible for PW or any other utility to find the beginning of the first partition, I will not run it even if you advise me to do it to resolve any boot related problem..That would be inviting further trouble.

In the case of lonewolfs he accidentally ran diskpart clean and the NTFS file system on Sector 63 has been wiped clean with zeros.(Sector 2048 did not show NTFS File system)

In Shashank08989's case, based on his complaint that someone recommended diskpart clean and after that he lost the drive, I presume he also had the NTFS file system on Sector 63 and it is now wiped clean. You have recommended Partition Wizard and if it does not find the NTFS file system on Sector 2048 and rewrite the partition table, it is confirmed. Let us wait and see.

I have explained things to the best of my ability.
My System SpecsSystem Spec
26 Jun 2014   #15
gregrocker

 

What might symptoms be if wiping with Clean command to clear the partition table and MBR to enable Win7 install on a LBA 63 drive caused "further trouble?"
My System SpecsSystem Spec
26 Jun 2014   #16
jumanji

Windows 7 Home Premium 32 bit
 
 

Sorry, I do not understand your question.
My System SpecsSystem Spec
26 Jun 2014   #17
gregrocker

 

You said you wouldn't use Diskpart Clean command to wipe the drive of an LBA 63 drive even if it is a known solution to install failure. What kind of problems do you think it could cause exactly since the MBR and partition table is formatted during install afterwards.

I don't know what we would even look for and no damage has previously been reported. It just works.
My System SpecsSystem Spec
26 Jun 2014   #18
Anshad Edavana

Windows 7 Ultimate x64
 
 

To my understanding, Greg or any other helper in the forum never advised to clean the partitions on a disk with data on it. If there is no valuable data to be saved on the disk, there is no further complications in using DISKPART CLEAN command.
My System SpecsSystem Spec
26 Jun 2014   #19
jumanji

Windows 7 Home Premium 32 bit
 
 

No it is not a known solution in case where the start sector is 63. Greg, you have to define what is the install failure you are talking about.
My System SpecsSystem Spec
26 Jun 2014   #20
ignatzatsonic

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium SP1, 64-bit
 
 

If I'm reading this correctly, the difference is that if you formatted with PW or any tool that uses LBA 63 rather than 2048, and later run Diskpart Clean, you will not then later be able to recover the partition.

If you use Windows Disk Management to format, you would be able to recover the partition after a Diskpart Clean because WDM uses LBA 2048, not 63.

So--if possible, use WDM or some other tool that will format using LBA 2048--to increase the likelihood that you would later be able to recover a partition.

Do I have that right?

What formatting tools are known to use 2048?
My System SpecsSystem Spec
Reply

 diskpart clean zeros LBA 0 to LBA 2047




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Disk - Clean and Clean All with Diskpart Command
How to "Clean" or "Clean All" a Disk with the Diskpart Command This will show you how to use the clean or clean all command on a selected disk to delete all of it's MBR or GPT partitions, volumes, and any hidden sector information on MBR disks is overwritten. The data on the HDD is not...
Tutorials
Formating 3tb drive..diskpart clean or clean all
I am having to format a 3tb drive that I am installing Windows 7 on and I need to know do I need to do clean all or just clean in diskpart? What happened is I did not know about the GPT (first time dealing with a drive over 2tb) and I just went through the motions like you do with installing. Well...
Installation & Setup
Should I clean my HDD with Parted Magic or Diskpart clean all command?
Hi everyone i have a question about HDD Clean and also question about Win 7 64 bit :) I want to wiped out my all HDD data inside i want to delete all information like a brand new HDD. I heard that there is a program called Parted Magic can do this and also Diskpart clean all command too. ...
General Discussion
A simple question about diskpart /clean all
Hello, I am going to give away a computer of mine since it's old and stays there unused. At same time I don't want any signs of my data being on that computer, so I am currenty running diskpart /clean all command for both of the HDD's inside the computer. My question is, would that be enough...
General Discussion
Do not see HDD after clean all using diskpart
Can someone please help with this. after do clean all follow diskpart and format HDD. now do not see this hdd in my computer but see it in DISKPART. thanks,
General Discussion
Diskpart Clean All Error
Hello, came here to post my problem if anyone is willing to help. Due to a recent virus which I can't seem to get rid of, I'm going to do a clean install of windows 7 from an iso file with virtual clone drive. However, after researching a bit I found it would be best to first do a clean all...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 15:28.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App