帮帮忙,有关于引导的!衷心表示感谢!

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
Code007
帖子: 15
注册时间: 2009-09-21 1:57

帮帮忙,有关于引导的!衷心表示感谢!

#1

帖子 Code007 » 2009-09-21 2:17

自己原本是xp与2003双系统的,xp在c盘,2003在g盘,今晚心血来潮就把xp分区删掉了,然后安装了ubuntu8.10在c盘,我看了它启动的时候是显示(hd0,10)然后进入ubuntu,我只有一个硬盘,引导菜单没有2003,我怎么弄都引导不了到2003,我用pe进入查看g盘信息(2003那个盘),里面是没有boot.ini的,因为之前是在xp那个c盘引导的(已经开启了显示全部文件夹文件跟不隐藏系统保护文件),的希望大家帮帮忙教我一下,详细点,因为很急着进入2003去开发,以下是我在ubuntu的menu.lst::



# 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 3

## 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 Server 2003
#root (hd0,8)
#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=21b92a55-76f5-49e4-a3b6-437f2042def8 ro locale=zh_CN

## default grub root device
## e.g. groot=(hd0,0)
# groot=1bf0155c-3f49-4c4c-a08b-fb160d1908eb

## 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

## 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.10, kernel 2.6.27-7-generic
uuid 1bf0155c-3f49-4c4c-a08b-fb160d1908eb
kernel /vmlinuz-2.6.27-7-generic root=UUID=21b92a55-76f5-49e4-a3b6-437f2042def8 ro locale=zh_CN quiet splash
initrd /initrd.img-2.6.27-7-generic
quiet

title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
头像
AutoXBC
帖子: 1744
注册时间: 2007-10-23 12:54

Re: 帮帮忙,有关于引导的!衷心表示感谢!

#2

帖子 AutoXBC » 2009-09-21 2:43

据某大侠讲"ntldr 只能从第一硬盘的激活分区去查找boot.ini及其他启动文件",如果这个是事实的话,你需要做下面操作:
1.激活你的 2003 所在分区
2.从别的机器或安装盘复制引导程序
3.重新编写 boot.ini 引导配置文件
4.在 menu.lst 引导配置文件中添加 2003

如果和上面说的有出入,你的 2003 始终不能成为 "第一硬盘的激活分区",那就要把引导配置文件和引导程序映射到虚拟软盘镜像中用 grldr 加载,也就所谓的无 C 盘模式引导。
viewtopic.php?f=139&t=224942

如果上面的都不行,只能撤销你对 C 盘的操作,重新安装或者常规方式修复引导。


这不是一个太简单的操作,不过搞开发的应该都是 Google 好手。
Code007
帖子: 15
注册时间: 2009-09-21 1:57

Re: 帮帮忙,有关于引导的!衷心表示感谢!

#3

帖子 Code007 » 2009-09-21 11:42

AutoXBC 写了:据某大侠讲"ntldr 只能从第一硬盘的激活分区去查找boot.ini及其他启动文件",如果这个是事实的话,你需要做下面操作:
1.激活你的 2003 所在分区
2.从别的机器或安装盘复制引导程序
3.重新编写 boot.ini 引导配置文件
4.在 menu.lst 引导配置文件中添加 2003

如果和上面说的有出入,你的 2003 始终不能成为 "第一硬盘的激活分区",那就要把引导配置文件和引导程序映射到虚拟软盘镜像中用 grldr 加载,也就所谓的无 C 盘模式引导。
viewtopic.php?f=139&t=224942

如果上面的都不行,只能撤销你对 C 盘的操作,重新安装或者常规方式修复引导。


这不是一个太简单的操作,不过搞开发的应该都是 Google 好手。



在这里先谢谢你!我试试先! :em11
Code007
帖子: 15
注册时间: 2009-09-21 1:57

Re: 帮帮忙,有关于引导的!衷心表示感谢!

#4

帖子 Code007 » 2009-09-21 12:12

AutoXBC 写了:据某大侠讲"ntldr 只能从第一硬盘的激活分区去查找boot.ini及其他启动文件",如果这个是事实的话,你需要做下面操作:
1.激活你的 2003 所在分区
2.从别的机器或安装盘复制引导程序
3.重新编写 boot.ini 引导配置文件
4.在 menu.lst 引导配置文件中添加 2003

