如何用win7来引导linux启动。

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
头像
foxcl
帖子: 199
注册时间: 2009-05-22 14:34
送出感谢: 2 次
接收感谢: 0
联系:

如何用win7来引导linux启动。

#1

帖子 foxcl » 2011-04-06 19:38

1.电脑双系统,win7+ubuntu11.04,目前为grub2引导
2.可能是因为grub2的问题,导致win7原版在win7系统内无法软解,各种软解工具都已经尝试过了,不想刷bios硬解。

所以想把启动的顺序给更改过来,让win7的引导程序来引导。求方法。
新手扫盲: viewtopic.php?f=48&t=241030&start=0
学习linux几点忠告: viewtopic.php?f=120&t=739
Say goodbye to Microsoft!
头像
月下叹逍遥
论坛版主
帖子: 33994
注册时间: 2010-10-07 14:23
系统: Archdows10
来自: 某系某星某洲某国某省某市
送出感谢: 8 次
接收感谢: 63 次
联系:

Re: 如何用win7来引导linux启动。

#2

帖子 月下叹逍遥 » 2011-04-06 19:39

等熊大出面……
心似浮云常自在,意如流水任东西。
此事背后一定有个天大的咪咪
广告:
1、走过路过,不要错过,dropbox网盘2.25G大放送
py大法好,退C保平安
java多妖孽,VB本异端
日诵一千遍,快活似神仙
头像
qy117121
论坛版主
帖子: 49891
注册时间: 2007-12-14 13:40
系统: Winbuntu
来自: 志虚国乌由市
送出感谢: 17 次
接收感谢: 334 次
联系:

Re: 如何用win7来引导linux启动。

#3

帖子 qy117121 » 2011-04-06 19:39

首先,把mbr恢复成win的
其次,最简单的就是easyBCD,添加linux启动项,选择grub2,完成
渠月 · QY    https://vz.rs/u
本人只会灌水,不负责回答问题

无聊可以点一下→ http://u.nu/ubuntu
头像
smallapple
论坛版主
帖子: 7867
注册时间: 2009-03-28 15:12
送出感谢: 0
接收感谢: 19 次

Re: 如何用win7来引导linux启动。

#4

帖子 smallapple » 2011-04-06 19:40

grub2并不影响win7软解
头像
foxcl
帖子: 199
注册时间: 2009-05-22 14:34
送出感谢: 2 次
接收感谢: 0
联系:

Re: 如何用win7来引导linux启动。

#5

帖子 foxcl » 2011-04-06 20:21

smallapple 写了:grub2并不影响win7软解
不会吧,那为什么我最早单win7的时候能软解呢。系统版本都没有变过。此系统在别人电脑上也是以软解的呀。
新手扫盲: viewtopic.php?f=48&t=241030&start=0
学习linux几点忠告: viewtopic.php?f=120&t=739
Say goodbye to Microsoft!
头像
TeliuTe
论坛版主
帖子: 7434
注册时间: 2007-11-25 13:29
系统: 14/16/18/Fedroa22/w7
来自: 新疆博乐
送出感谢: 29 次
接收感谢: 99 次
联系:

Re: 如何用win7来引导linux启动。

#6

帖子 TeliuTe » 2011-04-06 21:04

试试置顶帖里的g2ldr
头像
foxcl
帖子: 199
注册时间: 2009-05-22 14:34
送出感谢: 2 次
接收感谢: 0
联系:

Re: 如何用win7来引导linux启动。

#7

帖子 foxcl » 2011-04-07 16:29

我姑且试试吧,蛋疼的win7只剩一天的试用期了。

如果我刷bios,应该不会影响到ubuntu吧?
新手扫盲: viewtopic.php?f=48&t=241030&start=0
学习linux几点忠告: viewtopic.php?f=120&t=739
Say goodbye to Microsoft!
头像
smallapple
论坛版主
帖子: 7867
注册时间: 2009-03-28 15:12
送出感谢: 0
接收感谢: 19 次

Re: 如何用win7来引导linux启动。

#8

帖子 smallapple » 2011-04-07 16:31

代码: 全选

cd ~/桌面 && wget 'http://nchc.dl.sourceforge.net/project/bootinfoscript/bootinfoscript/0.55/boot_info_script055.sh' && sudo bash boot_info_script055.sh
结果贴出来看看
头像
foxcl
帖子: 199
注册时间: 2009-05-22 14:34
送出感谢: 2 次
接收感谢: 0
联系:

Re: 如何用win7来引导linux启动。

#9

帖子 foxcl » 2011-04-08 12:31

smallapple 写了:

代码: 全选

cd ~/桌面 && wget 'http://nchc.dl.sourceforge.net/project/bootinfoscript/bootinfoscript/0.55/boot_info_script055.sh' && sudo bash boot_info_script055.sh
结果贴出来看看

