Initrd
Версія від 19:27, 24 вересня 2009, створена 87.238.157.5 (обговорення) (Created page with 'Разбор initrd gzip -dc /mnt/boot/initrd.img >/tmp/initrd.ext2 mkdir /mnt/initrd mount -o loop /tmp/initrd.ext2 /mnt/initrd посмотреть содержимое ...')
Разбор initrd
gzip -dc /mnt/boot/initrd.img >/tmp/initrd.ext2 mkdir /mnt/initrd mount -o loop /tmp/initrd.ext2 /mnt/initrd
посмотреть содержимое
zcat /boot/initrd-$(uname -r).img | cpio -itv | less
раскрутить
gzip –dc initrd.img >initrd.x cpio –id < initrd.x
разобрать -> добавить -> собрать
1 Decompress. gunzip < initrd.img > initrd.cpio 2. Append files. ls myfile | cpio -oAO initrd.cpio -H newc 3. Recompress. gzip -cz initrd.cpio > initrd.img