WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: persistence  (Read 4334 times)

Offline jjreina

  • Jr. Member
  • **
  • Posts: 66
persistence
« on: November 08, 2011, 06:15:38 AM »
Hi all, i have installed jamvm and path is /usr/local/jamvm/ but when i reboot jamvm not persistence, i have read wiki, but i'm very noob and i don't know where amd how to change the boot option opt=da1 and home=sda1.

 i have add opt=da1 and home=sda1 to .filetool.lst but no work too i have installed grub2 but i don't find mene.lst in /mnt/sda1/boot/grup/

Thanks you very much.

edit:

lol I don´t know that I have changed but TC no start, show: not boot file is recived

Thx
« Last Edit: November 08, 2011, 07:57:59 AM by jjreina »

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11621
Re: persistence
« Reply #1 on: November 08, 2011, 09:04:34 AM »
Hi jjreina
To make  jamvm  persistent, just add
Code: [Select]
usr/local/jamvmto  /opt/.filetool.lst. If  jamvm  keeps any configuration files outside of that directory, you will have to
add those too. For example, if there is a  jamvm.conf  in  /usr/local/etc, then you would add
usr/local/etc/jamvm.conf  to  /opt/.filetool.lst.
Remove opt=da1 and home=sda1 from /opt/.filetool.lst.
Quote
mene.lst in /mnt/sda1/boot/grup/
You meant  menu.lst in /mnt/sda1/boot/grub/
Quote
opt=da1
You meant  opt=sda1
Before you try adding a persistent  /home  and  /opt,  fix your  /opt/.filetool.lst  and see if you can get
you system to boot again.

Offline jjreina

  • Jr. Member
  • **
  • Posts: 66
Re: persistence
« Reply #2 on: November 10, 2011, 04:22:14 AM »
Thanks for reply Rich, i´m trying to fix my  /opt/.filetool.lst but my system no boot ok.

this is my .filetool.lst
Code: [Select]
tc@box:/opt$ cat .filetool.lst
opt/bootlocal.sh
opt/bootsync.sh
opt/shutdown.sh
opt/tcemirror
opt/.filetool.lst
opt/.xfiletool.lst
home
opt/backgrounds

this is error message:

Code: [Select]
GRUB loading
Welcome to GRUB!
error: file not found
Entering recue mode
grub rescue>

thank you very mach.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11621
Re: persistence
« Reply #3 on: November 10, 2011, 07:32:48 AM »
Hi jjreina
I've never used  GRUB2  it seems that the file is now called  grub.cfg  and you have to create it
yourself. Open  AppBrowser and read the  Info  tab for  Grub2.tcz, it has instructions.


Offline jjreina

  • Jr. Member
  • **
  • Posts: 66
Re: persistence
« Reply #4 on: November 15, 2011, 05:48:01 AM »
Thanks Rich, at end i reinstalled TC with persistence on home and opt and all ok :)

Thanks

Offline jjreina

  • Jr. Member
  • **
  • Posts: 66
Re: persistence
« Reply #5 on: November 15, 2011, 07:37:38 AM »
sorry, one more question, i have got persistence on home and opt but the changes in .filetool.lts are not when I restart.


Thanks

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11621
Re: persistence
« Reply #6 on: November 15, 2011, 08:33:53 AM »
Hi jjreina
Since your  home  and  opt  directories are persistent, remove any lines that start with  home  or  opt
from your  .filetool.lst  file. Add whatever other changes you need to  .filetool.lst  and then run a
backup prior to restarting.

Offline jjreina

  • Jr. Member
  • **
  • Posts: 66
Re: persistence
« Reply #7 on: November 15, 2011, 10:52:41 AM »
Thanks Rich, if i reboot with backup option (tce/sda1) the changes are persistences but if i typed sudo reboot the changes not persistences.

Thanks

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: persistence
« Reply #8 on: November 15, 2011, 11:31:11 AM »
That last post makes no sense.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11621
Re: persistence
« Reply #9 on: November 15, 2011, 12:59:16 PM »
Hi jjreina
Please post the results for the following commands:
Code: [Select]
ls -l /mnt/sda1
showbootcodes
cat /opt/.filetool.lst

Offline jjreina

  • Jr. Member
  • **
  • Posts: 66
Re: persistence
« Reply #10 on: November 16, 2011, 02:41:55 AM »
Hi Rich, thaks for help me.

Code: [Select]
tc@box:~$ ls -l /mnt/sda1/
total 32
drwxr-xr-x    4 root     root          4096 Nov 15 10:30 boot/
drwxr-xr-x    3 root     root          4096 Mar  4  2010 home/
drwx------    2 root     root         16384 Nov  4 09:33 lost+found/
drwxrwsr-x    3 root     staff         4096 Nov 16 07:33 opt/
drwxrwxr-x    3 tc       staff         4096 Nov 15 12:57 tce/
Code: [Select]
tc@box:~$ showbootcodes
initrd=/boot/tinycore.gz quiet opt=sda1 home=sda1 waitusb=5:UUID="19cb21a6-a01e-                                                     
473d-8fbc-6171bae91777" tce=UUID="19cb21a6-a01e-473d-8fbc-6171bae91777" BOOT_IMAGE=/boot/vmlinuz
Code: [Select]
tc@box:~$ cat /opt/.filetool.lst
opt/bootlocal.sh
opt/bootsync.sh
opt/shutdown.sh
opt/tcemirror
opt/.filetool.lst
opt/.xfiletool.lst
home
opt/backgrounds
usr/local/jamvm
usr/local/classpath
opt/eth0.sh

Thanks


Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11621
Re: persistence
« Reply #11 on: November 16, 2011, 07:53:12 AM »
Hi jjreina
Your  /opt  and  /home  directories are already persistent and should NOT be included in  .filetool.lst.
Change your  .filetool.lst  to look like this:
Code: [Select]
usr/local/jamvm
usr/local/classpath
Then run a  backup  and you should be fine.

Offline jjreina

  • Jr. Member
  • **
  • Posts: 66
Re: persistence
« Reply #12 on: November 16, 2011, 08:32:18 AM »
Thanks Rich,

If i reboot with backuo option all persistence into /usr/local/jamvm and /usr/local/classparth

e.g. sudo mkdir /usr/local/classparth/test

but if i reboot only with sudo reboot test not persistence.

Thanks you very much and excus me for my english

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11621
Re: persistence
« Reply #13 on: November 16, 2011, 08:50:16 AM »
Hi jjreina
Just as a follow up, if you run  sudo reboot,  it does NOT automatically run a  backup. As a result, when
your machine reboots, it will restore what was previously saved in your backup.
Here is an example of what is happening to you:
1. You modify your .filetool.lst
2. You add FILE1 to your /home/tc directory
3. You remove FILE2 from your /home/tc directory
4. You run  sudo reboot
5. Because you have  opt/.filetool.lst  and  home  listed in  .filetool.lst
    A. Your old .filetool.lst is restored
    B. FILE1 is missing from your /home/tc directory
    C. FILE2 is back in your /home/tc directory

Offline jjreina

  • Jr. Member
  • **
  • Posts: 66
Re: persistence
« Reply #14 on: November 16, 2011, 11:51:03 AM »
Thanks Rich,

My reply number 12 is often of to modify .filetool to only

Code: [Select]
usr/local/jamvm
usr/local/classpath

I have removed home, /opt, .filetool.lst ... all

Thanks