Windows 7 双启动停止工作

Windows 7 双启动停止工作

几天前,我在一块全新的空 SSD(sda)上安装了 Ubuntu 16.04 LTS,并保留了安装在另一块 SSD(sdb)上的 Windows 7。Grub 安装正确(我猜是在 sda 上?),安装 Ubuntu 后,我可以从 grub 菜单中选择要启动的系统。安装后我立即尝试了该操作,它确实运行正常。

但是今天早上,当我尝试从 grub 菜单重新启动 Windows 时,收到以下错误消息:

error: no such device: 2844473F44470F4E.
Setting partition type to 0x7

Press any key to continue...

现在我无法启动 Windows 系统了。知道哪里出了问题吗?我该如何修复?

可能有帮助的其他信息:

Ubuntu 安装后的初始 fstab 是:

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=27e8f423-5046-4bf4-8bf6-3ca19a440e9c /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=a123385a-2e28-45da-a699-574f26e43b54 none            swap    sw              0       0

我将其更改(添加网络驱动器)为:

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=27e8f423-5046-4bf4-8bf6-3ca19a440e9c /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=a123385a-2e28-45da-a699-574f26e43b54 none            swap    sw              0       0
# added on october 25, 2016, following instructions @ http://ubuntuhandbook.org/index.php/2014/08/map-network-drive-onto-ubuntu-14-04/
//192.168.0.1/data                         /media/z        cifs    credentials=/home/jfs/.smbcredentials,iocharset=utf8,gid=1000,uid=1000,file_mode=0777,dir_mode=0777   0       0

尝试启动修复后(参见评论,目前没有帮助),报告位于: http://paste2.org/AVeadskx

答案1

仅供参考,我通过修复安装 Windows 的驱动器 (sdb) 的引导扇区解决了我的问题。为此,我使用了“Windows 修复磁盘”。

我猜测问题是由于 Grub 更改了我的 Windows 驱动器上的某些内容(可能是在 grub 更新期间),但不确定......

一步一步的说明:

  1. 我有一个适用于我的 Windows 版本的修复盘(我的情况是 7,64 位)。如果你有,就用它。如果没有,你可以使用任何 Windows 7 电脑刻录一个(参见例如https://www.lifewire.com/how-to-create-a-windows-7-system-repair-disc-2626301
  2. 我断开了我的 Linux 驱动器 (sda),以防止在此过程中对其执行任何写入操作。
  3. 我将 BIOS 配置为从 CD 驱动器启动。
  4. 我在修复盘上启动,并选择启动“dos”命令提示符的选项。
  5. 我运行了两个命令:

    bootrec /fixmbr
    bootrec /fixboot
    
  6. 我检查了 BIOS 以确保计算机首先在 sda(带有 Grub 的 Linux 驱动器)上启动,然后以较低的优先级在 sdb(Windows)上启动。

之后,我重新连接了 Linux 驱动器。现在我可以使用 Grub 在两个系统上启动。我还将 Linux 配置为只读安装,/dev/sdb以防止 Linux 将来写入 Windows 驱动器。

答案2

尝试删除 '//192.168.0.1/data /media/z cifs credentials=/home/jfs/.smbcredentials,iocharset=utf8,gid=100‌​0,uid=1000,file_mode‌​=0777,dir_mode=0777 0 0' 行并重新启动。

相关内容