LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-23-2005, 09:53 AM   #1
Bultot
LQ Newbie
 
Registered: Jan 2005
Posts: 23

Rep: Reputation: 15
mkinitrd with the modules I want


Hi,

I'v been busy installing my debian 'sarge' kernel 2.6.9 for weeks now. My problem is my harddisk. I have a maxtor SATA disk with two partitions formatted as NTFS. The other two are formatted ext3 and one swap.

When I recompile my kernel I HAVE to do that with "make-kpkg --initrd" so it makes a initial ramdisk. The only condition is that I compile my ext3-drivers and sata-drivers as Module. I think that when I compile them as a module my initrd uses the modules in the ramdisk.

What I want is to know how to make my own initrd with the drivers for sata, ext3 and ntfs(rw). I want to mount my NTFS partition at boot so I think I have to put them in my initrd too.

Then I can make my kernel smaller. (it's now 1,3 mb and my initrd is 4,1 mb)

Can someone explain me which drivers I have to include in my initrd to boot my sata disk and mounting my ntfs.

AND YES, they have to be in the initrd : http://www.linuxquestions.org/questi...78#post1369278

When I use his line, I get this error:
Code:
sarge:/boot# mkinitrd --preload=scsi_mod --preload=sd_mod --with=ata_piix /boot/initrd.img-2.6.9 2.6.9
/usr/sbin/mkinitrd: illegal option -- -

$Id: mkinitrd,v 1.201 2004/05/16 22:00:48 herbert Exp $

Usage: /usr/sbin/mkinitrd [OPTION]... <-o outfile> [version]

Options:
  -d confdir  Specify an alternative configuration directory.
  -k          Keep temporary directory used to make the image.
  -m command  Set the command to make an initrd image.
  -o outfile  Write to outfile.
  -r root     Override ROOT setting in mkinitrd.conf.

See mkinitrd(8) for further details.
This is my boot list:
Code:
sarge:/boot# ls -al
total 19424
drwxr-xr-x   3 root root    4096 2005-01-22 21:18 .
drwxr-xr-x  22 root root    4096 2005-01-22 00:59 ..
-rw-r--r--   1 root root   55789 2004-11-25 05:22 config-2.6.8-1-386
-rw-r--r--   1 root root   47138 2005-01-22 20:39 config-2.6.9
-rw-r--r--   1 root root   56183 2005-01-08 19:41 config-2.6.9-2-686-smp
drwxr-xr-x   2 root root    4096 2005-01-22 23:55 grub
-rw-r--r--   1 root root 4395008 2005-01-21 23:01 initrd.img-2.6.8-1-386
-rw-r--r--   1 root root 4169728 2005-01-22 21:18 initrd.img-2.6.9
-rw-r--r--   1 root root 4792320 2005-01-21 23:10 initrd.img-2.6.9-2-686-smp
-rw-r--r--   1 root root  864503 2004-11-25 06:06 System.map-2.6.8-1-386
-rw-r--r--   1 root root  893728 2005-01-22 21:13 System.map-2.6.9
-rw-r--r--   1 root root  822824 2005-01-09 00:46 System.map-2.6.9-2-686-smp
-rw-r--r--   1 root root 1091964 2004-11-25 06:06 vmlinuz-2.6.8-1-386
-rw-r--r--   1 root root 1359732 2005-01-22 21:13 vmlinuz-2.6.9
-rw-r--r--   1 root root 1252573 2005-01-09 00:46 vmlinuz-2.6.9-2-686-smp
The 2.6.8-1-386 image is the image which came with the installation.
The 2.6.9-2-686 image is the image I downloaded to recompile
The 2.6.9 image is the image I compiled.

Thanks in advance,

Robin Bultot

Last edited by Bultot; 01-23-2005 at 08:01 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
mkinitrd vmniza Linux - General 1 03-10-2004 02:05 AM
mkinitrd welsh2000836 Debian 2 08-31-2003 11:03 AM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - General 1 01-24-2002 01:50 AM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - Newbie 2 01-24-2002 01:40 AM
mkinitrd DavidPhillips Linux - General 0 12-20-2001 12:07 PM


All times are GMT -5. The time now is 02:51 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration