WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: alternate tce optional directory  (Read 5105 times)

Offline aris

  • Newbie
  • *
  • Posts: 49
alternate tce optional directory
« on: September 27, 2016, 06:43:51 AM »
I hope I'm not asking a silly question...
I'm running tcl 7.2 mini from usb drive (sdb1) and mount hard drive partition ext4 format (sda2).
Can I move or add an extension optional directory from sdb1 (mnt/sdb1/tce/optional) to sda2 ? I want to try big size extensions but low on space on sdb1.
I try to hit the set button but nothing happen.

And I cant install tcl on sda1 as it uses by other OS.

Thanks
I'm a noob

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14817
Re: alternate tce optional directory
« Reply #1 on: September 27, 2016, 06:59:47 AM »
you could use the "tce=" boot code to change your tce folder to sda2

Note that you would need a copy of all of your extensions in /mnt/sda2/tce/optional

Offline aris

  • Newbie
  • *
  • Posts: 49
Re: alternate tce optional directory
« Reply #2 on: September 27, 2016, 07:20:39 AM »
So I need to do it locally, cant be remotely ?
Kind of hoping Like : https://www.youtube.com/watch?v=KzMH72LTfg0
( the vid shows on the fly change tce dir, but the vid is unclear ...low resolution )
I will try The F2 option ..
tinycore tce={hda1|sda1}            Specify Restore TCE apps directory

Thank You
« Last Edit: September 27, 2016, 07:26:36 AM by aris »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: alternate tce optional directory
« Reply #3 on: September 27, 2016, 07:41:27 AM »
It can be set from the GUI only when there is no existing tce dir. In your case, the old dir is mounted and in use.

You should be able to do it remotely though, just edit the bootloader config file on the old usb stick and reboot. Though, with USB sticks, it'd be wise to use waitusb and label/uuid instead of the name, as the names may change.
The only barriers that can stop you are the ones you create yourself.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: alternate tce optional directory
« Reply #4 on: September 27, 2016, 11:03:41 AM »
I'm using some kind of a hack where I have some personal and custom extensions in a sub-dir of  /tce/optional  and sym-linked one directory level up. *.tcz.md5.txt  and  *.tcz.dep  files are not sym-linked but stored directly at  /tce/optional .
As long as your sdb1 partition holding your tce-dir has a Linux file system and sda2 is mounted, this should work for you too.
Download a copy and keep it handy: Core book ;)

Offline aris

  • Newbie
  • *
  • Posts: 49
Re: alternate tce optional directory
« Reply #5 on: September 27, 2016, 02:19:25 PM »
I did a quick try change the /mnt/sdb1/boot/extlinux/extlinux.conf file
===from ===
APPEND initrd=/boot/core.gz quiet  waitusb=5:UUID="886cf449-c3af-4194-8f0e-7ffb5                  74e94fd" tce=UUID="886cf449-c3af-4194-8f0e-7ffb574e94fd"


===to ===
APPEND initrd=/boot/core.gz quiet  waitusb=5:UUID="886cf449-c3af-4194-8f0e-7ffb5                  74e94fd" tce=UUID="df3dd90a-fe29-41e1-a155-6908b1072d81"

backup, reboot ....
and my config seems to be gone... ;D.. I forgot to copy onboot.lst...silly me
Cant ssh it and cant vnc it, cant even ping it as no-ip is not loaded
Most likely I need to copy all the /opt/ directory to sda2 also..
Can I do that ? Or should I also move the core.gz to sda2 ?

@Misalf : so I create a directory within the current optional and symlink it to /mnt/sda2/tce/optional ?

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: alternate tce optional directory
« Reply #6 on: September 27, 2016, 02:56:44 PM »
@Misalf : so I create a directory within the current optional and symlink it to /mnt/sda2/tce/optional ?

No. More like:
Code: [Select]
ln -s /mnt/sda2/tce/optional/big_extension.tcz  /mnt/sdb1/tce/optional/
Download a copy and keep it handy: Core book ;)

Offline aris

  • Newbie
  • *
  • Posts: 49
Re: alternate tce optional directory
« Reply #7 on: September 27, 2016, 03:25:45 PM »
Thats clever.....misalf..
Will do that ..

but with many dependencies / many tcz, would be little unconvenient..
« Last Edit: September 27, 2016, 03:41:10 PM by aris »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: alternate tce optional directory
« Reply #8 on: September 28, 2016, 04:25:25 AM »
It would also fail if the USB sticks change names.

core.gz can be on a different drive, as can /opt.
The only barriers that can stop you are the ones you create yourself.

Offline aris

  • Newbie
  • *
  • Posts: 49
Re: alternate tce optional directory
« Reply #9 on: September 28, 2016, 05:35:53 AM »
Thanks Curaga..I managed to move it.. all the TCE folder (optional,ondemand, onboot.lst)
core.gz and /opt still on usb flash.