如果和上面说的有出入,你的 2003 始终不能成为 "第一硬盘的激活分区",那就要把引导配置文件和引导程序映射到虚拟软盘镜像中用 grldr 加载,也就所谓的无 C 盘模式引导。
viewtopic.php?f=139&t=224942

如果上面的都不行,只能撤销你对 C 盘的操作,重新安装或者常规方式修复引导。


这不是一个太简单的操作,不过搞开发的应该都是 Google 好手。



:em06 我弄了两个多小时不行....郁闷死了,希望大家能够帮我想想!真的很急,最近要做一个爱国主题的网站.......
头像
tenzu
论坛版主
帖子: 36924
注册时间: 2008-11-21 20:26

Re: 帮帮忙,有关于引导的!衷心表示感谢!

#5

帖子 tenzu » 2009-09-21 12:16

如果真的很急,您还不如重装一下系统,忙完正事再折腾
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 帮帮忙,有关于引导的!衷心表示感谢!

#6

帖子 smallapple » 2009-09-21 12:21

sudo fdisk -l
贴上来看下。
Code007
帖子: 15
注册时间: 2009-09-21 1:57

Re: 帮帮忙,有关于引导的!衷心表示感谢!

#7

帖子 Code007 » 2009-09-21 12:56

smallapple 写了:sudo fdisk -l
贴上来看下。

刚刚不好意思!

Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x95d995d9

Device Boot Start End Blocks Id System
/dev/sda1 * 1 4973 39945591 83 Linux
/dev/sda2 4974 77824 585175657+ f W95 Ext'd (LBA)
/dev/sda5 7651 26824 154015123+ 7 HPFS/NTFS
/dev/sda6 26825 45946 153597433+ 7 HPFS/NTFS
/dev/sda7 45947 66249 163083816 7 HPFS/NTFS
/dev/sda8 66250 77824 92976156 7 HPFS/NTFS
/dev/sda9 4974 6218 10000399+ 83 Linux
/dev/sda10 6219 6342 995998+ 82 Linux swap / Solaris
/dev/sda11 6343 6404 497983+ 83 Linux
/dev/sda12 6405 6466 497983+ 83 Linux

Partition table entries are not in disk order

Disk /dev/sdb: 4099 MB, 4099932160 bytes
255 heads, 63 sectors/track, 498 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0073adf3

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 499 4003808+ c W95 FAT32 (LBA)
Partition 1 has different physical/logical endings:
phys=(497, 254, 63) logical=(498, 116, 2)
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 帮帮忙,有关于引导的!衷心表示感谢!

#8

帖子 smallapple » 2009-09-21 15:51

两个办法
1. 试试billbear的偏方
viewtopic.php?f=139&t=224942
2. 另外分出一个主分区,添加启动文件和写入启动信息,不知道sda12是做什么用的,可以用livecd中的gparted调小一点,后面剩出100M左右,建成主分区,设为活动,也可以用PE下的PM把sda5调小点,在其前面留出100M,转为主活动分区。
然后把win2003的启动文件,如ntldr ntdetect.com. bootfont.bin. boot.ini等复制到该分区,修改boot.ini 用win203启动盘启动,修复模式下fixboot C: 或用 PE下 的bootsect.exe 文件
bootsect /nt52 C: 写入引导信息
Code007
帖子: 15
注册时间: 2009-09-21 1:57

Re: 帮帮忙,有关于引导的!衷心表示感谢!

#9

帖子 Code007 » 2009-09-22 8:14

smallapple 写了:两个办法
1. 试试billbear的偏方
viewtopic.php?f=139&t=224942
2. 另外分出一个主分区,添加启动文件和写入启动信息,不知道sda12是做什么用的,可以用livecd中的gparted调小一点,后面剩出100M左右,建成主分区,设为活动,也可以用PE下的PM把sda5调小点,在其前面留出100M,转为主活动分区。
然后把win2003的启动文件,如ntldr ntdetect.com. bootfont.bin. boot.ini等复制到该分区,修改boot.ini 用win203启动盘启动,修复模式下fixboot C: 或用 PE下 的bootsect.exe 文件
bootsect /nt52 C: 写入引导信息


