Tiny Core Linux

General TC => General TC Talk => Topic started by: jdamianb on August 21, 2013, 01:15:56 PM

Title: Reboot from terminal loose .filetool.lst changes
Post by: jdamianb on August 21, 2013, 01:15:56 PM
Good day!

I'm testing the Tiny Core, I just downloaded the coreplus version and I run into this problem: When I modify the .filetool.lst file and then I do a reboot from terminal as root the modifications are lost. I want to know how should send a reboot from terminal, I usually use the command "reboot", on linux I can use the command shutdown -r now but it doesn't exist on TC. Also this problem occurs when I use the command "poweroff". I'm planning to use SSH to supervise the TC boxes so I really would need to know how to make the changes on .filetool.lst persistent.

BTW, this problem do not occur if the reboot is done by the GUI.

I do not consider myself an expert on linux but I have been playing with it for a while (like 5 years :S)
Title: Re: Reboot from terminal loose .filetool.lst changes
Post by: bmarkus on August 21, 2013, 01:25:14 PM
Backup changes before reboot:

Code: [Select]
backup
It will work if you are using a persistent mode, means you have a /tce dir on a storage media like USB, HDD.

It is also a good idea to read TC core concept and FAQ.
Title: Re: Reboot from terminal loose .filetool.lst changes
Post by: jdamianb on August 21, 2013, 01:52:37 PM
Thank you!  :D

I was about to answer myself, I found that if the command

filetool.sh -b

is used it will backup everything. I assume that the backup command is similar to the filetool.sh -b, isn't it?
Title: Re: Reboot from terminal loose .filetool.lst changes
Post by: coreplayer2 on August 21, 2013, 07:00:05 PM
You can also type

backup 

:)
Title: Re: Reboot from terminal loose .filetool.lst changes
Post by: bmarkus on August 21, 2013, 07:26:41 PM
You can also type

backup 

:)

See Reply #1
Title: Reboot from terminal loose .filetool.lst changes
Post by: coreplayer2 on August 21, 2013, 07:58:05 PM
lol at least we think alike

Ok then,  how about

backup && sudo poweroff

Or perhaps add " backup " to the shutdown script ?

:)
Title: Re: Reboot from terminal loose .filetool.lst changes
Post by: bmarkus on August 22, 2013, 02:15:10 AM
:)