Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started 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?
-
Hi nitram
Try booting with norestore. Then execute:
filetool.sh -r
which should perform a restore and give you access to your /opt/bootsync.sh.
-
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
-
Hi nitram
Thanks Rich it worked great!
How about that, I got it right. ::)
-
@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! :)
-
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.
-
Hi nitram
If you run:
filetool.sh --help
it will give you a list of options.
-
Thanks Rich.