|
| 1 | +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 2 | +<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US"> |
| 3 | +<head> |
| 4 | +<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 5 | +<meta http-equiv="X-UA-Compatible" content="IE=11"/> |
| 6 | +<meta name="generator" content="Doxygen 1.14.0"/> |
| 7 | +<meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 8 | +<title>Retro Rocket OS: mount command</title> |
| 9 | +<link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 10 | +<script type="text/javascript" src="jquery.js"></script> |
| 11 | +<script type="text/javascript" src="dynsections.js"></script> |
| 12 | +<script type="text/javascript" src="clipboard.js"></script> |
| 13 | +<link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 14 | +<script type="text/javascript" src="navtreedata.js"></script> |
| 15 | +<script type="text/javascript" src="navtree.js"></script> |
| 16 | +<script type="text/javascript" src="cookie.js"></script> |
| 17 | +<link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 18 | +<script type="text/javascript" src="search/searchdata.js"></script> |
| 19 | +<script type="text/javascript" src="search/search.js"></script> |
| 20 | +<link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 21 | +<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/> |
| 22 | +<link href="style.css" rel="stylesheet" type="text/css"/> |
| 23 | +</head> |
| 24 | +<body> |
| 25 | +<div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 26 | +<div id="titlearea"> |
| 27 | +<table cellspacing="0" cellpadding="0"> |
| 28 | + <tbody> |
| 29 | + <tr id="projectrow"> |
| 30 | + <td id="projectlogo"><img alt="Logo" src="rr.png"/></td> |
| 31 | + <td id="projectalign"> |
| 32 | + <div id="projectname">Retro Rocket OS |
| 33 | + </div> |
| 34 | + <div id="projectbrief">BASIC-Powered Operating System</div> |
| 35 | + </td> |
| 36 | + </tr> |
| 37 | + </tbody> |
| 38 | +</table> |
| 39 | +</div> |
| 40 | +<!-- end header part --> |
| 41 | +<!-- Generated by Doxygen 1.14.0 --> |
| 42 | +<script type="text/javascript"> |
| 43 | +var searchBox = new SearchBox("searchBox", "search/",'.html'); |
| 44 | +</script> |
| 45 | +<script type="text/javascript"> |
| 46 | +$(function() { codefold.init(); }); |
| 47 | +</script> |
| 48 | +<script type="text/javascript" src="menudata.js"></script> |
| 49 | +<script type="text/javascript" src="menu.js"></script> |
| 50 | +<script type="text/javascript"> |
| 51 | +$(function() { |
| 52 | + initMenu('',true,false,'search.php','Search',true); |
| 53 | + $(function() { init_search(); }); |
| 54 | +}); |
| 55 | +</script> |
| 56 | +<div id="main-nav"></div> |
| 57 | +</div><!-- top --> |
| 58 | +<div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 59 | + <div id="nav-tree"> |
| 60 | + <div id="nav-tree-contents"> |
| 61 | + <div id="nav-sync" class="sync"></div> |
| 62 | + </div> |
| 63 | + </div> |
| 64 | + <div id="splitbar" style="-moz-user-select:none;" |
| 65 | + class="ui-resizable-handle"> |
| 66 | + </div> |
| 67 | +</div> |
| 68 | +<script type="text/javascript"> |
| 69 | +$(function(){initNavTree('mount-command.html','',''); }); |
| 70 | +</script> |
| 71 | +<div id="container"> |
| 72 | +<div id="doc-content"> |
| 73 | +<!-- window showing the filter options --> |
| 74 | +<div id="MSearchSelectWindow" |
| 75 | + onmouseover="return searchBox.OnSearchSelectShow()" |
| 76 | + onmouseout="return searchBox.OnSearchSelectHide()" |
| 77 | + onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 78 | +</div> |
| 79 | + |
| 80 | +<!-- iframe showing the search results (closed by default) --> |
| 81 | +<div id="MSearchResultsWindow"> |
| 82 | +<div id="MSearchResults"> |
| 83 | +<div class="SRPage"> |
| 84 | +<div id="SRIndex"> |
| 85 | +<div id="SRResults"></div> |
| 86 | +<div class="SRStatus" id="Loading">Loading...</div> |
| 87 | +<div class="SRStatus" id="Searching">Searching...</div> |
| 88 | +<div class="SRStatus" id="NoMatches">No Matches</div> |
| 89 | +</div> |
| 90 | +</div> |
| 91 | +</div> |
| 92 | +</div> |
| 93 | + |
| 94 | +<div><div class="header"> |
| 95 | + <div class="headertitle"><div class="title">mount command </div></div> |
| 96 | +</div><!--header--> |
| 97 | +<div class="contents"> |
| 98 | +<div class="textblock"><h2 class="doxsection"><a class="anchor" id="mount-directory-storage-device-name-filesystem-type"></a> |
| 99 | +mount [directory] [storage-device-name] [filesystem-type]</h2> |
| 100 | +<p>Attaches a file system on a storage device to the visible set of directories and files you can see and work with.</p> |
| 101 | +<p>Think of mounting a filesystem like plugging in something to a power outlet. Once you have plugged it in and turned it on, it is available to use. This is basically how file systems work.</p> |
| 102 | +<ul> |
| 103 | +<li>The first parameter is the directory, this can be any existing empty directory in the file system. For example /harddisk, /ramdisk, etc.</li> |
| 104 | +<li>The second parameter is a storage device name. Storage device names are allocated by the system. Hard disks (SATA, NVMe etc) start with <span class="tt">hd</span> and are suffixed by number starting at 0, so the first found hard disk is <span class="tt">hd0</span>, the next <span class="tt">hd1</span> etc. Ram disks start with <span class="tt">ram</span> amd a number. CD/DVD drives start with <span class="tt">cd</span> and a number.</li> |
| 105 | +<li>The third parameter is a filesystem type, supported file system types are listed below.</li> |
| 106 | +</ul> |
| 107 | +<table class="markdownTable"> |
| 108 | +<tr class="markdownTableHead"> |
| 109 | +<th class="markdownTableHeadNone">File system type </th><th class="markdownTableHeadNone">Full name </th><th class="markdownTableHeadNone">Description </th></tr> |
| 110 | +<tr class="markdownTableRowOdd"> |
| 111 | +<td class="markdownTableBodyNone">rfs </td><td class="markdownTableBodyNone">RetroFS, the Retro Rocket native file system </td><td class="markdownTableBodyNone">Readable, writeable file system for large hard disks, e.g. NVMe, SATA. The default file system type for fixed disks and ramdisks </td></tr> |
| 112 | +<tr class="markdownTableRowEven"> |
| 113 | +<td class="markdownTableBodyNone">iso9660 </td><td class="markdownTableBodyNone">ISO 9660 file system for CDs and DVDs </td><td class="markdownTableBodyNone">Read-only file system mainly for CDs and DVDs. The default file system of the Retro Rocket LiveCD </td></tr> |
| 114 | +<tr class="markdownTableRowOdd"> |
| 115 | +<td class="markdownTableBodyNone">fat32 </td><td class="markdownTableBodyNone">FAT32 DOS and Windows file system </td><td class="markdownTableBodyNone">Readable, writeable file system used for removable media, and the recovery/boot partition of installed systems </td></tr> |
| 116 | +<tr class="markdownTableRowEven"> |
| 117 | +<td class="markdownTableBodyNone">devfs </td><td class="markdownTableBodyNone">Device tree file system </td><td class="markdownTableBodyNone">Readable, writeable file system which device drivers may use to expose device-specific information and control surfaces. * </td></tr> |
| 118 | +<tr class="markdownTableRowOdd"> |
| 119 | +<td class="markdownTableBodyNone">dummyfs </td><td class="markdownTableBodyNone">Dummy File System </td><td class="markdownTableBodyNone">The dummy file system does nothing, you cannot read or write to it. It is the placeholder for everything until the system boots </td></tr> |
| 120 | +</table> |
| 121 | +<ul> |
| 122 | +<li>For <span class="tt">devfs</span>, you cannot create arbitrary files in this file system. Your ability to read from, or write to the files in this directory depends on the behaviour of the driver which places the file there.</li> |
| 123 | +</ul> |
| 124 | +<h3 class="doxsection"><a class="anchor" id="example-15"></a> |
| 125 | +Example</h3> |
| 126 | +<div class="fragment"><div class="line">mount /harddisk hd0 rfs</div> |
| 127 | +</div><!-- fragment --><h3 class="doxsection"><a class="anchor" id="notes-192"></a> |
| 128 | +Notes</h3> |
| 129 | +<ul> |
| 130 | +<li>Mounting a storage device with a file system it is not configured for will result in an error</li> |
| 131 | +<li>Unmounting file systems is <b>not yet supported</b>. To clear a mounting, it is currently required that you reboot the system. </li> |
| 132 | +</ul> |
| 133 | +</div></div><!-- contents --> |
| 134 | +</div><!-- PageDoc --> |
| 135 | +</div><!-- doc-content --> |
| 136 | +<div id="page-nav" class="page-nav-panel"> |
| 137 | +<div id="page-nav-resize-handle"></div> |
| 138 | +<div id="page-nav-tree"> |
| 139 | +<div id="page-nav-contents"> |
| 140 | +</div><!-- page-nav-contents --> |
| 141 | +</div><!-- page-nav-tree --> |
| 142 | +</div><!-- page-nav --> |
| 143 | +</div><!-- container --> |
| 144 | +<!-- start footer part --> |
| 145 | +<div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 146 | + <ul> |
| 147 | + <li class="navelem"><a href="index.html">Retro Rocket OS</a></li><li class="navelem"><a href="user-guide.html">User Guide</a></li><li class="navelem"><a href="commands.html">Commands</a></li> |
| 148 | + <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.14.0 </li> |
| 149 | + </ul> |
| 150 | +</div> |
| 151 | +</body> |
| 152 | +</html> |
0 commit comments