WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Keep getting old files in HOME after reboot  (Read 2408 times)

Offline utechbv

  • Newbie
  • *
  • Posts: 5
Keep getting old files in HOME after reboot
« 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??

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Keep getting old files in HOME after reboot
« Reply #1 on: August 18, 2011, 06:30:43 PM »
Sounds like you are restoring a different file.

Offline ixbrian

  • Retired Admins
  • Sr. Member
  • *****
  • Posts: 436
Re: Keep getting old files in HOME after reboot
« Reply #2 on: August 18, 2011, 06:37:31 PM »
Are you maybe using a persistent home directory?  Can you run "showbootcodes" and post the result?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Keep getting old files in HOME after reboot
« Reply #3 on: August 19, 2011, 03:14:37 AM »
No TC version mentioned :( In case of current release max_loop=255 is not needed. Just a site note, not related to main subject.
Béla
Ham Radio callsign: HA5DI

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

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: Keep getting old files in HOME after reboot
« Reply #4 on: August 19, 2011, 04:18:33 AM »
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]*).

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: Keep getting old files in HOME after reboot
« Reply #5 on: August 19, 2011, 07:19:44 AM »
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.
Many people see what is. Some people see what can be, and make a difference.

Offline utechbv

  • Newbie
  • *
  • Posts: 5
Re: Keep getting old files in HOME after reboot
« Reply #6 on: August 21, 2011, 05:31:14 PM »
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. :(

Offline utechbv

  • Newbie
  • *
  • Posts: 5
Re: Keep getting old files in HOME after reboot
« Reply #7 on: August 21, 2011, 05:50:36 PM »
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.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11696
Re: Keep getting old files in HOME after reboot
« Reply #8 on: August 21, 2011, 07:40:35 PM »
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.