免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 991 | 回复: 2
打印 上一主题 下一主题

[系统安装] 大神帮忙看下,menu.lst哪里不对? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2016-03-01 13:45 |只看该作者 |倒序浏览
本帖最后由 edcps 于 2016-03-01 13:55 编辑

title Install Ubuntu
root (hd0,0)
kernel (hd0,0)/casper/vmlinuz boot=casper iso-scan/filename=/ubuntukylin-14.04.2-desktop-i386.iso ro quiet splash locale=zh_CN.UTF-8
initrd (hd0,0)/casper/initrd.lz

title Ubuntu 14.04
find --set-root --ignore-floppies --ignore-cd /vmlinuz-3.16.0-30-generic
uuid ()
kernel /vmlinuz-3.16.0-30-generic root=/dev/sda6 ro quiet splash rootdelay=60
initrd /initrd.img-3.16.0-30-generic


前半部分没问题,系统也装上了,但就是无法引导安装后的系统,应该是红色部分有错误,到底哪里错了?(硬盘原有fat32两个区,一个ntfs区,剩余装ubuntu时又分成---/,/home,/boot,/swap四个,无windows系统)

求职 : Linux运维
论坛徽章:
203
拜羊年徽章
日期:2015-03-03 16:15:432015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:57:092015小元宵徽章
日期:2015-03-06 15:58:182015年亚洲杯之约旦
日期:2015-04-05 20:08:292015年亚洲杯之澳大利亚
日期:2015-04-09 09:25:552015年亚洲杯之约旦
日期:2015-04-10 17:34:102015年亚洲杯之巴勒斯坦
日期:2015-04-10 17:35:342015年亚洲杯之日本
日期:2015-04-16 16:28:552015年亚洲杯纪念徽章
日期:2015-04-27 23:29:17操作系统版块每日发帖之星
日期:2015-06-06 22:20:00操作系统版块每日发帖之星
日期:2015-06-09 22:20:00
2 [报告]
发表于 2016-03-01 16:38 |只看该作者
但是RH用的配置文件是grub.conf, Suse用的是menu.lst

