So I’m trying to restore my triple boot Macbook Pro to a new hard drive, and when I restored Ubuntu partition with Clonezilla, I can’b boot it from rEFIt. At first I thought it’s because I hadn’t restored the MBR, while it turned out that I don’t really need MBR info ’cause I’d installed Grub2 to the PBR of my Ubuntu Partition. So I just reinstalled Grub2 from the live CD and now I can boot Ubuntu on my new HDD. Here is how to install grub2 from live CD:Open up
Terminal when the live CD is started.Then type the following commands:
sudo mount /dev/sda4 /mnt
sudo grub-install –root-directory=/mnt /dev/sda4/dev/sda4 is my Ubuntu partition. If you want to install Grub2 to MBR, you can just use
/dev/sda instead of
/dev/sdax.If it won’t work, then try adding “
–force” option in the “
grub-install” command. See if you get a message that “Installation finished”. If it says so, then you should be good to go. Reboot you MBP, and choose Ubuntu icon, you should now see the grub menu.Mac OS X、WIN7、Ubuntu、Linux Mint四系统Macbook Pro打造完工Mac、Win、Linux三系统Macbook Pro硬盘升级后数据还原记相关资讯 Grub
- Ubuntu下Grub配置详解 (今 14:57)
- Linux系统教程:设置GRUB菜单密码 (12/15/2015 21:30:02)
- Linux操作系统启动管理器-GRUB (05/09/2015 12:06:59)
| - GRUB官方文档翻译-v1.01 PDF (04月09日)
- 修复Linux中的“提供类似行编辑的 (07/29/2015 13:18:34)
- Ubuntu 通过 Live CD 更新Grub恢复 (04/19/2015 19:06:43)
|
本文评论 查看全部评论 (0)