thinkpad t430 grub2 efi 引导fedora20/linux windows8双系统
2014-05-03 20:44
666 查看
去年新买了thinkpad t430的本本,到手后就装了个Fedora系统(http://user.qzone.qq.com/416702736/blog/1382273851),但是win7再也进不去了。尽管windows对于我来说用处不大,但是没有windows还是不爽的。期间把grub2 efi折腾了个遍,就是启动不了windows。终于在这个五一静下心来参考尝试了前人的n种方法,成功的引导了windows。现在想来关键在于重建BCD,因为在装Fedora时重新分区了。
1. 创建u盘启动的windows 8安装盘。格式化u盘为fat32个格式,直接解压windows8 ISO文件到U盘即可。这里我之前用的是windows7,尝试过n种制作启动盘的方法,却只能legancy启动,一直不能efi启动。用了window8后居然这么简单,看来window8对efi的支持要好多了呀。
2. 选择从U盘启动安装windows8(按F12),替换了window7,可怜我的正版window7呀。安装过程中会重启,X,又进不去windows8了,难道难道这么多的努力白费了。于是进行下面的步骤。
3. 拷贝window8安装分区下的Windows/Boot到/boo/efi/EFI/Miscrosoft下面,我的efi相关分区如下
/dev/sdb4 499656 79704 383256 18% /boot
/dev/sdb1 102182 45340 56842 45% /boot/efi
得到的/boo/efi/EFI/Miscrosoft目录结构如下
`-- Boot
|-- DVD
|-- EFI
|-- Fonts
|-- PCAT
`-- Resources
4. 增加如下到/etc/grub.d/40_custom
menuentry 'windows' --class windows --class os {
insmod part_gpt
insmod fat
insmod search_fs_uuid
insmod chain
search --no-floppy --fs-uuid --set=root
B0DD-6568
chainloader ($root)/EFI/Microsoft/Boot/EFI/bootmgfw.efi
}
其中的红色高亮部分,通过如下方式查看
ls /dev/disk/by-uuid/ -l
找到/boo/efi对应分区的uuid,这里如下
lrwxrwxrwx 1 root root 10 May 3 14:59 B0DD-6568 -> ../../sdb1
5. grub2-mkconfig -o /boot/grub2/grub.cfg更新grub2配置文件
6. 重启,仍然选择从U盘启动, click Repair
your computer > click Troubleshoot >
click Advanced options >
choose Command Prompt
type
> bootrec /fixmbr (writes
mbr but does not overwrite partition table)
type > bootrec
/fixboot (writes new boot sector to system partition)
type > bootrec
/scanos (scans for other OS’s that you might want to add to bcd)
(personally I find the above unneeded and only use the last step)
type > bootrec
/rebuildbcd (scans for other OS’s, unlike rebuildbcd it allows you to select the OS’s you want to add to bcd)
7. 重启,拔掉U盘(不需要window8安装盘了)选择grub2启动项的windows,继续安装完windows。
8. 安装完成后大功告成,从grub2的启动项既可以选择启动windows,也可以启动Fedora。
1. 创建u盘启动的windows 8安装盘。格式化u盘为fat32个格式,直接解压windows8 ISO文件到U盘即可。这里我之前用的是windows7,尝试过n种制作启动盘的方法,却只能legancy启动,一直不能efi启动。用了window8后居然这么简单,看来window8对efi的支持要好多了呀。
2. 选择从U盘启动安装windows8(按F12),替换了window7,可怜我的正版window7呀。安装过程中会重启,X,又进不去windows8了,难道难道这么多的努力白费了。于是进行下面的步骤。
3. 拷贝window8安装分区下的Windows/Boot到/boo/efi/EFI/Miscrosoft下面,我的efi相关分区如下
/dev/sdb4 499656 79704 383256 18% /boot
/dev/sdb1 102182 45340 56842 45% /boot/efi
得到的/boo/efi/EFI/Miscrosoft目录结构如下
`-- Boot
|-- DVD
|-- EFI
|-- Fonts
|-- PCAT
`-- Resources
4. 增加如下到/etc/grub.d/40_custom
menuentry 'windows' --class windows --class os {
insmod part_gpt
insmod fat
insmod search_fs_uuid
insmod chain
search --no-floppy --fs-uuid --set=root
B0DD-6568
chainloader ($root)/EFI/Microsoft/Boot/EFI/bootmgfw.efi
}
其中的红色高亮部分,通过如下方式查看
ls /dev/disk/by-uuid/ -l
找到/boo/efi对应分区的uuid,这里如下
lrwxrwxrwx 1 root root 10 May 3 14:59 B0DD-6568 -> ../../sdb1
5. grub2-mkconfig -o /boot/grub2/grub.cfg更新grub2配置文件
6. 重启,仍然选择从U盘启动, click Repair
your computer > click Troubleshoot >
click Advanced options >
choose Command Prompt
type
> bootrec /fixmbr (writes
mbr but does not overwrite partition table)
type > bootrec
/fixboot (writes new boot sector to system partition)
type > bootrec
/scanos (scans for other OS’s that you might want to add to bcd)
(personally I find the above unneeded and only use the last step)
type > bootrec
/rebuildbcd (scans for other OS’s, unlike rebuildbcd it allows you to select the OS’s you want to add to bcd)
7. 重启,拔掉U盘(不需要window8安装盘了)选择grub2启动项的windows,继续安装完windows。
8. 安装完成后大功告成,从grub2的启动项既可以选择启动windows,也可以启动Fedora。
相关文章推荐
- grub2中添加windows的启动项 安装linux后添加windows系统的引导入口
- Windows+Linux 双系统 grub2 引导问题
- Linux下硬盘安装Fedora20(Windows+最小化安装Linux+Fedora20三系统共存)
- 双系统如何删除Linux,恢复Windows从MBR引导启动?
- Linux与Windows双系统开机引导的简单修复
- 隐藏Ubuntu引导,直接进入系统——变色龙引导Linux,Windows,Mac OS(苹果系统)攻略之二
- Windows、Freebsd和Linux多重系统引导解决方法
- 双系统重装后的引导项的修复 windows+linux
- 折腾windows7 + fedora20 双系统以及 grub2 的一些记录
- Linux与windows多系统引导
- 将Ubuntu的引导写入自己所在分区——变色龙引导Linux,Windows,Mac OS(苹果系统)攻略之一
- linux与windows双系统的linux引导方法
- Linux与Windows多系统引导软件GRUB4DOS下载及使用说明
- 解决Linux和Windows双系统的引导问题
- Fedora19和Windows7双系统修改默认引导
- Install Robot Framework on Linux Fedora20 or ubuntu /on Mac /on windows
- 重装windows后重新引导linux fedora 19
- Windows与linux双系统强行删除linux后Windows无法引导解决办法
- Linux Fedora13,Windows 7 and Windows XP的多系统安装
- 先安装Linux再安装windows双系统引导项处理