当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 19 篇帖子 ]  前往页数 1, 2  下一页
作者 内容
1 楼 
 文章标题 : 把grub装在xp的mbr上后,启动有xp选项但进不了xp
帖子发表于 : 2010-11-06 17:02 

注册: 2008-10-26 10:35
帖子: 26
送出感谢: 0 次
接收感谢: 0 次
装了ubuntu10.10,之后重启,连grub都没有,出现“no module name found”,后来借鉴http://forum.ubuntu.org.cn/viewtopic.php?t=299045,装了grub,重启后没有常见的选择启动项界面,只有grub命令行,用rootnoverify(hd0,0)命令能进xp,但是没能进入ubuntu,可能是我不太熟悉grub吧
后来看到有人说安装时把grub安装在xp的mbr上可以解决,于是又装了一遍ubuntu,在安装前最后一步选择把启动安装在xp所在的分区上,结果安装后重启,还是grub命令行,输入rootnoverify(hd0,0),chainloader+1命令时,不是进入xp,而是出现了常见的grub选择启动项的界面, :em06 选择ubuntu,能进! :em11
可是选择xp时出了问题,选择xp,进去后还是出现grub选择启动项的界面,仿佛是个循环 :em20
请各位高手教教我


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 把grub装在xp的mbr上后,启动有xp选项但进不了xp
帖子发表于 : 2010-11-06 17:14 
头像

注册: 2009-09-06 5:53
帖子: 4666
送出感谢: 6
接收感谢: 110
:em04 确实如你所说是循环。

引用:
在安装前最后一步选择把启动安装在xp所在的分区上

这样是把grub安装到xp的pbr上,要安装到mbr(sda)。
有xp安装光盘么?光盘启动,进入故障修复控制台,fixboot c:命令修复一下。

最好先:
http://sourceforge.net/projects/bootinfoscript/
把文件先复制到桌面,终端运行:
代码:
sudo bash ~/桌面/boot_info_script055.sh

把RESULTS.txt文件内容贴上来。


_________________
电子书下载:
鸟哥的Linux私房菜 基础学习篇 第三版 pdf
鸟哥的Linux私房菜 服务器架设篇 第三版 pdf


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 把grub装在xp的mbr上后,启动有xp选项但进不了xp
帖子发表于 : 2010-11-06 21:14 

注册: 2008-10-26 10:35
帖子: 26
送出感谢: 0 次
接收感谢: 0 次
RESULTS.txt的结果如下:
Boot Info Script 0.55 dated February 15th, 2010

============================= Boot Info Summary: ==============================

=> Grub 0.97 is installed in the MBR of /dev/sda and looks on the same drive
in partition #7 for /boot/grub/stage2 and /boot/grub/menu.lst.

sda1: _________________________________________________________________________

File system: ntfs
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda1 and
looks at sector 462305909 of the same hard drive for
core.img, but core.img can not be found at this
location. No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM

sda2: _________________________________________________________________________

File system: Extended Partition
Boot sector type: -
Boot sector info:

sda5: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: According to the info in the boot sector, sda5 starts
at sector 63.
Operating System:
Boot files/dirs:

sda6: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: According to the info in the boot sector, sda6 starts
at sector 63.
Operating System:
Boot files/dirs:

sda7: _________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda8: _________________________________________________________________________

File system: swap
Boot sector type: -
Boot sector info:

sda3: _________________________________________________________________________

File system: vfat
Boot sector type: Vista: Fat 32
Boot sector info: According to the info in the boot sector, sda3 has
4196352 sectors.. But according to the info from the
partition table , it has 5184175 sectors.
Operating System:
Boot files/dirs:

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ _____________________________________________________

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sda1 * 63 83,891,429 83,891,367 7 HPFS/NTFS
/dev/sda2 83,891,491 619,958,271 536,066,781 f W95 Ext d (LBA)
/dev/sda5 83,891,493 203,786,957 119,895,465 7 HPFS/NTFS
/dev/sda6 262,470,033 441,048,509 178,578,477 7 HPFS/NTFS
/dev/sda7 441,048,573 480,111,072 39,062,500 83 Linux
/dev/sda8 614,328,320 619,958,271 5,629,952 82 Linux swap / Solaris
/dev/sda3 619,958,272 625,142,447 5,184,176 12 Compaq diagnostics


blkid -c /dev/null: ____________________________________________________________

Device UUID TYPE LABEL

