Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: utechbv on August 18, 2011, 06:18:29 PM
-
I have strange problem. At some point I had 3 files in /home/tc/software.
/home/tc/software/A
/home/tc/software/B
/home/tc/software/C
I removed B and C and run filetool.sh -d which shows that only /home/tc/software/A will be backed up.
I run filetool.sh -b to create mydata.tgz backup. I check the inside of mydata.tgz, it contains correctly only
/home/tc/software/A
I do reboot and surprisingly find the removed files back again.
/home/tc/software/A
/home/tc/software/B
/home/tc/software/C
Anyone any clue how to remove files from /home/tc/ and prevent them from being restored every time??
How do they manage to come back even though the mydata.tgz does not contain them??
-
Sounds like you are restoring a different file.
-
Are you maybe using a persistent home directory? Can you run "showbootcodes" and post the result?
-
No TC version mentioned :( In case of current release max_loop=255 is not needed. Just a site note, not related to main subject.
-
utechbv: Are you sure that the USB device detection works with ' ... waitusb=1:UUID= ...'? Just one second for the detection sounds a bit too short to me as my devices typically need about 5 seconds. I therefore use 'waitusb=15:UUID=...' as that means to allow a maximum of 15 seconds, but no longer than it takes to find the device with the correct UUID.
You might want to double-check which device is actually been used (e.g. via head /opt/.[bt]*).
-
This type of situation can occur if you have both persistent home and backup (of the home directory). But your bootcodes don't show persistent home.
Check for persistent home. That is go to /mnt/sda1 (if not sda1, the correct partition), and check for a home directory.
If you don't find a home directory, check for 2 different backup files, possibly in different partitions.
-
I am running version 3.7.1.
I am using compact flash cards as harddrive, not usb. They work as /dev/hdc.
/opt/.backup_device file contains "hdc1/tce"
I was not able to find second mydata.tgz file. It seems that changes (new files) are saved but old files are not removed and restored every time. :(
-
I think I found the problem. I use script to replicate my tinycore installation to the other usb/flash card.
That scripts copies files and repacks tinycore.gz with all the files that I add to it.
Apparently if tinycore.gz repacked with some files in home directory then mydata.tgz will only overwrite the files
with the same names. But other files will stay there.
-
Hi utechbv
You definitely found the cause. If you did any reading at the Tinycore website you may recall roberts
mentioning booting to a "pristine" state, tinycore.gz is the file that contains that pristine state, so
any modifications you make to it will show up every time you boot. It is working as intended.