WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: how to get persistent flash in tiny core  (Read 6836 times)

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11640
Re: how to get persistent flash in tiny core
« Reply #15 on: July 11, 2012, 02:26:38 AM »
Hi manit123
Yes, you could copy the file somewhere else in your home directory. Add a copy command in the shutdown.sh
script to save it and another copy command in the bootlocal.sh script to restore it.

Offline manit123

  • Sr. Member
  • ****
  • Posts: 315
Re: how to get persistent flash in tiny core
« Reply #16 on: July 12, 2012, 09:42:44 AM »
Is there a way I can run a script after everything is mounted i.e my pendrive , loop tcz etc.
Then usually I get my pendrive as /mnt/sda1
so I will add to it
sudo cp  /mnt/sda1/my-customised-settings/operaprefs.ini   ~/.opera-11/

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: how to get persistent flash in tiny core
« Reply #17 on: July 12, 2012, 09:54:27 AM »
Add to /opt/bootlocal.sh
Omit sudo.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: how to get persistent flash in tiny core
« Reply #18 on: July 12, 2012, 10:42:00 AM »
Use the LABEL or UUID form of the tce= boot option.
Since you can't be sure what device the USB will be, use /etc/sysconfig/tcedir.

Offline manit123

  • Sr. Member
  • ****
  • Posts: 315
Re: how to get persistent flash in tiny core
« Reply #19 on: July 13, 2012, 09:43:42 PM »
do you mean
 /etc/sysconfig/tcedir gets saved in backup.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: how to get persistent flash in tiny core
« Reply #20 on: July 14, 2012, 12:21:13 AM »
No, /etc/sysconfig/tcedir is a symlink to the tce dir found or specified in the boot options.

Offline manit123

  • Sr. Member
  • ****
  • Posts: 315
Re: how to get persistent flash in tiny core
« Reply #21 on: July 30, 2012, 10:34:59 AM »
sorry for my late reply .
  I see /etc/sysconfig/tcedir/ points to /tmp/tce

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: how to get persistent flash in tiny core
« Reply #22 on: July 30, 2012, 12:37:18 PM »
Then you do not have a tce directory on the root of drive found at boot.
Either use a proper tce= boot option, or manually create the directory..
If this drive is a flash deive, do not forget waitusb=5 boot code.