I stopped using the backup/restore feature in tinycore after I started up one day and found mydata,tgz (and thus my home dir) empty. I instead began using rsync to backup and restore (via bootsync.sh).
I grew tired of this, so I set up a persistent home directory. I rebooted to verify that files in /home/tc were saved. i added bootcode user=webb and moved /mnt/sda5/home/tc to /mnt/sda5/home/webb . Again, everything seemed fine on reboot, and I didn't notice any problem for some time.
However, I eventually powered down the machine, and after next boot, all files in /home/webb and of course /mnt/sda5/home/webb had been erased. I verified that none of the contents of my home directory were causing the problem by creating a test file in the now empty home directory. On reboot it was still there. On shutdown and boot it was gone. Also occurs with default bootsync.sh and bootlocal.sh.
-Only on shutdown and boot, not on reboot.
-Not dependent on contents of home directory.
-No evidence of hardware failure (fsck ok).
-Not caused by my bootlocal.sh or bootsync.sh.
-Problem occurs both for internal and pendrive installs of TC.
-Also occurs without user=webb bootcode; in this case, /home/webb is left alone and /home/tc is erased
bootcodes: swapfile norestore showapps noicons noutc tz=PST+8PDT,M3.2.0/2,M11.1.0/2 UUID="2e8522d3-66bc-460a-ba2b-b0b48f483d39" tce=UUID="2e8522d3-66bc-460a-ba2b-b0b48f483d39" opt=UUID="2e8522d3-66bc-460a-ba2b-b0b48f483d39" home=UUID="2e8522d3-66bc-460a-ba2b-b0b48f483d39" user=webb desktop=wmii
I could have done more testing but my primary concern was to bypass the problem and get back to work. Still love TC the best
remove from extlinux.conf:
add to bootsync.sh
rm -f /home/webb
ln -s /mnt/sda5/opt/home/webb /home/webb
PS: TC version is 4.2 I think, but maybe 4.3. Kernel is definitely 3.0.3-tinycore. Now using 4.4/3.0.21, been too busy to try to replicate the problem.