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