上次裝了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
就可以了。