ubuntu和win7双系统因为在ubuntu下删除了win7启动项导致win7不能进入,请大家帮帮我

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu和win7双系统因为在ubuntu下删除了win7启动项导致win7不能进入,请大家帮帮我相关的知识,希望对你有一定的参考价值。

就是原本引导是ubuntu的引导,第四个是win7启动项,但是由于我的疏忽删除了win7的启动项!现在启动只有ubuntu的三个启动项,第四个win7启动项没有了!还能恢复吗大家帮帮我
我的财富值用完啦,大家将就将就吧,真的很急

普通用户还是别用uuid折腾了,难记。你可以这样,df看一下几个分区,能不能看到你的win7分区,可不可以mount你的win7分区。最好把你的df结果和/boot/grub下面的grub.cfg内容贴出来看看。试试看手工添加grub记录。 参考技术A 获取root权限后:
update-grub
会自动生成win7启动项。追问

命令我输入了,但是还是没有显示win7启动项,你看这是命令后找到的

追答

ls -l /dev/disk/by-label
看看分区情况,有没有win7的系统分区。

或者手动修改/boot/grub/grub.cfg文件,最后加上:

menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os
insmod part_gpt
insmod ntfs
set root='(hd0,gpt1)'
search --no-floppy --fs-uuid --set=root A8D4CBDCD4CBAB40
chainloader +1

menuentry "Windows 7 (loader) (on /dev/sdb1)" --class windows --class os
insmod part_msdos
insmod ntfs
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set=root 7660DDC760DD8DED
chainloader +1

追问

还在不再呢好心人。我已经获取了root权限可还是不能更改grub.cfg

追答

update-grub找不到的话,有可能你的win7分区找不到了。

自己加载所有分区找找看有没有这个分区。

参考技术B 用sudo nautilus,就可以编辑grub.cfg了 参考技术C sudo update-grub试试

安装双系统ubuntu,RST(RAID)不兼容解决方案

参考技术A

最近买了新的台式机,打算把ubuntu20装上,不过需要的问题是intel的rst和ubuntu不兼容,大概问题描述见下。
https://zhuanlan.zhihu.com/p/148855857
我进入BIOS关掉了RST(BIOS里也叫RAID),成功安装了ubuntu,但是windows打不开了。据此,我搜了一下网上有三个方法。
上面知乎里的算一种,我并没有尝试,因为不想卸载RST驱动。
另外第二种
https://discourse.ubuntu.com/t/ubuntu-installation-on-computers-with-intel-r-rst-enabled/15347
该种方法需要调整win10里的
HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\iaStorV\\
文件等,大概意思设置这些文件让系统了解到是用AHCI而非RST,重启了之后电脑会找寻AHCI驱动并安装,但是我没有成功。
第三种解决方案( 成功 )
https://support.thinkcritical.com/kb/articles/switch-windows-10-from-raid-ide-to-ahci
我再复制粘贴一下,在win10环境里
1: Click the Start Button and type cmd
2: Right-click the result and select Run as administrator
3:Type this command and press ENTER: bcdedit /set current safeboot minimal (ALT: bcdedit /set safeboot minimal)
( ALT是alternative,意思是你可以在win10的终端里输入 bcdedit /set current safeboot minimal 或者 bcdedit /set safeboot minimal )
4: Restart the computer and enter BIOS Setup
5: Change the SATA Operation mode to AHCI from either IDE or RAID
6: Save changes and exit Setup and Windows will automatically boot to Safe Mode.
7: Right-click the Windows Start Menu once more. Choose Command Prompt (Admin).
8: Type this command and press ENTER: bcdedit /deletevalue current safeboot (ALT: bcdedit /deletevalue safeboot)
9: Reboot once more and Windows will automatically start with AHCI drivers enabled.
按照上面步骤做了之后,电脑在AHCI储存模式下能正常打开两个系统了

以上是关于ubuntu和win7双系统因为在ubuntu下删除了win7启动项导致win7不能进入,请大家帮帮我的主要内容,如果未能解决你的问题,请参考以下文章

怎么在win7下安装ubuntu双系统

win7和Ubuntu双系统折腾记

win7和ubuntu双系统win7启动有10秒选择然后win7自动启动,这种情况怎么启动ubuntu

我想组建win7和ubuntu双系统,不知该怎样操作。我有两个系统的盘子。安装顺序怎样,安装步骤,详细点,...

Win7Ubuntu双系统正确卸载Ubuntu系统

如何删除win7与Ubuntu的双系统请况下的Ubuntu