Archive for June, 2015

“Damn, I’m good” (c) Duke Nukem.

I think I’ve finally cleared the topic about recovering boot sector in Windows machines. I mean, there wasn’t any big mistake, but let get things clear – this is a co0l topic for IT helpdesk and to gain some money ’cause users cannot fix this by themselves. SO… with the Windows 8.* boot failures there’s one good method to rescue the environment. If you had read my post before, you can also try to do this:

Clear the RO if you cannot bootrec /rebuildbcd:

diskpart
select disk {disk_number_here} 
attrib disk
attrib disk clear readonly

Clear the RO from volume also:

diskpart
list vol
sel vol {vol_number_here}
attrib vol
attrib vol clear readonly 

And finally you can run:

chkdsk {sys_drive}: /r /x /f

Of course the error could be strongly related to Windows Registry, so basically a backup (if exist) can work!

{be_on_the_system_drive}
cd windows\system32\config
ren default default.old
ren sam sam.old
ren security security.old
ren software software.old
ren system system.old
cd regback
copy default {sys_drive}:\windows\system32\config
copy sam {sys_drive}:\windows\system32\config
copy security {sys_drive}:\windows\system32\config
copy software {sys_drive}:\windows\system32\config
copy system {sys_drive}:\windows\system32\config

Finally:

sfc /scannow /OFFBOOTDIR={sys_drive}:\ /OFFWINDIR={sys_drive}:\windows

{sys_drive} is usually c.