This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
KillaVanilla's profile picture

Hard Drive Partitioning BIOS

Started by KillaVanilla, 15 November 2012 - 03:59 PM
KillaVanilla #1
Posted 15 November 2012 - 04:59 PM
Hello all.

This BIOS mod will divide your (in-game) computer's hard drive into partitions/sections.
Each section can have its own startup file (which are still overridden by any startup files in disks). In addition, programs running in one partition are restricted to that partition (think chroot). In other words, programs run from one partition cannot edit files in another partition.

Partitions are stored as folders in the (real) root directory.
The inital partition is named "A", but partitions can have any name.
The BIOS also allows booting to the lua interpreter, in case something bad happened (like a virus attack) and you need to run cleanup operations.

You can get this BIOS mod from pastebin.

Do note that there may be a few issues related to booting to floppy disk drives.
lieudusty #2
Posted 15 November 2012 - 05:45 PM
This seems cool. :P/>/>
BigSHinyToys #3
Posted 15 November 2012 - 06:11 PM
you have duplicated a function
line 647 to 663 is the same as line 665 to 681 fs.move ?
KillaVanilla #4
Posted 16 November 2012 - 11:30 AM
you have duplicated a function
line 647 to 663 is the same as line 665 to 681 fs.move ?

Problem's fixed, that was supposed to be fs.copy.
Sammich Lord #5
Posted 16 November 2012 - 12:35 PM
It would be really cool if instead of a BIOs mod you could make it into a startup script with something similar to chroot.
KillaVanilla #6
Posted 16 November 2012 - 01:12 PM
It would be really cool if instead of a BIOS mod you could make it into a startup script with something similar to chroot.

This could be put inside of a startup script.