Windows的安装会覆盖linux的MBR, 看了看关于Grub2(linux使用的引导系统)的文档后发现Grub2可以非常方便的生成启动菜单
首先我们要进到Linux, 弄个LiveCD或者U盘引导的Linux系统盘引导进Linux(不是硬盘上的Linux).
接着执行以下步骤来恢复原Linux的MBR+Grub2 (需要root权限)
1. fdisk -l 查看本硬盘上的分区, 根据大小和文件系统大概可以判断原来的根目录/在哪个分区. 设为/dev/sdXY
2. mount /dev/sdXY /mnt
3. grub-install –root-directory=/mnt/ /dev/sdX 这样就写入Grub2和MBR了 , (注意root前面是两条扛, 我这版式有问题)
更详细点这里
重启进原Linux, sudo update-grub, 如果有”Found Windows 7 (loader) on /dev/sdxx” 就ok了.
如果不行需要自己加入Windows的引导. 我update-grub后就直接找到了win7系统, 但是下面的方法我试过且成功了.
先记一下Grub2的文件结构:
/boot/grub/grub.cfg
取代Grub1的/boot/grub/menu.lst, 最大区别是grub.cfg不应该被修改(虽然你可以), 防止出错. 这个文件是由update-grub生成的
/etc/default/grub
配置文件, 原来menu.lst里改的 现在在这里改
/etc/grub.d/
update-grub所使用的脚本, 包括菜单的外观, 以及在各个分区上寻找各种系统自动加入update-grub的脚本等等.
目录下有文件00_header 05_debian_theme 10_hurd 10_linux 20_memtest86+ 30_os-prober 40_custom, 更详细的说明点这里
其中40_custom是我们需要的, 往文件末端加入
[cpp]menuentry "Windows" {
set root=(hd0,3)
chainloader +1
}[/cpp]
其中hd0就是sda, 如果你是sdb那就是hd1以此类推, 3是sda3的3. 这个sda3要说明一下, 用fdisk -l列出分区表, 我们要找的不是windows的安装分区, 而是它上面一个100M的分区, 这是windows单独分出来用来引导的. 我的sda3是100M, 所以这里填(hd0,3). 如果没有100M的分区那就按windows分区算吧, 至少win7默认安装是100M这样.
保存后别忘update-grub, OK
References:
Hitnspin online casino https://www.rybalka44.ru/forum/go.php?url=aHR0cHM6Ly9odWJ1LnJ1L3dpbGV5ZmFyZmE
References:
Lollybet Casino Roulette dreamwar.ru
References:
Lollybet Casino Spiele clients1.google.co.jp
References:
Lollybet Casino Bonus http://maps.google.cv/
References:
Lollybet Casino Bonus Code http://www.24subaru.ru/photo-20322.html?ReturnPath=https://nexus.astroempires.com/redirect.aspx?https://lollybet.com.de/
References:
Lollybet Startguthaben jugem.jp
References:
Lollybet Casino Auszahlungsdauer https://ua.cvbankas.lt/pasirinkti-kalba.html?route=https://board-de.farmerama.com:443/proxy.php?link=https://lollybet.com.de/
References:
Lollybet Casino Neukundenbonus cse.google.cd
References:
Lollybet Bonus ohne Einzahlung eng.stove.ru
References:
Lollybet Casino Bonus ohne Umsatzbedingungen http://cse.google.ad/url?sa=t&url=http://irania.tv/@keeleymount210?page=about
References:
Hitnspin casino sicher cse.google.ad
References:
Hitnspin aktionscode http://cse.google.co.th/
References:
Hitnspin casino legal http://1.school2100.com
References:
Hitnspin casino ähnliche casinos http://images.google.co.th/
References:
Hitnspin casino echtgeld http://grch37.ensembl.org/Help/Permalink?url=https://matkafasi.com/user/peacetemper0
References:
Hitnspin bonus ohne einzahlung cse.google.co.vi
References:
Casino hitnspin http://cse.google.com.af/url?q=https://500px.com/p/sellersjsijosephsen
References:
Australian pokies payid https://git.rentakloud.com/
References:
Online payid pokies https://sellyourcnc.com/author/rebeccayanc/
References:
Best instant payid pokies australia real money https://video.thedogman.net/@anasumsuma5852?page=about
References:
Pokies net australia payid withdrawal https://ashkert.am/
References:
Pokies net australia payid withdrawal https://gitea.jobiglo.com/christianecoms
References:
New payid pokies https://rentry.co/54068-best-payid-casinos-online-australia-2026-instant-deposit-peter
References:
Australia online pokies payid https://kurdishserie.com/@domingazambran?page=about
References:
Best instant payid pokies australia real money staffsagye.com