WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: making /tce folder on pendrive  (Read 3561 times)

Offline P5music

  • Full Member
  • ***
  • Posts: 167
making /tce folder on pendrive
« on: March 07, 2010, 10:08:15 AM »
hi
I am trying to get a persistent installation of tinycore on my pendrive.

After a series of attempts I think the better way is to create the /tce folder on pendrive so tinycore recognizes it and puts the extensions there.
I ask you what exactly I have to do after creating this folder.
Exactly which is the boot option string I have to add to the syslinux file?
note: sdc1 is the pendrive
thanks

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: making /tce folder on pendrive
« Reply #1 on: March 07, 2010, 10:15:56 AM »
What is your goal? If you just want an USB stick with your selection of extensions do not need to touch /opt just use /tce. You do not have to deal with device name as /tce is automatically recognized by thje system at boot time which is good because device name may vary if you are using it on another computer.

As an example I have never used /opt for extensions. I'm creating two partitions, one smaller, 64 MByte usually formatted as FAT as a boot partition and to move files between TC and WINDOWS, and format rest for one or two ext3 partions. /tce is created on the second ext3 partition.

But you can start with a single FAT partion to store extensions and save backup and make it more complex later when you understand how TC works. It took all of us a certain time.

I think the best is to go back to basics and keep it simple. Forget /opt at least in the beginning.
« Last Edit: March 07, 2010, 10:17:43 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

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

Offline P5music

  • Full Member
  • ***
  • Posts: 167
Re: making /tce folder on pendrive
« Reply #2 on: March 07, 2010, 10:36:59 AM »
my goal is to have a very fast boot, so waitusb=10 is not good for me, but I am trying to learn tinycore's basics just as you say.

so

/tce is on pendrive
"tinycore waitusb=10" is on syslinux

but
if I install an extension, it is not permanent: nothing is written in /tce on pendrive
maybe I'm missing something.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: making /tce folder on pendrive
« Reply #3 on: March 07, 2010, 10:38:29 AM »
Is there a /tce directory in the root of the USB stick?
Béla
Ham Radio callsign: HA5DI

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

Offline P5music

  • Full Member
  • ***
  • Posts: 167
Re: making /tce folder on pendrive
« Reply #4 on: March 07, 2010, 10:45:00 AM »
yes

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: making /tce folder on pendrive
« Reply #5 on: March 07, 2010, 12:24:32 PM »
The easiest way to install on a USB drive is to run USB Install from the CPanel.

You need to install dosfstools and syslinux first.

Everything will be set up automatically, and it normally should just work.
Many people see what is. Some people see what can be, and make a difference.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: making /tce folder on pendrive
« Reply #6 on: March 07, 2010, 12:28:21 PM »
The easiest way to install on a USB drive is to run USB Install from the CPanel.

But it requires a working TC/MC. How to have it first? Only from CD. If you can make a CD and if you can boot from a CD. Why to waste time with CD just to get an USB stick?

Wether you like it or not, you can safely expect a newbie has a Windows machine with net connection and USB, but can not expect CD writer and necessary software.

So the easiest is UNetbootin !
Béla
Ham Radio callsign: HA5DI

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

Offline P5music

  • Full Member
  • ***
  • Posts: 167
Re: making /tce folder on pendrive
« Reply #7 on: March 07, 2010, 12:30:48 PM »
I agree, but during usbinstall I encountered input/output errors as reported in previous thread.
at the reboot, tiny does not load anymore.


Offline OldAdamUser2

  • Full Member
  • ***
  • Posts: 199
Re: making /tce folder on pendrive
« Reply #8 on: March 07, 2010, 12:35:16 PM »
hi
I am trying to get a persistent installation of tinycore on my pendrive.

After a series of attempts I think the better way is to create the /tce folder on pendrive so tinycore recognizes it and puts the extensions there.
I ask you what exactly I have to do after creating this folder.
Exactly which is the boot option string I have to add to the syslinux file?
note: sdc1 is the pendrive
thanks

Try the following:
Quote
kernel /boot/bzImage
append initrd=/boot/tinycore.gz quiet tce=sdc1  waitusb=5
This assumes that bzImage and tinycore.gz are in the /boot directory. Change that if necessary.



Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: making /tce folder on pendrive
« Reply #9 on: March 07, 2010, 08:34:23 PM »
@P5music: Am I right to assume that you have created the '/tce' directory on 'sdc1' yourself? That might not be the best idea, because you might end up with the wrong ownership and permissions (AFAIK you could try sudo chown -R tc.staff /mnt/sdc1/tce ; sudo chmod -R g+w /mnt/sdc1/tce to set things right). This user intervention is normally not required if one follows the "usual process" (e.g. boot with 'waitusb=XX tce=YYYY')

Please note it's not a matter of personal taste that you have to use 'waitusb=XX', and what value you have to use for XX (e.g. 5, 10, or maybe even more). This is necessary for your pendrive to be recognized by the system correctly. Only when that recognition has happened will things work out as designed. The contents of '/opt/.tce_dir' is for you to observe whether the pendrive recognition has worked, and not necessarily to be altered by the user.

So instead of jumping ahead of yourself I'd suggest the following:
  • Remove the '/tce' directory from your pendrive (since I assume it's empty anyway).
  • Boot your system with 'tce=sdc1 waitusb=5'. Check the contents of '/opt/.tce_dir' after the boot, if it's not '/mnt/sdc1/tce' repeat the boot process with an increased waitusb-value until the drive recognition has worked.
  • After you are certain that your pendrive has been recognized you should also find a '/tce' directory on your pendrive. You could then start downloading extensions, which should now be stored onto your pendrive.
« Last Edit: March 07, 2010, 08:36:50 PM by maro »

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: making /tce folder on pendrive
« Reply #10 on: March 08, 2010, 01:40:26 AM »
@P5music: Am I right to assume that you have created the '/tce' directory on 'sdc1' yourself? That might not be the best idea, because you might end up with the wrong ownership and permissions

On Linux file system yes but not on FAT.
Béla
Ham Radio callsign: HA5DI

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

Offline P5music

  • Full Member
  • ***
  • Posts: 167
Re: making /tce folder on pendrive
« Reply #11 on: March 08, 2010, 06:04:43 AM »
hey maro, it's kind of working,
I put waitusb=20 and I saw new text lines during boot and the tce structure was created (but opt contained only two scripts and tcemirror that contained only "tcemirror"). I installed my stuff and text lines of backup process appeared at the shutdown because I checked "backup".
After the reboot the application I installed was not in the bar yet.

Offline P5music

  • Full Member
  • ***
  • Posts: 167
Re: making /tce folder on pendrive
« Reply #12 on: March 08, 2010, 11:43:16 AM »
ok
I copied all extension tcz files on tce/optional on pendrive
then called appsaudit and did something
now it works

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: making /tce folder on pendrive
« Reply #13 on: March 08, 2010, 05:27:40 PM »
@P5music: I'm pleased to read that you finally had some success.

Here is a bit of UNIX/Linux 101: Hidden files are files where the filename starts with a dot (e.g. '.tce_dir'). To make them "visible" you'll need to use 'ls -a' (or 'ls -A').