{"id":589,"date":"2011-01-12T11:44:22","date_gmt":"2011-01-12T11:44:22","guid":{"rendered":""},"modified":"2011-01-12T11:44:22","modified_gmt":"2011-01-12T11:44:22","slug":"589","status":"publish","type":"post","link":"https:\/\/www.poloo.org\/?p=589","title":{"rendered":"\u901a\u8fc7u\u76d8\u6765\u5b89\u88c5centos 5.4_x86_64\u5230\u670d\u52a1\u5668"},"content":{"rendered":"<p>\u76d8\u7684\u547d\u540d\u89c4\u5219<\/p>\n<p>\u670d\u52a1\u5668\u81ea\u5df1\u7684\u786c\u76d8\u88ab\u5f53\u6210sda,u\u76d8\u88ab\u5f53\u6210sdb\u3002\u8fd9\u4e2a\u8981\u5f04\u6e05\u695a\u3002<\/p>\n<p>\u5b89\u88c5\u524d\u7684\u5904\u7406<\/p>\n<p>\u5b89\u88c5\u672c\u8eab\u662f\u5f88\u5bb9\u6613\u7684\u4e8b\u60c5\uff0c\u66f4\u4f55\u51b5\u662f\u81ea\u52a8\u5b89\u88c5\u3002\u800c\u5b89\u88c5\u524d\u6240\u9700\u8981\u505a\u7684\u5de5\u4f5c\uff0c\u624d\u662f\u6bd4\u8f83\u8d39\u4e8b\u548c\u5bb9\u6613\u51fa\u95ee\u9898\u7684\u4e86\uff0c\u56e0\u6b64\u8fd9\u91cc\u7528\u8f83\u591a\u7684\u7bc7\u5e45\u6765\u53d9\u8ff0\u8fd9\u4e2a\u8fc7\u7a0b\u3002<\/p>\n<p>\uff08\u4e00\uff09\u51c6\u5907\u6240\u9700\u8981\u7684\u8f6f\u4ef6\u3002\u5b83\u5305\u62ecCentos\u955c\u50cf\uff08DVD\uff09\u6587\u4ef6\u548cwindows\u7248\u7684syslinux.exe\u6587\u4ef6\u3002\u5f53\u7136\u53ef\u4ee5\u76f4\u63a5\u7528linux\u7cfb\u7edf\u81ea\u5e26\u7684syslinux,\u4e0d\u8fc7linux\u7684syslinux\u505a\u5f15\u5bfc\u5904\u7406\u6709\u70b9\u9ebb\u70e6\uff0c\u6240\u4ee5\u6539\u7528windows\u7248\u7684syslinux.exe.\u9ebb\u70e6\u5728\u54ea\u91cc\uff1f\u6267\u884c\u5b8csyslinux -s \/dev\/sda1 \u540e\u8fd8\u8981\u6765\u4e2add \u64cd\u4f5c\u3002<\/p>\n<p>\uff08\u4e8c\uff09\u51c6\u5907\u4e24\u4e2a\u64cd\u4f5c\u7cfb\u7edf\uff0c\u4e00\u4e2awindows,\u4e00\u4e2alinux.windows\u7528\u6765\u505a\u5f15\u5bfc\u2013\u5199mbr\u548c\u751f\u6210ldlinux.sys;linux\u7528\u6765\u521b\u5efa\u5206\u533a\u3001\u62f7\u8d1d\u6587\u4ef6\u7b49\u3002<\/p>\n<p>\uff08\u4e09\uff09\u5148\u5728linux\u7cfb\u7edf\u4e0a\u8fdb\u884c\u5982\u4e0b\u64cd\u4f5c\uff1a<\/p>\n<p>1\u3001\u4e0b\u8f7dcentos\u955c\u50cf\u6587\u4ef6\u3002\u8fd9\u4e2a\u6587\u4ef6\u5f88\u5927\uff0c\u7f51\u4e0a\u6709\u5b8c\u6574\u7684dvd\u955c\u50cf\u4e0b\u8f7d\uff08\u4e00\u4e2a\u6587\u4ef6\u8fd9\u79cd\uff09\uff0c<\/p>\n<p>2\u3001\u6302\u63a5\u8fd9\u4e2a\u955c\u50cf\u6587\u4ef6\uff0c\u4ee5\u4fbf\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u955c\u50cf\u6587\u4ef6\u91cc\u7684\u76ee\u5f55\u3002mount -o loop \/path\/CentOS-5.4_x86_64bin-DVD.iso \/mnt\/ios \uff0c\u6267\u884c\u547d\u4ee4 cd \/mnt\/iso,\u53ef\u4ee5\u50cf\u6d4f\u89c8dvd\u5149\u76d8\u4e00\u6837\u67e5\u770b\u76ee\u5f55\u53ca\u5176\u91cc\u9762\u7684\u6587\u4ef6\u3002<\/p>\n<p>3\u3001\u628aU\u76d8\u63d2\u5165linux\u670d\u52a1\u5668\uff0c\u7136\u540e\u6267\u884cfdisk -l\u68c0\u67e5\u662f\u5426\u88ab\u8bc6\u522b\u3002\u5728\u6211\u7684\u7cfb\u7edf\u91cc\uff0c\u5b83\u88ab\u8bc6\u522b\u4e3a\/dev\/sdb.<\/p>\n<p>\uff081\uff09\u521b\u5efa2\u4e2a\u5206\u533a\uff0c\u4f7f\u7528\u7684\u547d\u4ee4\u662f#fdisk \/dev\/sdb ,<\/p>\n<p>d # delete existing partition &#8211; repeat as necessary<br \/>n # new partition<br \/>p # primary<br \/>1 # partition number<br \/>&lt;enter&gt; # take the default<br \/>+100m # add 100 MB<br \/>t # change the type<br \/>1 # partition number<br \/>b # VFAT<br \/>n # new partition<br \/>p # primary<br \/>2 # partition number<br \/>&lt;enter&gt; # take the default<br \/>&lt;enter&gt; # take the default<br \/>a # toggle bootable flag<br \/>1 # partition number<br \/>w # write to disk<\/p>\n<p>Should look something like this when done:<\/p>\n<p>Disk \/dev\/sdb: 7948 MB, 7948206080 bytes81 heads, 10 sectors\/track, 19165 cylindersUnits = cylinders of 810 * 512 = 414720 bytesDisk identifier: 0x00000000&nbsp;&nbsp; Device Boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Blocks&nbsp;&nbsp; Id&nbsp;&nbsp;System\/dev\/sdb1&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;65&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 26320&nbsp;&nbsp;&nbsp;&nbsp;b&nbsp;&nbsp;W95 FAT32\/dev\/sdb2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;66&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 19165&nbsp;&nbsp;&nbsp;&nbsp; 7735500&nbsp;&nbsp; 83&nbsp;&nbsp;Linux\uff082\uff09\u521b\u5efa\u597d\u5206\u533a\u540e\uff0c\u9700\u8981\u5728\u4e0a\u9762\u521b\u5efa\u6587\u4ef6\u7cfb\u7edf\uff0c\u8fd9\u4e2a\u4e0d\u96be\uff0c\u5176\u547d\u4ee4\u65e0\u975e #mkfs.msdos \/dev\/sdb1 ;mkfs.ext2 \/dev\/sdb2\uff0c\u6267\u884c\u6210\u529f\u540e\uff0c\u5c31\u4ea7\u751f\u4e00\u4e2ados\u5206\u533a\u548c\u4e00\u4e2aext2\u5206\u533a\u3002\u8bf7\u6ce8\u610f\uff0c\u8fd9\u91cc\u662fext2\u6587\u4ef6\u7cfb\u7edf\u800c\u4e0d\u662fext3,\u56e0\u4e3asyslinux\u597d\u50cf\u53ea\u8ddfdos\u548cext2\u6587\u4ef6\u7cfb\u7edf\u53cb\u597d\u3002<\/p>\n<p>\uff083\uff09\u628a\u8fd9\u4e2a\u4e24\u4e2a\u5206\u533a\u6302\u63a5\u5230linux\u7cfb\u7edf\uff0c\u6211\u4f7f\u7528\u7684\u6302\u63a5\u76ee\u5f55\u662f\/mnt\/usb1\u548c\/mnt\/usb2.<\/p>\n<p>\uff084\uff09\u590d\u5236\u76ee\u5f55\u53ca\u6587\u4ef6\u3002<\/p>\n<p>cd \/mnt\/usb1<br \/>cp -rv \/mnt\/ios\/isolinux syslinux<br \/>mv syslinux\/isolinux.cfg syslinux\/syslinux.cfg<br \/>umount \/mnt\/ios<\/p>\n<p>\u62f7\u8d1ddvd\u955c\u50cf\u6587\u4ef6<br \/>cp \/path\/CentOS-5.4_x86_64bin-DVD.iso \/mnt\/usb2<\/p>\n<p>(\u56db)\u5728windows\u8fdb\u884c\u64cd\u4f5c<\/p>\n<p>\u4e0b\u8f7d\u4e00\u4e2asyslinux.exe<\/p>\n<p>\u628au\u76d8\u63d2\u5165windows,\u5047\u8bbe\u5b83\u662fH\u76d8<\/p>\n<p>\u8fdb\u5165command prompt<\/p>\n<p>H:<\/p>\n<p>syslinux.exe -m H:<\/p>\n<p>syslinux.exe -a H:<\/p>\n<p>syslinux.exe -s H:<\/p>\n<p>\u5c31\u53ef\u4ee5\u628a\u5b83\u62ff\u53bb\u88c5\u65b0\u673a\u5668\u4e86\u3002<\/p>\n<p>\u6ce8\u610f\uff1a\u5728\u683c\u5f0f\u5316\u5206\u533a\u7684\u65f6\u5019\uff0c\u4e00\u5b9a\u4e0d\u8981\u628au\u76d8\u9009\u4e0a\uff0c\u514d\u7684\u88c5\u7cfb\u7edf\u7684\u8fc7\u7a0b\u4e2d\u628au\u76d8\u7ed9\u6539\u5199\u4e86\uff0c\u4e0b\u6b21\u5c31\u4e0d\u80fd\u88c5\u4e86\u3002\u53e6\u5916\uff0c\u5728\u786c\u76d8\u5206\u533a\u7684\u65f6\u5019\u8981\u9009\u62e9\u6821\u9a8c\uff0c\u8fd9\u6837\uff0c\u53ef\u4ee5\u9009\u62e9grub\u5230\u54ea\u4e2a\u5730\u65b9.<\/p>\n<p>\u5982\u679c\u6709\u591a\u4e2a\u786c\u76d8\u4e14\u66fe\u7ecf\u88c5\u8fc7\u5176\u5b83linux\uff0c\u5982\u679c\u6ca1\u6709\u5168\u90e8\u683c\u5f0f\u5316\uff0c\u53ef\u80fd\u4f1a\u51fa\u73b0 grub error 15\u7b49\u9519\u8bef\uff0c\u8fd9\u65f6\u7684\u89e3\u51b3\u529e\u6cd5\u662f\u5220\u9664\u6240\u6709\u5206\u533a\u5e76\u683c\u5f0f\u5316\uff0c\u5e76\u4e14\u4e00\u5b9a\u8981\u628a\u542f\u52a8\u5f15\u5bfc\u7a0b\u5e8f\u88c5\u5728\u4f60\u6240\u8981\u88c5\u7cfb\u7edf\u7684\u76d8\u7684MBR\u4e0a\u3002\uff08\u591a\u76d8\u7684\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u8981\u6539\u53d8\u5f15\u5bfc\u987a\u5e8f\u624d\u4f1a\u6709\u67d0\u76d8MBR\u5355\u9009\u9879\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76d8\u7684\u547d\u540d\u89c4\u5219 \u670d\u52a1\u5668\u81ea\u5df1\u7684\u786c\u76d8\u88ab\u5f53\u6210sda,u\u76d8\u88ab\u5f53\u6210sdb\u3002\u8fd9\u4e2a\u8981&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-589","post","type-post","status-publish","format-standard","hentry","category-Linux"],"_links":{"self":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts\/589","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=589"}],"version-history":[{"count":0,"href":"https:\/\/www.poloo.org\/index.php?rest_route=\/wp\/v2\/posts\/589\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=589"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=589"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.poloo.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=589"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}