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

27 Jun 2014   #31
gregrocker

 

So I am going to assume that Diskpart Clean can still continue to be advised for installation failures without adverse effects based on what you have found here.


My System SpecsSystem Spec
.
27 Jun 2014   #32
jumanji

Windows 7 Home Premium 32 bit
 
 

@ignatsatzonic,

I do not have a more than 2 TB drive that would warrant GPT, but I had done some preliminary exploration of GPT structure with the existing drive.

The interesting fact is, if the GPT Header or GPT Partition Table gets corrupted, it will be instantly and automatically restored from the backup kept in the last sectors of the HDD and you will never even know that a corruption had occurred.

It is only if the backups in the last sectors of the HDD get corrupted , by virtue of the fact that those backups will be what will be restored to the initial sectors, that may lead to loss of access to the drive.

My advice to those who have GPT drives is, do backup all the sectors shown by bootice and if ever you lose access to the drive, restore the backups in the last sectors in the HDD with the backups you had taken with bootice. In most cases that will instantly bring access to the drive or else you will be running around in circles for data recovery from a lost drive.

A diagram of what goes where is below.

diskpart clean zeros LBA 0 to LBA 2047-arrow.jpg

If you have upto 4 Partitions, you will back up LBA 1 and LBA 2 and keep it in safe custody in another drive. If you ever lose access to the drive because of corrupted GPT Header and/or GPT Partition Table, restore the backup of LBA 1 to LBA n (the last sector of your drive) and LBA 2 to LBA n-32. In most cases your drive will be accessible again immediately.


My System SpecsSystem Spec
27 Jun 2014   #33
jumanji

Windows 7 Home Premium 32 bit
 
 

Quote   Quote: Originally Posted by gregrocker View Post
So I am going to assume that Diskpart Clean can still continue to be advised for installation failures without adverse effects based on what you have found here.
As long as I do not know or understand what that installation failure is and how it manifests, I can't give a definitive answer.

What definitive answer can be given is:

If the Windows installation is working still, though impaired, and if the Windows start sector is 2048, diskpart clean can be executed safely without any deteriment.

If the Windows installation is working still, though impaired, and if the Windows start sector is 63, diskpart clean will only aggravate the situation by zeroing the NTFS file system on 63 making the HDD vanish almost to a point of no return as for as data recovery is concerned.

( Just in the recent fortnight, we have seen two cases of diskpart clean wiping sector 63 ( one was accidental and one was due to misguidance in some other forum - not SF) and both are under extremely difficult data recovery process by the able Anshad.)

( For successful data recovery, a valid intact NTFS (Volume boot record ) is essential. Where it is not there, some sort of data recovery is possible with PhotoRec and like-software where these reconstruct the data from specific file signatures and attributes. If it is a multiple partitioned drive, data in other partitions where NTFS remains intact , the data in those can be successfully recovered and copied with TestDisk.)
My System SpecsSystem Spec
.

27 Jun 2014   #34
gregrocker

 

OK jumanji I realize now you aren't clear on they type of installation failure I'm talking about. My bad for not explaining it better.

When Win7 won't install normally it can be for a number of reasons. In the early days it needed all but one stick of RAM removed, then something was inserted in SP1 that resolved that. The remaining reasons are several but are almost all covered in Overcoming Windows 7 Installation Failures - Windows 7 Help Forums which resolves about 90% of them. The remaining 10% are almost all UEFI problems.

Of those steps the one which works foremost is the Clean command. You'll notice in the commands we also format an Active partition which also can help.

I hope this helps.
My System SpecsSystem Spec
27 Jun 2014   #35
jumanji

Windows 7 Home Premium 32 bit
 
 

OK, greg, thanks for clearing it. I had always been in a dilemma whether you were meaning Windows Installation failure as one arising during the course of its installation, or meaning it in an already existing "Windows installation" failing in someway.

I also mentioned somewhere that "I am no Windows installation specialist" and it is your forte and I am none to advise you on it.

In any case, since a successful "Windows Installation" has not come into existence yet, this 63 /2048 issue does not arise at all and you are free to do anything that will result in a successful Windows install.
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 05:37.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App