WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Persistence? (remastering)  (Read 11086 times)

Offline _blue4meridian

  • Jr. Member
  • **
  • Posts: 50
Persistence? (remastering)
« on: December 29, 2010, 02:36:17 PM »
I'm fairly new to Tiny Core.  I do not understand and/or know the boot codes and the location of the file to be edited.  I downloaded the 3x repository and can only do a temporary install.  Many thanx for all suggestions.

[removed exe links]
« Last Edit: January 06, 2011, 12:57:09 AM by ^thehatsrule^ »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline _blue4meridian

  • Jr. Member
  • **
  • Posts: 50
Re: Persistence? (remastering)
« Reply #2 on: December 29, 2010, 03:22:05 PM »
I have read these topics (and they have helped greatly in other areas) but on this topic I do not fully understand it as posted.  I have bookmarked several topics that suggest the solution (cheat and/or boot codes) but have not fully grasped the specific location of the file to be edited or the correct syntax for persistence.  Basically, I am somewhat confused as I am lacking a laymans description.  Again, many thanx...

[removed exe links]
« Last Edit: January 06, 2011, 12:57:16 AM by ^thehatsrule^ »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Persistence? (remastering)
« Reply #3 on: December 29, 2010, 03:30:00 PM »
boot codes have to be specified either in config file or at prompt of (if there is such a latter) of whatever bootloader is used
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline _blue4meridian

  • Jr. Member
  • **
  • Posts: 50
Re: Persistence? (remastering)
« Reply #4 on: December 29, 2010, 03:42:04 PM »
I see... However, I'm still not quite clear on the name and location of the config file and syntax entry.  Anyway... thanx for all the info so far.  I believe I will eventully be on the right page with the procedure.  I installed Tiny Core with unetbootin (@http://webwarper.net/ww/unetbootin.sourceforge.net/) to a usb fat partition if that is any help.

[removed exe links]
« Last Edit: January 06, 2011, 12:57:22 AM by ^thehatsrule^ »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Persistence? (remastering)
« Reply #5 on: December 29, 2010, 03:57:29 PM »
That's why I was not more specific; exact syntax and config paths/files would differ between specific bootloaders and setups.

(personally I wouldn't happen to have any idea of unetbootin)
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline _blue4meridian

  • Jr. Member
  • **
  • Posts: 50
Re: Persistence? (remastering)
« Reply #6 on: December 29, 2010, 04:52:35 PM »
Did some research... unetbootin does not seem to support persistence.  However, Portable Linux (@http://webwarper.net/ww/rudd-o.com/new-projects/portablelinux) does.  I could solve the problem this way or I could edit the .ISO with isomaster.  In the case of the former (using Portable Linux)... Tiny Core Live Cd (.ISO) would have to support "Casper" (however, I would still have to figure out the "config").  For the latter (using unetbootin)... would it be as simple as copying the /tce folder to the root of the Tiny Core .ISO file before installation?  All input on this thread is a lifesaver... thank you.

[removed exe links]
« Last Edit: January 06, 2011, 12:57:44 AM by ^thehatsrule^ »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Persistence? (remastering)
« Reply #7 on: December 29, 2010, 06:06:21 PM »
As you appear a bit lost about where to start with to achieve persistence, allow me to make a suggestion to simplify things and take them step by step:

1. Boot from CD where bootloader is already installed and configured, and just add your own options at prompt upon each boot. This of course would require that the hardware available supports booting from CD.

2. Achieve persistence of dynamical (personal) data, using the TC feature of backup/restore.

3. Optionally achieve persistence of statical data (extensions) with a PPR.

All that is required is some storage space on a FAT* or ext* partition.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline _blue4meridian

  • Jr. Member
  • **
  • Posts: 50
Re: Persistence? (remastering)
« Reply #8 on: December 29, 2010, 06:25:24 PM »
Unfortunately, I only have a netbook (no disk drive just .ISOs) and I'm shooting for portability (USB stick) so I'm not really sure I can do it with unetbootin/isomaster or Portable Linux.  Still in all thanx again...

[removed exe links]
« Last Edit: January 06, 2011, 12:57:52 AM by ^thehatsrule^ »

Offline gutmensch

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 605
  • I can make it disappear, have no fear!
    • remembrance blog
Re: Persistence? (remastering)
« Reply #9 on: December 29, 2010, 07:39:44 PM »
Unetbootin uses syslinux to create a bootable linux filesystem. After you ran it for your usb key (assuming it is FAT on your key), browse it and create a folder structure tce/optional/. Put into optional all your desired extensions. Create a file called onboot.lst in tce/, which contains your extensions to load on startup.

Example (this is linux like, if you have windows, then create dirs and files within windows explorer, download the extensions in a browser, etc.):
Code: [Select]
cd /media/USB
mkdir -p tce/optional
cd tce
echo kmaps.tcz > onboot.lst
cd optional
wget http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/3.x/tcz/kmaps.tcz
wget http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/3.x/tcz/kmaps.tcz.md5.txt

Touch your backup file:
Code: [Select]
cd /media/USB
touch mydata.tgz

Open the file /media/USB/syslinux.cfg. Edit the tinycore entry. Example:
Code: [Select]
label ubnentry0
menu label tinycore
kernel /boot/bzImage
append initrd=/boot/tinycore.gz quiet

After or before quiet you can add boot codes. Example for a changed line:
Code: [Select]
append initrd=/boot/tinycore.gz quiet waitusb=6 tce=sda1 restore=sda1

Waitusb is necessary because usb devices need some time to be initialized on startup. The entries are assuming (sda1) that your usb key will be recognized by tinycore as the first scsi/usb/sata disk in the system. If you have other drives you may need to change it to /dev/sdb1 or /dev/sdc1, ...

Save your syslinux.cfg and plug the key in, boot from it. Take a look after a boot if the kmaps extension was loaded (must be present in /tmp/tcloop).
« Last Edit: December 29, 2010, 07:42:28 PM by gutmensch »
If I seem unduly clear to you, you must have misunderstood what I said. (Alan Greenspan)

Offline _blue4meridian

  • Jr. Member
  • **
  • Posts: 50
Re: Persistence? (remastering)
« Reply #10 on: December 30, 2010, 02:38:38 AM »
Ah, I see... What should I do as an alternative if I decide to use isomaster to change the .ISO to get persistence... simply add the /tce/optional folder to the root of the .ISO? The info to date has helped greatly... thanx.
« Last Edit: December 30, 2010, 02:42:52 AM by blue4meridian2 »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Persistence? (remastering)
« Reply #11 on: December 30, 2010, 12:49:02 PM »
Why remaster the .iso after stating that you can't boot from an optical drive?
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline _blue4meridian

  • Jr. Member
  • **
  • Posts: 50
Re: Persistence? (remastering)
« Reply #12 on: December 30, 2010, 01:00:47 PM »
As an additional optional approach (just in case I get access to a disk drive and/or as an easier alternative) I was interested in the possiblity of editing the .ISO then doing a unetbootin install. Although the /tce would be permanent (at least until the next .ISO edit)  I suppose the remaster (using isomaster) would be dual purpose (install/live) one.  Thanx for all the feedback.
« Last Edit: December 30, 2010, 02:10:26 PM by blue4meridian2 »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Persistence? (remastering)
« Reply #13 on: December 30, 2010, 01:47:27 PM »
tce needs to be writeable.
ISOs are not writeable.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Persistence? (remastering)
« Reply #14 on: December 30, 2010, 02:04:54 PM »
That could be helped by placing extensions into /opt/tce/optional, in which case then the default /tmp/tce will be used as tce_dir.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)