求助 引导

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
头像
1ssssssss1
帖子: 63
注册时间: 2007-10-27 8:25
送出感谢: 1 次
接收感谢: 0

求助 引导

#1

帖子 1ssssssss1 » 2010-11-02 12:35

原为XP和win7,现用 ubuntu光盘直接把win7给格了,装上ubuntu,但是现在引导不了XP了,麻烦各位了,急!!谢谢
头像
poweroff
帖子: 395
注册时间: 2008-12-13 15:03
送出感谢: 0
接收感谢: 1 次

Re: 求助 引导

#2

帖子 poweroff » 2010-11-02 12:38

你把xp的引导也一并格掉了。

因为7把xp的引导给接管了,7又被你格了。
一条狗的马甲!
对不起,我承认我是一只穿着马甲的狗!
头像
1ssssssss1
帖子: 63
注册时间: 2007-10-27 8:25
送出感谢: 1 次
接收感谢: 0

Re: 求助 引导

#3

帖子 1ssssssss1 » 2010-11-02 12:46

请问那有没有办法找回来了?怎么实现双系统
头像
onshoestring
论坛版主
帖子: 4666
注册时间: 2009-09-06 5:53
送出感谢: 0
接收感谢: 108 次

Re: 求助 引导

#4

帖子 onshoestring » 2010-11-02 13:17

http://sourceforge.net/projects/bootinfoscript/
把文件先复制到桌面,终端运行:

代码: 全选

sudo bash ~/桌面/boot_info_script055.sh
把RESULTS.txt文件内容贴上来。
头像
1ssssssss1
帖子: 63
注册时间: 2007-10-27 8:25
送出感谢: 1 次
接收感谢: 0

Re: 求助 引导

#5

帖子 1ssssssss1 » 2010-11-02 13:44

Boot Info Script 0.55 dated February 15th, 2010

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

=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #1 for /boot/grub.
=> Windows is installed in the MBR of /dev/sdb

sda1: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs:

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:

sdb1: _________________________________________________________________________

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

sdb2: _________________________________________________________________________

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

sdb5: _________________________________________________________________________

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

sdb6: _________________________________________________________________________

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

sdb7: _________________________________________________________________________

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

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

Drive: sda ___________________ _____________________________________________________

Disk /dev/sda: 120.0 GB, 120034123776 bytes
240 heads, 63 sectors/track, 15505 cylinders, total 234441648 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 102,407,759 102,407,697 7 HPFS/NTFS
/dev/sda2 102,407,760 234,435,599 132,027,840 f W95 Ext d (LBA)
/dev/sda5 102,407,823 234,435,599 132,027,777 7 HPFS/NTFS


Drive: sdb ___________________ _____________________________________________________

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sdb1 2,048 108,736,511 108,734,464 83 Linux
/dev/sdb2 108,738,558 976,767,119 868,028,562 f W95 Ext d (LBA)
/dev/sdb5 112,644,063 542,732,399 430,088,337 7 HPFS/NTFS
/dev/sdb6 542,732,463 976,767,119 434,034,657 7 HPFS/NTFS
/dev/sdb7 108,738,560 112,642,047 3,903,488 82 Linux swap / Solaris


blkid -c /dev/null: ____________________________________________________________

Device UUID TYPE LABEL

/dev/sda1 00A0EAC6A0EAC170 ntfs
/dev/sda2: PTTYPE="dos"
/dev/sda5 F6A8FF8DA8FF4A9F ntfs
/dev/sda: PTTYPE="dos"
/dev/sdb1 87377f2b-9e6b-48ad-a23a-0a08803ada1e ext4
/dev/sdb2: PTTYPE="dos"
/dev/sdb5 70DCC1AEDCC16EC2 ntfs
/dev/sdb6 6814D5C714D59880 ntfs
/dev/sdb7 b3a84dbc-dd3b-4300-a25a-9152735abbf2 swap
/dev/sdb: PTTYPE="dos"

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

Device Mount_Point Type Options

/dev/sdb1 / ext4 (rw,errors=remount-ro)


=========================== sdb1/boot/grub/grub.cfg: ===========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/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
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
}
insmod ext2
set root='(hd1,1)'
search --no-floppy --fs-uuid --set 87377f2b-9e6b-48ad-a23a-0a08803ada1e
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd1,1)'
search --no-floppy --fs-uuid --set 87377f2b-9e6b-48ad-a23a-0a08803ada1e
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,Linux 2.6.32-25-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd1,1)'
search --no-floppy --fs-uuid --set 87377f2b-9e6b-48ad-a23a-0a08803ada1e
linux /boot/vmlinuz-2.6.32-25-generic root=UUID=87377f2b-9e6b-48ad-a23a-0a08803ada1e ro quiet splash
initrd /boot/initrd.img-2.6.32-25-generic
}
menuentry 'Ubuntu,Linux 2.6.32-25-generic (恢复模式)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd1,1)'
search --no-floppy --fs-uuid --set 87377f2b-9e6b-48ad-a23a-0a08803ada1e
echo '载入 Linux ...'
linux /boot/vmlinuz-2.6.32-25-generic root=UUID=87377f2b-9e6b-48ad-a23a-0a08803ada1e ro single
echo '载入引导虚拟磁盘 ...'
initrd /boot/initrd.img-2.6.32-25-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd1,1)'
search --no-floppy --fs-uuid --set 87377f2b-9e6b-48ad-a23a-0a08803ada1e
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd1,1)'
search --no-floppy --fs-uuid --set 87377f2b-9e6b-48ad-a23a-0a08803ada1e
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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 ###

=============================== sdb1/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/sdb1 / ext4 errors=remount-ro 0 1
# swap was on /dev/sdb7 during installation
UUID=b3a84dbc-dd3b-4300-a25a-9152735abbf2 none swap sw 0 0

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


2.3GB: boot/grub/core.img
4.4GB: boot/grub/grub.cfg
2.3GB: boot/initrd.img-2.6.32-25-generic
2.3GB: boot/vmlinuz-2.6.32-25-generic
2.3GB: initrd.img
2.3GB: vmlinuz
头像
1ssssssss1
帖子: 63
注册时间: 2007-10-27 8:25
送出感谢: 1 次
接收感谢: 0

Re: 求助 引导

#6

帖子 1ssssssss1 » 2010-11-02 13:45

你好麻烦帮帮忙谢谢
头像
onshoestring
论坛版主
帖子: 4666
注册时间: 2009-09-06 5:53
送出感谢: 0
接收感谢: 108 次

Re: 求助 引导

#7

帖子 onshoestring » 2010-11-02 14:06

sda1: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs:
如果xp在第一分区sda1,找台安装xp的电脑,复制这几个文件到c:\试试:ntldr、boot.ini、ntdetect.com、bootfont.bin。
不是就悲剧了。
头像
1ssssssss1
帖子: 63
注册时间: 2007-10-27 8:25
送出感谢: 1 次
接收感谢: 0

Re: 求助 引导

#8

帖子 1ssssssss1 » 2010-11-02 15:53

试了不好使真是麻烦亚,悲剧
tttoppp
帖子: 7
注册时间: 2009-06-17 20:47
送出感谢: 0
接收感谢: 0

Re: 求助 引导

#9

帖子 tttoppp » 2010-11-03 16:41

sudo update-grub
回复

回到 “启动和引导”