Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: krytgames on December 30, 2019, 05:42:58 AM
-
So i successfully installed core-current from live ISO from scratch, manually creating patritions and other.
So. In book written, that all user files and extensions will be stored outside the base OS. Is this actual for configs too? Can i change configs when i mount an extension?
-
And another one. If i, for example, install an extension and then delete it, will it stay some garbade in system?
-
Hi krytgames
... Can i change configs when i mount an extension?
Yes you can.
Check if the config file is a symlink:
tc@box:~$ ls -l /usr/local/etc/login.defs
total 1
lrwxrwxrwx 1 root root 49 Sep 29 14:11 login.defs -> /tmp/tcloop/shadow-utils/usr/local/etc/login.defs
tc@box:~$
That -> symbol tells you it's a symlink back into the extension. First you need to convert the symlink into a file:
sudo busybox cp -Hf /usr/local/etc/login.defs /usr/local/etc/login.defs
Now you can edit the file.
When done, you need to include it in your backup:
echo usr/local/etc/login.defs >> /opt/.filetool.lst
Then run a backup:
filetool.sh -b
If you are running a GUI, you can perform these last 2 steps using the Backup/Restore app from the ControlPanel or by entering:
filetool
And another one. If i, for example, install an extension and then delete it, will it stay some garbade in system?
If you use the Apps utility to delete extensions they will be removed completely. If you have any config files for that extension
backed up, you need to remove those entries from /opt/.filetool.lst yourself.
-
Ok, thx. :) I will ask more questions when i will have ones.
-
So, i have another question. I loaded a TC, created a tce directory at /mnt/sda2. Reconfigured my grub(deleted a tce boot code). Rebooted a system and BOOM. /mnt/sda2 is clear now. Why?
-
Hi krytgames
That's not a lot of information to go on. Holding back information, such as which boot code you deleted, makes diagnosis even
more difficult. Since you choose to conceal that information, all I can do is guess:
You deleted the waitusb bootcode and as a result sda2 is not detected. Therefore, the device doesn't get mounted at
/mnt/sda2, extensions don't get loaded, and mydata.tcz doesn't get restored.. If there are persistent /home or /opt, they
won't be found so they don't get mounted to the root file system.
-
sda is a virtual hard disk. mydata.tgz has been restored, cause in my home directory i have my 2 files with some experimental bash scripts. Also, if you have discord, check this out. Maybe you can help me during the stream :)
https://discord.gg/xcbkwp
-
so maybe i can help with diagnostic. what information do you need to understand what is goig on?
-
Hi krytgames
so maybe i can help with diagnostic. what information do you need to understand what is goig on?
For starters, what boot code did you delete that caused the breakage? If you put the boot code back, does it work normally? What
was the reason for removing the boot code?
sda is a virtual hard disk. ...
If you are running in a virtual environment, that's something you should always disclose upfront.
-
So, with bootcode "tce=/mnt/sda2" it worked unproperly and my extensions dont save on /mnt/sda2, so i decided to delete it, but it doesn't work.
-
Hi krytgames
Post the result of this command:
showbootcodes
-
BOOT_IMAGE=/boot/vmlinuz
loglevel=3
-
Maybe TC working in copy mode now?
-
Hi krytgames
What do these 2 commands return:
ls -l /etc/sysconfig/tcedir
ls -l /etc/sysconfig/tcedir/
-
1)symlink to /tmp/tce
2)optional/
-
This. Sorry, they are the same pictures :)
-
Hi krytgames
1)symlink to /tmp/tce
That suggests you either have a copy2fs.flg file in your tce directory or tce-setdrive never ran. Do you have a tce directory
on /mnt/sda1 ?
-
No
-
So. Its really strange. I did a tutorial by making an universal boot device for BIOS and UEFI, but after rebooting all patritions are empy :(
-
After some experiments i have this situation: i have sda1,sda2,sda3 in /mnt directory, but in fact, /dev/sda1,sda2,sda3 not mounted. But if i use sudo mount /dev/sda2, for example, create a file at here, then reboot, then file will remains. Very strange things. Why i have something in /mnt directory when devices are not mounted?
-
Another update. I think, that problem, because TC not auto mount disk patrisions on boot. In fstab has strings about /dev/sda1,sda2,sda3, but when i use sudo mount - there are no mounted "devs" in it.
-
Hi krytgames
When TC boots it adds all devices it recognizes to fstab. The only devices that get auto mounted are ones TC needs to run. If a device
is listed in fstab and the file system is supported, you can mount it with:
mount /dev/sda1
or:
mount /mnt/sda1
There is no sudo required for that case.
-
But why are they not mounted automaticly? How i can configure it to mount automaticly?
Also after i did filetool.sh and it created onboot.lst and mydata.tgz - TC correctly mount tce directory and saves extensions.