Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: newbean on July 01, 2010, 06:33:09 PM

Title: How did you make tinycore.gz
Post by: newbean on July 01, 2010, 06:33:09 PM
I modified the /etc/skel/.ashrc file in Tiny Core ISO image.
After unarchiving both tinycore.gz and tinycore.cpio files.

How do I get it back together again?

To get tinycore.cpio, I changed to the unarchived cpio directory and ran:
find * | sudo cpio -oc -O tinycore.cpio

OK

But my gzip command does'nt give me the same tinycore.gz type you have packed in the iso image.
I used:
tar -czf tinycore.gz tinycore.cpio
also tried:
gzip -f tinycore.cpio > tinycore.gz

My gzipped file is'nt the same as yours.

The file looks different under Archive Manager
It seems to have a layer between tinycore.gz and tinycore.cpio
Where your bundled tinycore.gz does not.

What command did you guys use to get tinycore.gz?

Thanks
newbean
Title: Re: How did you make tinycore.gz
Post by: althalus on July 01, 2010, 06:48:51 PM
find | sudo cpio -o -H newc | gzip -2 > ../tinycore.gz

(For more details, see http://wiki.tinycorelinux.com/Remastering)
Title: Re: How did you make tinycore.gz
Post by: newbean on July 02, 2010, 09:23:08 AM
Thanks althalus,

In Ubuntu, after mounting the iso with "Archive Mounter", and after clicking on tinycore.gz,
(using Archive Manager) "tinycore.cpio" is displayed showing type: "CPIO archive"

But after repacking the unarchived folders using:
    find | sudo cpio -o -H newc | gzip -2 > ../tinycore.gz

and after going through the above process again,
"tinycore" is displayed showing type" "unknown".

After a minor change to /etc/skel/.ashrc,  the size of
the new .iso jumped from 10.7 MB (11177984 bytes)
to: 19.7 MB (20635648 bytes)

Was tinycore???.iso packaged using Windows software?
Because the tinycore.gz files are different when packaged using
the refered web-sites instructions.

Why the big difference?

Title: Re: How did you make tinycore.gz
Post by: gutmensch on July 02, 2010, 09:26:53 AM
did you forget the mentioned
Code: [Select]
advdef -z4 tinycore.gz ?

Title: Re: How did you make tinycore.gz
Post by: newbean on July 02, 2010, 10:58:57 AM
Yeh!
I forgot advdef.

After following http://wiki.tinycorelinux.com/Remastering
I'm happy to report it works.

However, I had trouble with the mkisofs -J flag.

But when I dropped it, it all worked out.

P.S.  I installed isomaster.tcz and that was easier.

Thanks for catching that.
Sorry for the slip-up

newbean

Title: Re: How did you make tinycore.gz
Post by: midas007 on July 30, 2019, 01:36:36 AM
Just for reference @Ubuntu 116.04.6 LTS 32bits
It's work to me after search several error message from internet . :)

[Extract]
sudo zcat ../core_org_v10.1.gz | fakeroot -s ../initrd.fakeroot cpio -i -H newc -d

[RePack]
sudo find | fakeroot -i ../initrd.fakeroot cpio -o -H newc | gzip -2 > ../core.gz

[Build ISO]
by WinISO...
Title: Re: How did you make tinycore.gz
Post by: A Guy on August 02, 2019, 05:20:15 AM
[Extract]
sudo zcat ../core_org_v10.1.gz | fakeroot -s ../initrd.fakeroot cpio -i -H newc -d

[RePack]
sudo find | fakeroot -i ../initrd.fakeroot cpio -o -H newc | gzip -2 > ../core.gz

So you are using fakeroot to maintain permissions? Is this specifically necessary? I am asking because I have been packing and unpacking using the wiki method under ubuntu 16.04 (64 bit version). I haven't seen any issues, but perhaps because I am shoving a majority of my additions into a /tmp/builtin I am not affected.