Find the answer to your Linux question:
Results 1 to 9 of 9
Hi Guys, I was reading through the notes about md and it states When md is compiled into the kernel (not as module), partitions of type 0xfd are scanned and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! lonewolff's Avatar
    Join Date
    May 2008
    Posts
    32

    Building the kernel


    Hi Guys,

    I was reading through the notes about md and it states

    When md is compiled into the kernel (not as module), partitions of type 0xfd are scanned and automatically assembled into RAID arrays.

    This leads me to my big question. How do you build RAID into the kernel and not as a module?

    I can build the kernel from source with no problems but I do not know how to add things into the kernel.

    Any guidance would by greatly appreciated

  2. #2
    Just Joined! lonewolff's Avatar
    Join Date
    May 2008
    Posts
    32
    Really? No one knows how to compile the kernel here?

  3. #3
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Quote Originally Posted by lonewolff View Post
    Any guidance would by greatly appreciated
    My own favorite kernel build guide has always been this one:

    Digital Hermit - Kernel-Build-HOWTO

    I believe it should help you get your task accomplished.
    oz

  4. $spacer_open
    $spacer_close
  5. #4
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Gentoo always has good helpful pages. You might need to change a few commands around but this should help you figure out what you are doing.
    RAID/Software - Gentoo Linux Wiki
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  6. #5
    Just Joined! lonewolff's Avatar
    Join Date
    May 2008
    Posts
    32
    Thanks for the reply guys.

    The thing is, though, that I need RAID built into the kernel itself (not included as a module). Any ideas on how one would do this? I am a noob wehen it comes to linux.

    I have managed to build a kernel from scratch and it works well. But, RAID is included as a module (not built into the kernel directly).

  7. #6
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    On my Gentoo system, all I need to do is answer Y, N or M for module. I guess it depends on how you launched the kernel config. Did you do make xconfig or make menuconfig?
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  8. #7
    Just Joined! lonewolff's Avatar
    Join Date
    May 2008
    Posts
    32
    Mike! You are a life saver. That looks like exactly what I need to do

    Man, I asked this question in many different forums and no one knew the answer.

    Thanks heaps, I am compiliing now, so I will let you know.

    Thanks again.

  9. #8
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    How to include built-in drivers vs modules in the kernel is covered in the guide that I posted for you above. You really should read it when you get a chance if you will be continuing to build kernels because it's full of good info.

    Good luck with that new kernel build...
    oz

  10. #9
    Just Joined! lonewolff's Avatar
    Join Date
    May 2008
    Posts
    32
    Hi Oz, I am getting there. I now have raid built in to the kernel natively.

    But, I'll also take a look at the guide you have posted. Thanks again for your help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •