![如何修复 ms-sys 之后丢失的操作系统](https://linux22.com/image/977274/%E5%A6%82%E4%BD%95%E4%BF%AE%E5%A4%8D%20ms-sys%20%E4%B9%8B%E5%90%8E%E4%B8%A2%E5%A4%B1%E7%9A%84%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F.png)
我需要你的帮助。我卸载了 ubuntu 并从 Windows 7 中删除了他的分区。重新启动后,我出现了“错误:没有这样的分区”,所以我使用了本指南恢复 Windows 引导加载程序...
嗯,Windows 位于 /dev/sda1(分区名为 C),但指南告诉:
“不要指定 Windows 分区,而只指定包含相同的磁盘,例如 /dev/sda 而不是 /dev/sda1。”
所以我在终端上写道:
sudo ms-sys -w /dev/sda
终端告诉我写入文件已成功完成。现在当我启动计算机时,它告诉我:
缺少操作系统
我到底做错什么了?
编辑:
哎呀,我忘了告诉你我没有任何 CD 来恢复 Windows,因为我的电脑是华硕笔记本电脑 (K53sv),而我的恢复在另一个分区上。当我在启动电脑时按 F9 时,什么也没发生(在安装 ubuntu 之前,我可以用 F9 恢复 Windows)...
答案1
Usage:
ms-sys [options] [device]
Options:
-1, --fat12 Write a FAT12 floppy boot record to device
-2, --fat32nt Write a FAT32 partition NT boot record to device
-3, --fat32 Write a FAT32 partition DOS boot record to device
-4, --fat32free Write a FAT32 partition FreeDOS boot record to device
-5, --fat16free Write a FAT16 partition FreeDOS boot record to device
-6, --fat16 Write a FAT16 partition DOS boot record to device
-n, --ntfs Write a NTFS partition Windows 7 boot record to device
-l, --wipelabel Reset partition disk label in boot record
-p, --partition Write partition info (hidden sectors, heads and drive id)
to boot record
-H, --heads Manually set number of heads if partition info is written
-7, --mbr7 Write a Windows 7 MBR to device
-i, --mbrvista Write a Windows Vista MBR to device
-m, --mbr Write a Windows 2000/XP/2003 MBR to device
-9, --mbr95b Write a Windows 95B/98/98SE/ME MBR to device
-d, --mbrdos Write a DOS/Windows NT MBR to device
-s, --mbrsyslinux Write a syslinux MBR to device
-t, --mbrgptsyslinux Write a syslinux GPT MBR to device
-z, --mbrzero Write an empty (zeroed) MBR to device
-f, --force Force writing of boot record
-h, --help Display this help and exit
-v, --version Show program version
-w, --write Write automatically selected boot record to device
Default Inspect current boot record
-7, --mbr7 将 Windows 7 MBR 写入设备
测试一下:
sudo -i
ms-sys -7 /dev/sda