c盘的winxp用ntfs文件格式,无法恢复双系统引导?

为当前最终发行版之前的所有版本提供支持
jylin
帖子: 68
注册时间: 2005-12-18 23:17
送出感谢: 0
接收感谢: 0

c盘的winxp用ntfs文件格式,无法恢复双系统引导?

#1

帖子 jylin » 2006-08-12 8:41

原安装的是双系统,XP与Ubuntu 6.06 LTS ,系统重安装winxp在C盘,文件格式是ntfs ; 现在双系统引导菜单出不来了。用楼上的教程多种方法无法恢复。是否c盘的winxp用ntfs文件格式就无法恢复双引导啊?有办法让双系统引导菜单出来吗?
oink
帖子: 33
注册时间: 2006-08-01 11:12
送出感谢: 0
接收感谢: 0

#2

帖子 oink » 2006-08-12 9:37

可以用你的livecd重装grub啊
jylin
帖子: 68
注册时间: 2005-12-18 23:17
送出感谢: 0
接收感谢: 0

#3

帖子 jylin » 2006-08-12 10:00

oink 写了:可以用你的livecd重装grub啊
装不进去呀,你是怎么装进去的?
jylin
帖子: 68
注册时间: 2005-12-18 23:17
送出感谢: 0
接收感谢: 0

#4

帖子 jylin » 2006-08-12 22:07

是不是xp用了ntfs文件系统就无法正确挂载grub?那位高手指点一下?
jylin
帖子: 68
注册时间: 2005-12-18 23:17
送出感谢: 0
接收感谢: 0

#5

帖子 jylin » 2006-08-13 11:04

ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1020 8193118+ 7 HPFS/NTFS
/dev/hda2 1021 4865 30884962+ f W95 Ext'd (LBA)
/dev/hda5 1021 2699 13486536 b W95 FAT32
/dev/hda6 2700 3457 6088603+ b W95 FAT32
/dev/hda7 3458 4485 8257378+ 83 Linux
/dev/hda8 4486 4769 2281198+ 83 Linux
/dev/hda9 4770 4865 771088+ 82 Linux swap / Solaris
ubuntu@ubuntu:~$






GNU GRUB version 0.97 (640K lower / 3072K upper memory)

[ Minimal BASH-like line editing is supported. For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ]

grub>


grub> find /grub/stage1

Error 15: File not found

grub>

rub> root (hd0,7)
Filesystem type is ext2fs, partition type 0x83

grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... no

Error 15: File not found
jylin
帖子: 68
注册时间: 2005-12-18 23:17
送出感谢: 0
接收感谢: 0

#6

帖子 jylin » 2006-08-13 16:30

grub> root (hd0,
Possible partitions are:
Partition num: 0, Filesystem type unknown, partition type 0x7
Partition num: 4, Filesystem type is fat, partition type 0xb
Partition num: 5, Filesystem type is fat, partition type 0xb
Partition num: 6, Filesystem type is ext2fs, partition type 0x83
Partition num: 7, Filesystem type is ext2fs, partition type 0x83
Partition num: 8, Filesystem type unknown, partition type 0x82

grub> root (hd0,6)
Filesystem type is ext2fs, partition type 0x83

grub> find(hd0,6)/grub/stage1

Error 27: Unrecognized command


grub> setup(hd0)

Error 27: Unrecognized command

grub> setup (hd0,6)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0,6)"... failed (this is not fatal)
Running "embed /boot/grub/e2fs_stage1_5 (hd0,6)"... failed (this is not fatal)
Running "install /boot/grub/stage1 (hd0,6) /boot/grub/stage2 p /boot/grub/menu.lst "... succeeded
Done.

grub>
jylin
帖子: 68
注册时间: 2005-12-18 23:17
送出感谢: 0
接收感谢: 0

#7

帖子 jylin » 2006-08-13 16:52

Partition num: 0, Filesystem type unknown, partition type 0x7
Partition num: 4, Filesystem type is fat, partition type 0xb
Partition num: 5, Filesystem type is fat, partition type 0xb
Partition num: 6, Filesystem type is ext2fs, partition type 0x83
Partition num: 7, Filesystem type is ext2fs, partition type 0x83
Partition num: 8, Filesystem type unknown, partition type 0x82

grub> root (hd0,6)/grub/stage2
Filesystem type is ext2fs, partition type 0x83

grub> root (hd0,6).grub.stage1
Filesystem type is ext2fs, partition type 0x83

grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 15 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+15 p (hd0,6)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.

grub>
jylin
帖子: 68
注册时间: 2005-12-18 23:17
送出感谢: 0
接收感谢: 0

#8

帖子 jylin » 2006-08-14 1:52

有双系统引导了,可是,还是进不了ubuntu系统。
chenzj_sky
帖子: 1
注册时间: 2006-08-14 13:26
送出感谢: 0
接收感谢: 0

#9

帖子 chenzj_sky » 2006-08-14 13:33

你好!我碰到的问题,跟随你一样,不知道你解决了没有呢?
如果解决的话,告诉我解决的方法.谢谢
jylin
帖子: 68
注册时间: 2005-12-18 23:17
送出感谢: 0
接收感谢: 0

#10

帖子 jylin » 2006-08-14 23:35

$sudo vim /vim /etc/fstab

unionfs / unionfs rw 0 0
tmpfs /tmp tmpfs nosuid,nodev 0 0
/dev/hda9 swap swap defaults 0 0
~
~
~
~
~
~
"/etc/fstab" 3L, 92C 1,1 All

===========================================
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

#11

帖子 eexpress » 2006-08-14 23:44

find(hd0,6)/grub/stage1

Error 27: Unrecognized command


grub> setup(hd0)

Error 27: Unrecognized command
看到没空格。
fstab有置顶的帖子参考。
grub的引导版本注意检查
● 鸣学
jylin
帖子: 68
注册时间: 2005-12-18 23:17
送出感谢: 0
接收感谢: 0

#12

帖子 jylin » 2006-08-15 0:57

# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
jylin
帖子: 68
注册时间: 2005-12-18 23:17
送出感谢: 0
接收感谢: 0

#13

帖子 jylin » 2006-08-15 1:21

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/hda8 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,7)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery mode) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
jylin
帖子: 68
注册时间: 2005-12-18 23:17
送出感谢: 0
接收感谢: 0

#14

帖子 jylin » 2006-08-15 1:23

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## ## End Default Options ##

title Ubuntu, kernel 2.6.15-26-686
root (hd0,7)
kernel /boot/vmlinuz-2.6.15-26-686 root=/dev/hda8 ro quiet splash
initrd /boot/initrd.img-2.6.15-26-686
savedefault
boot

title Ubuntu, kernel 2.6.15-26-686 (recovery mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.15-26-686 root=/dev/hda8 ro single
initrd /boot/initrd.img-2.6.15-26-686
boot

title Ubuntu, kernel 2.6.15-23-386
root (hd0,7)
kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/hda8 ro quiet splash
initrd /boot/initrd.img-2.6.15-23-386
savedefault
boot

title Ubuntu, kernel 2.6.15-23-386 (recovery mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/hda8 ro single
initrd /boot/initrd.img-2.6.15-23-386
boot

title Ubuntu, memtest86+
root (hd0,7)
kernel /boot/memtest86+.bin
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the mt - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
jylin
帖子: 68
注册时间: 2005-12-18 23:17
送出感谢: 0
接收感谢: 0

#15

帖子 jylin » 2006-08-15 1:24

default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
"new/boot/grub/menu.lst" [readonly] 157L, 4362C 1,1 Top

# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
回复

回到 “老旧版本支持”