Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: PingPing on October 21, 2009, 04:54:12 PM

Title: [SOLVED] Remastering question: how do I 'extract' (mount?) a .tcz?
Post by: PingPing on October 21, 2009, 04:54:12 PM
I want to remaster tcl 2.4.1 to include moc.tcz but I don't know whether I extract it with a special tool or mount it with a special tool ???
Title: Re: Remastering question: how do I 'extract' (mount?) a .tcz?
Post by: gerald_clark on October 21, 2009, 05:02:16 PM
Mount it with the '-oloop' option.
Title: Re: Remastering question: how do I 'extract' (mount?) a .tcz?
Post by: Guy on October 21, 2009, 05:29:24 PM
Run Tiny Core 2.4.1, and have it mounted (If it is installed, delete its name from tcz2ram.lst and restart the computer).

You can then copy and paste it from /tmp/tcloop/ using Rox (you don't need to extract it or mount it).

If you use Rox, it will give you the option to merge with the other filesystem.
Title: Re: Remastering question: how do I 'extract' (mount?) a .tcz?
Post by: robc on October 21, 2009, 11:28:41 PM
The following commands can be used as root:
mkdir /mnt/tmp
mount /path/to/extension.tcz /mnt/tmp -o loop
rsync -rlp /mnt/tmp /path/to/remaster/source
Title: Re: Remastering question: how do I 'extract' (mount?) a .tcz?
Post by: Juanito on October 21, 2009, 11:33:34 PM
"rsync" will soon be gone from the base, so maybe "cp -a" might be better?
Title: Re: Remastering question: how do I 'extract' (mount?) a .tcz?
Post by: roberts on October 22, 2009, 12:31:32 AM
Since we are standardizing on squashfs, and therefore, it could be assumed that squashfs-tools-4.0.tcz is loaded, you can use unsquash.

unsquash --help

To view contents:
unsquashfs -ls moc.tcz
unsquashfs -lls moc.tcz

To extract into moc/ directory:
unsquash -info -d moc/ moc.tcz
Title: Re: Remastering question: how do I 'extract' (mount?) a .tcz?
Post by: robc on October 22, 2009, 10:15:38 PM
Are there any speed advantages of using unsquash over rsync or cp for installing extensions to RAM?
If there is a speed advantage would the squashfs-tools be included in the base?
Title: Re: Remastering question: how do I 'extract' (mount?) a .tcz?
Post by: roberts on October 22, 2009, 10:25:55 PM
A special cp construct is being used in 2.5 with improved results and space savings too.