Welcome 微信登录

首页 / 操作系统 / Linux / Ubuntu Linux, Windows XP 双系统重装Grub2

一般安装Linux, Windows双系统都是先安装Windows然后安装Linux,这种情况下Grub会自动检测到Windows并添加到启动列表中。如果安装顺序颠倒则可以有以下解决方法:
  • 安装Grub4Dos  http://www.linuxidc.com/Linux/2009-01/18027.htm
  • 使用Ubuntu LiveCD安装Grub到MBR
新版的Ubuntu使用的是Grub2,命令与Grub稍微有一些不同,大致操作如下my-desktop:~$ sudo grub-setup -d /media/disk/boot/grub /dev/sda其中disksda需要根据Linux所在硬盘进行调整。以下是grub-setup的帮助信息my-desktop:~$ sudo grub-setup--help
Usage: grub-setup [OPTION]... DEVICE

Set up images to boot from DEVICE.
DEVICE must be a GRUB device (e.g. `(hd0,1)").

-b, --boot-image=FILE use FILE as the boot image [default=boot.img]
-c, --core-image=FILE use FILE as the core image [default=core.img]
-d, --directory=DIR use GRUB files in the directory DIR [default=/boot/grub]
-m, --device-map=FILE use FILE as the device map [default=/boot/grub/device.map]
-r, --root-device=DEV use DEV as the root device [default=guessed]
-f, --force install even if problems are detected
-s, --skip-fs-probe do not probe for filesystems in DEVICE
-h, --helpdisplay this message and exit
-V, --version print version information and exit
-v, --verbose print verbose messages

Report bugs to <bug-grub@gnu.org>.VirtualBox 下使用招商银行网银专业版(U盾)VirtualBox 扩大硬盘空间相关资讯      Linux教程 
  • Linux教程:如何在命令行中查看目  (07/28/2014 12:22:23)
  • Linux 修改root密码  (11/03/2012 07:53:38)
  • su - root 与su root的区别  (06/06/2012 00:39:40)
  • Linux进程间通信:消息队列  (01/28/2013 09:43:00)
  • U盘安装Linux开机无法启动解决方法  (10/07/2012 08:55:52)
  • Windows 7/Linux 同步时间  (05/15/2012 06:17:55)
本文评论 查看全部评论 (0)
表情: 姓名: 字数