Difference between revisions of "BCCD:Initrd"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
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> |
+ | |||
+ | 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 01: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.