LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1081|回复: 4

谁能把menu.lst共享以下?

[复制链接]
发表于 2009-8-16 14:33:46 | 显示全部楼层 |阅读模式
我用grub4dos,谁能把menu.lst共享以下? 最近的,补充以下,内河用的是huge and smp
刚装完系统出现,no find init ,需要制定init option
 楼主| 发表于 2009-8-16 14:43:10 | 显示全部楼层
我的mensu.list

color cyan/blue white/blue
timeout 5

title Slackware
root (hd0,6)
kernel /vmlinuz root=/dev/sda7
boot

sda7是挂载boot的,ext2分取
sda9 是/的,resf分区
回复 支持 反对

使用道具 举报

发表于 2009-8-16 17:10:52 | 显示全部楼层
# GRUB configuration file '/boot/grub/menu.lst'.
# generated by 'grubconfig'.  Thu Mar 20 17:42:13 2008
#                                                     
# The backup copy of the MBR for drive '/dev/sda' is  
# here '/boot/grub/mbr.sda.4041'.  You can restore it like this.
# dd if=mbr.sda.4041 of=/dev/sda bs=512 count=1                 
#                                                               
# Start GRUB global section                                    
#timeout 30                                                     
#color light-gray/blue black/light-gray                        
# End GRUB global section                                       
# Other bootable partition config begins                        

default 3
timeout 8
color light-gray/blue

###
title --- Slackware64 ---
root (hd0)               
###                     
title Slackware64-least-kernel
  root (hd0,8)               
  kernel /boot/vmlinuz root=/dev/sda9 vga=773

title Slackware64-last-kernel
  root (hd0,8)               
  kernel /boot/vmlinuz.old root=/dev/sda9 vga=773

title Slackware64-generic-kernel
  root (hd0,8)                  
  kernel /boot/vmlinuz-generic-2.6.29.6 initrd=/boot/initrd.gz root=/dev/sda9 vga=773
  initrd /boot/initrd.gz                                                            

###
title --- Slackware32 ---
root (hd0)               
###                     
title Slackware Linux lastest kernel
    root (hd0,6)                    
    kernel /boot/vmlinuz root=/dev/sda7 resume=/dev/sda5 vga=773 snd-hda-intel.position_fix=1

title Slackware Linux the last kernel
    root (hd0,6)
    kernel /boot/vmlinuz.old root=/dev/sda7 resume=/dev/sda5 vga=773 snd-hda-intel.position_fix=1

title Slackware Linux 2.6.27.21
    root (hd0,6)
    kernel /boot/vmlinuz-2.6.27.21-slk-based-2 root=/dev/sda7 resume=/dev/sda5 vga=773 snd-hda-intel.position_fix=1

title Slackware Linux 2.6.29
    root (hd0,6)
    kernel /boot/vmlinuz-2.6.29.1-g14-rfkill-nophy-ledon resume=/dev/sda5 root=/dev/sda7 vga=773 snd-hda-intel.position_fix=1

title Official Slackware Linux Kernel
    root (hd0,6)
    kernel /boot/vmlinuz-generic-smp-2.6.29.1-smp initrd=/boot/initrd.gz root=/dev/sda7 vga=773
    initrd /boot/initrd.gz

title --- No Windows at All! ;)
root (hd0)
#title Winows
#    rootnoverify (hd0,1)
#    chainloader (hd0,1)+1

# Linux bootable partition config ends
title --- For help press 'c', type: 'help'
root (hd0)
title --- For usage examples, type: 'cat /boot/grub/grub.txt'
root (hd0)
回复 支持 反对

使用道具 举报

发表于 2009-8-16 18:27:02 | 显示全部楼层
既然都有人贴了,我就补个grub2的吧。(最大的不同在于grub2里第一个分区是hd0,1而不是hd0,0了,后面的分区则跟着顺延)

/boot/grub/grub.cfg
  1. set timeout=5
  2. set default=0
  3. menuentry "Slackware" {
  4. set root=(hd0,7)
  5. linux /boot/vmlinuz root=/dev/sda7
  6. }
  7. menuentry "Windows Server 2003" {
  8. set root=(hd0,1)
  9. chainloader +1
  10. }
复制代码
回复 支持 反对

使用道具 举报

发表于 2009-8-16 22:30:35 | 显示全部楼层
我还在用LILO~
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表