代码: 全选

            Boot Info Script 0.55    dated February 15th, 2010                    

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

 => Grub 2 is installed in the MBR of /dev/sda and looks for Anak.

sda1: _________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 7
    Boot files/dirs:   /bootmgr /Boot/BCD /Windows/System32/winload.exe /grldr

sda2: _________________________________________________________________________

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

sda3: _________________________________________________________________________

    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:       ext4
    Boot sector type:  -
    Boot sector info:  
    Operating System:  Ubuntu natty (development 
                       branch)
    Boot files/dirs:   /etc/fstab

sda8: _________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:  
    Operating System:  
    Boot files/dirs:   /grub/grub.cfg /grub/core.img

sda9: _________________________________________________________________________

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

sda10: _________________________________________________________________________

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

sda11: _________________________________________________________________________

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

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

Drive: sda ___________________ _____________________________________________________

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 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    63,488,879    63,488,817   7 HPFS/NTFS
/dev/sda2          63,488,880   127,379,384    63,890,505   7 HPFS/NTFS
/dev/sda3         127,379,446   488,392,064   361,012,619   5 Extended
/dev/sda5         127,379,448   233,874,269   106,494,822   7 HPFS/NTFS
/dev/sda6         233,874,333   381,334,904   147,460,572   7 HPFS/NTFS
/dev/sda7         381,335,552   397,154,303    15,818,752  83 Linux
/dev/sda8         397,156,352   397,447,167       290,816  83 Linux
/dev/sda9         397,449,216   417,173,503    19,724,288  83 Linux
/dev/sda10        417,175,552   480,567,295    63,391,744  83 Linux
/dev/sda11        480,583,680   488,396,799     7,813,120  82 Linux swap / Solaris

the logical partition /dev/sda11 is not contained in the extended partition /dev/sda3

blkid -c /dev/null: ____________________________________________________________

Device           UUID                                   TYPE       LABEL                         

/dev/sda1        04886A63886A52EA                       ntfs       SYSTEM                        
/dev/sda10       96103d82-a5c3-4ec5-ad01-5235d42e942f   ext4                                     
/dev/sda11       308db955-14ab-43c8-9ffd-4c51cd87dd6c   swap                                     
/dev/sda2        D2407E6E407E58E5                       ntfs       SOFTWARE                      
/dev/sda3: PTTYPE="dos" 
/dev/sda5        9A0C5B7E0C5B547B                       ntfs       My Document                   
/dev/sda6        286C73026C72CA58                       ntfs       Media Room                    
/dev/sda7        9824c17d-e99f-45ac-a14d-7b71a7f472e2   ext4                                     
/dev/sda8        0bea7867-8cdd-462e-bf4b-912e31b10969   ext4                                     
/dev/sda9        cb13d3cc-1a2c-41da-9a0c-425a4e842863   ext4                                     
/dev/sda: PTTYPE="dos" 
error: /dev/sdb: No medium found

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

Device           Mount_Point              Type       Options