/dev/sda1 1E2437BF243798AB ntfs
/dev/sda2: PTTYPE="dos"
/dev/sda3 266A-F69E vfat LENOVO_PART
/dev/sda5 B434310F3430D658 ntfs
/dev/sda6 80683A28683A1CFA ntfs
/dev/sda7 c867f4ca-b0d7-4cd8-9614-962e42f5fb60 ext4
/dev/sda8 3d1b967e-37ff-469b-85c8-c8e028d9a163 swap
/dev/sda: PTTYPE="dos"

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

/dev/sda7 / ext4 (rw,errors=remount-ro,commit=0)


================================ sda1/boot.ini: ================================

[boot loader]

timeout=5

default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS

[operating systems]

multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect

C:\GHLDR=Ò»ŒüGHOST v2010.01.02


=========================== sda7/boot/grub/grub.cfg: ===========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set c867f4ca-b0d7-4cd8-9614-962e42f5fb60
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set c867f4ca-b0d7-4cd8-9614-962e42f5fb60
set locale_dir=($root)/boot/grub/locale
set lang=zh
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set c867f4ca-b0d7-4cd8-9614-962e42f5fb60
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=c867f4ca-b0d7-4cd8-9614-962e42f5fb60 ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set c867f4ca-b0d7-4cd8-9614-962e42f5fb60
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=c867f4ca-b0d7-4cd8-9614-962e42f5fb60 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set c867f4ca-b0d7-4cd8-9614-962e42f5fb60
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set c867f4ca-b0d7-4cd8-9614-962e42f5fb60
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 1e2437bf243798ab
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

=============================== sda7/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda7 during installation
UUID=c867f4ca-b0d7-4cd8-9614-962e42f5fb60 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda8 during installation
UUID=3d1b967e-37ff-469b-85c8-c8e028d9a163 none swap sw 0 0

=================== sda7: Location of files loaded by Grub: ===================


236.7GB: boot/grub/core.img
236.7GB: boot/grub/grub.cfg
236.9GB: boot/grub/stage2
226.7GB: boot/initrd.img-2.6.35-22-generic
236.7GB: boot/vmlinuz-2.6.35-22-generic
226.7GB: initrd.img
236.7GB: vmlinuz


页首
 用户资料  
 
4 楼 
 文章标题 : Re: 把grub装在xp的mbr上后,启动有xp选项但进不了xp
帖子发表于 : 2010-11-06 22:34 

注册: 2008-10-26 10:35
帖子: 26
送出感谢: 0 次
接收感谢: 0 次
谢谢!
您说得“复制ntldr为grldr(保留原来的ntldr)“这一步我不懂


页首
 用户资料  
 
5 楼 
 文章标题 : Re: 把grub装在xp的mbr上后,启动有xp选项但进不了xp
帖子发表于 : 2010-11-06 22:37 
头像

注册: 2009-09-06 5:53
帖子: 4666
送出感谢: 6
接收感谢: 110
引用:
Grub 0.97 is installed in the MBR of /dev/sda and looks on the same drive
in partition #7 for /boot/grub/stage2 and /boot/grub/menu.lst.

sda1: _________________________________________________________________________

File system: ntfs
Boot sector type: Grub 2

Boot sector info: Grub 2 is installed in the boot sector of sda1 and
looks at sector 462305909 of the same hard drive for
core.img, but core.img can not be found at this
location. No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM

有点乱了,mbr装的是grub1,sda1 xp分区pbr装的是grub2.
先在grub命令行如下,看能不能进ubuntu。
代码:
find --set-root /boot/grub/core.img
kernel /boot/grub/core.img
boot

如果能进ubuntu。
代码:
sudo grub-install -v
查一下是不是安装的是GRUB 2,版本编号 1.96 或是更新。
是grub2做如下:
1.先修复mbr的grub1为grub2:
代码:
sudo grub-install /dev/sda

2.修复xp的pbr,xp安装光盘启动,进入故障修复控制台,fixboot c:。


_________________
电子书下载:
鸟哥的Linux私房菜 基础学习篇 第三版 pdf
鸟哥的Linux私房菜 服务器架设篇 第三版 pdf


最后由 onshoestring 编辑于 2010-11-06 22:50,总共编辑了 1 次

页首
 用户资料  
 
6 楼 
 文章标题 : Re: 把grub装在xp的mbr上后,启动有xp选项但进不了xp
帖子发表于 : 2010-11-06 22:48 

注册: 2008-10-26 10:35
帖子: 26
送出感谢: 0 次
接收感谢: 0 次
::-),是很乱,我刚才进行到挂载那一步,明天再按您说的办,先休息了,谢谢!


