求助!硬盘引导区、分区被ubuntu修改成win不能识别,win系统无法进入!急[已解决]

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
风起云涌
帖子: 18
注册时间: 2009-03-17 16:26

求助!硬盘引导区、分区被ubuntu修改成win不能识别,win系统无法进入!急[已解决]

#1

帖子 风起云涌 » 2009-03-20 10:54

详见7楼!


# 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 use 'savedefault' 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

### 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=UUID=6399731a-0744-4f98-b950-92957c80491e ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

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

## 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 locale=zh_CN

## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) 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

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

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title Ubuntu 8.04.2, kernel 2.6.24-23-generic
root (hd0,6)
kernel /boot/vmlinuz-2.6.24-23-generic root=UUID=6399731a-0744-4f98-b950-92957c80491e ro quiet splash locale=zh_CN
initrd /boot/initrd.img-2.6.24-23-generic
quiet

title Ubuntu 8.04.2, kernel 2.6.24-23-generic (recovery mode)
root (hd0,6)
kernel /boot/vmlinuz-2.6.24-23-generic root=UUID=6399731a-0744-4f98-b950-92957c80491e ro single
initrd /boot/initrd.img-2.6.24-23-generic

title Ubuntu 8.04.2, kernel 2.6.24-22-generic
root (hd0,6)
kernel /boot/vmlinuz-2.6.24-22-generic root=UUID=6399731a-0744-4f98-b950-92957c80491e ro quiet splash locale=zh_CN
initrd /boot/initrd.img-2.6.24-22-generic
quiet

title Ubuntu 8.04.2, kernel 2.6.24-22-generic (recovery mode)
root (hd0,6)
kernel /boot/vmlinuz-2.6.24-22-generic root=UUID=6399731a-0744-4f98-b950-92957c80491e ro single
initrd /boot/initrd.img-2.6.24-22-generic

title Ubuntu 8.04.2, kernel 2.6.24-16-generic
root (hd0,6)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=6399731a-0744-4f98-b950-92957c80491e ro quiet splash locale=zh_CN
initrd /boot/initrd.img-2.6.24-16-generic
quiet

title Ubuntu 8.04.2, kernel 2.6.24-16-generic (recovery mode)
root (hd0,6)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=6399731a-0744-4f98-b950-92957c80491e ro single
initrd /boot/initrd.img-2.6.24-16-generic

title Ubuntu 8.04.2, memtest86+
root (hd0,6)
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1
上次由 风起云涌 在 2009-03-23 10:36,总共编辑 3 次。
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: 求助,我也进不去XP系统了,帮分析一下启动文件,谢谢

#2

帖子 adagio » 2009-03-20 11:13

出错信息?
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
风起云涌
帖子: 18
注册时间: 2009-03-17 16:26

Re: 求助,我也进不去XP系统了,帮分析一下启动文件,谢谢

#3

帖子 风起云涌 » 2009-03-20 11:20

没信息,自动重启了。

进dos用fdisk无法显示分区表信息了,
是不是分区表被ubuntu给改得windows不认得了?
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: 求助,我也进不去XP系统了,帮分析一下启动文件,谢谢

#4

帖子 adagio » 2009-03-20 11:24

不可能吧,能进ubuntu吗?sudo fdisk -l看看
或者用winPE看看
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
风起云涌
帖子: 18
注册时间: 2009-03-17 16:26

Re: 求助,我也进不去XP系统了,帮分析一下启动文件,谢谢

#5

帖子 风起云涌 » 2009-03-20 11:32

能进ubuntu,

***r@***-desktop:~$ sudo fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xbf5fbf5f

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1275 10241406 7 HPFS/NTFS
/dev/sda2 1276 9729 67906755 f W95 Ext'd (LBA)
/dev/sda5 1276 3825 20482843+ 7 HPFS/NTFS
/dev/sda6 3826 6375 20482843+ 7 HPFS/NTFS
/dev/sda7 6376 9585 25784293+ 83 Linux
/dev/sda8 9586 9729 1156648+ 82 Linux swap / Solaris
***@***-desktop:~$
上次由 风起云涌 在 2009-03-20 11:33,总共编辑 1 次。
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: 求助,我也进不去XP系统了,帮分析一下启动文件,谢谢

#6

帖子 adagio » 2009-03-20 12:39

