Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-30-2005, 03:31 AM   #1
LQ Newbie
Registered: Jul 2005
Posts: 4

Rep: Reputation: 0
modifications in a squashfs filesystem

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
Old 07-30-2005, 07:49 PM   #2
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,991

Rep: Reputation: 76
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

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.
Old 11-10-2009, 03:26 AM   #3
LQ Newbie
Registered: Sep 2006
Posts: 2

Rep: Reputation: 0
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
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.

Last edited by cyber_apostle; 11-10-2009 at 03:29 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I audit access or modifications to a folder? tisource Linux - Security 2 08-04-2005 08:26 PM
Unwanted modifications to fstab erika_Dec2004 Mandriva 1 04-10-2005 12:29 PM
squashfs Vookimedlo Linux - Software 0 07-21-2004 01:02 PM
Shell modifications starting with the system MS3FGX Linux - General 6 06-01-2004 12:19 PM
how to make modifications to a custom kernel build? h/w Linux - Newbie 2 11-09-2003 03:47 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:54 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration