欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

一些grub引导

程序员文章站 2022-07-12 21:18:24
...
title           Ubuntu, kernel 2.6.15-23-386
root            (hd0,1)
kernel          /boot/vmlinuz-2.6.15-23-386 root=/dev/hdb2 ro quiet splash
initrd          /boot/initrd.img-2.6.15-23-386
savedefault
boot

title           Ubuntu, kernel 2.6.15-23-386 (recovery mode)
root            (hd0,1)
kernel          /boot/vmlinuz-2.6.15-23-386 root=/dev/hdb2 ro single
initrd          /boot/initrd.img-2.6.15-23-386
boot

title           Ubuntu, memtest86+
root            (hd0,1)
kernel          /boot/memtest86+.bin
boot

title Slackware 12
rootnoverify (hd0,3)
kernel /boot/vmlinuz root=/dev/hdb4

# (0) Arch Linux
title  Arch Linux
root   (hd0,3)
kernel /boot/vmlinuz26 root=/dev/sda4 ro
initrd /boot/kernel26.img

# (1) Arch Linux
title  Arch Linux Fallback
root   (hd0,3)
kernel /boot/vmlinuz26 root=/dev/sda4 ro
initrd /boot/kernel26-fallback.img

title Gentoo 2007
kernel (hd0,4)/isolinux/gentoo root=/dev/ram0 init=/linuxrc dokeymap looptype=squashfs loop=/image.squashfs cdroot vga=791 splash=silent,theme:livecd-2007.0 CONSOLE=/dev/tty1 nox
initrd (hd0,4)/isolinux/gentoo.igz

title ArchLinux Install
kernel          (hd0,4)/boot/vmlinuz
initrd          (hd0,4)/boot/initrd.img


title Install Slackware
kernel (hd0,4)/slkboot/bzImage load_ramdisk=1 prompt_ramdisk=0 rw SLACK_KERNEL=huge.s
initrd (hd0,4)/slkboot/initrd.img

splashimage=(hd0,3)/boot/grub/splash.xpm.gz
title=Gentoo Linux
root (hd0,3)
kernel /boot/kernel-genkernel-x86-2.6.19-gentoo-r5 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hdb4
initrd /boot/initramfs-genkernel-x86-2.6.19-gentoo-r5


default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title=Gentoo Linux 2.6.19-r5
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.19-gentoo-r5 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3 udev
initrd /boot/initramfs-genkernel-x86-2.6.19-gentoo-r5

# 只有在双启动的情况下才需要以下内容
title=Windows XP
rootnoverify (hd0,5)
makeactive
chainloader +1


# emerge grub
# nano -w /boot/grub/grub.conf
# grub-install /dev/hda


        Device Boot    Start       End    Blocks   Id  System
        /dev/hda1 *        1        14    105808+  83  Linux
        /dev/hda2         15        81    506520   82  Linux swap
        /dev/hda3         82      3876  28690200   83  Linux        

        # mke2fs /dev/hda1        ——以ext2文件系统格式化分区1
        # mke2fs -j /dev/hda3        ——以ext3文件系统格式化分区3
        # mkswap /dev/hda2        ——以linux swap文件系统格式化分区2
        # swapon /dev/hda2        ——激活交换分区


1、Device Drivers-->SCSI device support-->SCSI low-level drivers-->BusLogic SCSI support(使用SCSI hard disk时必须)
2、File systems-->Reiserfs support(安装gentoo手册把/分区设为Reiserfs的话必须)
3、File systems-->DOS/FAT/NT Filesystems-->NTFS file system support(若要支持NTFS分区)
4、File systems-->Native Language Support-->Simplified Chinese charset (CP936, GB2312)(支持简体中文)
5、File systems-->Native Language Support-->Traditional Chinese charset (Big5)(支持繁体中文)