WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Help with persistance with hard drive install.  (Read 5551 times)

Offline emeddleton

  • Newbie
  • *
  • Posts: 5
Help with persistance with hard drive install.
« on: April 02, 2012, 12:29:42 PM »
I have installed tinycore 4.4 to my hard drive partition sdb1 and set it up using the boot codes home=sdb1 opt=sdb1 norestore.  Now that I have everything working and setup the way I like is it possible to keep the system in this state with no further updates or changes to the home and opt directories.  I am using e17 desktop manager and I would like to keep my /home/tc/.e directory with all its settings and firefox's bookmarks plus all the extensions I have set up.  I edited the file /opt/.filetool.lst to read just /opt/.filetool.lst. 

I have tried different settings and have read the documentation with no success and usually end up boinking my system and having to start over.  I guess I am still not clear on how to achieve the results I am looking for.

If anyone can offer advise I would sure appreciate it.

Thank you,

Eric

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Help with persistance with hard drive install.
« Reply #1 on: April 02, 2012, 02:06:54 PM »
It is hard to help you when you don't tell us what your problem is.
1. The norestore option will prevent you from loading any saved files in .filetool.lst.
2. If you are using the opt= boot option, you should have no opt files in .filetool.lst.
3. If you are using the home= boot option, you should have no home files in .filetool.lst.
4. You should not use advanced boot options until you understand them and have everything else working.

Offline emeddleton

  • Newbie
  • *
  • Posts: 5
Re: Help with persistance with hard drive install.
« Reply #2 on: April 02, 2012, 04:23:13 PM »
Thank you for responding.

I am trying to use my existing setup which is installed on sdb1 without changing it any further.  I would like to boot tinycore from sdb1 using my home and opt directories on sdb1 but not have anything further written to those directories and have the setup that I have now remain in its current state across reboots.  I do not know if this is possible from reading the documentation but that is what I am trying to achieve.   I do not understand how to install tinycore on my harddrive, set it up to my liking and then keep it in that state across reboots, but not have any changes made to my existing setup after using the system.

I used the home=sdb1 opt=sdb1 norestore boot options because I thought (wrongly) that would boot up my existing setup but not make any changes to it when I shut down. 

I hope I am being more clear this time.

Thank you,

Eric Meddleton

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Help with persistance with hard drive install.
« Reply #3 on: April 02, 2012, 07:10:50 PM »
Your actions seem to go in the exact opposite direction of your purpose...   :o

To achieve what you say, avoid persistent /home and /opt and just do a backup including all the files you want - once you have configured everything to your liking.
Then using the same backup at each boot will give you exactly the same result each time.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Help with persistance with hard drive install.
« Reply #4 on: April 02, 2012, 07:32:31 PM »
Hi emeddleton
Adding to tinypoodles comments, once the system is set up the way you wish, run a backup just that one time.
Then change the default to no backup on shutdown. You'll need to search the forum on how to do that, I don't
recall how it's done.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Help with persistance with hard drive install.
« Reply #5 on: April 02, 2012, 07:59:00 PM »
Hi emeddleton
Adding to tinypoodles comments, once the system is set up the way you wish, run a backup just that one time.
Then change the default to no backup on shutdown.

Latter would need to be included in the backup   ;)

