WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How did you make tinycore.gz  (Read 8355 times)

Offline newbean

  • Newbie
  • *
  • Posts: 24
How did you make tinycore.gz
« on: July 01, 2010, 09: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

Offline althalus

  • Sr. Member
  • ****
  • Posts: 351
Re: How did you make tinycore.gz
« Reply #1 on: July 01, 2010, 09:48:51 PM »
find | sudo cpio -o -H newc | gzip -2 > ../tinycore.gz

(For more details, see http://wiki.tinycorelinux.com/Remastering)

Offline newbean

  • Newbie
  • *
  • Posts: 24
Re: How did you make tinycore.gz
« Reply #2 on: July 02, 2010, 12:23:08 PM »
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?


Offline gutmensch

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 605
  • I can make it disappear, have no fear!
    • remembrance blog
Re: How did you make tinycore.gz
« Reply #3 on: July 02, 2010, 12:26:53 PM »
did you forget the mentioned
Code: [Select]
advdef -z4 tinycore.gz ?

If I seem unduly clear to you, you must have misunderstood what I said. (Alan Greenspan)

Offline newbean

  • Newbie
  • *
  • Posts: 24
Re: How did you make tinycore.gz
« Reply #4 on: July 02, 2010, 01:58:57 PM »
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


Offline midas007

  • Newbie
  • *
  • Posts: 5
Re: How did you make tinycore.gz
« Reply #5 on: July 30, 2019, 04: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...

Offline A Guy

  • Newbie
  • *
  • Posts: 25
Re: How did you make tinycore.gz
« Reply #6 on: August 02, 2019, 08: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.
Tony M.
Embedded Software and BIOS Engineer