r/ComputerCraft • u/Mission-Thought-7954 • Jun 18 '26
how to factory reset a computer ?
so i am dumb and i put a script in /startup with os.reboot() and now i cant stop this script from rebooting in loop.
do any one know how i can factory reset or fix that ?
thanks in advance.
33
Upvotes
View all comments
Show parent comment
14
u/imachug Jun 18 '26
To clarify further, you two are describing different methods:
disk/startup.luaoverstartup.lua, so if you placestartup.luaon a disk via another device, you can boot other computers safely. That's your advice. Note that it doesn't work for pocket computers because they can't be connected to disk drives.Note that these two methods can actually break each other: if you place a "broken" computer in a disk drive, it's
startup.luawill become visible asdisk/startup.luato other computers, and they will refuse to boot as well! So boot the recovery computer first and only then place the broken computer in the disk drive.