LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-23-2005, 07:29 PM   #1
trscookie
Member
 
Registered: Apr 2004
Location: oxford
Distribution: gentoo
Posts: 463

Rep: Reputation: 30
loading sata modules at boot


hi all, im sorry if this thread subject has been coverd a million times but i cant seem to find the right answer, ive installed the pre release of yoper 2.2 then ive installed the new kernel 2.6.12.5, originally i had my sata disk as my home directory /dev/sda1.

But when i installed the new kernel it wont mount on boot i have to wait until the system has fully loaded then mount /dev/sda1 /home manualy. i think that the sata module is ata_piix, is there a way to make it mount when it loads fstab, i currently have the mount command in rc.sysinit so it loads at the end of the boot process, but i would like to know how to do it properly. thank you.
 
Old 08-27-2005, 05:56 AM   #2
sohmc
Member
 
Registered: Aug 2002
Location: Alexandria
Distribution: ubuntu 12.04.2
Posts: 217

Rep: Reputation: 30
You have to make an initimg or compile the driver into the kernel.

To make an initimg, go to /boot/.

Then type:
Code:
# mkinitrd /boot/initrd-2.6.12.5.img 2.6.12.5
It should automagically put the sata drivers in the image. Then you need to edit your bootloader. I run grub so here's what your kernel entry should look like:
Code:
title sohmc brew (2.6.12.2)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.12.2-sohmc ro root=/dev/sda1
        initrd /boot/initrd-2.6.12.2-sohmc.img
for the curious: an initimg will preload needed modules to mount the root directory. I'm not exactly sure how initimg works, but it will load the necessary modules into an image that the preloader mounts to get the modules. Once the modules are loaded, the image is unloaded and the system continues to load the kernel as normal.

I usually suggest people to compile the drivers to reach the root directory into the kernel, but some may not want to do this because it significantly increases the size of the kernel. I perfer the compiled-in method, only because it's a bit faster, and I'm not running linux off a floppy.

Last edited by sohmc; 08-27-2005 at 06:00 AM.
 
Old 08-30-2005, 09:50 AM   #3
trscookie
Member
 
Registered: Apr 2004
Location: oxford
Distribution: gentoo
Posts: 463

Original Poster
Rep: Reputation: 30
Talking

spot on mate thanks for that!!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No Modules loading at boot. mpyusko Slackware 11 09-25-2006 03:39 PM
Loading modules at boot paddyjoy Linux - Newbie 2 06-27-2005 09:23 PM
Loading kernel modules during boot. alexeyak Fedora 4 12-20-2004 09:04 AM
loading modules at boot Davidian1024 Linux From Scratch 3 06-25-2004 12:19 AM
loading modules at boot qanopus Linux - General 2 11-29-2002 04:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration