0

I want to install the old windows version on my laptop instead of the cracked version which is installed now, the old version is in the external hard drive and the cracked version on the internal ssd. So how can I remove the cracked and install the new. Knowing that I have no important data in internal.

7
  • The best way is to back up the SSD and install Windows 10 fresh on it. That will work best in the long run.
    – anon
    Commented Oct 6, 2020 at 21:22
  • There a variety of third-party applications that will restore an image of a system and restore it on another, this image, is taken from a hdd. As long as the external hdd is currently bootable, using on of those third-party applications that support doing that, should work. However, based on what you have provide, it's difficult to determine if what you want is possible. I absolutely will not make a software recommendation.
    – Ramhound
    Commented Oct 6, 2020 at 21:31
  • I will answer this as a basic disk replacement, ignoring the "cracked OS" comment and just assuming the SSD is blank... Macrium Reflect is a great choice for moving partitions and operating systems in general, but there are others out there just as good, probably some better.
    – acejavelin
    Commented Oct 6, 2020 at 21:58
  • @acejavelin Macrium reflect would be good for him/his task. I don't know if macrium reflect can move partitions.. maybe it can, but he doesn't want to move a partition. Macrium can make an image of his disk and put it on another disk.
    – barlop
    Commented Oct 7, 2020 at 0:59
  • @barlop It can move partitions, including resizing them on the fly if necessary in most cases, for moving disks/partitions between drives of dislike size. It also supports most Linux and Mac file systems as well.
    – acejavelin
    Commented Oct 7, 2020 at 17:08

2 Answers 2

1

It would be best to install a fresh windows but the only way to clone your windows to your internal ssd is to use a cloning software.

There are several cloning software that can do this (easeUs, samsung data migration, etc.).

The problem is that if you have a large hdd with lots of files on it and no partitions, you are going to have to remove all your data since it would be a waste of time to clone them. Otherwise you'll be fine. And never mention a cracked windows again!

1

If not clean installing, you would use DISM for capturing an image of the old Windows install on the external HDD, as well as to apply it to the internal HDD, and DiskPart to configure the partitions prior to applying the image within WinPE/WinRE:

  • Windows XP ≥ 10 has always natively supported imaging of partitions or individual directories:
    • It's impossible for an ESD/WIM to become corrupted, provided imaging commands are always issued with /CheckIntegrity /Verify
    • Imaging the System partition is slightly different than other partitions, as it can only be imaged from WinPE/WinRE
    • Microsoft's Windows Imaging File Format whitepaper explains the WIM format
      • WIMs (Windows IMage) can capture an entire partition
      • ESDs (Electronic Software Distribution) can only capture a System partition and must use /Compress:Recovery (algorithm is ~33% more efficient than /Compress:Max)
  • All WinPE/WinRE WIMs have DISM included within them:
    • WinPE: Windows Preinstallation Environment
      (Windows Setup boot media: SHIFT+F10 to access terminal)
    • WinRE: Windows Recovery Environment
      (WinRE is a WinPE image containing extra WinPE Optional Components vital to recovery)


Imaging:

