نمایش نتایج: از شماره 1 تا 1 , از مجموع 1

موضوع: کامپایل کرنل 2.6.7 w/module-init-tools

Hybrid View

پست قبلی پست قبلی   پست بعدی پست بعدی
  1. #1
    مدیر کل Vahid آواتار ها
    تاریخ عضویت
    Aug 2008
    نوشته ها
    2,724
    تشکر تشکر کرده 
    435
    تشکر تشکر شده 
    6,976
    تشکر شده در
    2,085 پست

    پیش فرض کامپایل کرنل 2.6.7 w/module-init-tools

    Compiling the kernel


    Wanted to try out the 2.6 edition kernel? Never knew how to do it? Well heres how! Includes everything from compiling the kernel to configuring your bootloader.

    Lets Begin!

    cd /usr/src
    wget -c http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.7.tar.bz2
    tar xvfj linux-2.6.7.tar.bz2
    cd linux-2.6.7
    make clean && make mrproper
    make oldconfig ( or make menuconfig )
    make bzImage
    make modules
    make modules_install

    ( i prefer this method rather then just "make" )
    If you get alot of errors about .ko modules when you run make modules_install you need to update your modutils package with module-init-tools, see below.
    Now to copy the files over for the kernel itself.
    cp .config /boot/config-2.6.7
    cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.7
    cp System.map /boot/System.map-2.6.7
    mkinitrd /boot/initrd-2.6.7.img 2.6.7

    You may experience an error such as this:


    /dev/mapper/control: open failed: No such file or directory if you receive that error run the following commands:
    rm -rf /boot/initrd-2.6.7.img
    mkinitrd --omit-lvm-modules /boot/initrd-2.6.7.img 2.6.7

    Now to add it to the grub / lilo configuration.
    [Grub]

    Your config will look something like this. Please note you need to follow the format for your current config.
    title Red Hat Linux (2.6.7)
    root (hd0,0)
    kernel /vmlinuz-2.6.7 ro root=LABEL=/
    initrd /initrd-2.6.7.img
    Add your new entry to the top of the kernel list. Set the default to your working kernel. NOTE: the first kernel in the list is "0". (ex. default=1)
    Now exit. Type "grub" at the bash prompt.
    savedefault --default=0 --once
    issue that at the grub prompt then use quit to exit. Once your reboot you need to go back in and set the default to the 2.6 kernel by setting default=0
    [lilo]

    Your config will look something like this. Please note you need to follow the format for your current config.
    image=/boot/vmlinuz-2.6.7
    label=2.6.7
    append="root=LABEL=/"
    read-only
    initrd=/boot/initrd-2.6.7.img

    Leave the default as is.
    /sbin/lilo -v -v
    /sbin/lilo -R 2.6.7

    Once it reboots and comes back online you can change the default to be 2.6.7 and /sbin/lilo -v -v
    The above tells you how to enable failsafe in your kernels. SO that if the box panics the dc tech does not have to console in he just has to reboot the box.
    How to install module-init-tools:

    cd /usr/src
    wget -c
    http://www.kernel.org/pub/linux/kernel/people/rusty/modules/module-init-tools-3.0.tar.gz
    tar -zxvf module-init-tools-3.0.tar.gz
    cd module-init-tools-3.0
    ./configure --prefix=""
    make moveold
    make install
    ./generate-modprobe.conf /etc/modprobe.conf

    How to determine what boot loader you are using?

    dd if=/dev/hda bs=512 count=1 2>&1 | grep GRUB
    dd if=/dev/hda bs=512 count=1 2>&1 | grep LILO

    one of them will kick back something like:
    root@w00t [~]# dd if=/dev/hda bs=512 count=1 2>&1 | grep GRUB
    Binary file (standard input) matches
    root@w00t [~]#
    which means its using grub.
    برای پیش رفت در علم آسانسوری وجود ندارد پله ها را باید پیاده رفت /./ همیشه این یادتان باشد که دست بالای دست بسیار است.
    يادمان باشد براي يك بار ايستادن صد ها بار افتاده ايم /./ بک آپ مهمترین رمز موفقیت هاستینگ /./ امنیت مطلق نیست.
    ارتباط مستقیم با من :
    Admin -{(@)}- WebHostingTalk . ir

  2. تعداد تشکر ها از Vahid به دلیل پست مفید


اطلاعات موضوع

کاربرانی که در حال مشاهده این موضوع هستند

در حال حاضر 1 کاربر در حال مشاهده این موضوع است. (0 کاربران و 1 مهمان ها)

موضوعات مشابه

  1. پاسخ ها: 9
    آخرين نوشته: October 9th, 2014, 09:31
  2. /etc/init.d/xinetd restart
    توسط NovinSite.ir در انجمن کلوکسو يا ال ايکس ادمين Kloxo or LXAdmin
    پاسخ ها: 8
    آخرين نوشته: January 12th, 2014, 16:17
  3. دریافت ارور Kernel Panic - not synching attempting to kill init
    توسط MahanDev در انجمن سوالات و مشکلات
    پاسخ ها: 7
    آخرين نوشته: May 20th, 2013, 13:33
  4. موقعیت فایل init کجاس ؟
    توسط CYB3R در انجمن سوالات و مشکلات
    پاسخ ها: 4
    آخرين نوشته: January 21st, 2011, 13:42
  5. INIT: no more processes left in this runlevel
    توسط taghikhani در انجمن سوالات و مشکلات
    پاسخ ها: 4
    آخرين نوشته: September 28th, 2010, 17:47

مجوز های ارسال و ویرایش

  • شما نمیتوانید موضوع جدیدی ارسال کنید
  • شما امکان ارسال پاسخ را ندارید
  • شما نمیتوانید فایل پیوست کنید.
  • شما نمیتوانید پست های خود را ویرایش کنید
  •