modifications in a squashfs filesystem
hi,
i have here a file in the squashfs filesystem ( initrd ) from a live cd. i would like to make some changes in it. i know how to mount the file to see what is in it, but like you know you can't write to it. does someone can give me a way how to go arround it. eg. copie to other fs change it their and building it back to squashfs ,.... thx in advance |
You will need to get the mksquashfs tool, which can be used to build a squashfs image file from various files and directories. You can then burn the image file to CD. See http://tldp.org/HOWTO/SquashFS-HOWTO/mksqoverview.html
You should be able to get the other files and directories from the mounted squashfs filesystem, or you can copy them to a hard-disk. But I don't think there's a way to edit a file without re-building the image. |
How to edit squashfs image of a Live CD for remastering
unsquashfs works and extracting to squashfs-root/ an place on disk
mksquashfs on the 'squsahfs-root' works but after mkisofs first stage of boot goes fine then 'name'.img fails to make second stage of boot using KERNEL vmlinuz APPEND ramdisk_size=17232 ro initrd=name.img root=/dev/ram console=null in isolinux.cfg Where am I wrong unpacking to a normal partition, improperly editing, why is the link from first to second stage of boot broken? I even tried using -2.0 to make version 2 squashfs but 3.1 does not have this option anymore. [root@sysname isolinux]# unsquashfs -s name.img Found a valid little endian SQUASHFS 2:1 superblock on name.img. Creation or last append time Mon Sep 19 05:07:45 2005 Filesystem is not exportable via NFS Inodes are compressed Data is compressed Fragments are compressed Check data is not present in the filesystem Fragments are present in the filesystem Always_use_fragments option is not specified Duplicates are removed Filesystem size 17229.93 Kbytes (16.83 Mbytes) Block size 65536 Number of fragments 136 Number of inodes 1299 Number of uids 2 Number of gids 2 Thanks in adv. |
All times are GMT -5. The time now is 12:39 PM. |