WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: oopsed bootsync.sh, now won't boot  (Read 2227 times)

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
oopsed bootsync.sh, now won't boot
« on: January 31, 2015, 07: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?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11619
Re: oopsed bootsync.sh, now won't boot
« Reply #1 on: January 31, 2015, 08: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.

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
[solved] Re: oopsed bootsync.sh, now won't boot
« Reply #2 on: January 31, 2015, 10: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

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11619
Re: oopsed bootsync.sh, now won't boot
« Reply #3 on: February 01, 2015, 12:23:19 AM »
Hi nitram
Quote
Thanks Rich it worked great!
How about that, I got it right. ::)

Offline CentralWare

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 764
Re: oopsed bootsync.sh, now won't boot
« Reply #4 on: February 01, 2015, 04: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! :)

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: oopsed bootsync.sh, now won't boot
« Reply #5 on: February 01, 2015, 12:36:12 PM »
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.
« Last Edit: February 01, 2015, 12:38:03 PM by nitram »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11619
Re: oopsed bootsync.sh, now won't boot
« Reply #6 on: February 01, 2015, 01:23:32 PM »
Hi nitram
If you run:
Code: [Select]
filetool.sh --helpit will give you a list of options.

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: oopsed bootsync.sh, now won't boot
« Reply #7 on: February 02, 2015, 12:39:33 PM »
Thanks Rich.