Specify exclusions or exceptions by creating a WimScript.ini config file, with /ScratchDir being required in WinPE since it only has 32MB of scratch [temp] space by default:

  1. Download the Windows Media Creation Tool:
    1. Install on another PC saves it as an ISO, then create a bootable USB with Rufus
    2. Boot the Windows Install USB and open a terminal via SHIFT+F10
  2. Either Capture or Append an image:
    • Capture Image:
      # Windows ≥8: DISM
        Dism /Capture-Image /ImageFile:"Z:\Base.wim" /CaptureDir:"C:" /Name:"Windows Backup" /Description:"Base Image 2020.10.09 @ 08:00" /Compress:Max /CheckIntegrity /Verify /ScratchDir:"Z:"
      
      • Change /Compress:Max to /Compress:Fast if not saving captured image to an SSD
        Max will take significant time to compress on a mechanical HDD, but if retaining the image as a backup, use /Export-Image to change the compression to Max when booted to Windows
      • For managing size constraints, images can be split into multiple read-only .swm files via /Split-Image
    • Append Image:
      # Windows ≥8: DISM
        Dism /Append-Image /ImageFile:"Z:\Base.wim" /CaptureDir:"C:" /Name:"Windows Backup" /Description:"Base Image 2020.10.09 @ 08:00" /CheckIntegrity /Verify /ScratchDir:"Z:"
      
      • Compression is locked to the value set when the base image was captured
      • Individual indexes can be deleted via /Delete-Image or exported to their own image via /Export-Image
  3. Apply Image:
    # Windows ≥8: DISM
      Dism /Apply-Image /ImageFile:"Z:\Base.wim" /Index:1 /ApplyDir:"C:" /CheckIntegrity /Verify /ScratchDir:"Z:"
    
    • Prior to applying, get Image Info, ensuring correct index [image] is being applied:
      Dism /Get-ImageInfo /ImageFile:"Z:\Base.wim"
      
    • If applying an OS image, the following must be ran prior to exiting WinPE/WinRE:
      • BIOS:
        BootRec /FixMBR && BootRec /FixBoot && BootRec /RebuildBCD
        
      • UEFI:
        BootRec /FixMBR && BootRec /RebuildBCD
        


Configure Partitions:

  1. Use DiskPart: (select the OS drive the image is being applied to)
    Assumes no data on disk is being preserved, as clean wipes the drive's partition table
    DiskPart
    
    Lis Dis
    Sel Dis #
    Clean
    
    UEFI:
    Convert Gpt
    

  2. Create WinRE partition: (must have 320MB free (WinRE.wim is ~300MB in size)
    • BIOS:
      Cre Par Pri Offset=1024 Size=665 Id=27
      Format Quick Fs=NTFS Label=WinRE
      
    • UEFI:
      Cre Par Pri Offset=1024 Size=665 Id=de94bba4-06d1-4d40-a16a-bfd50179d6ac
      Format Quick Fs=NTFS Label=WinRE
      Gpt Attributes=0x8000000000000001
      

  3. Create boot partition:
    • BIOS:
      Cre Par Pri Size=100
      Format Quick Fs=NTFS Label=Boot
      Active
      
    • UEFI:
      Cre Par EFI Size=100
      Format Quick Fs=FAT32 Label=EFI
      Assign Letter=Y
      Cre Par Msr Size=16
      

  4. Create System partition:
    • Rest of the disk as the System partition: (if C: can't be assigned: change 4 & 5 to another letter)
      BIOS:
      Cre Par Pri
      Format Quick Fs=NTFS Label=System
      Exit
      
      UEFI:
      Cre Par Pri Id=ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
      Format Quick Fs=NTFS Label=System
      Assign Letter=C
      Exit
      
    • Additional partitions after the [200GB] System partition: (multiply size wanted by 1024: 200*1024=204800)
      If storing User Data directories on a partition other than C:\ (recommended), max size required is ~300GB
      BIOS:
      Cre Par Pri Size=204800
      Format Quick Fs=NTFS Label=System
      Exit
      
      UEFI:
      Cre Par Pri Size=204800 Id=ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
      Format Quick Fs=NTFS Label=System
      Assign Letter=C
      Exit
      

  5. Resolve any boot issues: (Once system image has been applied)
    BIOS:
    BootRec /FixMBR && BootRec /FixBoot && BootRec /RebuildBCD
    
    UEFI:
    # Create EFI directories and enter:
      MkDir "Y:\EFI\Microsoft\Boot"
      Cd /d "Y:\EFI\Microsoft\Boot"
    
    # Create EFI boot structure:
      BootRec /Fixboot
    
      # If Access Denied error occurs:
        BcdBoot C:\Windows /s C: /f UEFI
    
    # Resolve any other boot issues:
      BootRec /FixMBR && BootRec /RebuildBCD
    

  6. Remove EFI mountpoint (if applicable) and Reboot
    UEFI:
    DiskPart
    
    Sel Vol Y
    Remove
    Exit
    

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .