爽系统启动问题

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
头像
andrewqin
帖子: 20
注册时间: 2007-07-04 23:01
来自: 陕西汉中

爽系统启动问题

#1

帖子 andrewqin » 2010-11-01 9:30

我先装的xp,然后装的ubuntu10.10 安装完 后 引导菜单正常,选择xp后就卡在了哪里 一片黑色
下面是磁盘信息
ev/sda9 11533592 258192 10689520 3% /home
binfmt_misc 0 0 0 - /proc/sys/fs/binfmt_misc
gvfs-fuse-daemon 0 0 0 - /home/andrewqin/.gvfs
/dev/sda1 52760576 23336128 29424448 45% /media/64FE-D0FD
/dev/sda6 41953712 67572 41886140 1% /media/7460BA7F60BA479E
/dev/sda3 92156872 6133832 86023040 7% /media/2044C78444C75AE4
/dev/sda5 85714772 80342260 5372512 94% /media/本地磁盘
andrewqin@andrewqin-Aspire-4810T:~$

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set cb3bb030-c6f5-421b-acbd-eb2c039f79e8
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=cb3bb030-c6f5-421b-acbd-eb2c039f79e8 ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
#menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set cb3bb030-c6f5-421b-acbd-eb2c039f79e8
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=cb3bb030-c6f5-421b-acbd-eb2c039f79e8 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set cb3bb030-c6f5-421b-acbd-eb2c039f79e8
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set cb3bb030-c6f5-421b-acbd-eb2c039f79e8
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional" {
insmod part_msdos
insmod fat
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set 64fe-d0fd
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
如有任何疑问,请不吝赐教!
头像
onshoestring
论坛版主
帖子: 4666
注册时间: 2009-09-06 5:53

Re: 爽系统启动问题

#2

帖子 onshoestring » 2010-11-01 9:57

menuentry "Microsoft Windows XP Professional" {
insmod part_msdos
insmod fat
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set 64fe-d0fd
drivemap -s (hd0) ${root}
chainloader +1
}
这段菜单有问题。

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

代码: 全选

sudo bash ~/桌面/boot_info_script055.sh
把RESULTS.txt文件内容贴上来。
头像
andrewqin
帖子: 20
注册时间: 2007-07-04 23:01
来自: 陕西汉中

Re: 爽系统启动问题

#3

帖子 andrewqin » 2010-11-01 18:11

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 #8 for (,msdos8)/boot/grub.

sda1: _________________________________________________________________________

File system: vfat
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda1 and
looks at sector 381640768 of the same hard drive for
core.img, but core.img can not be found at this
location. No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM

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:

sda6: _________________________________________________________________________

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

sda7: _________________________________________________________________________

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

sda8: _________________________________________________________________________

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

sda9: _________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:

sda3: _________________________________________________________________________

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

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

Drive: sda ___________________ _____________________________________________________

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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 105,547,049 105,546,987 c W95 FAT32 (LBA)
/dev/sda2 105,547,111 440,821,759 335,274,649 f W95 Ext d (LBA)
/dev/sda5 105,547,113 276,976,664 171,429,552 7 HPFS/NTFS
/dev/sda6 276,976,728 360,884,159 83,907,432 7 HPFS/NTFS
/dev/sda7 360,884,224 368,556,031 7,671,808 82 Linux swap / Solaris
/dev/sda8 368,558,080 417,384,447 48,826,368 83 Linux
/dev/sda9 417,386,496 440,821,759 23,435,264 83 Linux
/dev/sda3 440,823,600 625,137,344 184,313,745 7 HPFS/NTFS


blkid -c /dev/null: ____________________________________________________________

Device UUID TYPE LABEL

/dev/sda1 64FE-D0FD vfat
/dev/sda2: PTTYPE="dos"
/dev/sda3 2044C78444C75AE4 ntfs
/dev/sda5 0E6008FC6008EBF1 ntfs 本地磁盘
/dev/sda6 7460BA7F60BA479E ntfs
/dev/sda7 958e3d2c-e130-4a9a-8d3e-3e0172adacfe swap
/dev/sda8 cb3bb030-c6f5-421b-acbd-eb2c039f79e8 ext4
/dev/sda9 9ca712d1-16c2-43ba-800c-5da6d03fa16b ext4
/dev/sda: PTTYPE="dos"

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

Device Mount_Point Type Options

/dev/sda8 / ext4 (rw,errors=remount-ro,commit=0)
/dev/sda9 /home ext4 (rw,commit=0)
/dev/sda5 /media/本地磁盘 fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)


================================ sda1/boot.ini: ================================

[boot loader]

timeout=3

default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS

[operating systems]

multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect /usepmtimer


=========================== sda8/boot/grub/grub.cfg: ===========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by 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
set have_grubenv=true
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
}