Edit: ...or not necessarily so, according to the link Rich provides below
« Last Edit: April 02, 2012, 11:30:23 PM by tinypoodle »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: Help with persistance with hard drive install.
« Reply #6 on: April 02, 2012, 08:29:19 PM »
If I'm in this situation where I'm done with TC (or any other live system) and don't want (or need) a proper shutdown I just kill the power supply (either by removing a cable or a battery). I'd like to think that works pretty and is a rather quick solution (plus the joy of doing something you should usually never ever do).

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Help with persistance with hard drive install.
« Reply #7 on: April 02, 2012, 08:43:22 PM »
...but avoid such in case any storage medium is mounted read-write...   :o
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Help with persistance with hard drive install.
« Reply #8 on: April 02, 2012, 08:58:50 PM »
Hi emeddleton
Quote
Then change the default to no backup on shutdown. You'll need to search the forum on how to do that, I don't
recall how it's done.
Here's how to change the default to no backup:
http://forum.tinycorelinux.net/index.php/topic,11211.msg58585.html#msg58585

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Help with persistance with hard drive install.
« Reply #9 on: April 02, 2012, 11:32:24 PM »
Hi emeddleton
Quote
Then change the default to no backup on shutdown. You'll need to search the forum on how to do that, I don't
recall how it's done.
Here's how to change the default to no backup:
http://forum.tinycorelinux.net/index.php/topic,11211.msg58585.html#msg58585
Earlier post edited accordingly   :-[
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline emeddleton

  • Newbie
  • *
  • Posts: 5
Re: Help with persistance with hard drive install.
« Reply #10 on: April 03, 2012, 02:06:01 AM »
Thank you all for your help.

With your help I am getting closer.  I set tinycore back up on sdb1.  I removed my boot codes so the pertinent lines in grub just have:

title tinycore
    root (hd1,0)
    kernel /tce/boot/vmlinuz quiet root=/dev/disk/by-id/ata-MAXTOR_STM2500630AS_8RG3WST5-part1 max_loop=255

I edited the file /opt/.filetool.lst to read:
opt/.filetool.lst
home/tc/.e
home/tc/.mozilla/firefox/zypal44u.default/places.sqlite
home/tc/.vimrc
home/tc/.local/share/applications

Now the only problem is that when I reboot, my permissions on /home/tc/.mozilla changes ownership to root.  The same is true for:
/home/tc/.mozilla/firefox
 /home/tc/.mozilla/firefox/zypal44u.default
/home/tc/.local
/home/tc/.local/share

It seems that if the line in .filetool.lst contains more then one sub-directory after the tc directory, the ownership changes to root in all the sub-directories accept the last one in the line.  The file  /home/tc/.mozilla/firefox/zypal44u.default/places.sqlite has the correct ownership as does the directory /home/tc/.local/share/applications.

/opt/.filetool.lst    /home/tc/.e   and   /home/tc/.vmrc have the correct ownership.


I manually change all the wrong ownerships from root back to tc but when I reboot they change back to root again. 

I would appreciate any advice.

Thank you,

Eric Meddleton





Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Help with persistance with hard drive install.
« Reply #11 on: April 03, 2012, 02:40:43 AM »
Did you adapt /opt/.xfiletool.lst ?
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10957
Re: Help with persistance with hard drive install.
« Reply #12 on: April 03, 2012, 02:41:38 AM »
That is tar behavior, and has been discussed before. Not something we can really change.

Workaround I can think of would be to have .mozilla and .local, the base folders, in .filetool.lst, but remove anything in them you don't want backed up (or add them to .xfiletool.lst).
The only barriers that can stop you are the ones you create yourself.

Offline emeddleton

  • Newbie
  • *
  • Posts: 5
Re: Help with persistance with hard drive install.
« Reply #13 on: April 03, 2012, 02:47:24 AM »
Hi emeddleton
Quote
Then change the default to no backup on shutdown. You'll need to search the forum on how to do that, I don't
recall how it's done.
Here's how to change the default to no backup:
http://forum.tinycorelinux.net/index.php/topic,11211.msg58585.html#msg58585
Earlier post edited accordingly   :-[

If I use the bootcode norestore my initial settngs for my home directory are all gone.  Since I am using e17 I have to go through setting everythng back up such as backgrounds, menu settings, and virtual desktops.  It looks like booting up with the norestore bootcode creates a new mydata.tgz file instead of preserving the one with all my settings.



Eric Meddleton

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Help with persistance with hard drive install.
« Reply #14 on: April 03, 2012, 05:40:41 AM »
Hi emeddleton
When you do a backup, all the paths listed in .filetool.lst get saved to a file called mydata.tcz. When you boot,
Tinycore  RESTORES  whatever you backed up into that file. If you use the  norestore  boot code, that doesn't
happen. If you reboot again (without running backup) and omit that boot code, all your settings will be back.
Try this:
1. Place the following two lines in filetool.lst:
home
opt
2. Remove all entries from xfiletool.lst
3. Set the system up the way you want it.
4. Add  export BACKUP=0  to /home/tc/.profile
5. Do a backup.
6. Reboot without the  norestore  boot code.
7. Never run backup again.