New
#11
Argh! Why do that? A flash drive is mucho faster as badrobot said.
Anyway, I ran the commands on my system from KYHI's rescue ISO from a booted flash drive. I got all kinds of weird errors until I specified a scratch directory, then m,ine ran clean., so the commands would be:
Create a scratch (temp) directory on the hard drive. The following uses C: as the OS drive. You need to see where your OS drive is when you boot the CD or Flash drive as it may not be C:. Use that letter in place of C: in the commands below.
md c:\Scr
Dism /Image:C:\ /ScratchDir:C:\Scr /Cleanup-Image /StartComponentCleanup
Dism /Image:C:\ /ScratchDir:C:\Scr /Cleanup-Image /RestoreHealth
SFC /scannow /Offwindir=C:\Windows /Offbootdir=C:\
Try these commands again and see if they run error free. If not, run them up to 3 times in sequence. I know this can take a lot of time but it has proven to be effective in some cases so worth a try.
Attachment 195600x:\windows\system32>dism /Image:c:\ /Scratchdir:c:\src /Cleanup-image /startcomponentcleanup
Deployment Image Servicing and Management tool
Version: 10.0.14393.0
Error: 1017
An error occurred while attempting to access the image.
For more information, review the log file.
The DISM log file can be found at X:\windows\Logs\DISM\dism.log
i made the src folder and i am sure that C: is my os
C:\>dir
Volume in drive C is Acer
Volume Serial Number is 7847-5823
Directory of C:\
03/26/2018 03:13 PM <DIR> AMD
07/08/2018 07:10 PM 11,992 bootsqm.dat
11/04/2013 01:10 PM <DIR> Dolby PCEE4
11/02/2015 06:28 AM 383 ftconfig.ini
07/10/2018 11:50 PM <DIR> Image-Health
02/13/2016 09:30 AM <DIR> Logs
07/11/2018 12:32 AM 512 lsfc.isk
07/07/2018 05:25 PM 512 lsfc.isk20180707212505935.isk
07/07/2018 05:54 PM 512 lsfc.isk20180707215452422.isk
07/09/2018 11:49 PM 512 lsfc.isk20180710034904642.isk
07/10/2018 12:48 AM 512 lsfc.isk20180710044848595.isk
07/11/2018 12:32 AM 512 lsfc.isk20180711043246746.isk
07/11/2018 12:32 AM 435 lsmc.isk
07/07/2018 05:25 PM 435 lsmc.isk20180707212504154.isk
07/07/2018 05:54 PM 435 lsmc.isk20180707215450610.isk
07/09/2018 11:49 PM 435 lsmc.isk20180710034904502.isk
07/11/2018 12:32 AM 435 lsmc.isk20180711043246402.isk
07/16/2016 07:47 AM <DIR> PerfLogs
03/26/2018 04:33 PM <DIR> Program Files
03/26/2018 04:33 PM <DIR> Program Files (x86)
07/10/2018 07:44 PM 0 Recovery.txt
07/12/2018 01:07 AM 94 rescuepe.log
07/13/2018 04:47 PM <DIR> src
03/26/2018 04:33 PM <DIR> Users
07/11/2018 06:10 PM <DIR> WINDOWS
03/21/2018 03:11 PM <DIR> Windows10Upgrade
Run chkdsk c: /f, repeat if any errors reported corrected then try DISM again please.
Also upload the dism.log file again. I want to see what has changed, if anything.
Thanks
x:\windows\system32>chkdsk c: /f
The type of the file system is NTFS.
Volume label is Acer.
Stage 1: Examining basic file system structure ...
508160 file records processed.
File verification completed.
15719 large file records processed.
0 bad file records processed.
Stage 2: Examining file name linkage ...
600122 index entries processed.
Index verification completed.
0 unindexed files scanned.
0 unindexed files recovered to lost and found.
Stage 3: Examining security descriptors ...
Security descriptor verification completed.
45982 data files processed.
CHKDSK is verifying Usn Journal...
36940608 USN bytes processed.
Usn Journal verification completed.
Windows has scanned the file system and found no problems.
No further action is required.
470928563 KB total disk space.
126453632 KB in 264767 files.
181436 KB in 45983 indexes.
0 KB in bad sectors.
635415 KB in use by the system.
65536 KB occupied by the log file.
343658080 KB available on disk.
4096 bytes in each allocation unit.
117732140 total allocation units on disk.
85914520 allocation units available on disk.
Failed to transfer logged messages to the event log with status 50.
Need the X:\windows\Logs\DISM\dism.log. Copy it to a flash drive then zip it and upload here please after running the dism command.
i just found this. this.damn.software: Windows 2012 R2: Corrupt registry after failed backup and abrupt shutdown.
it seems my error is pretty close to the error described here. maby this steps can help me out.
x:\windows\system32>REg LOAD HKLM\Software\Loadedhive C:\Windows\System32\Config\security
ERROR: The system has attempted to load or restore a file into the registry, but the specified file is not in a registry file format.
so i guess the security file is corrupt.
Please advice on how to proceed
You might be very lucky and find restoring the backup copy of the registry helps.
I would also ask how this situation came about- after an upgrade? power outage? something else?
I'd suggest you check your disk. E.g. Crystal Diskinfo, HD Tune (available on Kyhi's disk or as a portable program).
some idiot pulled the cable in the middle of an windows update. that how i came in this situation. so i should just follow the stept in the tutorial? or which commands should i run exacly?
should i copy all files from the regback folder? the in the tutorial? or only the security file?