我刚才又update-grub 了一下
sudo update grub
[sudo] password for hongyu315:
sudo: update: command not found
hongyu315@hongyu315-laptop:/etc/default$ sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-22-generic
Found initrd image: /boot/initrd.img-2.6.32-22-generic
Found linux image: /boot/vmlinuz-2.6.32-21-generic
Found initrd image: /boot/initrd.img-2.6.32-21-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
done
hongyu315 于 2010-05-29 14:01:53发表:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_LINUX_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
~
~
~
~
~
~
~
~
~
~
~
~
1,1 全部
hongyu315 于 2012-02-02 08:31:20发表:
又看下了
hongyu315 于 2010-06-10 09:56:49发表:
封帖
amyellie 于 2010-06-06 20:16:55发表:
学习
zhgyxj_85 于 2010-06-06 09:47:09发表:
1楼高手
邪门猪窝 于 2010-06-02 16:16:28发表:
向大家学习
hongyu315 于 2010-06-02 14:11:45发表:
谢谢 搞定了
lovemybrother 于 2010-06-01 23:08:21发表:
你可以在终端执行
sudo gedit /boot/grub/grub.cfg
编辑启动项,它是对应着的,很好弄清楚,你删除那个版本低的内核即可。一个完整的启动项如下,一定要认真点,不要删错了,否则,启动不了。
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 d8fb248a-5fbb-44c2-b18a-a5dd22f8d90f
linux /vmlinuz-2.6.32-22-generic root=UUID=c7de5bb4-df8b-445a-8b90-38b217710212 ro vga=792 quiet quiet splash
initrd /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 d8fb248a-5fbb-44c2-b18a-a5dd22f8d90f
echo '载入 Linux ...'
linux /vmlinuz-2.6.32-22-generic root=UUID=c7de5bb4-df8b-445a-8b90-38b217710212 ro single vga=792 quiet
echo '载入引导虚拟磁盘 ...'
initrd /initrd.img-2.6.32-22-generic
}
lovemybrother 于 2010-06-01 23:07:32发表:
你可以在终端执行
sudo gedit /boot/grub/grub.cfg
编辑启动项,它是对应着的,很好弄清楚,你删除那个版本低的内核即可。一个完整的启动项如下,一定要认真点,不要删错了,否则,启动不了。
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 d8fb248a-5fbb-44c2-b18a-a5dd22f8d90f
linux /vmlinuz-2.6.32-22-generic root=UUID=c7de5bb4-df8b-445a-8b90-38b217710212 ro vga=792 quiet quiet splash
initrd /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 d8fb248a-5fbb-44c2-b18a-a5dd22f8d90f
echo '载入 Linux ...'
linux /vmlinuz-2.6.32-22-generic root=UUID=c7de5bb4-df8b-445a-8b90-38b217710212 ro single vga=792 quiet
echo '载入引导虚拟磁盘 ...'
initrd /initrd.img-2.6.32-22-generic
}
shenhao0129 于 2010-05-31 00:06:08发表:
11# hongyu315
慢慢的要学会自己解决问题
hongyu315 于 2010-05-29 21:40:14发表:
10# shenhao0129
刚刚的!!!
shenhao0129 于 2010-05-29 19:52:27发表:
9# hongyu315
呵呵,貌似还不错!
hongyu315 于 2010-05-29 15:08:10发表:
原来是这样搞定的 太有成就感了
1。chmod grub
2.数win7是第六个从0开始
3。改成默认是6就搞定了
hongyu315 于 2010-05-29 14:03:57发表:
我刚才又update-grub 了一下
sudo update grub
[sudo] password for hongyu315:
sudo: update: command not found
hongyu315@hongyu315-laptop:/etc/default$ sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-22-generic
Found initrd image: /boot/initrd.img-2.6.32-22-generic
Found linux image: /boot/vmlinuz-2.6.32-21-generic
Found initrd image: /boot/initrd.img-2.6.32-21-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
done
hongyu315 于 2010-05-29 14:01:53发表:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_LINUX_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
~
~
~
~
~
~
~
~
~
~
~
~
1,1 全部
hongyu315 于 2010-05-29 14:00:27发表:
“GRUB_DEFAULT=0”我应该改成什么?
shenhao0129 于 2010-05-29 11:42:23发表:
4# hongyu315
搞定后记得把帖子修改为已解决
hongyu315 于 2010-05-29 09:46:11发表:
感谢感谢
wangyu 于 2010-05-29 09:35:56发表:
修改Grub的配置文件,不过10.04用的应该是Grub2,这东西我不会改
shenhao0129 于 2010-05-29 09:28:59发表:
在ubuntu中去把/etc/default/grub 中的“GRUB_DEFAULT=0”修为为你需要的值,然后重新输入“sudo update-grub”“或sudo update-grub2”,更新grub引导程序就可以了