{"id":2641,"date":"2016-04-11T23:11:37","date_gmt":"2016-04-11T14:11:37","guid":{"rendered":"http:\/\/blog.rutake.com\/techmemo\/?p=2641"},"modified":"2016-04-11T23:12:15","modified_gmt":"2016-04-11T14:12:15","slug":"centos7-%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%a7%e6%b6%88%e3%81%88%e3%81%9fwindows7%e5%be%a9%e6%97%a7%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/blog.rutake.com\/techmemo\/2016\/04\/11\/centos7-%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%a7%e6%b6%88%e3%81%88%e3%81%9fwindows7%e5%be%a9%e6%97%a7%e6%96%b9%e6%b3%95\/","title":{"rendered":"CentOS7 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u6d88\u3048\u305fWindows7\u5fa9\u65e7\u65b9\u6cd5"},"content":{"rendered":"<p>\u524d\u56de<a href=\"http:\/\/blog.rutake.com\/techmemo\/2016\/04\/11\/x220-centos7-%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab\/\">X220\u306bCentOS7\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a>\u3057\u305f\u3068\u3053\u308d\u3001<\/p>\n<p>GRUB2\u304cWindows10\u306e\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u30fc\u3092\u8a8d\u8b58\u3057\u3066\u304f\u308c\u305a\u3001Windows10\u304c\u8d77\u52d5\u3057\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u3002<\/p>\n<p>\u3055\u3059\u304c\u306bWindows10\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30c7\u30a3\u30b9\u30af\u3092\u4f5c\u6210\u3057\u3066\u3001\u56de\u5fa9\u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u5fa9\u6d3b\u3055\u305b\u308b\u306e\u306f\u6642\u9593\u304c\u304b\u304b\u308a\u305d\u3046\u306a\u306e\u3067\u3082\u3063\u3068\u697d\u306a\u65b9\u6cd5\u306f\u306a\u3044\u304b\uff1f<\/p>\n<p>Grub2\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u306b\u5165\u3063\u3066\u3044\u306a\u3044\u306e\u304c\u539f\u56e0\u306a\u306e\u3067\u3053\u3053\u306b\u66f8\u304d\u8db3\u305b\u3070\u3088\u3044\u3002<\/p>\n<p>\u307e\u305a\u306ffdisk\u3057\u3066\u30c7\u30a3\u30b9\u30af\u5185\u5bb9\u3092\u78ba\u8a8d<\/p>\n<p>[shell]<br \/>\n[root@localhost ~]# fdisk  -l<\/p>\n<p>Disk \/dev\/sda: 960.2 GB, 960197124096 bytes, 1875385008 sectors<br \/>\nUnits = sectors of 1 * 512 = 512 bytes<br \/>\nSector size (logical\/physical): 512 bytes \/ 512 bytes<br \/>\nI\/O \u30b5\u30a4\u30ba (\u6700\u5c0f \/ \u63a8\u5968): 512 \u30d0\u30a4\u30c8 \/ 512 \u30d0\u30a4\u30c8<br \/>\nDisk label type: dos<br \/>\n\u30c7\u30a3\u30b9\u30af\u8b58\u5225\u5b50: 0x86070fdc<\/p>\n<p>\u30c7\u30d0\u30a4\u30b9 \u30d6\u30fc\u30c8      \u59cb\u70b9        \u7d42\u70b9     \u30d6\u30ed\u30c3\u30af   Id  \u30b7\u30b9\u30c6\u30e0<br \/>\n\/dev\/sda1   *        2048     2459647     1228800    7  HPFS\/NTFS\/exFAT<br \/>\n\/dev\/sda2         2459648   579162111   288351232    7  HPFS\/NTFS\/exFAT<br \/>\n\/dev\/sda3       579162112   580083711      460800   27  Hidden NTFS WinRE<br \/>\n\/dev\/sda4       580083713   834126929   127021608+   f  W95 Ext&#8217;d (LBA)<br \/>\n\/dev\/sda5       580083776   625140399    22528312    7  HPFS\/NTFS\/exFAT<br \/>\n\/dev\/sda6       625143808   820455423    97655808   83  Linux<br \/>\n\/dev\/sda7       820457472   824363007     1952768   82  Linux swap \/ Solaris<\/p>\n<p>[\/shell]<\/p>\n<p>\u5de5\u5834\u51fa\u8377\u6642\u306e\u72b6\u614b\u3067\u3042\u308c\u3070Windows\u306e\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u30fc\u306f\u5148\u982d\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u306f\u305a\u306a\u306e\u3067\u305d\u306e\u8a2d\u5b9a\u3092\/etc\/grub.d\/40_custom\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7de8\u96c6\u3059\u308b<\/p>\n<p>[shell]<br \/>\n#!\/bin\/sh<br \/>\nexec tail -n +3 $0<br \/>\n# This file provides an easy way to add custom menu entries.  Simply type the<br \/>\n# menu entries you want to add after this comment.  Be careful not to change<br \/>\n# the &#8216;exec tail&#8217; line above.<br \/>\nmenuentry &#8220;Windows 7&#8243;{<br \/>\n    set root='(hd0,1)&#8217;<br \/>\n    chainloader +1<br \/>\n}<br \/>\n[\/shell]<\/p>\n<p>\u3042\u3068\u306fgrub2-mkconfig -o test_grub2.cfg\u3057\u305f\u3082\u306e\u3092\/boot\/grub2\/grub.cfg\u306b\u4e0a\u66f8\u304d\u3057\u3066\u518d\u8d77\u52d5\u3059\u308c\u3070\u3088\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56deX220\u306bCentOS7\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3068\u3053\u308d\u3001 GRUB2\u304cWindow &hellip; <a href=\"https:\/\/blog.rutake.com\/techmemo\/2016\/04\/11\/centos7-%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%a7%e6%b6%88%e3%81%88%e3%81%9fwindows7%e5%be%a9%e6%97%a7%e6%96%b9%e6%b3%95\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[355,11],"tags":[515,366,514],"_links":{"self":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2641"}],"collection":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/comments?post=2641"}],"version-history":[{"count":2,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2641\/revisions"}],"predecessor-version":[{"id":2643,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/posts\/2641\/revisions\/2643"}],"wp:attachment":[{"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/media?parent=2641"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/categories?post=2641"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rutake.com\/techmemo\/wp-json\/wp\/v2\/tags?post=2641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}