分区表没问题,我不知道怎么办
不过文件肯定不会丢失,不要激动
用winPE看看,如果PM显示正常就是XP的系统文件出问题了,重装XP
如果PM显示不对,就用修复分区表试试
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
风起云涌
帖子: 18
注册时间: 2009-03-17 16:26

Re: 求助,我也进不去XP系统了,帮分析一下启动文件,谢谢

#7

帖子 风起云涌 » 2009-03-20 12:41

adagio 写了:分区表没问题,我不知道怎么办
不过文件肯定不会丢失,不要激动
用winPE看看,如果PM显示正常就是XP的系统文件出问题了,重装XP
如果PM显示不对,就用修复分区表试试
安装ubuntu8.04(amd64),“自动选择连续空闲“安装,
装完更新,重启启动菜单中有windows xp启动项选择,进入win没到“欢迎使用”就跳出重启!
用winpe、windows安装盘、ghost、等无法找到硬盘,不敢用fdisk mfb..............
PQ找不着分区


winxp中有很重要的软件..................


PS:我新发了个帖子,被版主给删了.....
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: 求助!硬盘引导区、分区被ubuntu修改成win不能识别,win系统无法进入!急

#8

帖子 adagio » 2009-03-20 12:52

我删的,不用激动,分区表再怎么出问题,但是储存的文件不会丢失
既然可以进ubuntu,就装这个

代码: 全选

sudo apt-get install testdisk
运行testdisk,按提示做,可以恢复分区表
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
风起云涌
帖子: 18
注册时间: 2009-03-17 16:26

Re: 求助!硬盘引导区、分区被ubuntu修改成win不能识别,win系统无法进入!急

#9

帖子 风起云涌 » 2009-03-20 13:00

adagio 写了:我删的,不用激动,分区表再怎么出问题,但是储存的文件不会丢失
既然可以进ubuntu,就装这个

代码: 全选

sudo apt-get install testdisk
运行testdisk,按提示做,可以恢复分区表
辛苦你了,下面是检测信息:
TestDisk 6.8, Data Recovery Utility, August 2007
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

TestDisk is free software, and
comes with ABSOLUTELY NO WARRANTY.

No harddisk found
You need to be root to use TestDisk.
风起云涌
帖子: 18
注册时间: 2009-03-17 16:26

Re: 求助!硬盘引导区、分区被ubuntu修改成win不能识别,win系统无法进入!急

#10

帖子 风起云涌 » 2009-03-20 13:04

adagio 写了:我删的,不用激动,分区表再怎么出问题,但是储存的文件不会丢失
既然可以进ubuntu,就装这个

代码: 全选

sudo apt-get install testdisk
运行testdisk,按提示做,可以恢复分区表
辛苦你了,以下是检测信息:
TestDisk 6.8, Data Recovery Utility, August 2007
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

TestDisk is free software, and
comes with ABSOLUTELY NO WARRANTY.

No harddisk found
You need to be root to use TestDisk.


我已经重启了一遍系统了
头像
AutoXBC
帖子: 1744
注册时间: 2007-10-23 12:54

Re: 求助!硬盘引导区、分区被ubuntu修改成win不能识别,win系统无法进入!急

#11

帖子 AutoXBC » 2009-03-20 13:05

新手连续中招,都没人重视一下,翻翻论坛都是分区表损坏的。
风起云涌
帖子: 18
注册时间: 2009-03-17 16:26

Re: 求助!硬盘引导区、分区被ubuntu修改成win不能识别,win系统无法进入!急

#12

帖子 风起云涌 » 2009-03-20 13:12

还好adagio一直在帮我
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: 求助!硬盘引导区、分区被ubuntu修改成win不能识别,win系统无法进入!急

#13

帖子 adagio » 2009-03-20 15:35

You need to be root to use TestDisk

代码: 全选

sudo testdisk
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: 求助!硬盘引导区、分区被ubuntu修改成win不能识别,win系统无法进入!急

#14

帖子 billbear » 2009-03-20 16:09

先不急 testdisk, 你的 windows 分区在 ubuntu 下是否可以访问?
风起云涌
帖子: 18
注册时间: 2009-03-17 16:26

Re: 求助!硬盘引导区、分区被ubuntu修改成win不能识别,win系统无法进入!急

#15

帖子 风起云涌 » 2009-03-23 10:26

终于把分区表给修复了,ubuntu也启动不了了,
一切又恢复了原样。

建议和我一样的新人们,千万不要使用那个“自动先用空白.....”那一项,否则后悔不急
回复