Find the boot option for Fedora after installing WINDOWS 7

Windows XP is really a nice and handy Operating System in the past. The real consideration here is, for me, I need to install a Windows-based english version OS, which unfortunately I only find the Windows 7 free copy from my school's repository. I really know that installing the Windows 7 can destory the MBR and cause the disappearance of fedora boot option when the machine is on, but I donnot care because I know it can be rescued back. 

 

So, the whole thing turns to be pretty easy, ha. Installing the Windows 7, only took 20 mins. Reboot the system, bingo, you cannot find the fedora boot option. Hi, man, take it easy.

 

1 Find a flash driver, using any tools, like unetbootin-windows (surely it is free) to burn any fedora live CD iso file into the flash driver. Then, modify the BIOS setting to let the HDD USB as your first booting device. (Or you can just using any Live CD to getting into your original ext4 format fedora file system. )

 

2 After your login, try the install icon on the desktop. Press next until you see the mount position of your "/" and "/boot/", which on my machine are /sda5 and /sda7, respectively. You can find your own settings. In this step, we just get know where are the / and /boot/ mounted.

 

3 Close the install wizard stated above, and open a terminal. Just type:

$su

#mount /dev/sda5 /mnt

#mount /dev/sda7 /mnt/boot

#grub-install -root-directory /mnt /dev/sda

 

4 Reboot your system. Make sure that you un-pluggin the flash driver and take out the live CD. Hey, see the familiar GRUB interface? Yes, everything comes back.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值