重装XP,恢复对Linux的引导


上次装了XP,没有备份系统,后来系统盘越来越臃肿,有时系统提示没有空间,于是决定再重装XP,然后用一键GHOST硬盘版8.3对XP系统盘备份。然而,原来的双系统中的Linux无法引导了,我手上又没有安装盘,于是决定用一键GHOST硬盘版8.3自带的grub修复对Linux的引导。


  1.安装一键GHOST硬盘版8.3.

  2.用explore2fs在windows下将Linux boot分区中的grub.conf文件导出。我导出的文件内容如下

  QUOTE:

  # grub.conf generated by anaconda

  #

  # Note that you do not have to rerun grub after making changes to this file

  # NOTICE: You have a /boot partition. This means that

  # all kernel and initrd paths are relative to /boot/, eg.

  # root (hd0,8)

  # kernel /vmlinuz-version ro root=/dev/sda3

  # initrd /initrd-version.img

  #boot=/dev/sda

  default=1

  timeout=1

  gfxmenu (hd0,8)/message

  title Everest (2.6.23.1-5)

  root (hd0,8)

  kernel /vmlinuz-2.6.23.1-5 ro root=LABEL=/ vga=788 splash=silent resume=/dev/sda4

  initrd /initrd-2.6.23.1-5.img

  title Windows XP SP2 Professional

  rootnoverify (hd0,0)

  chainloader +1

  3.修改安装一键GHOST硬盘版后C盘中的一个文件C:\boot\ghos\menu.lst

  修改前内容如下

  QUOTE:

  # 禁止修改或删除本文件,否则"一键GHOST"将无法使用

  # Don't edit or delete this file, otherwise "1KEY GHOST" is not used.

  # 葛明阳 制作

  # MADE BY GMY

  # DOS之家

  # http://doshome.com

  timeout 0

  default 0

  #foreground E0E0E0

  #background 505050

  #gfxmenu /boot/ghos/grub_chs.msg

  #fontfile /boot/ghos/fonts

  #splashimage /boot/ghos/black.xpm

  password --md5 {GetProperty(Content)}$7$CiueUGxatxEg3ubyHriXN0

  title 1KEY GHOST v8.3

  # MODE1

  clear

  #password

  map --mem /boot/ghos/ghost83.img (fd0)

  map --hook

  chainloader (fd0)+1

  rootnoverify (fd0)

  # MODE2

  #kernel /boot/ghos/memdisk

  #initrd /boot/ghos/ghost83.img

  #plus

  #plus-end

  修改后内容为:

  QUOTE:

  # 禁止修改或删除本文件,否则"一键GHOST"将无法使用

  # Don't edit or delete this file, otherwise "1KEY GHOST" is not used.

  # 葛明阳 制作

  # MADE BY GMY

  # DOS之家

  # http://doshome.com

  timeout 5

  default 0

  #foreground E0E0E0

  #background 505050

  #gfxmenu /boot/ghos/grub_chs.msg

  #fontfile /boot/ghos/fonts

  #splashimage /boot/ghos/black.xpm

  password --md5 {GetProperty(Content)}$7$CiueUGxatxEg3ubyHriXN0

  title Everest (2.6.23.1-5)

  root (hd0,8)

  kernel /vmlinuz-2.6.23.1-5 ro root=LABEL=/ vga=788 splash=silent resume=/dev/sda4

  initrd /initrd-2.6.23.1-5.img

  title 1KEY GHOST v8.3

  # MODE1

  clear

  #password

  map --mem /boot/ghos/ghost83.img (fd0)

  map --hook

  chainloader (fd0)+1

  rootnoverify (fd0)

  # MODE2

  #kernel /boot/ghos/memdisk

  #initrd /boot/ghos/ghost83.img

  #plus

  #plus-end

  4.保存重启,选择

  C:\GHLDR=一键GHOST v8.3 Build 060716

  就可以了。

