WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] Remastering question: how do I 'extract' (mount?) a .tcz?  (Read 4301 times)

Offline PingPing

  • Jr. Member
  • **
  • Posts: 99
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 ???
« Last Edit: October 23, 2009, 04:56:11 PM by PingPing »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Remastering question: how do I 'extract' (mount?) a .tcz?
« Reply #1 on: October 21, 2009, 05:02:16 PM »
Mount it with the '-oloop' option.

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: Remastering question: how do I 'extract' (mount?) a .tcz?
« Reply #2 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.
« Last Edit: October 21, 2009, 05:34:50 PM by Guy »
Many people see what is. Some people see what can be, and make a difference.

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: Remastering question: how do I 'extract' (mount?) a .tcz?
« Reply #3 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
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: Remastering question: how do I 'extract' (mount?) a .tcz?
« Reply #4 on: October 21, 2009, 11:33:34 PM »
"rsync" will soon be gone from the base, so maybe "cp -a" might be better?

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Remastering question: how do I 'extract' (mount?) a .tcz?
« Reply #5 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
10+ Years Contributing to Linux Open Source Projects.

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: Remastering question: how do I 'extract' (mount?) a .tcz?
« Reply #6 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?
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Remastering question: how do I 'extract' (mount?) a .tcz?
« Reply #7 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.
10+ Years Contributing to Linux Open Source Projects.