页首
 用户资料  
 
7 楼 
 文章标题 : Re: 把grub装在xp的mbr上后,启动有xp选项但进不了xp
帖子发表于 : 2010-11-07 22:21 

注册: 2008-10-26 10:35
帖子: 26
送出感谢: 0 次
接收感谢: 0 次
昨天弄得太乱了,于是我格式化了硬盘,重装了xp,再装了ubuntu,重启后熟悉得grub启动项选择界面出现了,选择ubuntu能进,选择windows又出现了上述得循环现象,以下是RESULT.TXT得内容:


页首
 用户资料  
 
8 楼 
 文章标题 : Re: 把grub装在xp的mbr上后,启动有xp选项但进不了xp
帖子发表于 : 2010-11-07 22:22 

注册: 2008-10-26 10:35
帖子: 26
送出感谢: 0 次
接收感谢: 0 次
Boot Info Script 0.55 dated February 15th, 2010

============================= Boot Info Summary: ==============================

=> Windows is installed in the MBR of /dev/sda

sda1: _________________________________________________________________________

File system: ntfs
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda1 and
looks at sector 517031833 of the same hard drive for
core.img, but core.img can not be found at this
location. No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM

sda2: _________________________________________________________________________

File system: Extended Partition
Boot sector type: -
Boot sector info:

sda5: _________________________________________________________________________

File system: vfat
Boot sector type: MSWIN4.1: Fat 32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

sda6: _________________________________________________________________________

File system: vfat
Boot sector type: MSWIN4.1: Fat 32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

sda7: _________________________________________________________________________

File system: vfat
Boot sector type: MSWIN4.1: Fat 32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

sda8: _________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda9: _________________________________________________________________________

File system: swap
Boot sector type: -
Boot sector info:

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ _____________________________________________________

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sda1 * 63 57,448,439 57,448,377 7 HPFS/NTFS
/dev/sda2 57,448,501 625,141,759 567,693,259 f W95 Ext d (LBA)
/dev/sda5 57,448,503 204,957,269 147,508,767 b W95 FAT32
/dev/sda6 204,957,333 352,466,099 147,508,767 b W95 FAT32
/dev/sda7 352,466,163 499,974,929 147,508,767 b W95 FAT32
/dev/sda8 499,974,993 619,277,727 119,302,735 83 Linux
/dev/sda9 619,278,336 625,141,759 5,863,424 82 Linux swap / Solaris


blkid -c /dev/null: ____________________________________________________________

Device UUID TYPE LABEL

/dev/sda1 3028719628715C32 ntfs
/dev/sda2: PTTYPE="dos"
/dev/sda5 2F6A-1BE7 vfat
/dev/sda6 1644-1BEC vfat
/dev/sda7 1B4C-1BF0 vfat
/dev/sda8 64878cf0-9b56-4087-934c-77e7edb283e3 ext4
/dev/sda9 aec92fbe-0563-4823-9641-adaf20d34d47 swap
/dev/sda: PTTYPE="dos"

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

/dev/sda8 / ext4 (rw,errors=remount-ro,commit=0)


================================ sda1/boot.ini: ================================

[boot loader]

timeout=30

default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS

[operating systems]

multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect


=========================== sda8/boot/grub/grub.cfg: ===========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set 64878cf0-9b56-4087-934c-77e7edb283e3
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set 64878cf0-9b56-4087-934c-77e7edb283e3
set locale_dir=($root)/boot/grub/locale
set lang=zh
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set 64878cf0-9b56-4087-934c-77e7edb283e3
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=64878cf0-9b56-4087-934c-77e7edb283e3 ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set 64878cf0-9b56-4087-934c-77e7edb283e3
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=64878cf0-9b56-4087-934c-77e7edb283e3 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set 64878cf0-9b56-4087-934c-77e7edb283e3
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set 64878cf0-9b56-4087-934c-77e7edb283e3
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 3028719628715c32
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

=============================== sda8/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
/dev/sda8 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda9 during installation
UUID=aec92fbe-0563-4823-9641-adaf20d34d47 none swap sw 0 0

=================== sda8: Location of files loaded by Grub: ===================


264.7GB: boot/grub/core.img
303.4GB: boot/grub/grub.cfg
293.1GB: boot/initrd.img-2.6.35-22-generic
264.7GB: boot/vmlinuz-2.6.35-22-generic
293.1GB: initrd.img
264.7GB: vmlinuz


