Difference between revisions of "BCCD:Initrd"

From Earlham CS Department
Jump to navigation Jump to search
m
 
Line 17: Line 17:
 
* <tt>mkdir -p /mnt/initrd/lib/modules/2.4.32</tt>
 
* <tt>mkdir -p /mnt/initrd/lib/modules/2.4.32</tt>
 
* <tt>cp -R /lib/modules/2.4.32/* /mnt/initrd/lib/modules/2.4.32</tt>
 
* <tt>cp -R /lib/modules/2.4.32/* /mnt/initrd/lib/modules/2.4.32</tt>
 +
 +
Unmount and zip.
 +
* <tt>umount /mnt/initrd</tt>
 +
* <tt>gzip initrd-2.4.32.img</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.

Latest revision as of 02:48, 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

Unmount and zip.

  • umount /mnt/initrd
  • gzip initrd-2.4.32.img

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