{"id":502,"date":"2024-07-20T09:24:47","date_gmt":"2024-07-20T00:24:47","guid":{"rendered":"https:\/\/txn.myds.me\/blog\/?p=502"},"modified":"2024-07-20T09:24:47","modified_gmt":"2024-07-20T00:24:47","slug":"linux-mint-%e3%81%a7-btrfs-%e3%81%ab%e3%82%b9%e3%83%af%e3%83%83%e3%83%97%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.txn.red\/?p=502","title":{"rendered":"Linux Mint \u3067 btrfs \u306b\u30b9\u30ef\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Android \u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u3092\u8d77\u52d5\u3059\u308b\u3068\u30e1\u30e2\u30ea\u30d5\u30eb\u3067\u5f35\u308a\u4ed8\u3044\u3066\u3057\u307e\u3063\u305f\u3002\u78ba\u8a8d\u3057\u3066\u307f\u308b\u3068\u30b9\u30ef\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u304c\u306a\u304b\u3063\u305f\u306e\u3067\u518d\u4f5c\u6210\u3057\u305f\u8a71\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u308f\u304b\u3063\u3066\u3057\u307e\u3048\u3070\u7c21\u5358\u306a\u306e\u3067\u3059\u304c\u3001btrfs \u306e\u5834\u5408 ext4 \u306e\u64cd\u4f5c\u306b\u8ffd\u52a0\u3057\u3066\u884c\u3046\u3053\u3068\u304c\u3042\u308b\u3089\u3057\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u4f8b\u3067\u306f\u3001\/ \u304c btrfs \u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3067\u3059\u3002\u6700\u521d\u306e 3 \u884c\u3092\u4e88\u3081\u5b9f\u884c\u3057\u3066\u304a\u304b\u306a\u3044\u3068 swapon \u3067 <br>\u201dswapon: swapfile2: swapon failed: Invalid argument\u201d \u3068\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u30b9\u30ef\u30c3\u30d7\u9818\u57df\u304c\u6709\u52b9\u306b\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code># truncate -s 0 \/swapfile\n# chattr +C \/swapfile\n# btrfs property set \/swapfile compression none\n# fallocate -l 16G \/swapfile\n# chomod 600 \/swapfile\n# mkswap \/swapfile\n# swapon \/swapfile<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"%25e5%258f%2582%25e8%2580%2583\">\u53c2\u8003<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/unix.stackexchange.com\/questions\/599949\/swapfile-swapon-invalid-argument\">linux &#8211; Swapfile Swapon invalid argument &#8211; Unix &amp; Linux Stack Exchange<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/wiki.archlinux.jp\/index.php\/Btrfs#.E3.82.B9.E3.83.AF.E3.83.83.E3.83.97.E3.83.95.E3.82.A1.E3.82.A4.E3.83.AB\">Btrfs#\u30b9\u30ef\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb &#8211; ArchWiki<\/a> <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/ja.linux-console.net\/?p=14077\">Linux Mint 21\u306b\u30b9\u30ef\u30c3\u30d7\u30b9\u30da\u30fc\u30b9\u3092\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5<\/a> >> ext4 \u306a\u3089\u3053\u308c\u3060\u3051\u3067\u3044\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Android \u30a8\u30df\u30e5\u30ec\u30fc\u30bf\u3092\u8d77\u52d5\u3059\u308b\u3068\u30e1\u30e2\u30ea\u30d5\u30eb\u3067\u5f35\u308a\u4ed8\u3044\u3066\u3057\u307e\u3063\u305f\u3002\u78ba\u8a8d\u3057\u3066\u307f\u308b\u3068\u30b9\u30ef\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u304c\u306a\u304b\u3063\u305f\u306e\u3067\u518d\u4f5c\u6210\u3057\u305f\u8a71\u3002 \u308f\u304b\u3063\u3066\u3057\u307e\u3048\u3070\u7c21\u5358\u306a\u306e\u3067\u3059\u304c\u3001btrfs \u306e\u5834\u5408 ext4 \u306e\u64cd\u4f5c\u306b\u8ffd\u52a0\u3057\u3066\u884c\u3046\u3053\u3068\u304c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":6,"footnotes":""},"categories":[5],"tags":[8],"class_list":["post-502","post","type-post","status-publish","format-standard","hentry","category-it","tag-linux"],"_links":{"self":[{"href":"https:\/\/blog.txn.red\/index.php?rest_route=\/wp\/v2\/posts\/502","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.txn.red\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.txn.red\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.txn.red\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.txn.red\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=502"}],"version-history":[{"count":0,"href":"https:\/\/blog.txn.red\/index.php?rest_route=\/wp\/v2\/posts\/502\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.txn.red\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.txn.red\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.txn.red\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}