页首
 用户资料  
 
9 楼 
 文章标题 : Re: 把grub装在xp的mbr上后,启动有xp选项但进不了xp
帖子发表于 : 2010-11-07 22:24 

注册: 2008-10-26 10:35
帖子: 26
送出感谢: 0 次
接收感谢: 0 次
现在不敢动了,静等老大指导


页首
 用户资料  
 
10 楼 
 文章标题 : Re: 把grub装在xp的mbr上后,启动有xp选项但进不了xp
帖子发表于 : 2010-11-07 22:38 
头像

注册: 2009-09-06 5:53
帖子: 4666
送出感谢: 6
接收感谢: 110
引用:
sda1: _________________________________________________________________________

File system: ntfs
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda1 and
looks at sector 517031833 of the same hard drive for
core.img, but core.img can not be found at this
location. No errors found in the Boot Parameter Block.

1.
代码:
sudo grub-install /dev/sda

做完这一步再运行脚本看一下result.txt第二行是不是
Grub 2 is installed in the MBR of /dev/sda
是的话做第二步。
2.xp安装光盘启动,进入故障修复控制台,fixboot c:命令修复一下。


_________________
电子书下载:
鸟哥的Linux私房菜 基础学习篇 第三版 pdf
鸟哥的Linux私房菜 服务器架设篇 第三版 pdf


页首
 用户资料  
 
11 楼 
 文章标题 : Re: 把grub装在xp的mbr上后,启动有xp选项但进不了xp
帖子发表于 : 2010-11-07 23:12 

注册: 2008-10-26 10:35
帖子: 26
送出感谢: 0 次
接收感谢: 0 次
是ghost安装得,现在回想起来选项是“修复windows。。。”之类得
好得,我现在已经回家了,明天再按照你说得办


页首
 用户资料  
 
12 楼 
 文章标题 : Re: 把grub装在xp的mbr上后,启动有xp选项但进不了xp
帖子发表于 : 2010-11-07 23:13 
头像

注册: 2009-09-06 5:53
帖子: 4666
送出感谢: 6
接收感谢: 110
ywzhong 写道:
昨天弄得太乱了,于是我格式化了硬盘,重装了xp,再装了ubuntu,重启后熟悉得grub启动项选择界面出现了,选择ubuntu能进,选择windows又出现了上述得循环现象,以下是RESULT.TXT得内容:

grub2引导程序只能安装到sda(mbr)
或者是/分区对应你硬盘的sda8(/dev/sda8 / ext4 errors=remount-ro 0 1
),如果/boot单独分区就安装到/boot分区。


_________________
电子书下载:
鸟哥的Linux私房菜 基础学习篇 第三版 pdf
鸟哥的Linux私房菜 服务器架设篇 第三版 pdf


页首
 用户资料  
 
13 楼 
 文章标题 : Re: 把grub装在xp的mbr上后,启动有xp选项但进不了xp
帖子发表于 : 2010-11-07 23:19 

注册: 2008-10-26 10:35
帖子: 26
送出感谢: 0 次
接收感谢: 0 次
这次安装是把grub安装/分区里得啊,为什么感觉像是安装在sda1上呢?
还有,Windows is installed in the MBR of /dev/sda,那么启动时不是会用windows来启动吗?


页首
 用户资料  
 
14 楼 
 文章标题 : Re: 把grub装在xp的mbr上后,启动有xp选项但进不了xp
帖子发表于 : 2010-11-07 23:38 
头像

注册: 2009-09-06 5:53
帖子: 4666
送出感谢: 6
接收感谢: 110
mbr(win)-有active flag标志的主分区-xp分区的pbr(注意,这里现在是grub2引导程序)-core.img(grub.cfg)-ubuntu
                                            |
                                         chainloader+1到xp分区的pbr,就是第一行xp分区的pbr,循环。


_________________
电子书下载:
鸟哥的Linux私房菜 基础学习篇 第三版 pdf
鸟哥的Linux私房菜 服务器架设篇 第三版 pdf


页首
 用户资料  
 
15 楼 
 文章标题 : Re: 把grub装在xp的mbr上后,启动有xp选项但进不了xp
帖子发表于 : 2010-11-08 12:26 

注册: 2008-10-26 10:35
帖子: 26
送出感谢: 0 次
接收感谢: 0 次
完成了,显示是“Grub 2 is installed in the MBR of /dev/sda”
可是启动后显示“no module name found” :em20


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 19 篇帖子 ]  前往页数 1, 2  下一页

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译