Tiny Core Linux

General TC => General TC Talk => Topic started by: thvinothan on December 26, 2009, 02:05:01 AM

Title: TC Remastering
Post by: thvinothan on December 26, 2009, 02:05:01 AM
         
           I tried to remaster TC, after extracting tinycore.gz i made some changes and then repacked back to tinycore.gz after replacing my original tinycore.gz with modified tinycore.gz and rebooted i got the following error
 "Kernel panic - not syncing: No init found, Try passing init= option to kernel"

   I then extracted my modified tinycore.gz when i checked my bin directory it has the following file Busybox, mount,lsmod

what should i do... :-[ :-[
Title: Re: TC Remastering
Post by: Jason W on December 26, 2009, 04:34:56 AM
If you have deleted things out of tinycore.gz, then your best bet is to start over.   And don't delete things out of tinycore.gz unless you are sure of what you are doing.
Title: Re: TC Remastering
Post by: thvinothan on December 26, 2009, 06:47:24 AM
If you have deleted things out of tinycore.gz, then your best bet is to start over.   And don't delete things out of tinycore.gz unless you are sure of what you are doing.

I also tried packing the extracted files without modifying it, i didn't add or delete any thing just unpacked
and the repacked to tinycore.gz. Still i have the above "Kernel panic" error..

I also tried giving boot parameter "init=/bin/busybox". But can't rectify it

Please help me to  rectify it... :-\ :-\
Title: Re: TC Remastering
Post by: Jason W on December 26, 2009, 07:32:10 AM
What were the commands used to pack/unpack tinycore.gz? 
Title: Re: TC Remastering
Post by: curaga on December 26, 2009, 08:37:22 AM
Somehow your method misses some files. Try following the wiki commands exactly, and change them to your liking one by one once you have it working.
Title: Re: TC Remastering
Post by: thvinothan on December 27, 2009, 11:47:19 PM
What were the commands used to pack/unpack tinycore.gz?  

To unpack tinycore.gz i used the command "zcat /dir/path/tinycore.gz | sudo cpio -i -H newc -d"

To pack it back "find | sudo cpio -o -H newc | gzip -2 > ../tinycore.gz" i used the resulting "tinycore.gz" as my image

but i didn't use "advdef -z4 tinycore.gz" once i tried using it and it created a file  tinycore.tmp, is this file have any thing to do with....

 i used this wiki as my guide http://wiki.tinycorelinux.com/tiki-index.php?page=Remastering