:em20 :em20 听从二楼tenzu的话我选择重装了,现在郁闷死了,搞了昨晚一个晚上,重装后现在什么都进不了了,PE进不了,光盘的DOS也进不了,PQ也是进不了的,凡是一点系统光盘上的的程序时它只会转向一个黑屏的样子,有的只留一个光标,有的不留光标,要是直接从硬盘启动它显示的是GRUB加一个小光标在那里闪,现在超级郁闷呀!我又很急,硬盘又这样,真怕坏了,要是坏了我就死定了,那么多资料.......早知道就不重装了。汗......在bios那里可以检测到硬盘的存在,需不需要拿回去保修呢?保修它能帮我保证数据的完整吗?帮帮我,从小问题到这么大问题,我心寒了... :em20 :em20
头像
tenzu
论坛版主
帖子: 36924
注册时间: 2008-11-21 20:26

Re: 帮帮忙,有关于引导的!衷心表示感谢!

#10

帖子 tenzu » 2009-09-22 8:32

做个liveCD或者liveUSB,启动进去以后先把资料备份出来
重装系统或者格式化分区这种危险操作之前要备份资料,这是常识啊,老大!
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 帮帮忙,有关于引导的!衷心表示感谢!

#11

帖子 smallapple » 2009-09-22 8:33

mbr出错了,导到硬盘挂不上。
可以试试先在 bios禁用硬盘,然后尝试用PE或Livecd启动,光盘可以启动的话,再试试修复mbr,PE的话可以先下在diskgen3 www.diskman.cc 修复mbr
livecd下搜下论坛,忘了怎么弄了。

如果光盘都进不了,只能用DM清除mbr,不过分区表也没了,再用diskgen3重建分区表,数据可能可以找回来。

保修的话一般只给你修复mbr,新建分区,不会给重建 分区表的。资料一般全完了。 :em06
Code007
帖子: 15
注册时间: 2009-09-21 1:57

Re: 帮帮忙,有关于引导的!衷心表示感谢!

#12

帖子 Code007 » 2009-09-22 9:19

smallapple 写了:mbr出错了,导到硬盘挂不上。
可以试试先在 bios禁用硬盘,然后尝试用PE或Livecd启动,光盘可以启动的话,再试试修复mbr,PE的话可以先下在diskgen3 http://www.diskman.cc 修复mbr
livecd下搜下论坛,忘了怎么弄了。

如果光盘都进不了,只能用DM清除mbr,不过分区表也没了,再用diskgen3重建分区表,数据可能可以找回来。

保修的话一般只给你修复mbr,新建分区,不会给重建 分区表的。资料一般全完了。 :em06



好的!谢谢咯!我回去再试试... :em01
Code007
帖子: 15
注册时间: 2009-09-21 1:57

Re: 帮帮忙,有关于引导的!衷心表示感谢!

#13

帖子 Code007 » 2009-09-22 9:20

tenzu 写了:做个liveCD或者liveUSB,启动进去以后先把资料备份出来
重装系统或者格式化分区这种危险操作之前要备份资料,这是常识啊,老大!

......嗯嗯!以后我会注意一下的!谢谢咯 :em01
Code007
帖子: 15
注册时间: 2009-09-21 1:57

Re: 帮帮忙,有关于引导的!衷心表示感谢!

#14

帖子 Code007 » 2009-09-22 13:34

smallapple 写了:mbr出错了,导到硬盘挂不上。
可以试试先在 bios禁用硬盘,然后尝试用PE或Livecd启动,光盘可以启动的话,再试试修复mbr,PE的话可以先下在diskgen3 http://www.diskman.cc 修复mbr
livecd下搜下论坛,忘了怎么弄了。

如果光盘都进不了,只能用DM清除mbr,不过分区表也没了,再用diskgen3重建分区表,数据可能可以找回来。

保修的话一般只给你修复mbr,新建分区,不会给重建 分区表的。资料一般全完了。 :em06


. :em20 ......我试过了,PE在没有装上硬盘的时候是可以运行的,一装上硬盘(也禁掉了)就一直在那个检测条那里一直检测,也进不了DM,PQ,直接重装也不可以,55555.。。。。。怎么办??我的资料呀!! :em20
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 帮帮忙,有关于引导的!衷心表示感谢!

#15

帖子 smallapple » 2009-09-22 16:19

这个可能比较严重了,估计分区表也有问题。

目前能不基于bios而进行硬盘检测大概有 DM万用版,HDDREG,MHDD,还有公司自家工具如 Maxtor,Seagate,IBM各家的磁盘工具。

如果没相应工具,还是去保修吧。修复完新建分区时只建一个尽可能小的主分区,装上系统后,用diskgen恢复后面几个分区的分区表,后面分区的数据还是有可能找回的。
回复