LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: jylin

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

[复制链接]
发表于 2006-8-13 10:48:55 | 显示全部楼层
楼主用什么引导linux和xp?grub装在哪里?回答这两个问题先~
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-13 11:16:11 | 显示全部楼层
Post by douban
不行是为啥不行,把出错信息贴出来



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
回复 支持 反对

使用道具 举报

发表于 2006-8-13 11:23:45 | 显示全部楼层
Post by jylin
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>

grub> (hd0,7)

Error 27: Unrecognized command

grub>


应该这样来
grub>root (hd0,    --------------这个时候按tab键,找到自己的linux分区,然后补全
grub>find (hd0,X)/grub/stage1   ----------------x是你刚才找到的linux分区
grub>setup (hd0,X)或者setup (hd0)
setup (hd0)这句是装在硬盘mbr
另一句是装在分区所在super block里面
回复 支持 反对

使用道具 举报

发表于 2006-8-13 13:54:21 | 显示全部楼层
/dev/hda7 3458 4485 8257378+ 83 Linux
/dev/hda8 4486 4769 2281198+ 83 Linux
rub> root (hd0,7)
Filesystem type is ext2fs, partition type 0x83
你的那个分区包含/boot啊?
回复 支持 反对

使用道具 举报

发表于 2006-8-13 14:21:02 | 显示全部楼层
Post by jylin
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


如果你的/boot 存在于hda7,那么应该运行:root (hd0,6)  而不是root (hd0,7)
如果/boot是在/hda8,就应该运行root (hd0,7)
试试看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-13 17:12:13 | 显示全部楼层
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)/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>
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-13 17:14:04 | 显示全部楼层
重启后有引导双系统菜单了,可是选ubuntu进不了桌面,黑屏提示:

Booting 'ubuntu, Kernel 2.6.15-26-686'
root  (hd0,7)
  
Filesystem type is ext2fs, Partition type 0x83

kernel  /boot/vmlinuz-2.615-26-686 root=/dev/hda8 ro quiet splash

Error 15 File not found

Press any key to contunue...
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-13 17:22:24 | 显示全部楼层
打回车,倒回上面的提示,啊啊啊....
回复 支持 反对

使用道具 举报

发表于 2006-8-13 21:24:29 | 显示全部楼层
kernel [color="red"]/boot/vmlinuz-2.615-26-686 root=/dev/hda8 ro quiet splash
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-14 16:18:30 | 显示全部楼层
Post by lincomet
kernel [color="red"]/boot/vmlinuz-2.615-26-686 root=/dev/hda8 ro quiet splash


你说的对 少了一个/ 。 我补上了。

现在是用recoverde也是不行。如何修复让它引导进系统呢?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表