function load_video {
insmod vbe
insmod vga
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set cb3bb030-c6f5-421b-acbd-eb2c039f79e8
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set cb3bb030-c6f5-421b-acbd-eb2c039f79e8
set locale_dir=($root)/boot/grub/locale
set lang=en
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, with Linux 2.6.35-22' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set cb3bb030-c6f5-421b-acbd-eb2c039f79e8
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=cb3bb030-c6f5-421b-acbd-eb2c039f79e8 ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
#menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set cb3bb030-c6f5-421b-acbd-eb2c039f79e8
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=cb3bb030-c6f5-421b-acbd-eb2c039f79e8 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set cb3bb030-c6f5-421b-acbd-eb2c039f79e8
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set cb3bb030-c6f5-421b-acbd-eb2c039f79e8
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional" {
insmod part_msdos
insmod fat
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set 64fe-d0fd
drivemap -s (hd0) ${root}
chainloader +1
}
### 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 ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

=============================== sda8/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
# / was on /dev/sda8 during installation
UUID=cb3bb030-c6f5-421b-acbd-eb2c039f79e8 / ext4 errors=remount-ro 0 1
# /home was on /dev/sda9 during installation
UUID=9ca712d1-16c2-43ba-800c-5da6d03fa16b /home ext4 defaults 0 2
# swap was on /dev/sda7 during installation
UUID=958e3d2c-e130-4a9a-8d3e-3e0172adacfe none swap sw 0 0

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


206.5GB: boot/grub/core.img
193.3GB: boot/grub/grub.cfg
189.6GB: boot/initrd.img-2.6.35-22-generic
206.5GB: boot/vmlinuz-2.6.35-22-generic
189.6GB: initrd.img
206.5GB: vmlinuz
如有任何疑问,请不吝赐教!
头像
onshoestring
论坛版主
帖子: 4666
注册时间: 2009-09-06 5:53

Re: 爽系统启动问题

#4

帖子 onshoestring » 2010-11-01 18:18

sda1: _________________________________________________________________________

File system: vfat
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda1 and
1.xp安装光盘进入故障修复控制台 fixboot c:

2.ubuntu:sudo update-grub
头像
andrewqin
帖子: 20
注册时间: 2007-07-04 23:01
来自: 陕西汉中

Re: 爽系统启动问题

#5

帖子 andrewqin » 2010-11-02 21:43

用了深度的和雨林木风的系统磐, 都无法进入控制台, 现在手头没有这种光盘啊 、 是现在的光盘都给去掉了, 还是我的方法不对、 不吝赐教!
如有任何疑问,请不吝赐教!
头像
onshoestring
论坛版主
帖子: 4666
注册时间: 2009-09-06 5:53

Re: 爽系统启动问题

#6

帖子 onshoestring » 2010-11-02 22:01

你找的是论坛改版的xp,或许是ghost版,或许是精简版。

下载grub4dos, http://nufans.net/grub4dos/current_release/grub4dos-0.4.4-2009-10-16.zip
把压缩包内的bootlace.com解压出来,放在你的用户目录下,在终端中执行

代码: 全选

sudo ./bootlace.com --floppy --ntfs /dev/sda1
sudo update-grub
挂载xp分区,复制ntldr为grldr(保留原来的ntldr)
头像
andrewqin
帖子: 20
注册时间: 2007-07-04 23:01
来自: 陕西汉中

Re: 爽系统启动问题

#7

帖子 andrewqin » 2010-11-04 13:44

3Q,我用PE下的系统引导盘修复搞定。
如有任何疑问,请不吝赐教!
头像
andrewqin
帖子: 20
注册时间: 2007-07-04 23:01
来自: 陕西汉中

Re: 爽系统启动问题

#8

帖子 andrewqin » 2010-11-04 13:47

请问这位仁兄,如果安装ubuntu的时候,如果把引导信息写入boot分区而不是硬盘本身,双系统引导是一样的吗?因为安装linux的时候在分区哪里看到了,所以问下,长长见识。
如有任何疑问,请不吝赐教!
头像
onshoestring
论坛版主
帖子: 4666
注册时间: 2009-09-06 5:53

Re: 爽系统启动问题

#9

帖子 onshoestring » 2010-11-04 15:51

andrewqin 写了:请问这位仁兄,如果安装ubuntu的时候,如果把引导信息写入boot分区而不是硬盘本身,双系统引导是一样的吗?因为安装linux的时候在分区哪里看到了,所以问下,长长见识。
可以,不过要用grub4dos引导ubuntu。
头像
andrewqin
帖子: 20
注册时间: 2007-07-04 23:01
来自: 陕西汉中

Re: 爽系统启动问题

#10

帖子 andrewqin » 2010-11-04 16:47

多谢仁兄的耐心回复。
如有任何疑问,请不吝赐教!
回复