Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: jjreina 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
-
Hi jjreina
To make jamvm persistent, just add
usr/local/jamvm
to /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.
mene.lst in /mnt/sda1/boot/grup/
You meant menu.lst in /mnt/sda1/boot/grub/
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.
-
Thanks for reply Rich, i´m trying to fix my /opt/.filetool.lst but my system no boot ok.
this is my .filetool.lst
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:
GRUB loading
Welcome to GRUB!
error: file not found
Entering recue mode
grub rescue>
thank you very mach.
-
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.
-
Thanks Rich, at end i reinstalled TC with persistence on home and opt and all ok :)
Thanks
-
sorry, one more question, i have got persistence on home and opt but the changes in .filetool.lts are not when I restart.
Thanks
-
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.
-
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
-
That last post makes no sense.
-
Hi jjreina
Please post the results for the following commands:
ls -l /mnt/sda1
showbootcodes
cat /opt/.filetool.lst
-
Hi Rich, thaks for help me.
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/
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
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
-
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:
usr/local/jamvm
usr/local/classpath
Then run a backup and you should be fine.
-
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
-
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
-
Thanks Rich,
My reply number 12 is often of to modify .filetool to only
usr/local/jamvm
usr/local/classpath
I have removed home, /opt, .filetool.lst ... all
Thanks