zoukankan      html  css  js  c++  java
  • grub的安装与配置-------引导redhat grub

    1.安装

    有两种方法:

    a.在联网的情况下,用新立德安装:

    apt-get install grub

    b.在没网的时候,特别是linux网卡驱动没有安装:

    自己从http://packages.ubuntu.com/zh-cn/precise/amd64/grub/download上下载:grub_0.97-29ubuntu66_amd64.deb,随便选个版本就可以

    sudo dpkg -i grub_0.97-29ubuntu66_amd64.deb

    注意:在安装的时候要把grub-pc卸载,sudo dpkg -r grub-pc

    2.引导redhat

    http://www.cnblogs.com/yanzhi123/archive/2012/12/02/2798176.html

    3.在redhat中grub配置

    vim /boot/grub/grub.conf 

    # grub.conf generated by anaconda

    #

    # Note that you do not have to rerun  grub after making changes to this file

    # NOTICE: You have a /boot partition. This means that 

    #               all kernel and initrd paths are relative to /boot/, eg.

    #              root (hd1,0)
    #              kernel /vmlinuz-version ro root=/dev/hdb3
    #              initrd /initrd-version.img
    #boot=/dev/hda
    default=0
    timeout=5     #此处指定倒数几秒
    splashimage=(hd0,2)/grub/splash.xpm.gz
    hiddenmenu
    title redhat (2.6.18-1.2798.fc6) #此处填写系统的名称
        root (hd0,2)
        kernel /vmlinuz-2.6.18-1.2798.fc6 ro root=LABEL=/1 rhgb quiet
        initrd /initrd-2.6.18-1.2798.fc6.img
    title win7 #此处填写第二个系统的名称
        rootnoverify (hd0,0)
        chainloader +1

    eg.

    分区顺序(一块硬盘)如下:

    /       hd0,0

    swap     hd0,1

    系统预留    hd0,2

    win主分区  hd0,3

    。。

  • 相关阅读:
    手势识别 ios
    无题
    核心动画笔记
    Quartz2D的学习2
    Quartz2D的学习1
    NSURLsessionTask
    NSURLSession
    POST请求的两种方式
    网络第一天
    NSThread
  • 原文地址:https://www.cnblogs.com/yanzhi123/p/3381389.html
Copyright © 2011-2022 走看看