论坛徽章:
223
2022北京冬奥会纪念版徽章
日期:2015-08-10 16:30:32操作系统版块每日发帖之星
日期:2016-05-10 19:22:58操作系统版块每日发帖之星
日期:2016-02-18 06:20:00操作系统版块每日发帖之星
日期:2016-03-01 06:20:00操作系统版块每日发帖之星
日期:2016-03-02 06:20:0015-16赛季CBA联赛之上海
日期:2019-09-20 12:29:3219周年集字徽章-周
日期:2019-10-01 20:47:4815-16赛季CBA联赛之八一
日期:2020-10-23 18:30:5320周年集字徽章-20	
日期:2020-10-28 14:14:2615-16赛季CBA联赛之广夏
日期:2023-02-25 16:26:26CU十四周年纪念徽章
日期:2023-04-13 12:23:10操作系统版块每日发帖之星
日期:2016-05-10 19:22:58
3 [报告]
发表于 2016-03-01 21:00 |只看该作者
  1. shell@localhost:~$
  2. shell@localhost:~$ cat /boot/grub/grub.cfg
  3. #
  4. # DO NOT EDIT THIS FILE
  5. #
  6. # It is automatically generated by grub-mkconfig using templates
  7. # from /etc/grub.d and settings from /etc/default/grub
  8. #

  9. ### BEGIN /etc/grub.d/00_header ###
  10. if [ -s $prefix/grubenv ]; then
  11.   set have_grubenv=true
  12.   load_env
  13. fi
  14. if [ "${next_entry}" ] ; then
  15.    set default="${next_entry}"
  16.    set next_entry=
  17.    save_env next_entry
  18.    set boot_once=true
  19. else
  20.    set default="0"
  21. fi

  22. if [ x"${feature_menuentry_id}" = xy ]; then
  23.   menuentry_id_option="--id"
  24. else
  25.   menuentry_id_option=""
  26. fi

  27. export menuentry_id_option

  28. if [ "${prev_saved_entry}" ]; then
  29.   set saved_entry="${prev_saved_entry}"
  30.   save_env saved_entry
  31.   set prev_saved_entry=
  32.   save_env prev_saved_entry
  33.   set boot_once=true
  34. fi

  35. function savedefault {
  36.   if [ -z "${boot_once}" ]; then
  37.     saved_entry="${chosen}"
  38.     save_env saved_entry
  39.   fi
  40. }
  41. function load_video {
  42.   if [ x$feature_all_video_module = xy ]; then
  43.     insmod all_video
  44.   else
  45.     insmod efi_gop
  46.     insmod efi_uga
  47.     insmod ieee1275_fb
  48.     insmod vbe
  49.     insmod vga
  50.     insmod video_bochs
  51.     insmod video_cirrus
  52.   fi
  53. }

  54. if [ x$feature_default_font_path = xy ] ; then
  55.    font=unicode
  56. else
  57. insmod part_msdos
  58. insmod xfs
  59. set root='hd0,msdos2'
  60. if [ x$feature_platform_search_hint = xy ]; then
  61.   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  21c8e64e-1e8b-4fd5-8b11-149aec416de4
  62. else
  63.   search --no-floppy --fs-uuid --set=root 21c8e64e-1e8b-4fd5-8b11-149aec416de4
  64. fi
  65.     font="/usr/share/grub/unicode.pf2"
  66. fi

  67. if loadfont $font ; then
  68.   set gfxmode=auto
  69.   load_video
  70.   insmod gfxterm
  71.   set locale_dir=$prefix/locale
  72.   set lang=en_US
  73.   insmod gettext
  74. fi
  75. terminal_output gfxterm
  76. if [ "${recordfail}" = 1 ] ; then
  77.   set timeout=30
  78. else
  79.   if [ x$feature_timeout_style = xy ] ; then
  80.     set timeout_style=menu
  81.     set timeout=5
  82.   # Fallback normal timeout code in case the timeout_style feature is
  83.   # unavailable.
  84.   else
  85.     set timeout=5
  86.   fi
  87. fi
  88. ### END /etc/grub.d/00_header ###

  89. ### BEGIN /etc/grub.d/05_debian_theme ###
  90. insmod part_msdos
  91. insmod xfs
  92. set root='hd0,msdos2'
  93. if [ x$feature_platform_search_hint = xy ]; then
  94.   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  21c8e64e-1e8b-4fd5-8b11-149aec416de4
  95. else
  96.   search --no-floppy --fs-uuid --set=root 21c8e64e-1e8b-4fd5-8b11-149aec416de4
  97. fi
  98. insmod png
  99. if background_image /usr/share/images/desktop-base/lines-grub.png; then
  100.   set color_normal=white/black
  101.   set color_highlight=black/white
  102. else
  103.   set menu_color_normal=cyan/blue
  104.   set menu_color_highlight=white/blue
  105. fi
  106. ### END /etc/grub.d/05_debian_theme ###

  107. ### BEGIN /etc/grub.d/10_linux ###
  108. function gfxmode {
  109.         set gfxpayload="${1}"
  110. }
  111. set linux_gfx_mode=
  112. export linux_gfx_mode
  113. menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-21c8e64e-1e8b-4fd5-8b11-149aec416de4' {
  114.         load_video
  115.         insmod gzio
  116.         if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  117.         insmod part_msdos
  118.         insmod xfs
  119.         set root='hd0,msdos2'
  120.         if [ x$feature_platform_search_hint = xy ]; then
  121.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  21c8e64e-1e8b-4fd5-8b11-149aec416de4
  122.         else
  123.           search --no-floppy --fs-uuid --set=root 21c8e64e-1e8b-4fd5-8b11-149aec416de4
  124.         fi
  125.         echo        'Loading Linux 4.3.0-1-amd64 ...'
  126.         linux        /boot/vmlinuz-4.3.0-1-amd64 root=UUID=21c8e64e-1e8b-4fd5-8b11-149aec416de4 ro initrd=/install/initrd.gz quiet
  127.         echo        'Loading initial ramdisk ...'
  128.         initrd        /boot/initrd.img-4.3.0-1-amd64
  129. }
  130. submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-21c8e64e-1e8b-4fd5-8b11-149aec416de4' {
  131.         menuentry 'Debian GNU/Linux, with Linux 4.3.0-1-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.3.0-1-amd64-advanced-21c8e64e-1e8b-4fd5-8b11-149aec416de4' {
  132.                 load_video
  133.                 insmod gzio
  134.                 if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  135.                 insmod part_msdos
  136.                 insmod xfs
  137.                 set root='hd0,msdos2'
  138.                 if [ x$feature_platform_search_hint = xy ]; then
  139.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  21c8e64e-1e8b-4fd5-8b11-149aec416de4
  140.                 else
  141.                   search --no-floppy --fs-uuid --set=root 21c8e64e-1e8b-4fd5-8b11-149aec416de4
  142.                 fi
  143.                 echo        'Loading Linux 4.3.0-1-amd64 ...'
  144.                 linux        /boot/vmlinuz-4.3.0-1-amd64 root=UUID=21c8e64e-1e8b-4fd5-8b11-149aec416de4 ro initrd=/install/initrd.gz quiet
  145.                 echo        'Loading initial ramdisk ...'
  146.                 initrd        /boot/initrd.img-4.3.0-1-amd64
  147.         }
  148.         menuentry 'Debian GNU/Linux, with Linux 4.3.0-1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.3.0-1-amd64-recovery-21c8e64e-1e8b-4fd5-8b11-149aec416de4' {
  149.                 load_video
  150.                 insmod gzio
  151.                 if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  152.                 insmod part_msdos
  153.                 insmod xfs
  154.                 set root='hd0,msdos2'
  155.                 if [ x$feature_platform_search_hint = xy ]; then
  156.                   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  21c8e64e-1e8b-4fd5-8b11-149aec416de4
  157.                 else
  158.                   search --no-floppy --fs-uuid --set=root 21c8e64e-1e8b-4fd5-8b11-149aec416de4
  159.                 fi
  160.                 echo        'Loading Linux 4.3.0-1-amd64 ...'
  161.                 linux        /boot/vmlinuz-4.3.0-1-amd64 root=UUID=21c8e64e-1e8b-4fd5-8b11-149aec416de4 ro single initrd=/install/initrd.gz
  162.                 echo        'Loading initial ramdisk ...'
  163.                 initrd        /boot/initrd.img-4.3.0-1-amd64
  164.         }
  165. }

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

  167. ### BEGIN /etc/grub.d/20_linux_xen ###

  168. ### END /etc/grub.d/20_linux_xen ###

  169. ### BEGIN /etc/grub.d/30_os-prober ###
  170. menuentry 'Microsoft Windows XP Professional (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-12620B37611FBDAF' {
  171.         insmod part_msdos
  172.         insmod ntfs
  173.         set root='hd0,msdos1'
  174.         if [ x$feature_platform_search_hint = xy ]; then
  175.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  12620B37611FBDAF
  176.         else
  177.           search --no-floppy --fs-uuid --set=root 12620B37611FBDAF
  178.         fi
  179.         parttool ${root} hidden-
  180.         drivemap -s (hd0) ${root}
  181.         chainloader +1
  182. }
  183. ### END /etc/grub.d/30_os-prober ###

  184. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  185. ### END /etc/grub.d/30_uefi-firmware ###

  186. ### BEGIN /etc/grub.d/40_custom ###
  187. # This file provides an easy way to add custom menu entries.  Simply type the
  188. # menu entries you want to add after this comment.  Be careful not to change
  189. # the 'exec tail' line above.
  190. ### END /etc/grub.d/40_custom ###

  191. ### BEGIN /etc/grub.d/41_custom ###
  192. if [ -f  ${config_directory}/custom.cfg ]; then
  193.   source ${config_directory}/custom.cfg
  194. elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  195.   source $prefix/custom.cfg;
  196. fi
  197. ### END /etc/grub.d/41_custom ###
  198. shell@localhost:~$
  199. shell@localhost:~$

复制代码
我这个是debian的,你参考一下吧,不玩ubuntu很几年
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP