°Ô½Ã¹° 259°Ç
   
[redhat6] [KERNEL] INITRD/INITRAMFS ÆíÁýÇϱâ
±Û¾´ÀÌ : theko ³¯Â¥ : 2016-06-28 (È­) 11:57 Á¶È¸ : 2812

Table of contents

  1. initrd ? initramfs ?

  2. initrd, initramfs ±¸ºÐ ¹æ¹ý

  3. initrd ÆíÁýÇϱâ

  4. initramfs ÆíÁýÇϱâ 



1. initrd ? initramfs ?

  ¾ÐÃà ¹æ¹ýÀÇ Â÷ÀÌ°¡ ÀÖ´Ù´Â °ÍÀº ¾Ë°Ú´Âµ¥ Á¤È®ÇÑ Â÷ÀÌÁ¡Àº Àß ¸ð¸£°ÚÀ½. ÀÌ°Ç ³ªÁß¿¡ ¾÷µ¥ÀÌÆ® ÇÒ °ÍÀÓ. 


2. initrd, initramfs ±¸ºÐ ¹æ¹ý

image name : initrd-2.4.19.img.gz


¾Æ·¡¿Í °°ÀÌ ÀԷ½à


  gunzip -c /boot/initrd-2.4.19.img.gz | file -


¾Æ·¡¿Í °°ÀÌ ³ª¿À¸é initrd


  "/dev/stdin: Linux rev 1.0 ext2 filesystem data"


¾Æ·¡¿Í °°ÀÌ ³ª¿À¸é initramfs ÀÓ. 


"/dev/stdin: ASCII cpio archive (SVR4 with no CRC)"



3. initrd ÆíÁýÇϱâ

3-1. ¾ÐÃâ Ç®±â & ¸¶¿îÆ®

  step 1. mkdir temp

  step 2. gunzip -c /boot/initrd-2.4.19.img.gz > initrd.img

  step 3. mount -t ext2 -o loop initrd.img temp/


3-2. ´Ù½Ã ¹­±â

  step 1. umount temp

  step 2. gzip -9 -c initrd.img > /boot/initrd-2.4.19.img.gz-NEW


4. initramfs ÆíÁýÇϱâ

4-1. ¾ÐÃâ Ç®±â & ¸¶¿îÆ®

  step 1. mkdir temp

  step 2. cd temp

  step 3. gunzip -c /boot/initrd-2.4.19.img.gz | cpio -i


4-2. ´Ù½Ã ¹­±â

  step 1. pwd

            /root/temp

  step 2. find . | cpio -H newc -o | gzip -9 > /initrd-2.4.19.img.gz-NEW



ÀÌ ³»¿ëÀº, http://backreference.org/2010/07/04/modifying-initrdinitramfs-files/  ÀÇ ³»¿ëÀ» ¹ø¿ª, Á¤¸®ÇÑ °ÍÀÓ. 



Âü°í»çÀÌÆ® : http://poplinux.tistory.com/141


À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com