| How can I modify the contents of initrd1.img from Clonezilla live? |
The file initrd1.img from the Clonezilla live is not a ext2 file system, it's cpio format. Therefore you can not mount it, instead you have to do something like this:
(1) mkdir ~/tmp/initrd; cd ~/tmp/initrd
(2) zcat initrd1.img | cpio -idm
Then you can edit the files in ~/tmp/initrd. After that, you can use the following command to pack it as new initrd1.img:
(3) cd ~/tmp/initrd
(4) find . | cpio --quiet -o -H newc | gzip -9 > ../initrd1.img
Then the new one is in ~/tmp/initrd1.img
|
|