Linux initrd 수정법

열람하고 압축을 푸는 과정
# mkdir /mnt/initrd
# cd /mnt/initrd

# cp /boot/initrd-2.6.14.2.img initrd-2.6.14.2.img.gz
# gzip -d initrd-2.6.14.2.img.gz
# cpio -i --make-directories < initrd-2.6.14.2.img

# ls -l
total 32
drwx------  2 root root 4096 Mar 10 19:38 bin
drwx------  4 root root 4096 Mar 10 19:40 dev
drwx------  3 root root 4096 Mar 10 19:38 etc
-rwx------  1 root root 2439 Mar 10 19:38 init
drwx------  3 root root 4096 Mar 10 19:38 lib
drwx------  2 root root 4096 Mar 10 19:38 proc
lrwxrwxrwx  1 root root    3 Mar 10 19:38 sbin -> bin
drwx------  2 root root 4096 Mar 10 19:38 sys
drwx------  2 root root 4096 Mar 10 19:38 sysroot

수정한 내용 저장하기
# find . | cpio -o -c |gzip -9 > /boot/initrd-custom.img

그리고 grub 를 통해 변경된 내용 적용

참고링크
http://www.ibm.com/developerworks/linux/library/l-initrd.html
http://kldp.org/node/47093
http://sourceforge.net/projects/souptonuts/

이 글과 관련있는 글을 자동검색한 결과입니다 [?]

by 무혼인형 | 2009/03/10 20:04 | 트랙백 | 핑백(1) | 덧글(2)

트랙백 주소 : http://poorpuppet.egloos.com/tb/4085976
☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]
Linked at 시험さま : Linux ini.. at 2009/05/23 17:23

... Linux initrd 수정법 http://poorpuppet.egloos.com/4085976driver disk 만들 때와 거의 같은 방식이다.cpio로 묶어서 gzip 압축. ... more

Commented by NePHiliM at 2009/03/10 21:24
무슨말인지 모르곘다!! ㅠㅠ
-네피
Commented by 아스라다 at 2009/04/07 15:33
감사합니다. 소중히 담아갈께요.

:         :

:

비공개 덧글

◀ 이전 페이지          다음 페이지 ▶