2022年windows和linux双系统,设置默认启动项 .pdf
《2022年windows和linux双系统,设置默认启动项 .pdf》由会员分享,可在线阅读,更多相关《2022年windows和linux双系统,设置默认启动项 .pdf(7页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、windows和 linux双系统,设置默认启动项在终端里输入: sudogedit /boot/grub/grub.cfg先装 windows 而后装 linux 系统,默认启动项会非常多,执行上面的命令后,会打开一个文档,里面代码如下: -( 这些小横线是我自己加的)# # 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 # # BE
2、GIN /etc/grub.d/00_header # if -s $prefix/grubenv ; then load_env fi set default=8if $prev_saved_entry ; then set saved_entry=$prev_saved_entry save_envsaved_entry set prev_saved_entry= save_envprev_saved_entry set boot_once=true fi function savedefault if -z $boot_once ; then saved_entry=$chosen sa
3、ve_envsaved_entry fi function recordfail set recordfail=1 if -n $have_grubenv ; then if -z $boot_once ; then save_envrecordfail; fi; fi insmod ext2 set root=(hd0,9) search -no-floppy -fs-uuid -set fd9c0f6c-5c20-4d95-b3f4-eebca82bea0f if loadfont /usr/share/grub/unicode.pf2 ; then set gfxmode=640 x48
4、0 insmodgfxterm 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 1 页,共 7 页 - - - - - - - - - insmodvbe if terminal_outputgfxterm ; then true ; else # For backward compatibility with versions of terminal.mod that dont # understand terminal_output terminal gfxterm fi fi
5、insmod ext2 set root=(hd0,9) search -no-floppy -fs-uuid -set fd9c0f6c-5c20-4d95-b3f4-eebca82bea0f set locale_dir=($root)/boot/grub/locale set lang=zh insmodgettext if $recordfail = 1 ; then set timeout=-1 else set timeout=10fi # END /etc/grub.d/00_header # # BEGIN /etc/grub.d/05_debian_theme # set m
6、enu_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.32-31-generic -class ubuntu -class gnu-linux -class gnu -class os recordfail insmod ext2 set root=(hd0,9) search -no-floppy -fs-u
7、uid -set fd9c0f6c-5c20-4d95-b3f4-eebca82bea0f linux /boot/vmlinuz-2.6.32-31-generic root=UUID=fd9c0f6c-5c20-4d95-b3f4-eebca82bea0f ro quiet splash initrd /boot/initrd.img-2.6.32-31-generic menuentry Ubuntu, with Linux 2.6.32-31-generic (recovery mode) -class ubuntu -class gnu-linux -class gnu -class
8、 os recordfail insmod ext2 set root=(hd0,9) search -no-floppy -fs-uuid -set fd9c0f6c-5c20-4d95-b3f4-eebca82bea0f echo Loading Linux 2.6.32-31-generic . linux /boot/vmlinuz-2.6.32-31-generic root=UUID=fd9c0f6c-5c20-4d95-b3f4-名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - -
9、- 第 2 页,共 7 页 - - - - - - - - - eebca82bea0f ro single echo Loading initial ramdisk . initrd /boot/initrd.img-2.6.32-31-generic menuentry Ubuntu, with Linux 2.6.32-30-generic -class ubuntu -class gnu-linux -class gnu -class os recordfail insmod ext2 set root=(hd0,9) search -no-floppy -fs-uuid -set f
10、d9c0f6c-5c20-4d95-b3f4-eebca82bea0f linux /boot/vmlinuz-2.6.32-30-generic root=UUID=fd9c0f6c-5c20-4d95-b3f4-eebca82bea0f ro quiet splash initrd /boot/initrd.img-2.6.32-30-generic menuentry Ubuntu, with Linux 2.6.32-30-generic (recovery mode) -class ubuntu -class gnu-linux -class gnu -class os record
11、fail insmod ext2 set root=(hd0,9) search -no-floppy -fs-uuid -set fd9c0f6c-5c20-4d95-b3f4-eebca82bea0f echo Loading Linux 2.6.32-30-generic . linux /boot/vmlinuz-2.6.32-30-generic root=UUID=fd9c0f6c-5c20-4d95-b3f4-eebca82bea0f ro single echo Loading initial ramdisk . initrd /boot/initrd.img-2.6.32-3
12、0-generic insmod ext2 set root=(hd0,9) search -no-floppy -fs-uuid -set fd9c0f6c-5c20-4d95-b3f4-eebca82bea0f linux /boot/vmlinuz-2.6.32-24-generic root=UUID=fd9c0f6c-5c20-4d95-b3f4-eebca82bea0f ro quiet splash initrd /boot/initrd.img-2.6.32-24-generic menuentry Ubuntu, with Linux 2.6.32-24-generic (r
13、ecovery mode) -class ubuntu -class gnu-linux -class gnu -class os recordfail insmod ext2 set root=(hd0,9) search -no-floppy -fs-uuid -set fd9c0f6c-5c20-4d95-b3f4-eebca82bea0f echo Loading Linux 2.6.32-24-generic . linux /boot/vmlinuz-2.6.32-24-generic root=UUID=fd9c0f6c-5c20-4d95-b3f4-eebca82bea0f r
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 2022年windows和linux双系统 设置默认启动项 2022 windows linux 双系统 设置 默认 启动
限制150内