本文作者:

上次装了XP,没有备份系统,后来系统盘越来越臃肿,有时系统提示没有空间,于是决定再重装XP,然后用一键GHOST硬盘版8.3对XP系统盘备份。然而,原来的双系统中的Linux无法引导了,我手上又没有安装盘,于是决定用一键GHOST硬盘版8.3自带的grub修复对Linux的引导。


  1.安装一键GHOST硬盘版8.3.

  2.用explore2fs在windows下将Linux boot分区中的grub.conf文件导出。我导出的文件内容如下

  QUOTE:

  # grub.conf generated by anaconda

  #

  # Note that you do not have to rerun grub after making changes to this file

  # NOTICE: You have a /boot partition. This means that

  # all kernel and initrd paths are relative to /boot/, eg.

  # root (hd0,8)

  # kernel /vmlinuz-version ro root=/dev/sda3

  # initrd /initrd-version.img

  #boot=/dev/sda

  default=1

  timeout=1

  gfxmenu (hd0,8)/message

  title Everest (2.6.23.1-5)

  root (hd0,8)

  kernel /vmlinuz-2.6.23.1-5 ro root=LABEL=/ vga=788 splash=silent resume=/dev/sda4

  initrd /initrd-2.6.23.1-5.img

  title Windows XP SP2 Professional

  rootnoverify (hd0,0)

  chainloader +1

  3.修改安装一键GHOST硬盘版后C盘中的一个文件C:\boot\ghos\menu.lst

  修改前内容如下

  QUOTE:

  # 禁止修改或删除本文件,否则"一键GHOST"将无法使用

  # Don't edit or delete this file, otherwise "1KEY GHOST" is not used.

  # 葛明阳 制作

  # MADE BY GMY

  # DOS之家

  # http://doshome.com

  timeout 0

  default 0

  #foreground E0E0E0

  #background 505050

  #gfxmenu /boot/ghos/grub_chs.msg

  #fontfile /boot/ghos/fonts

  #splashimage /boot/ghos/black.xpm

  password --md5 {GetProperty(Content)}$7$CiueUGxatxEg3ubyHriXN0

  title 1KEY GHOST v8.3

  # MODE1

  clear

  #password

  map --mem /boot/ghos/ghost83.img (fd0)

  map --hook

  chainloader (fd0)+1

  rootnoverify (fd0)

  # MODE2

  #kernel /boot/ghos/memdisk

  #initrd /boot/ghos/ghost83.img

  #plus

  #plus-end

  修改后内容为:

  QUOTE:

  # 禁止修改或删除本文件,否则"一键GHOST"将无法使用

  # Don't edit or delete this file, otherwise "1KEY GHOST" is not used.

  # 葛明阳 制作

  # MADE BY GMY

  # DOS之家

  # http://doshome.com

  timeout 5

  default 0

  #foreground E0E0E0

  #background 505050

  #gfxmenu /boot/ghos/grub_chs.msg

  #fontfile /boot/ghos/fonts

  #splashimage /boot/ghos/black.xpm

  password --md5 {GetProperty(Content)}$7$CiueUGxatxEg3ubyHriXN0

  title Everest (2.6.23.1-5)

  root (hd0,8)

  kernel /vmlinuz-2.6.23.1-5 ro root=LABEL=/ vga=788 splash=silent resume=/dev/sda4

  initrd /initrd-2.6.23.1-5.img

  title 1KEY GHOST v8.3

  # MODE1

  clear

  #password

  map --mem /boot/ghos/ghost83.img (fd0)

  map --hook

  chainloader (fd0)+1

  rootnoverify (fd0)

  # MODE2

  #kernel /boot/ghos/memdisk

  #initrd /boot/ghos/ghost83.img

  #plus

  #plus-end

  4.保存重启,选择

  C:\GHLDR=一键GHOST v8.3 Build 060716

  就可以了。

本文作者:
« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3