为什么启动菜单会有“Previous Linux versions”
Tofloor
poster avatar
sevenez
deepin
2011-11-20 17:12
Author
为什么会有早期版本的Linux提示,除了LD我没有安装过任何的Linux
直接删除可以吗?

另外是Grub文件,求助
  1. #
  2. # DO NOT EDIT THIS FILE
  3. #
  4. # It is automatically generated by grub-mkconfig using templates
  5. # from /etc/grub.d and settings from /etc/default/grub
  6. #
  7. ### BEGIN /etc/grub.d/00_header ###
  8. if [ -s $prefix/grubenv ]; then
  9.   set have_grubenv=true
  10.   load_env
  11. fi
  12. set default="0"
  13. if [ "${prev_saved_entry}" ]; then
  14.   set saved_entry="${prev_saved_entry}"
  15.   save_env saved_entry
  16.   set prev_saved_entry=
  17.   save_env prev_saved_entry
  18.   set boot_once=true
  19. fi
  20. function savedefault {
  21.   if [ -z "${boot_once}" ]; then
  22.     saved_entry="${chosen}"
  23.     save_env saved_entry
  24.   fi
  25. }
  26. function recordfail {
  27.   set recordfail=1
  28.   if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
  29. }
  30. function load_video {
  31.   insmod vbe
  32.   insmod vga
  33.   insmod video_bochs
  34.   insmod video_cirrus
  35. }
  36. insmod part_msdos
  37. insmod ext2
  38. set root='(/dev/sda,msdos8)'
  39. search --no-floppy --fs-uuid --set=root 9c9044f2-0ef9-49cc-8c34-0c50143b15cd
  40. if loadfont /usr/share/grub/unicode.pf2 ; then
  41.   set gfxmode=auto
  42.   load_video
  43.   insmod gfxterm
  44. fi
  45. terminal_output gfxterm
  46. insmod part_msdos
  47. insmod ext2
  48. set root='(/dev/sda,msdos8)'
  49. search --no-floppy --fs-uuid --set=root 9c9044f2-0ef9-49cc-8c34-0c50143b15cd
  50. set locale_dir=($root)/boot/grub/locale
  51. set lang=zh_CN
  52. insmod gettext
  53. if [ "${recordfail}" = 1 ]; then
  54.   set timeout=-1
  55. else
  56.   set timeout=10
  57. fi
  58. ### END /etc/grub.d/00_header ###
  59. ### BEGIN /etc/grub.d/05_debian_theme ###
  60. insmod part_msdos
  61. insmod ext2
  62. set root='(/dev/sda,msdos8)'
  63. search --no-floppy --fs-uuid --set=root 9c9044f2-0ef9-49cc-8c34-0c50143b15cd
  64. insmod png
  65. if background_image /boot/grub/linuxdeepin.png; then
  66.   true
  67. else
  68.   set menu_color_normal=white/black
  69.   set menu_color_highlight=black/light-gray
  70. fi
  71. ### END /etc/grub.d/05_debian_theme ###
  72. ### BEGIN /etc/grub.d/06_deepin_theme ###
  73. insmod part_msdos
  74. insmod ext2
  75. set root='(/dev/sda,msdos8)'
  76. search --no-floppy --fs-uuid --set=root 9c9044f2-0ef9-49cc-8c34-0c50143b15cd
  77. insmod png
  78. if background_image /boot/grub/linuxdeepin.png ; then
  79.   set color_normal=white/black
  80.   set color_highlight=white/light-gray
  81. else
  82.   set menu_color_normal=white/black
  83.   set menu_color_highlight=white/light-gray
  84. fi
  85. ### END /etc/grub.d/06_deepin_theme ###
  86. ### BEGIN /etc/grub.d/10_linux ###
  87. if [ ${recordfail} != 1 ]; then
  88.   if [ -e ${prefix}/gfxblacklist.txt ]; then
  89.     if hwmatch ${prefix}/gfxblacklist.txt 3; then
  90.       if [ ${match} = 0 ]; then
  91.         set linux_gfx_mode=keep
  92.       else
  93.         set linux_gfx_mode=text
  94.       fi
  95.     else
  96.       set linux_gfx_mode=text
  97.     fi
  98.   else
  99.     set linux_gfx_mode=keep
  100.   fi
  101. else
  102.   set linux_gfx_mode=text
  103. fi
  104. export linux_gfx_mode
  105. if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
  106. menuentry 'Linux Deepin 11.06.1 32-bit, 2.6.38-13-generic (/dev/sda8)' --class linuxdeepin --class gnu-linux --class gnu --class os {
  107.         recordfail
  108.         set gfxpayload=$linux_gfx_mode
  109.         insmod part_msdos
  110.         insmod ext2
  111.         set root='(/dev/sda,msdos8)'
  112.         search --no-floppy --fs-uuid --set=root 9c9044f2-0ef9-49cc-8c34-0c50143b15cd
  113.         linux        /boot/vmlinuz-2.6.38-13-generic root=UUID=9c9044f2-0ef9-49cc-8c34-0c50143b15cd ro   quiet splash vt.handoff=7
  114.         initrd        /boot/initrd.img-2.6.38-13-generic
  115. }
  116. menuentry 'Linux Deepin 11.06.1 32-bit, 2.6.38-13-generic (/dev/sda8) -- recovery mode' --class linuxdeepin --class gnu-linux --class gnu --class os {
  117.         recordfail
  118.         set gfxpayload=$linux_gfx_mode
  119.         insmod part_msdos
  120.         insmod ext2
  121.         set root='(/dev/sda,msdos8)'
  122.         search --no-floppy --fs-uuid --set=root 9c9044f2-0ef9-49cc-8c34-0c50143b15cd
  123.         echo        'Loading Linux 2.6.38-13-generic ...'
  124.         linux        /boot/vmlinuz-2.6.38-13-generic root=UUID=9c9044f2-0ef9-49cc-8c34-0c50143b15cd ro single
  125.         echo        'Loading initial ramdisk ...'
  126.         initrd        /boot/initrd.img-2.6.38-13-generic
  127. }
  128. submenu "Previous Linux versions" {
  129. menuentry 'Linux Deepin 11.06.1 32-bit, 2.6.38-11-generic (/dev/sda8)' --class linuxdeepin --class gnu-linux --class gnu --class os {
  130.         recordfail
  131.         set gfxpayload=$linux_gfx_mode
  132.         insmod part_msdos
  133.         insmod ext2
  134.         set root='(/dev/sda,msdos8)'
  135.         search --no-floppy --fs-uuid --set=root 9c9044f2-0ef9-49cc-8c34-0c50143b15cd
  136.         linux        /boot/vmlinuz-2.6.38-11-generic root=UUID=9c9044f2-0ef9-49cc-8c34-0c50143b15cd ro   quiet splash vt.handoff=7
  137.         initrd        /boot/initrd.img-2.6.38-11-generic
  138. }
  139. menuentry 'Linux Deepin 11.06.1 32-bit, 2.6.38-11-generic (/dev/sda8) -- recovery mode' --class linuxdeepin --class gnu-linux --class gnu --class os {
  140.         recordfail
  141.         set gfxpayload=$linux_gfx_mode
  142.         insmod part_msdos
  143.         insmod ext2
  144.         set root='(/dev/sda,msdos8)'
  145.         search --no-floppy --fs-uuid --set=root 9c9044f2-0ef9-49cc-8c34-0c50143b15cd
  146.         echo        'Loading Linux 2.6.38-11-generic ...'
  147.         linux        /boot/vmlinuz-2.6.38-11-generic root=UUID=9c9044f2-0ef9-49cc-8c34-0c50143b15cd ro single
  148.         echo        'Loading initial ramdisk ...'
  149.         initrd        /boot/initrd.img-2.6.38-11-generic
  150. }
  151. }
  152. ### END /etc/grub.d/10_linux ###
  153. ### BEGIN /etc/grub.d/10_lupin ###
  154. ### END /etc/grub.d/10_lupin ###
  155. ### BEGIN /etc/grub.d/20_linux_xen ###
  156. ### END /etc/grub.d/20_linux_xen ###
  157. ### BEGIN /etc/grub.d/30_os-prober ###
  158. menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
  159.         insmod part_msdos
  160.         insmod ntfs
  161.         set root='(/dev/sda,msdos1)'
  162.         search --no-floppy --fs-uuid --set=root 44CE7F13CE7EFD0C
  163.         chainloader +1
  164. }
  165. ### END /etc/grub.d/30_os-prober ###
  166. ### BEGIN /etc/grub.d/40_custom ###
  167. # This file provides an easy way to add custom menu entries.  Simply type the
  168. # menu entries you want to add after this comment.  Be careful not to change
  169. # the 'exec tail' line above.
  170. ### END /etc/grub.d/40_custom ###
  171. ### BEGIN /etc/grub.d/41_custom ###
  172. if [ -f  $prefix/custom.cfg ]; then
  173.   source $prefix/custom.cfg;
  174. fi
  175. ### END /etc/grub.d/41_custom ###
Copy the Code
Reply Favorite View the author
All Replies
JoveYu
deepin
2011-11-20 17:54
#1
一些内核信息升级后,会保留原来版本的linux到另一个启动项里
Reply View the author
s.******[email protected]
deepin
2011-11-20 20:03
#2
不管它。
Reply View the author
Light
deepin
2011-11-23 07:34
#3
清理一下旧版内核
Reply View the author
sevenez
deepin
2011-11-29 17:15
#4
清理一下旧版内核
用ubuntu-tweak吗?试一试,谢谢楼上各位
Reply View the author