[[Microsoft]] boot loader

NTLDR is missing
NTLDR manque
[[NTLDR]] itself, and boot.ini, which contains configuration options for a boot menu.

To load an NT-based OS, ntdetect.com must also be present.

Errors Messages

  • this is not a bootable disk …
  • Disk I/O Error …
  • Invalid system disk … : FAT32
  • INACESSIBLE_BOOT_DEVICE 0x0000007b : FAT32
  • NTLDR is missing / NTLDR manque : NTFS

ms-sys

relocate windows from GNU/Linux

Here is the procedure to move some existing windows installation from one harddisk to an other.

It worked with windows 2000 from sda1 to sda3

DISK=/dev/sda
PART=${DISK}3
sudo mkfs.vfat ${PART}
sudo rsync ... ...
fdisk -ul ${DISK} | grep ${PART} | awk '{ print $3 }' | xargs -n 1 printf "0x%08llx\n"
0x003ccaf8 # rev 2 by 2 is : f8 ca 8c 00
hexedit $PART # go to 0x1c and type code ^
hexdump /dev/sda3 | head -n 2
0000000 58eb 6d90 646b 736f 7366 0000 0802 0020
0000010 0002 0000 f800 0000 003f 00ff caf8 008c
fdisk -ul ${DISK} | grep ${PART} | awk '{ print $3 }' | xargs -n 1 printf "0x%llx\n"
# 0x3b9133
sudo ms-sys -w ${PART}
# FAT32 DOS boot record successfully written to ${PART}
## Disk I/O Error ...
sudo ms-sys -p ${PART}
#  Start sector (nr of hidden sectors) successfully written to ${PART}
# Physical disk drive id 0x80 (C:) successfully written to ${PART}
## Invalid system disk ...
# diff -u boot.ini.orig boot.ini.mine
--- boot.ini.orig       2009-12-06 18:49:44.000000000 +0100
+++ boot.ini.mine       2009-12-06 18:50:10.000000000 +0100
@@ -1,5 +1,5 @@
 [boot loader]
 timeout=30
-default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
+default=multi(0)disk(0)rdisk(0)partition(3)\WINNT
 [operating systems]
-multi(0)disk(0)rdisk(0)partition(1)\WINNT="win" /fastdetect
+multi(0)disk(0)rdisk(0)partition(3)\WINNT="win" /fastdetect
fdisk ${DISK}
${PART}   *         244        1215     7799557    b  FAT32

sudo qemu ${DISK}
# INACESSIBLE_BOOT_DEVICE 0x0000007b
fsck.msdos -a -V -r ${PART}
# F8 , journal , log ...

finally it booted on hdd not qemu

next step is to install to ums :

http://forums.ngine.de/viewtopic.php?f=4&t=3451

http://www.matao.fr/restaurer-une-partition-ntfs-endomagee-et-un-secteur-de-boot/

misc

dump disk to an other disk

Source has WinXp and Win10,

Copy with ddrescue from 40GB to 80GB disk:

NtLdr complains: Error: 0xc000000e

Solution: put new disk on same ide cable

Possible solution is to use:

FixBoot c:

Windows 10 cd

bootrec /scanos
bootrec /fixboot

MORE

@TaG: C System Unix boot syslinux mt

<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/gQGm9zvI-ic" frameborder="0" allowfullscreen></iframe>

sys.txt · Last modified: 2022/04/16 12:24 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki