如何设WIN7为默认启动项?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
温柔的猪
帖子: 39
注册时间: 2010-05-24 10:55

如何设WIN7为默认启动项?

#1

帖子 温柔的猪 » 2010-05-27 22:13

新买的笔记本,ACER4745 I5 HD5650,用LIVE-USB安装UBUNTU10.04成功以后下载了ATI显卡的驱动并激活了,结果重启后进到登陆界面(四个类似于小灯的东西依次闪亮)后,黑屏。
又重装了一次,现象依旧,上网搜了一遍,发现好像是双显卡的缘故,在BIOS里禁用集成显卡后,现象消除,但仍不支持双显卡切换。此问题仍未解决。
并且在选择操作系统界面处,有四个UBUNTU选项(其中两个是RECOVERY模式)和一个WIN7一个VISTA选项。并且2个UBUNTU选项都能正常进入。我记得第二次装UBUNTU的时候好像选的那个磁盘分区为格式化,交换空间没有格式化选项故未选。
请问,我现在是不是装了2个UBUNTU操作系统呢?还有如何将WIN7设为默认启动项?
往路过高人赐教,小白现行谢过。
头像
wheat0r
帖子: 1026
注册时间: 2008-04-27 12:15
联系:

Re: 如何设WIN7为默认启动项?

#2

帖子 wheat0r » 2010-05-27 22:24

打开 /boot/grub 目录的 grub.cfg(需要提权)
当然直接用这个命令就可以打开

代码: 全选

$ sudo gedit /boot/grub/grub.cfg
修改 set default="0" 的0为其他系统的序号
序号从0开始
oneleaf 的教导记心间:《学习linux几点忠告》
头像
peteryeh64
论坛版主
帖子: 9379
注册时间: 2008-12-20 15:43
系统: 家kubuntu20.04
来自: 心靈深處

Re: 如何设WIN7为默认启动项?

#3

帖子 peteryeh64 » 2010-05-27 22:54

文章主題 : 怎么把windows7 Ubuntu双系统的选择启动菜单调整为默认启动windows7
viewtopic.php?f=77&t=266075
[论坛版主行为规定]+[PITIVI簡易教程]+[ubuntu裝迅雷]
[releases.ubuntu.com]+[cdimage.ubuntu.com]+[old-releases.ubuntu.com]
[學ubuntu必須拜讀懶蝸牛"笨兔兔的故事"=viewtopic.php?f=112&t=162040][Linux明日的希望在中國]
温柔的猪
帖子: 39
注册时间: 2010-05-24 10:55

Re: 如何设WIN7为默认启动项?

#4

帖子 温柔的猪 » 2010-05-28 9:34

谢谢两位回复。因为我装了两次,我的启动选项里有四个UBUNTU选项,我能删除不用的吗?该如何操作?
头像
追疯少年
帖子: 950
注册时间: 2008-03-13 23:37
联系:

Re: 如何设WIN7为默认启动项?

#5

帖子 追疯少年 » 2010-05-28 9:38

直接删除不要的,保留需要的。

建议先把menu.lst 贴出来看看
头像
wuhaotian00
帖子: 48
注册时间: 2009-12-12 14:37

Re: 如何设WIN7为默认启动项?

#6

帖子 wuhaotian00 » 2010-05-28 10:59

温柔的猪, 装了两次如果把原来装ubuntu的盘格式化了应该没有多个ubuntu启动项了(安装过程先格式化,最后百分之几才是搜寻启动信息并写道grub里,因为默认grub是安装到ubuntu盘下,那时候已经格式化就没有了)swap分区没有启动信息
出现多个启动项最常见的就是升级了内核但是原来的内核没有删除,就是启动项末尾带的一串数字,什么2.6.32-22又是2.6.32-21啥的
把旧的内核删去就行了。
如果你当时把ubuntu的盘格了那就不是装了两个系统。

设置默认启动2楼正解
ttxifu
帖子: 7
注册时间: 2008-10-10 22:26

Re: 如何设WIN7为默认启动项?

#7

帖子 ttxifu » 2010-05-28 12:58

正在学习 :em01 :em01
温柔的猪
帖子: 39
注册时间: 2010-05-24 10:55

Re: 如何设WIN7为默认启动项?

#8

帖子 温柔的猪 » 2010-05-29 18:57

# sample /boot/grub/menu.lst entry for memtest86
#
# This example assumes the contents of /boot is on the root partition.
# If your /boot is on its own partition, remove /boot from the 'kernel' line.

title memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin

title memtest86+ (serial console 115200)
root (hd0,0)
kernel /boot/memtest86+.bin console=ttyS0,115200n8


搜了一下,这个应该就是MEUI.LIST。

现在我有四个UBUNTU选项,发现从第一选项进入后不能上网,应该是网卡驱动没安,从另一个选项进入则正常。我这个本到底是不是装了2次UBUNTU啊?
温柔的猪
帖子: 39
注册时间: 2010-05-24 10:55

Re: 如何设WIN7为默认启动项?

#9

帖子 温柔的猪 » 2010-05-29 19:03

这是我的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='(hd0,9)'
search --no-floppy --fs-uuid --set 7247f061-15be-41cb-a35f-0dab6f807328
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='(hd0,9)'
search --no-floppy --fs-uuid --set 7247f061-15be-41cb-a35f-0dab6f807328
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-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,9)'
search --no-floppy --fs-uuid --set 7247f061-15be-41cb-a35f-0dab6f807328
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=7247f061-15be-41cb-a35f-0dab6f807328 ro quiet splash
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry 'Ubuntu,Linux 2.6.32-22-generic (恢复模式)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,9)'
search --no-floppy --fs-uuid --set 7247f061-15be-41cb-a35f-0dab6f807328
echo '载入 Linux ...'
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=7247f061-15be-41cb-a35f-0dab6f807328 ro single
echo '载入引导虚拟磁盘 ...'
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry 'Ubuntu,Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,9)'
search --no-floppy --fs-uuid --set 7247f061-15be-41cb-a35f-0dab6f807328
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=7247f061-15be-41cb-a35f-0dab6f807328 ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
menuentry 'Ubuntu,Linux 2.6.32-21-generic (恢复模式)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,9)'
search --no-floppy --fs-uuid --set 7247f061-15be-41cb-a35f-0dab6f807328
echo '载入 Linux ...'
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=7247f061-15be-41cb-a35f-0dab6f807328 ro single
echo '载入引导虚拟磁盘 ...'
initrd /boot/initrd.img-2.6.32-21-generic
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,9)'
search --no-floppy --fs-uuid --set 7247f061-15be-41cb-a35f-0dab6f807328
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,9)'
search --no-floppy --fs-uuid --set 7247f061-15be-41cb-a35f-0dab6f807328
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Vista (loader) (on /dev/sda1)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set e0d8a820d8a7f2c8
chainloader +1
}
menuentry "Windows 7 (loader) (on /dev/sda2)" {
insmod ntfs
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 7038a99738a95cba
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 ###

红字部分是否说明我重复安装了UBUNTU?如果是的话,我该如何删除其中的一个?
头像
nlr
帖子: 472
注册时间: 2009-04-27 21:07
来自: 柚香何处闻?

Re: 如何设WIN7为默认启动项?

#10

帖子 nlr » 2010-05-29 19:50

不是重复安装,是你安装后升级双内核。你先从2.6.32-22进入,用ubuntu tweak删除旧内核就可以了。
OS :Ubuntu13.04
头像
wheat0r
帖子: 1026
注册时间: 2008-04-27 12:15
联系:

Re: 如何设WIN7为默认启动项?

#11

帖子 wheat0r » 2010-05-29 19:56

为什么所有人看到4个ubuntu的启动项都以为是有两个系统……
其实是两个核心,启动项上有版本号提示
可以看出LZ这个很可能是用grub4dos引导了memtest86
oneleaf 的教导记心间:《学习linux几点忠告》
头像
wuhaotian00
帖子: 48
注册时间: 2009-12-12 14:37

Re: 如何设WIN7为默认启动项?

#12

帖子 wuhaotian00 » 2010-05-30 1:01

两个启动项的内容居然完全一样!!
其实把重复的文字删了就行了。
但还是怀疑你以前的内核没有删
头像
waternight
帖子: 7
注册时间: 2010-05-30 11:27

Re: 如何设WIN7为默认启动项?

#13

帖子 waternight » 2010-05-30 12:26

我也有同样的困惑啊,和楼主一样,我是菜鸟,有人可以告诉我怎么把原来的那个内核删除呢?谢谢了。
头像
wheat0r
帖子: 1026
注册时间: 2008-04-27 12:15
联系:

Re: 如何设WIN7为默认启动项?

#14

帖子 wheat0r » 2010-05-30 12:37

删除久内核用ubuntu-tweak更好,但是建议至少保留一个旧核心
oneleaf 的教导记心间:《学习linux几点忠告》
回复