User documentation and guides for products sold on the Libre Tech Shop. https://docs.libretech.shop
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1090 lines
28 KiB

  1. <!doctype html>
  2. <html lang="en" class="no-js">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1">
  6. <meta name="description" content="Accessible & Free Documentation for Libre Products">
  7. <meta name="author" content="Abhas Abhinav">
  8. <link rel="icon" href="../../images/als-icon.png">
  9. <meta name="generator" content="mkdocs-1.2.3, mkdocs-material-8.1.7">
  10. <title>(MHUSB) Internals - LibreTechShop - Documentation</title>
  11. <link rel="stylesheet" href="../../assets/stylesheets/main.cd566b2a.min.css">
  12. <link rel="stylesheet" href="../../assets/stylesheets/palette.e6a45f82.min.css">
  13. <meta name="theme-color" content="#7e56c2">
  14. <link rel="stylesheet" href="../../css/extra.css">
  15. <script>__md_scope=new URL("../..",location),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
  16. </head>
  17. <body dir="ltr" data-md-color-scheme="light" data-md-color-primary="deep-purple" data-md-color-accent="pink">
  18. <input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
  19. <input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
  20. <label class="md-overlay" for="__drawer"></label>
  21. <div data-md-component="skip">
  22. <a href="#mh-usb-internals" class="md-skip">
  23. Skip to content
  24. </a>
  25. </div>
  26. <div data-md-component="announce">
  27. </div>
  28. <header class="md-header" data-md-component="header">
  29. <nav class="md-header__inner md-grid" aria-label="Header">
  30. <a href="../.." title="LibreTechShop - Documentation" class="md-header__button md-logo" aria-label="LibreTechShop - Documentation" data-md-component="logo">
  31. <img src="../../images/als-icon.png" alt="logo">
  32. </a>
  33. <label class="md-header__button md-icon" for="__drawer">
  34. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"/></svg>
  35. </label>
  36. <div class="md-header__title" data-md-component="header-title">
  37. <div class="md-header__ellipsis">
  38. <div class="md-header__topic">
  39. <span class="md-ellipsis">
  40. LibreTechShop - Documentation
  41. </span>
  42. </div>
  43. <div class="md-header__topic" data-md-component="header-topic">
  44. <span class="md-ellipsis">
  45. (MHUSB) Internals
  46. </span>
  47. </div>
  48. </div>
  49. </div>
  50. <label class="md-header__button md-icon" for="__search">
  51. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
  52. </label>
  53. <div class="md-search" data-md-component="search" role="dialog">
  54. <label class="md-search__overlay" for="__search"></label>
  55. <div class="md-search__inner" role="search">
  56. <form class="md-search__form" name="search">
  57. <input type="text" class="md-search__input" name="query" aria-label="Search" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" required>
  58. <label class="md-search__icon md-icon" for="__search">
  59. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"/></svg>
  60. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
  61. </label>
  62. <nav class="md-search__options" aria-label="Search">
  63. <button type="reset" class="md-search__icon md-icon" aria-label="Clear" tabindex="-1">
  64. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>
  65. </button>
  66. </nav>
  67. </form>
  68. <div class="md-search__output">
  69. <div class="md-search__scrollwrap" data-md-scrollfix>
  70. <div class="md-search-result" data-md-component="search-result">
  71. <div class="md-search-result__meta">
  72. Initializing search
  73. </div>
  74. <ol class="md-search-result__list"></ol>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. <div class="md-header__source">
  81. <a href="https://sovran.dev/mh/lts-docs" title="Go to repository" class="md-source" data-md-component="source">
  82. <div class="md-source__icon md-icon">
  83. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M439.55 236.05 244 40.45a28.87 28.87 0 0 0-40.81 0l-40.66 40.63 51.52 51.52c27.06-9.14 52.68 16.77 43.39 43.68l49.66 49.66c34.23-11.8 61.18 31 35.47 56.69-26.49 26.49-70.21-2.87-56-37.34L240.22 199v121.85c25.3 12.54 22.26 41.85 9.08 55a34.34 34.34 0 0 1-48.55 0c-17.57-17.6-11.07-46.91 11.25-56v-123c-20.8-8.51-24.6-30.74-18.64-45L142.57 101 8.45 235.14a28.86 28.86 0 0 0 0 40.81l195.61 195.6a28.86 28.86 0 0 0 40.8 0l194.69-194.69a28.86 28.86 0 0 0 0-40.81z"/></svg>
  84. </div>
  85. <div class="md-source__repository">
  86. mh/lts-docs
  87. </div>
  88. </a>
  89. </div>
  90. </nav>
  91. </header>
  92. <div class="md-container" data-md-component="container">
  93. <main class="md-main" data-md-component="main">
  94. <div class="md-main__inner md-grid">
  95. <div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
  96. <div class="md-sidebar__scrollwrap">
  97. <div class="md-sidebar__inner">
  98. <nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
  99. <label class="md-nav__title" for="__drawer">
  100. <a href="../.." title="LibreTechShop - Documentation" class="md-nav__button md-logo" aria-label="LibreTechShop - Documentation" data-md-component="logo">
  101. <img src="../../images/als-icon.png" alt="logo">
  102. </a>
  103. LibreTechShop - Documentation
  104. </label>
  105. <div class="md-nav__source">
  106. <a href="https://sovran.dev/mh/lts-docs" title="Go to repository" class="md-source" data-md-component="source">
  107. <div class="md-source__icon md-icon">
  108. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M439.55 236.05 244 40.45a28.87 28.87 0 0 0-40.81 0l-40.66 40.63 51.52 51.52c27.06-9.14 52.68 16.77 43.39 43.68l49.66 49.66c34.23-11.8 61.18 31 35.47 56.69-26.49 26.49-70.21-2.87-56-37.34L240.22 199v121.85c25.3 12.54 22.26 41.85 9.08 55a34.34 34.34 0 0 1-48.55 0c-17.57-17.6-11.07-46.91 11.25-56v-123c-20.8-8.51-24.6-30.74-18.64-45L142.57 101 8.45 235.14a28.86 28.86 0 0 0 0 40.81l195.61 195.6a28.86 28.86 0 0 0 40.8 0l194.69-194.69a28.86 28.86 0 0 0 0-40.81z"/></svg>
  109. </div>
  110. <div class="md-source__repository">
  111. mh/lts-docs
  112. </div>
  113. </a>
  114. </div>
  115. <ul class="md-nav__list" data-md-scrollfix>
  116. <li class="md-nav__item">
  117. <a href="../.." class="md-nav__link">
  118. Home
  119. </a>
  120. </li>
  121. <li class="md-nav__item md-nav__item--nested">
  122. <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_2" type="checkbox" id="__nav_2" >
  123. <label class="md-nav__link" for="__nav_2">
  124. LC230
  125. <span class="md-nav__icon md-icon"></span>
  126. </label>
  127. <nav class="md-nav" aria-label="LC230" data-md-level="1">
  128. <label class="md-nav__title" for="__nav_2">
  129. <span class="md-nav__icon md-icon"></span>
  130. LC230
  131. </label>
  132. <ul class="md-nav__list" data-md-scrollfix>
  133. <li class="md-nav__item">
  134. <a href="../../lc230/" class="md-nav__link">
  135. (LC230) Overview
  136. </a>
  137. </li>
  138. <li class="md-nav__item">
  139. <a href="../../lc230/user-guide/" class="md-nav__link">
  140. (LC230) User Guide
  141. </a>
  142. </li>
  143. <li class="md-nav__item">
  144. <a href="../../lc230/troubleshooting/" class="md-nav__link">
  145. (LC230) Troubleshooting
  146. </a>
  147. </li>
  148. </ul>
  149. </nav>
  150. </li>
  151. <li class="md-nav__item md-nav__item--active md-nav__item--nested">
  152. <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_3" type="checkbox" id="__nav_3" checked>
  153. <label class="md-nav__link" for="__nav_3">
  154. MH-USB
  155. <span class="md-nav__icon md-icon"></span>
  156. </label>
  157. <nav class="md-nav" aria-label="MH-USB" data-md-level="1">
  158. <label class="md-nav__title" for="__nav_3">
  159. <span class="md-nav__icon md-icon"></span>
  160. MH-USB
  161. </label>
  162. <ul class="md-nav__list" data-md-scrollfix>
  163. <li class="md-nav__item">
  164. <a href="../" class="md-nav__link">
  165. (MHUSB) About & Contents
  166. </a>
  167. </li>
  168. <li class="md-nav__item">
  169. <a href="../use/" class="md-nav__link">
  170. (MHUSB) Using the USB disk
  171. </a>
  172. </li>
  173. <li class="md-nav__item">
  174. <a href="../update/" class="md-nav__link">
  175. (MHUSB) Add / Update images
  176. </a>
  177. </li>
  178. <li class="md-nav__item md-nav__item--active">
  179. <input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
  180. <label class="md-nav__link md-nav__link--active" for="__toc">
  181. (MHUSB) Internals
  182. <span class="md-nav__icon md-icon"></span>
  183. </label>
  184. <a href="./" class="md-nav__link md-nav__link--active">
  185. (MHUSB) Internals
  186. </a>
  187. <nav class="md-nav md-nav--secondary" aria-label="Table of contents">
  188. <label class="md-nav__title" for="__toc">
  189. <span class="md-nav__icon md-icon"></span>
  190. Table of contents
  191. </label>
  192. <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
  193. <li class="md-nav__item">
  194. <a href="#mh-usb-performance" class="md-nav__link">
  195. MH-USB Performance
  196. </a>
  197. <nav class="md-nav" aria-label="MH-USB Performance">
  198. <ul class="md-nav__list">
  199. <li class="md-nav__item">
  200. <a href="#usb2-version" class="md-nav__link">
  201. USB2 Version
  202. </a>
  203. </li>
  204. <li class="md-nav__item">
  205. <a href="#usb3-version" class="md-nav__link">
  206. USB3 Version
  207. </a>
  208. </li>
  209. </ul>
  210. </nav>
  211. </li>
  212. <li class="md-nav__item">
  213. <a href="#the-mh-usb-partition-layout" class="md-nav__link">
  214. The MH-USB partition layout
  215. </a>
  216. <nav class="md-nav" aria-label="The MH-USB partition layout">
  217. <ul class="md-nav__list">
  218. <li class="md-nav__item">
  219. <a href="#the-ventoy-partion-layout" class="md-nav__link">
  220. The Ventoy partion layout
  221. </a>
  222. </li>
  223. <li class="md-nav__item">
  224. <a href="#the-16-gb-model" class="md-nav__link">
  225. The 16 GB model
  226. </a>
  227. </li>
  228. <li class="md-nav__item">
  229. <a href="#the-32-gb-model" class="md-nav__link">
  230. The 32 GB model
  231. </a>
  232. </li>
  233. </ul>
  234. </nav>
  235. </li>
  236. <li class="md-nav__item">
  237. <a href="#using-the-mh-usb-source-code" class="md-nav__link">
  238. Using the MH-USB Source Code
  239. </a>
  240. <nav class="md-nav" aria-label="Using the MH-USB Source Code">
  241. <ul class="md-nav__list">
  242. <li class="md-nav__item">
  243. <a href="#overview-of-the-source-code" class="md-nav__link">
  244. Overview of the source code
  245. </a>
  246. </li>
  247. <li class="md-nav__item">
  248. <a href="#the-scripts" class="md-nav__link">
  249. The scripts
  250. </a>
  251. </li>
  252. <li class="md-nav__item">
  253. <a href="#installing-mh-usb" class="md-nav__link">
  254. Installing MH-USB
  255. </a>
  256. </li>
  257. <li class="md-nav__item">
  258. <a href="#customising-the-mh-usb" class="md-nav__link">
  259. Customising the MH-USB
  260. </a>
  261. </li>
  262. </ul>
  263. </nav>
  264. </li>
  265. </ul>
  266. </nav>
  267. </li>
  268. <li class="md-nav__item">
  269. <a href="../faqs/" class="md-nav__link">
  270. (MHUSB) FAQs
  271. </a>
  272. </li>
  273. </ul>
  274. </nav>
  275. </li>
  276. <li class="md-nav__item md-nav__item--nested">
  277. <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_4" type="checkbox" id="__nav_4" >
  278. <label class="md-nav__link" for="__nav_4">
  279. Routers
  280. <span class="md-nav__icon md-icon"></span>
  281. </label>
  282. <nav class="md-nav" aria-label="Routers" data-md-level="1">
  283. <label class="md-nav__title" for="__nav_4">
  284. <span class="md-nav__icon md-icon"></span>
  285. Routers
  286. </label>
  287. <ul class="md-nav__list" data-md-scrollfix>
  288. <li class="md-nav__item">
  289. <a href="../../routers/" class="md-nav__link">
  290. Introduction
  291. </a>
  292. </li>
  293. <li class="md-nav__item">
  294. <a href="../../routers/first-use/" class="md-nav__link">
  295. First Use
  296. </a>
  297. </li>
  298. <li class="md-nav__item">
  299. <a href="../../routers/next-steps/" class="md-nav__link">
  300. Next Steps
  301. </a>
  302. </li>
  303. <li class="md-nav__item">
  304. <a href="../../routers/optional-steps/" class="md-nav__link">
  305. Optional Steps
  306. </a>
  307. </li>
  308. <li class="md-nav__item">
  309. <a href="../../routers/cli/" class="md-nav__link">
  310. Command Line Guide
  311. </a>
  312. </li>
  313. <li class="md-nav__item">
  314. <a href="../../routers/upgrade/" class="md-nav__link">
  315. Upgrading OpenWrt
  316. </a>
  317. </li>
  318. </ul>
  319. </nav>
  320. </li>
  321. <li class="md-nav__item md-nav__item--nested">
  322. <input class="md-nav__toggle md-toggle" data-md-toggle="__nav_5" type="checkbox" id="__nav_5" >
  323. <label class="md-nav__link" for="__nav_5">
  324. Phones
  325. <span class="md-nav__icon md-icon"></span>
  326. </label>
  327. <nav class="md-nav" aria-label="Phones" data-md-level="1">
  328. <label class="md-nav__title" for="__nav_5">
  329. <span class="md-nav__icon md-icon"></span>
  330. Phones
  331. </label>
  332. <ul class="md-nav__list" data-md-scrollfix>
  333. <li class="md-nav__item">
  334. <a href="../../phones/" class="md-nav__link">
  335. Introduction
  336. </a>
  337. </li>
  338. <li class="md-nav__item">
  339. <a href="../../phones/lineageos/" class="md-nav__link">
  340. LineageOS
  341. </a>
  342. </li>
  343. <li class="md-nav__item">
  344. <a href="../../phones/f-droid/" class="md-nav__link">
  345. F-Droid
  346. </a>
  347. </li>
  348. <li class="md-nav__item">
  349. <a href="../../phones/first-use/" class="md-nav__link">
  350. First Use
  351. </a>
  352. </li>
  353. <li class="md-nav__item">
  354. <a href="../../phones/applications/" class="md-nav__link">
  355. Applications
  356. </a>
  357. </li>
  358. <li class="md-nav__item">
  359. <a href="../../phones/services/" class="md-nav__link">
  360. Services
  361. </a>
  362. </li>
  363. <li class="md-nav__item">
  364. <a href="../../phones/backups/" class="md-nav__link">
  365. Taking Backups
  366. </a>
  367. </li>
  368. <li class="md-nav__item">
  369. <a href="../../phones/recovery/" class="md-nav__link">
  370. Using Recovery
  371. </a>
  372. </li>
  373. <li class="md-nav__item">
  374. <a href="../../phones/ubports/" class="md-nav__link">
  375. Installing Ubports
  376. </a>
  377. </li>
  378. <li class="md-nav__item">
  379. <a href="../../phones/calyxos/" class="md-nav__link">
  380. Installing CalyxOS
  381. </a>
  382. </li>
  383. </ul>
  384. </nav>
  385. </li>
  386. </ul>
  387. </nav>
  388. </div>
  389. </div>
  390. </div>
  391. <div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
  392. <div class="md-sidebar__scrollwrap">
  393. <div class="md-sidebar__inner">
  394. <nav class="md-nav md-nav--secondary" aria-label="Table of contents">
  395. <label class="md-nav__title" for="__toc">
  396. <span class="md-nav__icon md-icon"></span>
  397. Table of contents
  398. </label>
  399. <ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
  400. <li class="md-nav__item">
  401. <a href="#mh-usb-performance" class="md-nav__link">
  402. MH-USB Performance
  403. </a>
  404. <nav class="md-nav" aria-label="MH-USB Performance">
  405. <ul class="md-nav__list">
  406. <li class="md-nav__item">
  407. <a href="#usb2-version" class="md-nav__link">
  408. USB2 Version
  409. </a>
  410. </li>
  411. <li class="md-nav__item">
  412. <a href="#usb3-version" class="md-nav__link">
  413. USB3 Version
  414. </a>
  415. </li>
  416. </ul>
  417. </nav>
  418. </li>
  419. <li class="md-nav__item">
  420. <a href="#the-mh-usb-partition-layout" class="md-nav__link">
  421. The MH-USB partition layout
  422. </a>
  423. <nav class="md-nav" aria-label="The MH-USB partition layout">
  424. <ul class="md-nav__list">
  425. <li class="md-nav__item">
  426. <a href="#the-ventoy-partion-layout" class="md-nav__link">
  427. The Ventoy partion layout
  428. </a>
  429. </li>
  430. <li class="md-nav__item">
  431. <a href="#the-16-gb-model" class="md-nav__link">
  432. The 16 GB model
  433. </a>
  434. </li>
  435. <li class="md-nav__item">
  436. <a href="#the-32-gb-model" class="md-nav__link">
  437. The 32 GB model
  438. </a>
  439. </li>
  440. </ul>
  441. </nav>
  442. </li>
  443. <li class="md-nav__item">
  444. <a href="#using-the-mh-usb-source-code" class="md-nav__link">
  445. Using the MH-USB Source Code
  446. </a>
  447. <nav class="md-nav" aria-label="Using the MH-USB Source Code">
  448. <ul class="md-nav__list">
  449. <li class="md-nav__item">
  450. <a href="#overview-of-the-source-code" class="md-nav__link">
  451. Overview of the source code
  452. </a>
  453. </li>
  454. <li class="md-nav__item">
  455. <a href="#the-scripts" class="md-nav__link">
  456. The scripts
  457. </a>
  458. </li>
  459. <li class="md-nav__item">
  460. <a href="#installing-mh-usb" class="md-nav__link">
  461. Installing MH-USB
  462. </a>
  463. </li>
  464. <li class="md-nav__item">
  465. <a href="#customising-the-mh-usb" class="md-nav__link">
  466. Customising the MH-USB
  467. </a>
  468. </li>
  469. </ul>
  470. </nav>
  471. </li>
  472. </ul>
  473. </nav>
  474. </div>
  475. </div>
  476. </div>
  477. <div class="md-content" data-md-component="content">
  478. <article class="md-content__inner md-typeset">
  479. <h1 id="mh-usb-internals">MH-USB Internals<a class="headerlink" href="#mh-usb-internals" title="Permanent link">&para;</a></h1>
  480. <h2 id="mh-usb-performance">MH-USB Performance<a class="headerlink" href="#mh-usb-performance" title="Permanent link">&para;</a></h2>
  481. <h3 id="usb2-version">USB2 Version<a class="headerlink" href="#usb2-version" title="Permanent link">&para;</a></h3>
  482. <p>From <a href="https://www.blackmoreops.com/2017/04/04/usb-and-ssd-drive-speedtest-in-linux/">https://www.blackmoreops.com/2017/04/04/usb-and-ssd-drive-speedtest-in-linux/</a></p>
  483. <blockquote>
  484. <p>USB 2.0 has a theoretical maximum signaling rate of 480 Mbits/s or 60
  485. Mbytes/s. However due to various constraints the maximum throughput is
  486. restricted to around 280 Mbit/s or 35 Mbytes/s.</p>
  487. </blockquote>
  488. <h4 id="hdparm-tests"><code>hdparm</code> tests<a class="headerlink" href="#hdparm-tests" title="Permanent link">&para;</a></h4>
  489. <div class="highlight"><pre><span></span><code><span class="gp">$ </span>sudo hdparm -Ttv /dev/sde1
  490. <span class="go">/dev/sde1:</span>
  491. <span class="go"> multcount = 0 (off)</span>
  492. <span class="go"> readonly = 0 (off)</span>
  493. <span class="go"> readahead = 256 (on)</span>
  494. <span class="go"> geometry = 15600/64/32, sectors = 31881176, start = 2048</span>
  495. <span class="go"> Timing cached reads: 16422 MB in 2.00 seconds = 8221.42 MB/sec</span>
  496. <span class="go"> Timing buffered disk reads: 64 MB in 3.01 seconds = 21.28 MB/sec</span>
  497. </code></pre></div>
  498. <h4 id="dd-write-test"><code>dd</code> write test<a class="headerlink" href="#dd-write-test" title="Permanent link">&para;</a></h4>
  499. <div class="highlight"><pre><span></span><code><span class="gp">$ </span>dd <span class="k">if</span><span class="o">=</span>/dev/zero <span class="nv">of</span><span class="o">=</span>perf <span class="nv">oflag</span><span class="o">=</span>direct <span class="nv">bs</span><span class="o">=</span>128k <span class="nv">count</span><span class="o">=</span>8k
  500. <span class="go">8192+0 records in</span>
  501. <span class="go">8192+0 records out</span>
  502. <span class="go">1073741824 bytes (1.1 GB, 1.0 GiB) copied, 6.94198 s, 155 MB/s</span>
  503. </code></pre></div>
  504. <h4 id="dd-read-test"><code>dd</code> read test<a class="headerlink" href="#dd-read-test" title="Permanent link">&para;</a></h4>
  505. <div class="highlight"><pre><span></span><code><span class="gp">#</span><span class="c1"># Clear the memory cache before benchmarking reads</span>
  506. <span class="gp">$ </span>sudo sh -c <span class="s2">&quot;sync &amp;&amp; echo 3 &gt; /proc/sys/vm/drop_caches&quot;</span>
  507. <span class="gp">$ </span>dd <span class="k">if</span><span class="o">=</span>perf <span class="nv">of</span><span class="o">=</span>/dev/null <span class="nv">bs</span><span class="o">=</span>4k
  508. <span class="go">262144+0 records in</span>
  509. <span class="go">262144+0 records out</span>
  510. <span class="go">1073741824 bytes (1.1 GB, 1.0 GiB) copied, 44.5847 s, 24.1 MB/s</span>
  511. </code></pre></div>
  512. <h3 id="usb3-version">USB3 Version<a class="headerlink" href="#usb3-version" title="Permanent link">&para;</a></h3>
  513. <p><em>Coming soon!</em></p>
  514. <h2 id="the-mh-usb-partition-layout">The MH-USB partition layout<a class="headerlink" href="#the-mh-usb-partition-layout" title="Permanent link">&para;</a></h2>
  515. <h3 id="the-ventoy-partion-layout">The Ventoy partion layout<a class="headerlink" href="#the-ventoy-partion-layout" title="Permanent link">&para;</a></h3>
  516. <p><em>Document how Ventoy creates partitions for both GPT and MBR partition tables</em></p>
  517. <h3 id="the-16-gb-model">The 16 GB model<a class="headerlink" href="#the-16-gb-model" title="Permanent link">&para;</a></h3>
  518. <p><em>Standard ventoy partitions</em></p>
  519. <h3 id="the-32-gb-model">The 32 GB model<a class="headerlink" href="#the-32-gb-model" title="Permanent link">&para;</a></h3>
  520. <p><em>Coming soon! (special partitions to accommodate haiku.)</em></p>
  521. <h2 id="using-the-mh-usb-source-code">Using the MH-USB Source Code<a class="headerlink" href="#using-the-mh-usb-source-code" title="Permanent link">&para;</a></h2>
  522. <h3 id="overview-of-the-source-code">Overview of the source code<a class="headerlink" href="#overview-of-the-source-code" title="Permanent link">&para;</a></h3>
  523. <h3 id="the-scripts">The scripts<a class="headerlink" href="#the-scripts" title="Permanent link">&para;</a></h3>
  524. <h4 id="download-imagessh"><code>download-images.sh</code><a class="headerlink" href="#download-imagessh" title="Permanent link">&para;</a></h4>
  525. <h4 id="prepare-usbsh"><code>prepare-usb.sh</code><a class="headerlink" href="#prepare-usbsh" title="Permanent link">&para;</a></h4>
  526. <h4 id="qemu-sh"><code>qemu-*.sh</code><a class="headerlink" href="#qemu-sh" title="Permanent link">&para;</a></h4>
  527. <h3 id="installing-mh-usb">Installing MH-USB<a class="headerlink" href="#installing-mh-usb" title="Permanent link">&para;</a></h3>
  528. <h3 id="customising-the-mh-usb">Customising the MH-USB<a class="headerlink" href="#customising-the-mh-usb" title="Permanent link">&para;</a></h3>
  529. </article>
  530. </div>
  531. </div>
  532. </main>
  533. <footer class="md-footer">
  534. <nav class="md-footer__inner md-grid" aria-label="Footer">
  535. <a href="../update/" class="md-footer__link md-footer__link--prev" aria-label="Previous: (MHUSB) Add / Update images" rel="prev">
  536. <div class="md-footer__button md-icon">
  537. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"/></svg>
  538. </div>
  539. <div class="md-footer__title">
  540. <div class="md-ellipsis">
  541. <span class="md-footer__direction">
  542. Previous
  543. </span>
  544. (MHUSB) Add / Update images
  545. </div>
  546. </div>
  547. </a>
  548. <a href="../faqs/" class="md-footer__link md-footer__link--next" aria-label="Next: (MHUSB) FAQs" rel="next">
  549. <div class="md-footer__title">
  550. <div class="md-ellipsis">
  551. <span class="md-footer__direction">
  552. Next
  553. </span>
  554. (MHUSB) FAQs
  555. </div>
  556. </div>
  557. <div class="md-footer__button md-icon">
  558. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11H4z"/></svg>
  559. </div>
  560. </a>
  561. </nav>
  562. <div class="md-footer-meta md-typeset">
  563. <div class="md-footer-meta__inner md-grid">
  564. <div class="md-copyright">
  565. <div class="md-copyright__highlight">
  566. Copyright &copy; Mostly Harmless
  567. </div>
  568. Made with
  569. <a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
  570. Material for MkDocs
  571. </a>
  572. </div>
  573. </div>
  574. </div>
  575. </footer>
  576. </div>
  577. <div class="md-dialog" data-md-component="dialog">
  578. <div class="md-dialog__inner md-typeset"></div>
  579. </div>
  580. <script id="__config" type="application/json">{"base": "../..", "features": [], "translations": {"clipboard.copy": "Copy to clipboard", "clipboard.copied": "Copied to clipboard", "search.config.lang": "en", "search.config.pipeline": "trimmer, stopWordFilter", "search.config.separator": "[\\s\\-]+", "search.placeholder": "Search", "search.result.placeholder": "Type to start searching", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.term.missing": "Missing", "select.version.title": "Select version"}, "search": "../../assets/javascripts/workers/search.22074ed6.min.js"}</script>
  581. <script src="../../assets/javascripts/bundle.01de222e.min.js"></script>
  582. </body>
  583. </html>