General TC > General TC Talk

How to change TCE directory after setting it (incorrectly?)

(1/1)

user202729:
If I click [set] in the apps program, the TCE directory will be permanently set, and there's no way to undo it.

Is there a way to undo it (apart from deleting the /tce directory in the partition and reboot)? Note that deleting the /tce directory is necessary, because on boot, Tiny Core Linux will scan all drives for those containing /tce, I believe.

Rich:
Hi user202729
Welcome to the forum.

Instead of deleting, try moving:

--- Code: ---mv Old/Path/tce New/Path/tce
--- End code ---

CentralWare:
@user202729: Welcome to the forum!

* Are you booting an INSTALLED TinyCore or from a USB device you created with the ISO?The reason I ask is the answer to the above question changes the content of the question. If you are running from an INSTALLED version, proceed below.  If you are running from a bootable ISO image, this could get a little messy as your TCE and CDE directories work and act a bit differently depending on circumstances.

IF FRUGAL INSTALL, ASSUME: Your boot drive is able to be found in /mnt/sda1 (please mentally modify this if yours is different.)

If you are trying to change where Tiny Core looks for its tce directory, this is found in
/mnt/sda1/tce/boot/extlinux/extlinux.conf in the APPEND line where it shows tce=[UUID]=[LONG_STRING]

If you are trying to physically relocate your existing TCE directory to a new location, change the above
to match the new location and then move (as @Rich demonstrated) your existing files to that new location.

If you are trying to "start all over from scratch"...  bare in mind, I do things a little unorthodox where I may
bend a rule here and there to get where I need to be, so the following instruction is not for the faint of heart:

1. Shut down the desktop (Press <CTRL>+<ALT>+<BKSP> in VESA/FB mode or run sudo killall Xorg from
the terminal)  You'll be dropped into the command prompt (shell.)

2. Create a backup copy of your existing extension list at /mnt/sda1/tce/onboot.lst in case you need it later:

--- Code: ---cd /mnt/sda1/tce
cp onboot.lst onboot.backup
--- End code ---

3. Edit your onboot.lst file and remove anything listed BELOW the file Xprogs.tcz

4. To wipe out all extensions and reinstall just the basics found in onboot.lst

--- Code: ---sudo rm /usr/local/tce.installed/*
sudo umount /tmp/tceloop/*
sudo rmdir /tmp/tceloop/*
sudo rm /mnt/sda1/tce/optional/*

for FILE in $(cat /mnt/sda1/tce/onboot.lst)
do
     tce-load -wi $FILE
done

--- End code ---

...and finally, if you want to remove any changes you've made in /opt /home or other locations
which you've used filetool.sh -b to back up, you would delete the file /mnt/sda1/tce/mydata.gz

Once the above tasks are complete, reboot and your system is "Factory Fresh."


Finally, if you simply want to undo anything "custom" that's been done since Tiny Core was installed,
you can remove your "backup" file and you'll be left with only the software extensions you've installed,
but none of the settings and such:

--- Code: ---cd /mnt/sda1/tce
mv mydata.gz mydata.old
sudo reboot
--- End code ---

Navigation

[0] Message Index

Go to full version