/dev/sda7        /                        ext4       (rw,errors=remount-ro,commit=0)
/dev/sda8        /boot                    ext4       (rw,commit=0)
/dev/sda6        /media/Media Room        fuseblk    (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda5        /media/My Document       fuseblk    (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda2        /media/SOFTWARE          fuseblk    (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda1        /media/SYSTEM            fuseblk    (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda10       /home                    ext4       (rw,commit=0)
/dev/sda9        /usr                     ext4       (rw,commit=0)


=============================== sda7/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>

proc	/proc	proc	nodev,noexec,nosuid	0	0
#Entry for /dev/sda7 :
UUID=9824c17d-e99f-45ac-a14d-7b71a7f472e2	/	ext4	errors=remount-ro	0	1
#Entry for /dev/sda8 :
UUID=0bea7867-8cdd-462e-bf4b-912e31b10969	/boot	ext4	defaults	0	2
#Entry for /dev/sda10 :
UUID=96103d82-a5c3-4ec5-ad01-5235d42e942f	/home	ext4	defaults	0	2
#Entry for /dev/sda6 :
UUID=286C73026C72CA58	/media/Media\040Room	ntfs-3g	defaults,nosuid,nodev,locale=zh_CN.UTF-8	0	0
#Entry for /dev/sda5 :
UUID=9A0C5B7E0C5B547B	/media/My\040Document	ntfs-3g	defaults,nosuid,nodev,locale=zh_CN.UTF-8	0	0
#Entry for /dev/sda2 :
UUID=D2407E6E407E58E5	/media/SOFTWARE	ntfs-3g	defaults,locale=zh_CN.UTF-8	0	0
#Entry for /dev/sda1 :
UUID=04886A63886A52EA	/media/SYSTEM	ntfs-3g	defaults,locale=zh_CN.UTF-8	0	0
#Entry for /dev/sda9 :
UUID=cb13d3cc-1a2c-41da-9a0c-425a4e842863	/usr	ext4	defaults	0	2
UUID=32AC84C2AC848259	/media/Software	ntfs-3g	defaults,locale=zh_CN.UTF-8	0	0
UUID=9CE4F5D6E4F5B29E	/media/System	ntfs-3g	defaults,locale=zh_CN.UTF-8	0	0
#Entry for /dev/sda11 :
UUID=308db955-14ab-43c8-9ffd-4c51cd87dd6c	none	swap	sw	0	0



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


 195.2GB: initrd.img
 195.3GB: initrd.img.old
 195.3GB: vmlinuz
 195.3GB: vmlinuz.old

============================= sda8/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 video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos9)'
search --no-floppy --fs-uuid --set=root cb13d3cc-1a2c-41da-9a0c-425a4e842863
if loadfont /share/grub/unicode.pf2 ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos8)'
search --no-floppy --fs-uuid --set=root 0bea7867-8cdd-462e-bf4b-912e31b10969
set locale_dir=($root)/grub/locale
set lang=zh_CN
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
if background_color 44,0,30; then
  clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/09_os_prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
	insmod part_msdos
	insmod ntfs
	set root='(/dev/sda,msdos1)'
	search --no-floppy --fs-uuid --set=root 04886A63886A52EA
	chainloader +1
}
### END /etc/grub.d/09_os_prober ###

### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
  set matches_file=${prefix}/gfxblacklist.txt
  set class_match=3
  if lua ${prefix}/hwmatch.lua; then
    if [ ${match} = 0 ]; then
      set linux_gfx_mode=keep
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=text
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu锛孡inux 2.6.38-7-generic' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	set gfxpayload=$linux_gfx_mode
	insmod part_msdos
	insmod ext2
	set root='(/dev/sda,msdos8)'
	search --no-floppy --fs-uuid --set=root 0bea7867-8cdd-462e-bf4b-912e31b10969
	linux	/vmlinuz-2.6.38-7-generic root=UUID=9824c17d-e99f-45ac-a14d-7b71a7f472e2 ro   quiet splash vt.handoff=7
	initrd	/initrd.img-2.6.38-7-generic
}
menuentry 'Ubuntu锛孡inux 2.6.38-7-generic (鎭㈠妯″紡)' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	set gfxpayload=$linux_gfx_mode
	insmod part_msdos
	insmod ext2
	set root='(/dev/sda,msdos8)'
	search --no-floppy --fs-uuid --set=root 0bea7867-8cdd-462e-bf4b-912e31b10969
	echo	'Loading Linux 2.6.38-7-generic ...'
	linux	/vmlinuz-2.6.38-7-generic root=UUID=9824c17d-e99f-45ac-a14d-7b71a7f472e2 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-2.6.38-7-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu锛孡inux 2.6.35-27-generic' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	set gfxpayload=$linux_gfx_mode
	insmod part_msdos
	insmod ext2
	set root='(/dev/sda,msdos8)'
	search --no-floppy --fs-uuid --set=root 0bea7867-8cdd-462e-bf4b-912e31b10969
	linux	/vmlinuz-2.6.35-27-generic root=UUID=9824c17d-e99f-45ac-a14d-7b71a7f472e2 ro   quiet splash vt.handoff=7
	initrd	/initrd.img-2.6.35-27-generic
}
menuentry 'Ubuntu锛孡inux 2.6.35-27-generic (鎭㈠妯″紡)' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	set gfxpayload=$linux_gfx_mode
	insmod part_msdos
	insmod ext2
	set root='(/dev/sda,msdos8)'
	search --no-floppy --fs-uuid --set=root 0bea7867-8cdd-462e-bf4b-912e31b10969
	echo	'Loading Linux 2.6.35-27-generic ...'
	linux	/vmlinuz-2.6.35-27-generic root=UUID=9824c17d-e99f-45ac-a14d-7b71a7f472e2 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-2.6.35-27-generic
}
menuentry 'Ubuntu锛孡inux 2.6.32-25-generic' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	set gfxpayload=$linux_gfx_mode
	insmod part_msdos
	insmod ext2
	set root='(/dev/sda,msdos8)'
	search --no-floppy --fs-uuid --set=root 0bea7867-8cdd-462e-bf4b-912e31b10969
	linux	/vmlinuz-2.6.32-25-generic root=UUID=9824c17d-e99f-45ac-a14d-7b71a7f472e2 ro   quiet splash vt.handoff=7
	initrd	/initrd.img-2.6.32-25-generic
}
menuentry 'Ubuntu锛孡inux 2.6.32-25-generic (鎭㈠妯″紡)' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	set gfxpayload=$linux_gfx_mode
	insmod part_msdos
	insmod ext2
	set root='(/dev/sda,msdos8)'
	search --no-floppy --fs-uuid --set=root 0bea7867-8cdd-462e-bf4b-912e31b10969
	echo	'Loading Linux 2.6.32-25-generic ...'
	linux	/vmlinuz-2.6.32-25-generic root=UUID=9824c17d-e99f-45ac-a14d-7b71a7f472e2 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-2.6.32-25-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='(/dev/sda,msdos8)'
	search --no-floppy --fs-uuid --set=root 0bea7867-8cdd-462e-bf4b-912e31b10969
	linux16	/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod part_msdos
	insmod ext2
	set root='(/dev/sda,msdos8)'
	search --no-floppy --fs-uuid --set=root 0bea7867-8cdd-462e-bf4b-912e31b10969
	linux16	/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### 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: Location of files loaded by Grub: ===================


 203.3GB: grub/core.img
 203.3GB: grub/grub.cfg
 203.4GB: initrd.img-2.6.32-25-generic
 203.4GB: initrd.img-2.6.35-27-generic
 203.3GB: initrd.img-2.6.38-7-generic
 203.4GB: vmlinuz-2.6.32-25-generic
 203.4GB: vmlinuz-2.6.35-27-generic
 203.4GB: vmlinuz-2.6.38-7-generic
