WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: persistence  (Read 17560 times)

Offline jriker1

  • Newbie
  • *
  • Posts: 6
persistence
« on: January 09, 2017, 09:43:17 AM »
I assume "microcore" is the base core OS however I have installed Core (no GUI version) on a virtual machine, but looks like everytime I reboot or do something, not sure what yet, everything vanishes.  Looks like every single think I do shows up as some kind of device.  So after installing say a compiler and type "df" there are loads of devices with the names of all the installed packages.  Is there any way to make all of Core persistent?

Thanks.

JR

Offline polikuo

  • Hero Member
  • *****
  • Posts: 725
Re: persistence
« Reply #1 on: January 09, 2017, 10:05:45 AM »
Make sure you have tiny core installed on the drive, tiny core loads every thing in the RAM.
Do filetool.sh -bv to backup the system before you reboot.
You might find this helpful http://tinycorelinux.net/book.html

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: persistence
« Reply #2 on: January 09, 2017, 10:19:55 AM »
Welcome jriker1

core (not microcore) is the base for a command line install

  • For a command line install; use Core-7.2.iso as base install
  • For a graphical (desktop) environment; use TinyCore-7.2.iso as base install

create a tce directory (/tce/optional) on the virtual drive to install extensions which are loop mounted on next boot.
As polikuo recommends, all the answers are in the book



Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: persistence
« Reply #3 on: January 09, 2017, 10:21:06 AM »
"Micro Core" is now just "Core".
If installed to hard disk, Core will  not  copy everything to RAM by default. Instead, extensions (installed applications) are loop mounted. That's what you see with  df .
Yes, you can make your customizations persistent.
However, your home directory and the root file system is in RAM by default, so each file you want to preserve needs to be explicitly specified in  /opt/.filetool.lst  and the  backup  command needs to be used before rebooting.
Download a copy and keep it handy: Core book ;)

Offline jriker1

  • Newbie
  • *
  • Posts: 6
Re: persistence
« Reply #4 on: January 09, 2017, 11:35:42 AM »
Thanks. Wow manually backing up to.  Missed that part.  Guess this OS isn't meant for frequent changes huh?  Which technically is part of my goal anyway once done.

JR

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: persistence
« Reply #5 on: January 09, 2017, 11:51:29 AM »
You can make as many changes as you like.  Just have to add changed files to the backup (if a backup is used).  iirc you can also simply type " backup "  after adding changed files


Offline jriker1

  • Newbie
  • *
  • Posts: 6
Re: persistence
« Reply #6 on: January 09, 2017, 12:22:14 PM »
Just typing backup.  Does that backup the whole drive or just what's still in the filelist?

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: persistence
« Reply #7 on: January 09, 2017, 12:43:17 PM »
Only entries from  /opt/.filetool.lst  are included in the backup file (/etc/sysconfig/tcedir/mydata.tgz).
Download a copy and keep it handy: Core book ;)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: persistence
« Reply #8 on: January 09, 2017, 12:48:24 PM »
Only entries from  /opt/.filetool.lst  are included in the backup file (/etc/sysconfig/tcedir/mydata.tgz).

Minus .xfiletool.lst
Béla
Ham Radio callsign: HA5DI

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

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: persistence
« Reply #9 on: January 10, 2017, 04:41:14 AM »
It's automatic when using the GUI, but on the command-line it's assumed people know what they're doing.
The only barriers that can stop you are the ones you create yourself.

Offline PDP-8

  • Hero Member
  • *****
  • Posts: 915
Re: persistence
« Reply #10 on: May 26, 2019, 09:58:31 PM »
Need more frequent saving of changes than at shutdown or just doing it manually?

Just put filetool.sh -bv into a cron job - say once an hour or whatever you feel comfortable with.

Boot with the cron cheatcode, or perhaps edit your boot stanza to make crond active at the start.
That's a UNIX book! - cool  -- Garth