{"id":1100,"date":"2018-09-21T13:15:35","date_gmt":"2018-09-21T04:15:35","guid":{"rendered":"https:\/\/yuis-programming.com\/?p=1100"},"modified":"2021-11-17T10:18:07","modified_gmt":"2021-11-17T01:18:07","slug":"ubuntu-18-04-usb%e3%83%a1%e3%83%a2%e3%83%aa%e3%82%92ram%e3%83%a1%e3%83%a2%e3%83%aa%e3%81%a8%e3%81%97%e3%81%a6%e4%bd%bf%e3%81%86%e6%96%b9%e6%b3%95%e3%80%90%e3%82%b9%e3%83%af%e3%83%83%e3%83%97","status":"publish","type":"post","link":"https:\/\/yuis-programming.com\/?p=1100","title":{"rendered":"Ubuntu\u3067USB\u30e1\u30e2\u30ea\u3092RAM(\u30e1\u30e2\u30ea\u30fb\u30b9\u30ef\u30c3\u30d7)\u3068\u3057\u3066\u4f7f\u3046"},"content":{"rendered":"<p>Ubuntu\u3067USB\u30e1\u30e2\u30ea\u3092RAM(\u30e1\u30e2\u30ea\u30fb\u30b9\u30ef\u30c3\u30d7)\u3068\u3057\u3066\u4f7f\u3046\u65b9\u6cd5\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002<br \/>\n\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3067\u306f\u4f8b\u3068\u3057\u3066Ubuntu\u306e\u30d0\u30fc\u30b8\u30e7\u30f318.04\u3092\u4f8b\u306b\u8aac\u660e\u3092\u9032\u3081\u307e\u3059\u3002<\/p>\n<p>\u300cUSB\u30e1\u30e2\u30ea\u300d\u3092\u300cRAM\u300d\u3068\u3057\u3066\u4f7f\u3046\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<p>\u3082\u3057USB\u30e1\u30e2\u30ea\u304c\u30de\u30a6\u30f3\u30c8\u3055\u308c\u3066\u3044\u308c\u3070\u3001\u305d\u308c\u3092\u30a2\u30f3\u30de\u30a6\u30f3\u30c8\u3057\u307e\u3059\u3002<\/p>\n<pre><code>sudo umount \/media\/drive-label\n# or\nsudo umount \/dev\/sda\n\n<\/code><\/pre>\n<p>USB\u30e1\u30e2\u30ea\u306e\u30c7\u30d0\u30a4\u30b9\u540d\u306f\u3001<code>sudo fdisk -l<\/code>\u3067\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002\u30e1\u30e2\u30ea\u5bb9\u91cf\u306a\u3069\u3068\u53c2\u7167\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3067\u306f\u3001\u30b9\u30ef\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre><code>sudo mkswap \/dev\/sda\n<\/code><\/pre>\n<p>\u6b21\u306b\u3001\u30b9\u30ef\u30c3\u30d7\u3092\u6709\u52b9\u306b\u3057\u307e\u3059\u3002&#8221;32767&#8243;\u306f\u6700\u5927\u5bb9\u91cf\u3092\u8868\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><code>sudo swapon -p 32767 \/dev\/sda\n<\/code><\/pre>\n<p>\u30b9\u30ef\u30c3\u30d7\u5bb9\u91cf\u304c\u5897\u3048\u3066\u3044\u308b\u304b\u3001\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><code>cat \/proc\/swaps\n# or\nhtop\n<\/code><\/pre>\n<p><img src=\"https:\/\/yuis.xsrv.jp\/images\/ss\/ShareX_ScreenShot_c1ecff6a-701a-4c32-8661-602168607db0.png\" alt=\"https:\/\/yuis.xsrv.jp\/images\/ss\/ShareX_ScreenShot_c1ecff6a-701a-4c32-8661-602168607db0.png\"><\/p>\n<p><a href=\"http:\/\/www.tuxgarage.com\/2011\/07\/add-virtual-ram-to-ubuntu-using-spare.html\">Add Virtual RAM to Ubuntu using a Spare USB Drive  &#8211; TuxGarage<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu\u3067USB\u30e1\u30e2\u30ea\u3092RAM(\u30e1\u30e2\u30ea\u30fb\u30b9\u30ef\u30c3\u30d7)\u3068\u3057\u3066\u4f7f\u3046\u65b9\u6cd5\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3059\u3002 \u3053\u3061\u3089\u306e\u8a18\u4e8b\u3067\u306f\u4f8b\u3068 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[1],"tags":[],"acf":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8Rxwo-hK","_links":{"self":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/1100"}],"collection":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1100"}],"version-history":[{"count":2,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/1100\/revisions"}],"predecessor-version":[{"id":3404,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=\/wp\/v2\/posts\/1100\/revisions\/3404"}],"wp:attachment":[{"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yuis-programming.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}