win7 ubuntu 双系统启动选项DIY.doc_第1页
win7 ubuntu 双系统启动选项DIY.doc_第2页
win7 ubuntu 双系统启动选项DIY.doc_第3页
win7 ubuntu 双系统启动选项DIY.doc_第4页
免费预览已结束,剩余1页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Win7 ubuntu双系统启动选项DIY本文由本人原创,各位爱好Linu的好友,若要转载,请注明出处,如有不明之处,请用QQ:334245938联系我。一、问题:分别安装完Win7与ubuntu12.04后,发现启动选项显示太多,如何在启动计算机启动后,只显示win7与ubuntu系统两条选项,使计算机的启动选项更加的简洁呢?二、改决方法:1、运行计算机的左上角“DASH主页”启动器,在框中输入终端命令符“terminal”,点终端图标即可自动进入mmmm-slsj:$(注:绿色字是你们的计算机的名称),在命令行输sudo -i,些时屏幕显示sudo password for mm:在此处输入你的安装ubuntu时密码,些时屏幕显示rootmm-slsj:#2、在命令行输入:gedit /boot/grub/grub.cfg,进入 boot/grub/grub.cfg的编辑,把原文按以下内容改好后,保存,退出。3、重启计算机。ok!你的计算机已经是双系统的简洁启动界面了,只显示win 7系统与Linuxubuntu 系统两条选项,默认第一选项是win7系统,第二选项是ubuntuu系统,Linux ubuntu 系统选项的下一级菜单下可选ubuntu系统的其他选项。4、grub多系统管理器的编辑成果。# DO NOT EDIT THIS FILE# It is automatically generated bny 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_envfiset default=0if $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=truefifunction savedefault if -z $boot_once ; then saved_entry=$chosen save_env saved_entry fifunction recordfail set recordfail=1 if -n $have_grubenv ; then if -z $boot_once ; then save_env recordfail; fi; fifunction load_video insmod vbe insmod vga insmod video_bochs insmod video_cirrusinsmod part_msdosinsmod ext2set root=(hd0,msdos7)search -no-floppy -fs-uuid -set=root 6e52c50f-5b93-4e63-80ec-f8db43af4671if loadfont /usr/share/grub/unicode.pf2 ; then set gfxmode=auto load_video insmod gfxterm insmod part_msdos insmod ext2 set root=(hd0,msdos7) search -no-floppy -fs-uuid -set=root 6e52c50f-5b93-4e63-80ec-f8db43af4671 set locale_dir=($root)/boot/grub/locale set lang= insmod gettextfiterminal_output gfxtermif $recordfail = 1 ; then set timeout=-1else set timeout=10fi# END /etc/grub.d/00_header # BEGIN /etc/grub.d/05_debian_theme #set menu_color_normal=white/blackset menu_color_highlight=black/light-grayif background_color 44,0,30; then clearfi# END /etc/grub.d/05_debian_theme # BEGIN /etc/grub.d/30_os-prober #menuentry Windows 7系统 -class windows -class os insmod part_msdos insmod ntfs set root=(hd0,msdos1) search -no-floppy -fs-uuid -set=root 267A9AA77A9A7373 chainloader +1# END /etc/grub.d/30_os-prober # BEGIN /etc/grub.d/10_linux #function gfxmode set gfxpayload=$1 if $1 = keep ; then set vt_handoff=vt.handoff=7 else set vt_handoff= fiif $recordfail != 1 ; then if -e $prefix/gfxblacklist.txt ; then if hwmatch $prefix/gfxblacklist.txt 3; 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=keep fielse set linux_gfx_mode=textfiexport linux_gfx_modeif $linux_gfx_mode != text ; then load_video; fisubmenu Ubuntu Linux 系统 menuentry Ubuntu, with Linux 3.2.0-31-generic-pae -class ubuntu -class gnu-linux -class gnu -class os recordfail gfxmode $linux_gfx_mode insmod gzio insmod part_msdos insmod ext2 set root=(hd0,msdos7) search -no-floppy -fs-uuid -set=root 6e52c50f-5b93-4e63-80ec-f8db43af4671 linux /boot/vmlinuz-3.2.0-31-generic-pae root=UUID=6e52c50f-5b93-4e63-80ec-f8db43af4671 ro quiet splash $vt_handoff initrd /boot/initrd.img-3.2.0-31-generic-paemenuentry Ubuntu, with Linux 3.2.0-31-generic-pae (recovery mode) -class ubuntu -class gnu-linux -class gnu -class os recordfail insmod gzio insmod part_msdos insmod ext2 set root=(hd0,msdos7) search -no-floppy -fs-uuid -set=root 6e52c50f-5b93-4e63-80ec-f8db43af4671 echo Loading Linux 3.2.0-31-generic-pae . linux /boot/vmlinuz-3.2.0-31-generic-pae root=UUID=6e52c50f-5b93-4e63-80ec-f8db43af4671 ro recovery nomodeset echo Loading initial ramdisk . initrd /boot/initrd.img-3.2.0-31-generic-paesubmenu Previous Linux versions menuentry Ubuntu, with Linux 3.2.0-29-generic-pae -class ubuntu -class gnu-linux -class gnu -class os recordfail gfxmode $linux_gfx_mode insmod gzio insmod part_msdos insmod ext2 set root=(hd0,msdos7) search -no-floppy -fs-uuid -set=root 6e52c50f-5b93-4e63-80ec-f8db43af4671 linux /boot/vmlinuz-3.2.0-29-generic-pae root=UUID=6e52c50f-5b93-4e63-80ec-f8db43af4671 ro quiet splash $vt_handoff initrd /boot/initrd.img-3.2.0-29-generic-paemenuentry Ubuntu, with Linux 3.2.0-29-generic-pae (recovery mode) -class ubuntu -class gnu-linux -class gnu -class os recordfail insmod gzio insmod part_msdos insmod ext2 set root=(hd0,msdos7) search -no-floppy -fs-uuid -set=root 6e52c50f-5b93-4e63-80ec-f8db43af4671 echo Loading Linux 3.2.0-29-generic-pae . linux /boot/vmlinuz-3.2.0-29-generic-pae root=UUID=6e52c50f-5b93-4e63-80ec-f8db43af4671 ro recovery nomodeset echo Loading initial ramdisk . initrd /boot/initrd.img-3.2.0-29-generic-pae# 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,msdos7) search -no-floppy -fs-uuid -set=root 6e52c50f-5b93-4e63-80ec-f8db43af4671 linux16 /boot/memtest86+.binmenuentry Memory test (memtest86+, serial console 115200) insmod part_msdos insmod ext2 set root=(hd0,msdos7) search -no-floppy -fs-uuid -set=root 6e52c50f-5b93-4e63-80ec-f8db43af4671 linux16 /boot/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

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论