Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
tutorial:oc3_hard_drives [2015/01/14 23:41]
127.0.0.1 external edit
tutorial:oc3_hard_drives [2016/02/17 21:11]
rakiru Fix grammatical error
Line 22: Line 22:
 We can now mount the hard drive while referring to it by name. Type `mount <​label>​ <​path>​` to mount the hard drive with the specified label at the specified path. Hard drives can be mounted in multiple locations, so doing that will not invalidate the default mount in the `/mnt` folder. We can now mount the hard drive while referring to it by name. Type `mount <​label>​ <​path>​` to mount the hard drive with the specified label at the specified path. Hard drives can be mounted in multiple locations, so doing that will not invalidate the default mount in the `/mnt` folder.
  
-Now, computers do not store any state across reboots. Meaning if you shut down or reboot your computer, it crashes or runs out of power, you'll have to mount your disk again after restarting. This can bet annoying very quickly, so let's create an autorun script that mounts the disk for us when it is inserted. Every hard drive can have such an autorun script. It has to be named `autorun` or `autorun.lua` and must be in the root of the hard drives folder structure. This script is automatically executed when the disk is installed in a computer - unless you disable autorun via the [[api:​filesystem|the file system API]].+Now, computers do not store any state across reboots. Meaning if you shut down or reboot your computer, it crashes or runs out of power, you'll have to mount your disk again after restarting. This can get annoying very quickly, so let's create an autorun script that mounts the disk for us when it is inserted. Every hard drive can have such an autorun script. It has to be named `autorun` or `autorun.lua` and must be in the root of the hard drives folder structure. This script is automatically executed when the disk is installed in a computer - unless you disable autorun via the [[api:​filesystem|the file system API]].
  
 Switch into your freshly mounted folder, and run `edit autorun.lua`. Switch into your freshly mounted folder, and run `edit autorun.lua`.