Jump to content

Is anybody familiar with tinyCore linux?

I am running it headless on a raspberry pi, and am having trouble with the backup system.

Resident Mozilla Shill.   Typed on my Ortholinear JJ40 custom keyboard
               __     I am the ASCIIDino.
              / _)
     _.----._/ /      If you can see me you 
    /         /       must put me in your 
 __/ (  | (  |        signature for 24 hours.
/__.-'|_|--|_|        
Link to comment
Share on other sites

Link to post
Share on other sites

Not familiar with it specifically, but if you describe your problem I might be able to help you...

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

So the thing with tinyCore is that it runs solely off of a ram disk, the distro is so small.  It is supposed to backup /home and /opt on shutdown, in order to minimize reads and writes.  (It's meant to be run on flash drives and the like).  For me, it wasn't.  I've just resolved to manually run backup before each shutdown, and that seems to be working.

 

Edit: @Sauron Sry, forgot to quote you.

Resident Mozilla Shill.   Typed on my Ortholinear JJ40 custom keyboard
               __     I am the ASCIIDino.
              / _)
     _.----._/ /      If you can see me you 
    /         /       must put me in your 
 __/ (  | (  |        signature for 24 hours.
/__.-'|_|--|_|        
Link to comment
Share on other sites

Link to post
Share on other sites

15 minutes ago, Fez_Boy said:

So the thing with tinyCore is that it runs solely off of a ram disk, the distro is so small.  It is supposed to backup /home and /opt on shutdown, in order to minimize reads and writes.  (It's meant to be run on flash drives and the like).  For me, it wasn't.  I've just resolved to manually run backup before each shutdown, and that seems to be working.

 

Edit: @Sauron Sry, forgot to quote you.

Did you have anything in the /tce directory?

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Sauron said:

Did you have anything in the /tce directory?

It looks like everything that is supposed to be there:
 

tc@box:/mnt/mmcblk0p2/tce$ ls
mydata.tgz        onboot.lst        ondemand/         optional/         provides.db       provides.db.part

 

Resident Mozilla Shill.   Typed on my Ortholinear JJ40 custom keyboard
               __     I am the ASCIIDino.
              / _)
     _.----._/ /      If you can see me you 
    /         /       must put me in your 
 __/ (  | (  |        signature for 24 hours.
/__.-'|_|--|_|        
Link to comment
Share on other sites

Link to post
Share on other sites

10 minutes ago, Fez_Boy said:

It looks like everything that is supposed to be there:

So, if I understand correctly, the script works but it doesn't run automatically at shutdown. Can you show me the contents of /etc/rc6.d/ ?

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

4 minutes ago, Sauron said:

So, if I understand correctly, the script works but it doesn't run automatically at shutdown. Can you show me the contents of /etc/rc6.d/ ?

Yep. There is no file rc6.d in /etc/

Resident Mozilla Shill.   Typed on my Ortholinear JJ40 custom keyboard
               __     I am the ASCIIDino.
              / _)
     _.----._/ /      If you can see me you 
    /         /       must put me in your 
 __/ (  | (  |        signature for 24 hours.
/__.-'|_|--|_|        
Link to comment
Share on other sites

Link to post
Share on other sites

4 minutes ago, Fez_Boy said:

Yep. There is no file rc6.d in /etc/

hm. What about /etc/rc.shutdown?

 

I'm looking for the file that tells the system to call the backup script at shutdown; if for some reason it was corrupted on the flash drive, it may be responsible for your problem.

 

On a side note, are you sure you're shutting the system down correctly? Pulling the plug obviously wouldn't give the backup script any time to run, and other "unconventional" shutdown methods might also cause issues.

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

3 minutes ago, Sauron said:

hm. What about /etc/rc.shutdown?

 

I'm looking for the file that tells the system to call the backup script at shutdown; if for some reason it was corrupted on the flash drive, it may be responsible for your problem.

Found it, it's /opt/shutdown.sh  Here's the pastebin: https://pastebin.com/7mUaYnm0
 

11 minutes ago, Sauron said:

On a side note, are you sure you're shutting the system down correctly? Pulling the plug obviously wouldn't give the backup script any time to run, and other "unconventional" shutdown methods might also cause issues.

I'm only shutting down via sudo poweroff and sudo reboot

Resident Mozilla Shill.   Typed on my Ortholinear JJ40 custom keyboard
               __     I am the ASCIIDino.
              / _)
     _.----._/ /      If you can see me you 
    /         /       must put me in your 
 __/ (  | (  |        signature for 24 hours.
/__.-'|_|--|_|        
Link to comment
Share on other sites

Link to post
Share on other sites

4 minutes ago, Fez_Boy said:

Found it, it's /opt/shutdown.sh  Here's the pastebin: https://pastebin.com/7mUaYnm0

 

Well, it doesn't look like there's a backup command there... what's in /etc/init.d/tc-functions?

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

18 minutes ago, Sauron said:

Well, it doesn't look like there's a backup command there... what's in /etc/init.d/tc-functions?

That might not be of any use anymore, as I just read the last line of this wiki article.  Sorry for my stupidity.  For future reference, one has to use exittc if they want to backup.

tc-functions

Resident Mozilla Shill.   Typed on my Ortholinear JJ40 custom keyboard
               __     I am the ASCIIDino.
              / _)
     _.----._/ /      If you can see me you 
    /         /       must put me in your 
 __/ (  | (  |        signature for 24 hours.
/__.-'|_|--|_|        
Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, Fez_Boy said:

That might not be of any use anymore, as I just read the last line of this wiki article.  Sorry for my stupidity.  For future reference, one has to use exittc if they want to backup.

tc-functions

Ohhh, so it was an incorrect shutdown after all. Oh well, at least it's solved.

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×