{"id":199,"date":"2014-01-13T16:37:39","date_gmt":"2014-01-13T07:37:39","guid":{"rendered":"http:\/\/toshiyone.dip.jp\/wordpress\/?p=199"},"modified":"2014-03-19T19:18:03","modified_gmt":"2014-03-19T10:18:03","slug":"gentoo%e3%81%aelivedvd%e3%82%92exfat%e3%81%a7%e3%83%95%e3%82%a9%e3%83%bc%e3%83%9e%e3%83%83%e3%83%88%e3%81%95%e3%82%8c%e3%81%9fusb%e3%83%a1%e3%83%a2%e3%83%aa%e3%81%ab%e5%85%a5%e3%82%8c%e3%81%a6","status":"publish","type":"post","link":"https:\/\/int512.net\/wordpress\/archives\/199","title":{"rendered":"Gentoo\u306eLiveDVD\u3092exFAT\u3067\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3055\u308c\u305fUSB\u30e1\u30e2\u30ea\u306b\u5165\u308c\u3066\u4f7f\u7528\u3059\u308b"},"content":{"rendered":"<p>\u6700\u8fd1USB\u30e1\u30e2\u30ea\u3092\u8cb7\u3044\u307e\u3057\u305f\u3002\u305d\u308c\u3067\u3001exFAT\u3067\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3059\u308b\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u4e0a\u304c\u308b\u3068\u805e\u3044\u3066\u5b9f\u969b\u306bexFAT\u3067\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3057\u3066\u307f\u308b\u3068\u3001\u305f\u3057\u304b\u306b\u901f\u5ea6\u304c\u82e5\u5e72\u65e9\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u304c\u30011\u3064\u554f\u984c\u304c\u8d77\u3053\u308a\u307e\u3057\u305f\u3002\u4eca\u307e\u3067\u306fGentoo\u306eLiveDVD\u304b\u3089livecd, boot\/gentoo, boot\/gentoo.igz, image.squashfs\u3092GRUB2\u304c\u5165\u3063\u305fUSB\u30e1\u30e2\u30ea\u306b\u30b3\u30d4\u30fc\u3057grub.cfg\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5185\u5bb9\u3092\u66f8\u3044\u3066\u304a\u304f\u3053\u3068\u3067\u3001USB\u30e1\u30e2\u30ea\u304b\u3089Gentoo\u306eLiveDVD\u3092\u8d77\u52d5\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<pre><code>\r\nmenuentry \"Gentoo Linux 20121221 (nox)\" {\r\n\tlinux \/boot\/gentoo\/gentoo root=\/dev\/ram0 init=\/linuxrc keymap=jp aufs looptype=squashfs loop=\/boot\/gentoo\/image.squashfs cdroot vga=791 console=tty1 quiet nox\r\n\tinitrd \/boot\/gentoo\/gentoo.igz\r\n}\r\n<\/code><\/pre>\n<p>\u3057\u304b\u3057\u3001\u305d\u306e\u65b9\u6cd5\u3067\u306f\u8d77\u52d5\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002\u753b\u9762\u306b\u51fa\u529b\u3055\u308c\u305f\u5185\u5bb9\u304b\u3089\u8003\u3048\u308b\u3068\u3001\u306a\u3093\u3089\u304b\u306e\u539f\u56e0\u3067image.squashfs\u304c\u542b\u307e\u308c\u308b\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u3088\u3046\u3067\u3057\u305f\u3002\u8272\u3005\u8003\u3048\u6700\u7d42\u7684\u306b\u305d\u306e\u539f\u56e0\u306f\u6050\u3089\u304finitramfs\u3067exFAT\u3092\u30de\u30a6\u30f3\u30c8\u3067\u304d\u306a\u3044\u304b\u3089\u898b\u3064\u3051\u3089\u308c\u306a\u3044\u3093\u3060\u308d\u3046\u3068\u3044\u3046\u7d50\u8ad6\u306b\u81f3\u308a\u307e\u3057\u305f\u3002\u3067\u3082\u3001\u305b\u3063\u304b\u304fexFAT\u306b\u3057\u305f\u306e\u306b\u307e\u305fFAT32\u306b\u623b\u3059\u306e\u3082\u8ca0\u3051\u305f\u6c17\u304c\u3059\u308b\u306e\u3067\u3001\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u304cexFAT\u306e\u307e\u307e\u4f7f\u3046\u65b9\u6cd5\u3092\u8003\u3048\u307e\u3057\u305f\u3002<\/p>\n<p>\u3069\u3046\u3059\u308b\u304b\u3068\u3044\u3046\u3068\u3001initramfs(gentoo.igz)\u306b\u624b\u3092\u52a0\u3048\u3066exFAT\u3092\u30de\u30a6\u30f3\u30c8\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>Linux\u3067exFAT\u306e\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092\u30de\u30a6\u30f3\u30c8\u3059\u308b\u306b\u306ffuse\u3068exfat\u304c\u5fc5\u8981\u306a\u306e\u3067\u3001\u307e\u305a\u305d\u308c\u305e\u308c\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u307e\u3059\u3002\u52d5\u7684\u30ea\u30f3\u30af\u3059\u308b\u3068\u8272\u3005\u3084\u3084\u3053\u3057\u3044\u306e\u3067\u3067\u304d\u308b\u3060\u3051\u9759\u7684\u30ea\u30f3\u30af\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u3053\u3053\u3067\u306f32bit\u306egentoo.igz\u3092\u66f8\u304d\u63db\u3048\u308b\u3053\u3068\u3092\u524d\u63d0\u306b\u30b3\u30de\u30f3\u30c9\u304c\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u304c\u300164bit\u306egentoo64.igz\u3082\u3060\u3044\u305f\u3044\u540c\u3058\u611f\u3058\u3067\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305afuse\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u307e\u3059\u3002prefix\u306f\u3069\u3053\u304b\u9069\u5f53\u306a\u3068\u3053\u308d\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002exfat\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u4f7f\u3044\u307e\u3059\u3002root\u3067\u3053\u306e\u4f5c\u696d\u3092\u884c\u3046\u3068make install\u6642\u306b\/sbin\/mount.fuse\u304c\u7f6e\u304d\u63db\u3048\u3089\u308c\u3066\u3057\u307e\u3046\u306e\u3067\u4e00\u822c\u30e6\u30fc\u30b6\u3067\u884c\u306a\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><code>\r\n$ # 64bit\u30b7\u30b9\u30c6\u30e0\u4e0a\u306732bit\u306egentoo.igz\u3092\u5f04\u308b\u5834\u5408\u4e0b\u306e2\u884c\u3092\u5b9f\u884c\u3057\u3066\u304a\u304f\r\n$ export CFLAGS=\"-m32\"\r\n$ export LDFLAGS=\"-m32\"\r\n$\r\n$ wget \"http:\/\/sourceforge.net\/projects\/fuse\/files\/fuse-2.X\/2.9.3\/fuse-2.9.3.tar.gz\"\r\n$ tar xf fuse-2.9.3.tar.gz\r\n$ cd fuse-2.9.3\r\n$ .\/configure --prefix=\"`pwd`\/..\/prefix\" --enable-static\r\n$ make install\r\n<\/code><\/pre>\n<p>\u6b21\u306bexfat\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre><code>\r\n$ wget \"https:\/\/exfat.googlecode.com\/files\/fuse-exfat-1.0.1.tar.gz\"\r\n$ tar xf fuse-exfat-1.0.1.tar.gz\r\n$ cd fuse-exfat-1.0.1\r\n$ # \u9759\u7684\u30ea\u30f3\u30af\u6642\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u306e\u3067\u66f8\u304d\u63db\u3048\u3066\u304a\u304f\r\n$ sed -i -e \"s\/\\\\[libs + \\\\[libfuse\\\\]\\\\]\/\\\\[libs + \\\\[libfuse\\\\] + \\\\['pthread', 'dl'\\\\]\\\\]\/\" SConstruct\r\n$ export CFLAGS=\"-static\"\r\n$ export LDFLAGS=\"-static -L`pwd`\/..\/prefix\/lib\"\r\n$ # 64bit\u30b7\u30b9\u30c6\u30e0\u4e0a\u306732bit\u306egentoo.igz\u3092\u5f04\u308b\u5834\u5408\u66f4\u306b\u3053\u306e2\u884c\u3082\u5b9f\u884c\u3059\u308b\r\n$ export CFLAGS=\"$CFLAGS -m32\"\r\n$ export LDFLAGS=\"$LDFLAGS -m32\"\r\n$ scons CFLAGS=\"$CFLAGS\" LDFLAGS=\"$LDFLAGS\"\r\n<\/code><\/pre>\n<p>\u6b21\u306fgentoo.igz\u3092\u5c55\u958b\u3057\u305f\u5f8c\u3001exFAT\u3067\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3055\u308c\u305f\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3092initramfs\u5185\u3067\u30de\u30a6\u30f3\u30c8\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3001\u65b0\u3057\u304fgentoo-exfat.igz\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre><code>\r\n$ mkdir gentoo\r\n$ cd gentoo\r\n$ cat \/path\/to\/gentoo.igz | xz -d | sudo cpio -id\r\n$ sudo cp \/path\/to\/prefix\/lib\/lib{fuse.so.2.9.3,ulockmgr.so.1.0.1} lib\r\n$ cd lib; sudo ln -s libfuse.so.2.9.3 libfuse.so.2; cd ..\r\n$ sudo cp \/path\/to\/prefix\/bin\/* bin\r\n$ sudo cp \/path\/to\/fuse-2.9.3\/util\/mount.fuse sbin\r\n$ sudo cp \/path\/to\/fuse-exfat-1.0.1\/fuse\/mount.exfat-fuse sbin\r\n$ cd etc; curl \"https:\/\/gist.github.com\/int2xx9\/d50f77a056896d001a96\/raw\/077638c102c487785e12a94bda8505ab9346badd\/gistfile1.txt\" | sudo patch; cd ..\r\n$ sudo find . -print | sudo cpio -o -H newc | gzip -9 > ..\/gentoo-exfat.igz\r\n<\/code><\/pre>\n<p>gentoo-exfat.igz\u304c\u4f5c\u6210\u3067\u304d\u305f\u3089\u3001initrd\u306bgentoo.igz\u306e\u4ee3\u308f\u308a\u306bgentoo-exfat.igz\u3092\u4f7f\u7528\u3057\u3001\u3061\u3083\u3093\u3068Gentoo\u304c\u8d77\u52d5\u3067\u304d\u308b\u304b\u3092\u78ba\u304b\u3081\u307e\u3059\u3002\u3067\u304d\u306a\u304b\u3063\u305f\u3089\u3069\u3053\u304b\u9593\u9055\u3048\u3066\u3044\u308b\u3093\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3044\u3061\u3044\u3061\u30d1\u30bd\u30b3\u30f3\u8d77\u52d5\u3059\u308b\u306e\u304c\u3081\u3093\u3069\u304f\u3055\u3044\u3063\u3066\u4eba\u306f\u3001USB\u30e1\u30e2\u30ea\u3092\u30a2\u30f3\u30de\u30a6\u30f3\u30c8\u3057\u305f\u4e0a\u3067 ((\u30a2\u30f3\u30de\u30a6\u30f3\u30c8\u3057\u3066\u306a\u3044\u3068\u5909\u66f4\u5185\u5bb9\u304c\u53cd\u6620\u3055\u308c\u306a\u3044\u3063\u307d\u3044\u3067\u3059)) qemu\u3092\u4f7f\u3063\u3066<code>qemu -hda \/dev\/sdb<\/code>(\/dev\/sdb\u306fUSB\u30e1\u30e2\u30ea\u306e\u30c7\u30d0\u30a4\u30b9\u30d5\u30a1\u30a4\u30eb)\u307f\u305f\u3044\u306b\u3059\u308b\u3053\u3068\u3067USB\u30e1\u30e2\u30ea\u304b\u3089\u8d77\u52d5\u3067\u304d\u308b\u304b\u78ba\u8a8d\u304c\u3067\u304d\u3066\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306bx86(32bit)\u5411\u3051\u306egentoo-exfat.igz\u3092\u8f09\u305b\u3066\u304a\u304d\u307e\u3059\u3002\u4e0a\u306e\u624b\u9806\u3092\u3084\u308b\u306e\u304c\u3081\u3093\u3069\u304f\u3055\u3044\u3063\u3066\u4eba\u306f\u4f7f\u3063\u3066\u304f\u3060\u3055\u3044\u3002<a href=\"\/files\/gentoo-exfat.igz\" class='piwik_download'>gentoo-exfat.igz<\/a><\/p>\n<p>3\u67089\u65e5\u8ffd\u8a18<br \/>\n64bit\u306e\u304c\u5fc5\u8981\u306b\u306a\u3063\u3066\u4f5c\u6210\u3057\u305f\u306e\u3067\u3053\u308c\u3082\u8f09\u305b\u3066\u304a\u304d\u307e\u3059\u3002\u3042\u3068gentoo-exfat.igz\u3078\u306e\u30ea\u30f3\u30af\u304c\u9593\u9055\u3063\u3066\u305f\u306e\u3067\u76f4\u3057\u3066\u304a\u304d\u307e\u3057\u305f\u3002<br \/>\n<a href=\"\/files\/gentoo64-exfat.igz\" class='piwik_download'>gentoo64-exfat.igz<\/a><\/p>\n<p>3\u670811\u65e5\u8ffd\u8a18<br \/>\n\u5177\u4f53\u7684\u306b\u3069\u308c\u306a\u306e\u304b\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u66f8\u3044\u3066\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001\u5143\u306b\u306a\u308bLiveDVD\u306flivedvd-x86-amd64-32ul-20121221.iso\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1USB\u30e1\u30e2\u30ea\u3092\u8cb7\u3044\u307e\u3057\u305f\u3002\u305d\u308c\u3067\u3001exFAT\u3067\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3059\u308b\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u4e0a\u304c\u308b\u3068\u805e\u3044\u3066\u5b9f\u969b\u306bexFAT\u3067\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3057\u3066\u307f\u308b\u3068\u3001\u305f\u3057\u304b\u306b\u901f\u5ea6\u304c\u82e5\u5e72\u65e9\u304f\u306a\u308a\u307e\u3057\u305f\u3002 \u304c\u30011\u3064\u554f\u984c\u304c\u8d77\u3053\u308a\u307e\u3057\u305f\u3002\u4eca\u307e\u3067\u306fGent\u2026 <span class=\"read-more\"><a href=\"https:\/\/int512.net\/wordpress\/archives\/199\">\u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[13],"class_list":["post-199","post","type-post","status-publish","format-standard","hentry","category-linux","tag-linux"],"_links":{"self":[{"href":"https:\/\/int512.net\/wordpress\/wp-json\/wp\/v2\/posts\/199","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/int512.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/int512.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/int512.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/int512.net\/wordpress\/wp-json\/wp\/v2\/comments?post=199"}],"version-history":[{"count":18,"href":"https:\/\/int512.net\/wordpress\/wp-json\/wp\/v2\/posts\/199\/revisions"}],"predecessor-version":[{"id":229,"href":"https:\/\/int512.net\/wordpress\/wp-json\/wp\/v2\/posts\/199\/revisions\/229"}],"wp:attachment":[{"href":"https:\/\/int512.net\/wordpress\/wp-json\/wp\/v2\/media?parent=199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/int512.net\/wordpress\/wp-json\/wp\/v2\/categories?post=199"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/int512.net\/wordpress\/wp-json\/wp\/v2\/tags?post=199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}