WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Adding a tcz to a bootstick  (Read 4671 times)

Offline ost

  • Newbie
  • *
  • Posts: 41
Adding a tcz to a bootstick
« on: September 26, 2011, 09:03:10 AM »
My first posting :) I really like this build! ;D I want to use this as a boot os on blank systems, but I would like to add the dosfstools.tcz so it will be there at boot.

Is there a place to put it so it gets installed automatically? I may also want to put my own app or script there at next step.

I use the universal USB installer tool to put the iso on a stick and it works great from there. Now I tried to add the tcz file to a /tce folder on the stick, but that didnt get auto installed. I also tried to make a tce folder on the bootimage, but that didnt work either. Also tried messing with putting it in the /tmp/tce folder but it only gets me closer to the default folder on the loader.

(I dont want to move it over to the main drive cause there will be something else there, and I dont want to type stuff at bootprompt)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Adding a tcz to a bootstick
« Reply #1 on: September 26, 2011, 09:10:00 AM »
/tce dir in the root of USb stick must work. Was waitusb=5 boot option used? It is necessary to get USB stick recognized.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline ost

  • Newbie
  • *
  • Posts: 41
Re: Adding a tcz to a bootstick
« Reply #2 on: September 26, 2011, 09:33:42 AM »
Thanks for the quick reply!
I tried "tc waitusb=10" but still no dosfs after boot.. It doesnt seem to have the usb mounted after boot. I need to manually mount it.
Does the scripts look for any extensions on the boot drive? I can tweak the bootimage so it will be there independant on the usb.

Offline ost

  • Newbie
  • *
  • Posts: 41
Re: Adding a tcz to a bootstick
« Reply #3 on: September 26, 2011, 09:46:34 AM »
Latest:
using boot param "tc waitusb=10 tce=sdb1" I get sdb1 mounted, but still no dosfs installed.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Adding a tcz to a bootstick
« Reply #4 on: September 26, 2011, 10:05:11 AM »
Did you put the extension in the right place (tce/optional/)? Is it set to load on boot?
The only barriers that can stop you are the ones you create yourself.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11629
Re: Adding a tcz to a bootstick
« Reply #5 on: September 26, 2011, 10:07:36 AM »
Hi ost
Use AppBrowser and install it again, if it says it's already installed, open AppsAudit, click on
OnBoot->Maintenance  and make sure it shows up under  On Boot Items, if it doesn't, click
on it and it will be added to OnBoot. Click on OnBoot->Exit. The next time you boot it should
be available.


Offline ost

  • Newbie
  • *
  • Posts: 41
Re: Adding a tcz to a bootstick
« Reply #6 on: September 26, 2011, 10:26:40 AM »
Thanks Rich, that worked :)
This was a nice trivia for a noob like me :)
Now I just need to figure out how to put those boot parameters in by default :)

Now Im going to play with the bootimage and try to put the files on there..

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Adding a tcz to a bootstick
« Reply #7 on: September 26, 2011, 11:06:43 AM »

Now I just need to figure out how to put those boot parameters in by default :)


Just edit bootloader configuration file. I'm installing TC on USB with unetbootin which instals syslinux. My actual syslinux.cfg is:

Quote
default menu.c32
prompt 0
menu title TC 4.0
timeout 100

label unetbootindefault
menu label Default
kernel /ubnkern
append initrd=/ubninit quiet tinycore waitusb=5

label ubnentry0
menu label Clean
kernel /boot/vmlinuz
append initrd=/boot/tinycore.gz quiet tinycore waitusb=5 base norestore
« Last Edit: September 26, 2011, 11:08:21 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline ost

  • Newbie
  • *
  • Posts: 41
SOLVED:Re: Adding a tcz to a bootstick
« Reply #8 on: September 27, 2011, 03:46:24 AM »
Thanks, I appreciate your help :)

Seems like I can get it all to work with all the files in the tinycore and bootopt "tc tce=/"
Case solved. Thanks to all of you :)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Adding a tcz to a bootstick
« Reply #9 on: September 27, 2011, 03:53:11 AM »
Hm... It must work without tce=/

Is it 3.8.4 or 4.0 ?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline ost

  • Newbie
  • *
  • Posts: 41
Re: Adding a tcz to a bootstick
« Reply #10 on: September 28, 2011, 07:58:05 AM »
No, it doesnt work without the tce=/
Here is my syslinux.cfg:
SOF--------------
default microcore
label microcore
   kernel /boot/vmlinuz
   append initrd=/boot/microcore.gz quiet tce=/
implicit 0   
prompt 0
timeout 0
EOF------------------
And Ive checked that it DOES need the tce=/

Ive installed it on the USB using universal usb installer 1.8.6.4 "try unlisted linux ISO (new syslinux)" if that matters..
And Im using microcore 4.0

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Adding a tcz to a bootstick
« Reply #11 on: September 28, 2011, 08:12:35 AM »
Where is waitusb= ?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline ost

  • Newbie
  • *
  • Posts: 41
Re: Adding a tcz to a bootstick
« Reply #12 on: September 28, 2011, 09:41:45 AM »
I put all the files I needed into the tinycore.gz file, so no need for the usb :) It's all loaded in the ramdrive at boot.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Adding a tcz to a bootstick
« Reply #13 on: September 28, 2011, 12:18:10 PM »
And it takes up RAM space.
Loop mounting from the USB tce directory will give you more usable memory.

Offline ost

  • Newbie
  • *
  • Posts: 41
Re: Adding a tcz to a bootstick
« Reply #14 on: September 29, 2011, 03:36:35 AM »
True.. I have plenty of RAM.. This stick will only be used to bring up or repartition/format the main harddrive, so boot speed is more interesting.
:)