=======Devices which don't seem to have a corresponding hard drive==============

sdb 
你看看,能不能分析点东西出来,谢谢。
新手扫盲: viewtopic.php?f=48&t=241030&start=0
学习linux几点忠告: viewtopic.php?f=120&t=739
Say goodbye to Microsoft!
头像
smallapple
论坛版主
帖子: 7867
注册时间: 2009-03-28 15:12
送出感谢: 0
接收感谢: 19 次

Re: 如何用win7来引导linux启动。

#10

帖子 smallapple » 2011-04-08 12:53

mbr有点问题,多了个Anak,不知是什么标识,估计要问熊大。
我传个bootinst,你在win7下执行

代码: 全选

bootinst.exe /nt60 C:
再重启试试能不能激活,不行就用diskgen3或winpm重置下mbr,改回用win7引导,再用我签名档下的修改过的g2ldr引导ubuntu
bootinst.tar.gz
(36.08 KiB) 下载 14 次
xtz1990
帖子: 452
注册时间: 2010-06-03 22:51
送出感谢: 1 次
接收感谢: 0

Re: 如何用win7来引导linux启动。

#11

帖子 xtz1990 » 2011-04-08 13:53

grub2不影响啊
头像
foxcl
帖子: 199
注册时间: 2009-05-22 14:34
送出感谢: 2 次
接收感谢: 0
联系:

Re: 如何用win7来引导linux启动。

#12

帖子 foxcl » 2011-04-08 16:57

xtz1990 写了:grub2不影响啊
你是第二个这样对我说的,

可能我真的搞错了。谢谢告之。
新手扫盲: viewtopic.php?f=48&t=241030&start=0
学习linux几点忠告: viewtopic.php?f=120&t=739
Say goodbye to Microsoft!
头像
foxcl
帖子: 199
注册时间: 2009-05-22 14:34
送出感谢: 2 次
接收感谢: 0
联系:

Re: 如何用win7来引导linux启动。

#13

帖子 foxcl » 2011-04-08 18:00

smallapple 写了:mbr有点问题,多了个Anak,不知是什么标识,估计要问熊大。
我传个bootinst,你在win7下执行

代码: 全选

bootinst.exe /nt60 C:
再重启试试能不能激活,不行就用diskgen3或winpm重置下mbr,改回用win7引导,再用我签名档下的修改过的g2ldr引导ubuntu
bootinst.tar.gz

你的第一种方法不行,还是没法软解。

我试试你所说的第二种方法

PS:熊大是谁?
新手扫盲: viewtopic.php?f=48&t=241030&start=0
学习linux几点忠告: viewtopic.php?f=120&t=739
Say goodbye to Microsoft!
头像
smallapple
论坛版主
帖子: 7867
注册时间: 2009-03-28 15:12
送出感谢: 0
接收感谢: 19 次

Re: 如何用win7来引导linux启动。

#14

帖子 smallapple » 2011-04-08 18:29

PS:熊大是谁?

billbear :em06
头像
smallapple
论坛版主
帖子: 7867
注册时间: 2009-03-28 15:12
送出感谢: 0
接收感谢: 19 次

Re: 如何用win7来引导linux启动。

#15

帖子 smallapple » 2011-04-08 18:31

还可以试试用 bootice.exe把win7分区引导写为grub4dos类型的
回复

回到 “启动和引导”