Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: nitram on January 31, 2015, 04:22:36 PM

Title: oopsed bootsync.sh, now won't boot
Post by: nitram on January 31, 2015, 04:22:36 PM
Playing around with my configuration and i oopsed my /opt/bootsync.sh file.

Tried forum search and didn't see anything - thought this would be a common rookie mistake.

Tried booting with multivt but the system doesn't boot far enough to allow.

Booted with norestore, boots but then of course just get default bootsync.sh file, how to modify my saved version?

Do i need to boot with liveCD, dual boot or norestore option, manually unzip mydata.tgz, fix file, rezip and hope it works? Anyway more elegant?
Title: Re: oopsed bootsync.sh, now won't boot
Post by: Rich on January 31, 2015, 05:36:42 PM
Hi nitram
Try booting with  norestore. Then execute:
Code: [Select]
filetool.sh -rwhich should perform a restore and give you access to your  /opt/bootsync.sh.
Title: [solved] Re: oopsed bootsync.sh, now won't boot
Post by: nitram on January 31, 2015, 07:19:34 PM
Thanks Rich it worked great!

Wasn't sure if filetool.sh -r would take so after fixing bootsync.sh issued ctrl-alt-del to terminal, startx again to confirm restored/proper setup and shutdown TC with a fresh backup. Learned my lesson and after the reboot promptly made a backup copy of mydata.tgz. Never used an OS that was so simple to backup - no excuses for me now.

marty
Title: Re: oopsed bootsync.sh, now won't boot
Post by: Rich on January 31, 2015, 09:23:19 PM
Hi nitram
Quote
Thanks Rich it worked great!
How about that, I got it right. ::)
Title: Re: oopsed bootsync.sh, now won't boot
Post by: CentralWare on February 01, 2015, 01:15:16 AM
@Rich: You usually do! :)

@nitram: You may want to consider throwing together a slightly more elaborate boot menu so that you always have a fall-back in case your experimentation(s) go South you can always boot to the same kernel/image with what ever boot codes (such as norestore) you think are prudent and if it hangs on you, simply reboot and choose the "clean" boot option instead of the default.

DEFAULT core
PROMPT 1
TIMEOUT 60

LABEL core
  MENU LABEL Tiny Core Linux
  KERNEL path/to/vmlinuz
  APPEND initrd=path/to/core.gz quiet syslog (and so on - your default settings)

LABEL corebackup
  MENU LABEL Tiny Core Linux (No Backup)
  KERNEL path/to/vmlinuz
  APPEND initrd=path/to/core.gz quiet syslog norestore (and so on like your default settings)

LABEL justcore
  MENU LABEL Tiny Core Base (No Extensions/Backup)
  KERNEL path/to/vmlinuz
  APPEND initrd=path/to/core.gz quiet base norestore


This way, you're always "in charge" and can break things without worry...  well, as long as you don't break the kernel or fs image! :)
Title: Re: oopsed bootsync.sh, now won't boot
Post by: nitram on February 01, 2015, 09:36:12 AM
Good idea. Thanks for the tip centralware.

Edit: Now if i can only get my brain to remember all possible commands - that's the ticket. Don't even remember reading about filetool.sh -r before.
Title: Re: oopsed bootsync.sh, now won't boot
Post by: Rich on February 01, 2015, 10:23:32 AM
Hi nitram
If you run:
Code: [Select]
filetool.sh --helpit will give you a list of options.
Title: Re: oopsed bootsync.sh, now won't boot
Post by: nitram on February 02, 2015, 09:39:33 AM
Thanks Rich.