Check that
- all partitions are listed in the partition table
- a partition with your computer OS is listed as *(bootable)
- you can list the files from the bootable partition
If your OS doesn't boot, you can reinstall the system files with :command:`sys c:`.
- Run :command:`fixmbr` from the Recovery Console
fixmbr \Device\HardDisk0
If you still have the problem,
- Run :command:`fixboot` to repair NTFS boot sector.
- Check :file:`c:\\boot.ini` content
- Run :command:`bootrec.exe /fixmbr` from the Recovery Console
- For legacy / PC Intel partition table, check :file:`c:\\boot.ini` content
- For EFI GPT, check the output of :command:`bcdedit /v`. To modify the settings, use the :command:`bcdedit /set` command.
- Run :command:`bootrec.exe /fixboot` to repair NTFS boot sector.
Boot Windows in safe mode or from a Windows DVD (Not the DVD from the computer manufacturer) as described in https://support.microsoft.com/en-us/windows/start-your-pc-in-safe-mode-in-windows-92c27cff-db89-8644-1ce4-b3e5e56fe234 and select
- Troubleshoot
- Advanced Options
- Command Prompt
- Run :command:`chkdsk /f c:` to check an repair the filesystem
- If it doesn't solve the boot problem, try Startup Repair.
Update your :file:`/etc/fstab` to reflect the new partition order.
Update your multiboot configuration
- Lilo: :file:`/etc/lilo.conf`
- Grub: :file:`/boot/grub/grub.conf`
- Grub2: :file:`/etc/grub2-efi.cfg`
Reinstall the multiboot in the Master Boot Record.
lilo
grub-install device
grub2-install device