WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline nitram

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

Offline Rich

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

Offline nitram

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

Offline Rich

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

Offline CentralWare

  • Administrator
  • Hero Member
  • *****
  • Posts: 1652
Re: oopsed bootsync.sh, now won't boot
« Reply #4 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! :)
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline nitram

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

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11230
Re: oopsed bootsync.sh, now won't boot
« Reply #6 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.

Offline nitram

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