New
#11
Just thought I'd mention that there are two excellent free tools available that really make life easier when dealing with drive upgrades and repurposing drives. They are Clonezilla and MiniTool Partition Wizard.
Hi @zbook this is the output from the batch files processing you requested:
1.TuneUp.bat
Code:########################################################### # The following commands will be run in sequence. # # The first 5 will take quite a while to run, be patient. # ########################################################### sfc /scannow dism /online /cleanup-image /scanhealth dism /online /cleanup-image /restorehealth sfc /scannow chkdsk /scan wmic recoveros get autoreboot wmic recoveros set autoreboot = false wmic recoveros get autoreboot wmic recoveros get DebugInfoType wmic recoveros set DebugInfoType = 7 wmic recoveros get DebugInfoType wmic pagefile list /format:list wmic Computersystem where name="OSIRIS" get AutomaticManagedPagefile wmic Computersystem where name="OSIRIS" set AutomaticManagedPagefile=True wmic Computersystem where name="OSIRIS" get AutomaticManagedPagefile bcdedit /enum {badmemory} C:\windows\system32>sfc /scannow Beginning system scan. This process will take some time. Beginning verification phase of system scan. Verification 100% complete. Windows Resource Protection did not find any integrity violations. C:\windows\system32>dism /online /cleanup-image /scanhealth Deployment Image Servicing and Management tool Version: 10.0.19041.844 Image Version: 10.0.19042.867 [==========================100.0%==========================] No component store corruption detected. The operation completed successfully. C:\windows\system32>dism /online /cleanup-image /restorehealth Deployment Image Servicing and Management tool Version: 10.0.19041.844 Image Version: 10.0.19042.867 [==========================100.0%==========================] The restore operation completed successfully. The operation completed successfully. C:\windows\system32>sfc /scannow Beginning system scan. This process will take some time. Beginning verification phase of system scan. Verification 100% complete. Windows Resource Protection did not find any integrity violations. C:\windows\system32>chkdsk /scan The type of the file system is NTFS. Volume label is Win10-SSD. Stage 1: Examining basic file system structure ... 695808 file records processed. File verification completed. Phase duration (File record verification): 6.00 seconds. 10432 large file records processed. Phase duration (Orphan file record recovery): 0.00 milliseconds. 0 bad file records processed. Phase duration (Bad file record checking): 0.38 milliseconds. Stage 2: Examining file name linkage ... 487 reparse records processed. 958764 index entries processed. Index verification completed. Phase duration (Index verification): 19.56 seconds. 0 unindexed files scanned. Phase duration (Orphan reconnection): 2.56 seconds. 0 unindexed files recovered to lost and found. Phase duration (Orphan recovery to lost and found): 1.42 milliseconds. 487 reparse records processed. Phase duration (Reparse point and Object ID verification): 5.35 milliseconds. Stage 3: Examining security descriptors ... Security descriptor verification completed. Phase duration (Security descriptor verification): 87.56 milliseconds. 131479 data files processed. Phase duration (Data attribute verification): 0.49 milliseconds. CHKDSK is verifying Usn Journal... 34849632 USN bytes processed. Usn Journal verification completed. Phase duration (USN journal verification): 189.79 milliseconds. Windows has scanned the file system and found no problems. No further action is required. 487850938 KB total disk space. 355410608 KB in 464223 files. 281608 KB in 131480 indexes. 0 KB in bad sectors. 819510 KB in use by the system. 65536 KB occupied by the log file. 131339212 KB available on disk. 4096 bytes in each allocation unit. 121962734 total allocation units on disk. 32834803 allocation units available on disk. Total duration: 28.43 seconds (28437 ms). C:\windows\system32>wmic recoveros get autoreboot AutoReboot TRUE C:\windows\system32>wmic recoveros set autoreboot = false Updating property(s) of '\\OSIRIS\ROOT\CIMV2:Win32_OSRecoveryConfiguration.Name="Microsoft Windows 10 Home|C:\\windows|\\Device\\Harddisk1\\Partition1"' Property(s) update successful. C:\windows\system32>wmic recoveros get autoreboot AutoReboot FALSE C:\windows\system32>wmic recoveros get DebugInfoType DebugInfoType 7 C:\windows\system32>wmic recoveros set DebugInfoType = 7 Updating property(s) of '\\OSIRIS\ROOT\CIMV2:Win32_OSRecoveryConfiguration.Name="Microsoft Windows 10 Home|C:\\windows|\\Device\\Harddisk1\\Partition1"' Property(s) update successful. C:\windows\system32>wmic recoveros get DebugInfoType DebugInfoType 7 C:\windows\system32>wmic pagefile list /format:list AllocatedBaseSize=10240 CurrentUsage=161 Description=C:\pagefile.sys InstallDate=20200330211356.911465+120 Name=C:\pagefile.sys PeakUsage=2477 Status= TempPageFile=FALSE C:\windows\system32>wmic Computersystem where name="OSIRIS" get AutomaticManagedPagefile AutomaticManagedPagefile TRUE C:\windows\system32>wmic Computersystem where name="OSIRIS" set AutomaticManagedPagefile=True Updating property(s) of '\\OSIRIS\ROOT\CIMV2:Win32_ComputerSystem.Name="OSIRIS"' Property(s) update successful. C:\windows\system32>wmic Computersystem where name="OSIRIS" get AutomaticManagedPagefile AutomaticManagedPagefile TRUE C:\windows\system32>bcdedit /enum {badmemory} RAM Defects ----------- identifier {badmemory} C:\windows\system32>Echo off ################################################################################### # How to capture batch file data and post in your thread in the BSOD forum # # # # Batch files and instructions for use in BSOD debugging[Part Two-Four] # # # # Press [V] to visit the above web page for detailed instructions. # # Press [C] to close this window. # ###################################################################################
2. DiskPartInfo.bat
Code:Disk 0 : HDD. It has 6 partition(s). Model: ST1000DX001-1CM162 Disk 1 : SSD. It has 2 partition(s). Model: CT500BX100SSD1 The script has found the above 2 storage device(s) in total. ======================================================================= Microsoft DiskPart version 10.0.19041.610 Copyright (C) Microsoft Corporation. On computer: OSIRIS Disk ### Status Size Free Dyn Gpt -------- ------------- ------- ------- --- --- Disk 0 Online 931 GB 0 B * Disk 1 Online 465 GB 1024 KB * Disk 2 No Media 0 B 0 B Volume ### Ltr Label Fs Type Size Status Info ---------- --- ----------- ----- ---------- ------- --------- -------- Volume 0 K DVD-ROM 0 B No Media Volume 1 D Win10-Old NTFS Partition 905 GB Healthy Volume 2 WINRE_DRV NTFS Partition 1000 MB Healthy Hidden Volume 3 SYSTEM_DRV FAT32 Partition 260 MB Healthy System Volume 4 PBR_DRV NTFS Partition 24 GB Healthy Hidden Volume 5 C Win10-SSD NTFS Partition 465 GB Healthy Boot Volume 6 NTFS Partition 521 MB Healthy Hidden Volume 7 Removable 0 B No Media Disk 0 is now the selected disk. ST1000DX001-1CM162 Disk ID: {DEBBB781-CD0F-49DE-BBA4-4D947AA55215} Type : SATA Status : Online Path : 0 Target : 0 LUN ID : 0 Location Path : PCIROOT(0)#PCI(1F02)#ATA(C00T00L00) Current Read-only State : No Read-only : No Boot Disk : No Pagefile Disk : No Hibernation File Disk : No Crashdump Disk : No Clustered Disk : No Volume ### Ltr Label Fs Type Size Status Info ---------- --- ----------- ----- ---------- ------- --------- -------- Volume 1 D Win10-Old NTFS Partition 905 GB Healthy Volume 2 WINRE_DRV NTFS Partition 1000 MB Healthy Hidden Volume 3 SYSTEM_DRV FAT32 Partition 260 MB Healthy System Volume 4 PBR_DRV NTFS Partition 24 GB Healthy Hidden Partition ### Type Size Offset ------------- ---------------- ------- ------- Partition 1 Recovery 1000 MB 1024 KB Partition 2 System 260 MB 1001 MB Partition 3 OEM 500 MB 1261 MB Partition 4 Reserved 128 MB 1761 MB Partition 5 Primary 905 GB 1889 MB Partition 6 Recovery 24 GB 907 GB Partition 1 is now the selected partition. Partition 1 Type : de94bba4-06d1-4d40-a16a-bfd50179d6ac Hidden : Yes Required: Yes Attrib : 0X8000000000000001 Offset in Bytes: 1048576 Volume ### Ltr Label Fs Type Size Status Info ---------- --- ----------- ----- ---------- ------- --------- -------- * Volume 2 WINRE_DRV NTFS Partition 1000 MB Healthy Hidden Partition 2 is now the selected partition. Partition 2 Type : c12a7328-f81f-11d2-ba4b-00a0c93ec93b Hidden : Yes Required: No Attrib : 0X8000000000000000 Offset in Bytes: 1049624576 Volume ### Ltr Label Fs Type Size Status Info ---------- --- ----------- ----- ---------- ------- --------- -------- * Volume 3 SYSTEM_DRV FAT32 Partition 260 MB Healthy System Partition 3 is now the selected partition. Partition 3 Type : bfbfafe7-a34f-448a-9a5b-6213eb736c22 Hidden : Yes Required: Yes Attrib : 0X8000000000000001 Offset in Bytes: 1322254336 There is no volume associated with this partition. Partition 4 is now the selected partition. Partition 4 Type : e3c9e316-0b5c-4db8-817d-f92df00215ae Hidden : Yes Required: No Attrib : 0X8000000000000000 Offset in Bytes: 1846542336 There is no volume associated with this partition. Partition 5 is now the selected partition. Partition 5 Type : ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 Hidden : No Required: No Attrib : 0000000000000000 Offset in Bytes: 1980760064 Volume ### Ltr Label Fs Type Size Status Info ---------- --- ----------- ----- ---------- ------- --------- -------- * Volume 1 D Win10-Old NTFS Partition 905 GB Healthy Partition 6 is now the selected partition. Partition 6 Type : de94bba4-06d1-4d40-a16a-bfd50179d6ac Hidden : Yes Required: Yes Attrib : 0X8000000000000001 Offset in Bytes: 973989740544 Volume ### Ltr Label Fs Type Size Status Info ---------- --- ----------- ----- ---------- ------- --------- -------- * Volume 4 PBR_DRV NTFS Partition 24 GB Healthy Hidden Disk 1 is now the selected disk. CT500BX100SSD1 Disk ID: {B2669E5A-BB33-4900-88CD-A0F99A22C2B4} Type : SATA Status : Online Path : 4 Target : 0 LUN ID : 0 Location Path : PCIROOT(0)#PCI(1F02)#ATA(C04T00L00) Current Read-only State : No Read-only : No Boot Disk : Yes Pagefile Disk : Yes Hibernation File Disk : No Crashdump Disk : Yes Clustered Disk : No Volume ### Ltr Label Fs Type Size Status Info ---------- --- ----------- ----- ---------- ------- --------- -------- Volume 5 C Win10-SSD NTFS Partition 465 GB Healthy Boot Volume 6 NTFS Partition 521 MB Healthy Hidden Partition ### Type Size Offset ------------- ---------------- ------- ------- Partition 1 Primary 465 GB 1024 KB Partition 2 Recovery 521 MB 465 GB Partition 1 is now the selected partition. Partition 1 Type : ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 Hidden : No Required: No Attrib : 0000000000000000 Offset in Bytes: 1048576 Volume ### Ltr Label Fs Type Size Status Info ---------- --- ----------- ----- ---------- ------- --------- -------- * Volume 5 C Win10-SSD NTFS Partition 465 GB Healthy Boot Partition 2 is now the selected partition. Partition 2 Type : de94bba4-06d1-4d40-a16a-bfd50179d6ac Hidden : Yes Required: Yes Attrib : 0X8000000000000001 Offset in Bytes: 499560480768 Volume ### Ltr Label Fs Type Size Status Info ---------- --- ----------- ----- ---------- ------- --------- -------- * Volume 6 NTFS Partition 521 MB Healthy Hidden =============================================================================== Windows Recovery Environment (Windows RE) and system reset configuration Information: Windows RE status: Disabled Windows RE location: Boot Configuration Data (BCD) identifier: 1debaa11-46a9-11ea-97fc-b8aeed25f4c5 Recovery image location: Recovery image index: 0 Custom image location: Custom image index: 0 REAGENTC.EXE: Operation Successful. =============================================================================== Firmware Boot Manager --------------------- identifier {fwbootmgr} displayorder {bootmgr} {1debaa03-46a9-11ea-97fc-b8aeed25f4c5} {1debaa04-46a9-11ea-97fc-b8aeed25f4c5} {1debaa05-46a9-11ea-97fc-b8aeed25f4c5} timeout 1 Windows Boot Manager -------------------- identifier {bootmgr} device partition=\Device\HarddiskVolume2 path \EFI\Microsoft\Boot\bootmgfw.efi description Windows Boot Manager locale en-us inherit {globalsettings} default {current} resumeobject {7aae8355-960d-11eb-8af8-b8aeed25f4c5} displayorder {current} {1debaa07-46a9-11ea-97fc-b8aeed25f4c5} toolsdisplayorder {memdiag} timeout 5 Firmware Application (101fffff) ------------------------------- identifier {1debaa03-46a9-11ea-97fc-b8aeed25f4c5} description MATSHITA DVD-RAM SW840 Firmware Application (101fffff) ------------------------------- identifier {1debaa04-46a9-11ea-97fc-b8aeed25f4c5} description ST1000DX001-1CM162 Firmware Application (101fffff) ------------------------------- identifier {1debaa05-46a9-11ea-97fc-b8aeed25f4c5} description CT500BX100SSD1 Windows Boot Loader ------------------- identifier {1debaa07-46a9-11ea-97fc-b8aeed25f4c5} device partition=D: path \WINDOWS\system32\winload.efi description Windows 10 HDD locale en-us inherit {bootloadersettings} isolatedcontext Yes allowedinmemorysettings 0x15000075 osdevice partition=D: systemroot \WINDOWS resumeobject {1debaa06-46a9-11ea-97fc-b8aeed25f4c5} nx OptIn bootmenupolicy Standard Windows Boot Loader ------------------- identifier {1debaa11-46a9-11ea-97fc-b8aeed25f4c5} device ramdisk=[\Device\HarddiskVolume8]\Recovery\WindowsRE\Winre.wim,{1debaa12-46a9-11ea-97fc-b8aeed25f4c5} path \windows\system32\winload.efi description Windows Recovery Environment locale en-GB inherit {bootloadersettings} displaymessage Recovery osdevice ramdisk=[\Device\HarddiskVolume8]\Recovery\WindowsRE\Winre.wim,{1debaa12-46a9-11ea-97fc-b8aeed25f4c5} systemroot \windows nx OptIn bootmenupolicy Standard winpe Yes Windows Boot Loader ------------------- identifier {current} device partition=C: path \windows\system32\winload.efi description Windows 10 SSD locale en-us inherit {bootloadersettings} isolatedcontext Yes allowedinmemorysettings 0x15000075 osdevice partition=C: systemroot \windows resumeobject {7aae8355-960d-11eb-8af8-b8aeed25f4c5} nx OptIn bootmenupolicy Standard Resume from Hibernate --------------------- identifier {1debaa06-46a9-11ea-97fc-b8aeed25f4c5} device partition=D: path \WINDOWS\system32\winresume.efi description Windows Resume Application locale en-us inherit {resumeloadersettings} isolatedcontext Yes allowedinmemorysettings 0x15000075 filedevice partition=D: filepath \hiberfil.sys bootmenupolicy Standard debugoptionenabled No Resume from Hibernate --------------------- identifier {1debaa0e-46a9-11ea-97fc-b8aeed25f4c5} device partition=C: path \WINDOWS\system32\winresume.efi description Windows Resume Application locale en-GB inherit {resumeloadersettings} recoverysequence {1debaa11-46a9-11ea-97fc-b8aeed25f4c5} recoveryenabled Yes isolatedcontext Yes allowedinmemorysettings 0x15000075 filedevice partition=C: filepath \hiberfil.sys bootmenupolicy Standard debugoptionenabled No Resume from Hibernate --------------------- identifier {7aae8355-960d-11eb-8af8-b8aeed25f4c5} device partition=C: path \windows\system32\winresume.efi description Windows 10 SSD locale en-us inherit {resumeloadersettings} isolatedcontext Yes allowedinmemorysettings 0x15000075 filedevice partition=C: filepath \hiberfil.sys bootmenupolicy Standard debugoptionenabled No Windows Memory Tester --------------------- identifier {memdiag} device partition=\Device\HarddiskVolume2 path \EFI\Microsoft\Boot\memtest.efi description Windows Memory Diagnostic locale en-us inherit {globalsettings} badmemoryaccess Yes EMS Settings ------------ identifier {emssettings} bootems No Debugger Settings ----------------- identifier {dbgsettings} debugtype Local RAM Defects ----------- identifier {badmemory} Global Settings --------------- identifier {globalsettings} inherit {dbgsettings} {emssettings} {badmemory} Boot Loader Settings -------------------- identifier {bootloadersettings} inherit {globalsettings} {hypervisorsettings} Hypervisor Settings ------------------- identifier {hypervisorsettings} hypervisordebugtype Serial hypervisordebugport 1 hypervisorbaudrate 115200 Resume Loader Settings ---------------------- identifier {resumeloadersettings} inherit {globalsettings} Device options -------------- identifier {1debaa12-46a9-11ea-97fc-b8aeed25f4c5} description Windows Recovery ramdisksdidevice partition=\Device\HarddiskVolume8 ramdisksdipath \Recovery\WindowsRE\boot.sdi
Even if I'd like to get rid of the Lenovo interim screen at bootup and don't require the recovery partition with factory install files, i wwant to make sure that I'm not missing anything if I ony copy the EFI partition as separately suggested in this thread.
Thanks for your advice !
PS: what is the use of the 521 MB hidden partition, after the main C: partition on the SSD ?
For UEFI /GPT drives there a 4 default partitions.
The end user only sees 3 partitions when using disk management (one partition is hidden).
When using diskpart all partitions are seen and if hidden it will display hidden.
The 521 MB partition is the recovery partition.
It allows booting to safe mode and troubleshooting the computer.
Currently the recovery partition is disabled.
The commands in the prior posts will shrink C: to create a FAT32 partition.
The bcdboot command will create the new EFI partition.
Once the drive boots independently (drive 0 cable detached or drive removed) the EFI assigned drive letter can be removed and the recovery partition can be enabled.
Perform startup repair as needed.Code:diskpart sel dis 1 det dis sel par 1 shrink desired=100 create par EFI size=100 format quick FS=fat32 label="ESP" assign letter=W exit bcdboot C:\Windows /s W: /f UEFI
Thanks zbook. I did the creation of the partition and format as FAT32 from the disk management GUI, then ran the bcdboot from an admin elevated privileges CMD session. So far everything rolls fine. I'll do the unplug and restart this evening hopefully.
I still have these questions:
- if my recovery partition on the SSD is disabled, how is the startup repair going to happen ? do I need to enable it somehow ?
- is the Lenovo interim boot step eliminated ? (minor annoyance)
Thanks to all for the assistance !
Please find a flash drive that you can format (> or = 8 GB).
Create a bootable Windows 10 iso 20H2:
https://www.microsoft.com/en-us/soft...load/windows10
Download Windows 10 ISO File
Create Bootable USB Flash Drive to Install Windows 10
Msconfig may need to be modified until the original drive 0 is converted into a storage drive.
Oh okay, wasn't expecting that -- I'll initiate the download asap.
Are you suspecting my config to be somehow too complicated or even possibly unhealthy ?
The current disk 0 until cleaned has the original EFI partition.
Thanks to all for your contributions, it worked out fine !
I followed the last steps as suggested in @Megahertz procedure but shutting down the computer, unplugging the HDD and apparently the recovery partition did find the new UEFI partition and the boot process could complete with the Win10 partition.
There was in the end no need to flash a Win10 install iso to a usb drive and perform a repair.
I plugged the HDD back in and at BIOS prompt excluded the HDD from the bootable sequence, which I guess can allow me now to completely reformat that disk drive to a full empty 1 TB data drive. Yay. Mission accomplished.
Thanks to all again for helping folks, this forum is much appreciated !