Difference between revisions of "BCCD:Initrd"

From Earlham CS Department
Jump to navigation Jump to search
 
m
Line 1: Line 1:
 
Make a zero'd 16MB file.
 
Make a zero'd 16MB file.
* dd if=/dev/zero of=initrd-2.4.32.img bs=16M count=1
+
* <tt>dd if=/dev/zero of=initrd-2.4.32.img bs=16M count=1</tt>
  
 
Format it with ext2.
 
Format it with ext2.
* mke2fs initrd-2.4.32.img
+
* <tt>mke2fs initrd-2.4.32.img</tt>
  
 
Make the initrd directory.
 
Make the initrd directory.
* sudo mkdir /mnt/initrd
+
* <tt>sudo mkdir /mnt/initrd</tt>
  
 
Mount it over the loopback device:
 
Mount it over the loopback device:
* sudo mount initrd-2.4.32.img /mnt/initrd -o loop
+
* <tt>sudo mount initrd-2.4.32.img /mnt/initrd -o loop</tt>
  
 
Install the modules.
 
Install the modules.
* sudo make modules_install
+
* <tt>sudo make modules_install</tt>
  
 
Copy them over
 
Copy them over
* mkdir -p /mnt/initrd/lib/modules/2.4.32
+
* <tt>mkdir -p /mnt/initrd/lib/modules/2.4.32</tt>
* cp -R /lib/modules/2.4.32/* /mnt/initrd/lib/modules/2.4.32
+
* <tt>cp -R /lib/modules/2.4.32/* /mnt/initrd/lib/modules/2.4.32</tt>
  
 
Then copy the rest of the files over from the old RAM disk.
 
Then copy the rest of the files over from the old RAM disk.

Revision as of 02:46, 26 January 2006

Make a zero'd 16MB file.

  • dd if=/dev/zero of=initrd-2.4.32.img bs=16M count=1

Format it with ext2.

  • mke2fs initrd-2.4.32.img

Make the initrd directory.

  • sudo mkdir /mnt/initrd

Mount it over the loopback device:

  • sudo mount initrd-2.4.32.img /mnt/initrd -o loop

Install the modules.

  • sudo make modules_install

Copy them over

  • mkdir -p /mnt/initrd/lib/modules/2.4.32
  • cp -R /lib/modules/2.4.32/* /mnt/initrd/lib/modules/2.4.32

Then copy the rest of the files over from the old RAM disk.