{"id":1888,"date":"2020-04-06T18:50:13","date_gmt":"2020-04-06T10:50:13","guid":{"rendered":"http:\/\/kaoru.tech:7000\/wordpress\/?p=1888"},"modified":"2020-04-13T08:31:04","modified_gmt":"2020-04-13T00:31:04","slug":"helpful-tutorial-for-installcopy-a-new-linux","status":"publish","type":"post","link":"http:\/\/kaoru.tech:7000\/wordpress\/?p=1888","title":{"rendered":"Helpful Tutorial for Install(Move) a New Linux"},"content":{"rendered":"<p>\u516c\u53f8\u7684\u7f16\u8bd1\u73af\u5883\u662fdebian 8 (jessie)\u3002\u7cfb\u7edf\u88c5\u5728\u4e00\u4e2a500GB\u7684HDD\u4e0a\uff0c\u6570\u636e\u76d8\u662f\u4e00\u4e2a2T\u7684\u5e0c\u6377\u76d1\u63a7\u76d8\u3002<\/p>\n<p>\u7531\u4e8e\u8fd1\u671f\u5728\u8fd0\u884c<em>git status<\/em>\u7684\u65f6\u5019\u5de8\u6162\u65e0\u6bd4\uff0c\u611f\u89c9\u786c\u76d8\u5feb\u5230\u5e74\u5934\u4e86\uff0c\u4f46\u662f<em>smartctl<\/em>\u6b63\u5e38\u3002<\/p>\n<p>\u540c\u65f6\u7531\u4e8e\u6700\u65e9\u5b89\u88c5\u7cfb\u7edf\u7684\u65f6\u5019\uff0c\u53ea\u7ed9\u6839\u76ee\u5f55\u4e4b\u5206\u4e8610GB\uff0c\u5176\u4f59\u7684\u90fdmount\u5230<em>\/home<\/em>\u76ee\u5f55\u4e86\uff08\u5176\u5b9e\u6ca1\u7528\uff0c\u7528\u6237\u76ee\u5f55\u88ab\u6211\u94fe\u63a5\u5230\u4e86\u6570\u636e\u76d8\uff09\u3002<\/p>\n<p>\u5728\u540e\u7eed\u4f7f\u7528\u7684\u8fc7\u7a0b\u4e2d\uff0c\u6839\u76ee\u5f55\u7ecf\u5e38\u7206\u6ee1\uff08\u4f7f\u7528<em>\/tftpboot<\/em>\u4f5c\u4e3a\u4ea4\u6362\u76ee\u5f55\uff09\u3002<\/p>\n<p>\u8d81\u7740\u8fd9\u6b21\u6e05\u660e\u8282\u5047\u671f\uff0c\u6b63\u597d\u628a\u7f16\u8bd1\u73af\u5883\u91cd\u65b0\u6574\u7406\u4e00\u4e0b\uff1a<\/p>\n<ul>\n<li>Boot Disk: Samsung SSD 850 256GB<\/li>\n<li>Data Disks:\n<ul>\n<li>Seagate 3T -> \/data<\/li>\n<li>Seagate 2T -> \/home<\/li>\n<li>Seagate 1T -> \/data\/sdk<\/li>\n<li>Seagete 1T -> \/tftpboot<\/li>\n<li>WDC 500G -> <\/li>\n<li>WDC 500G -> <\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h1>Install with a netinst CD<\/h1>\n<p>\u7531\u4e8e\u7b14\u8005\u4e60\u60ef\u4f7f\u7528debian\uff0c\u6240\u4ee5\u76f4\u63a5\u5b89\u88c5debian\u7684\u6700\u65b0\u7248\u672c\u3002<\/p>\n<p>\u540c\u65f6netinst\u5bb9\u91cf\u5c0f\uff0c\u4ec5\u5177\u5907\u5fc5\u987b\u7684\u6587\u4ef6\u5305\uff0c\u81ea\u5df1\u53ef\u4ee5\u6839\u636e\u9700\u8981\u5b89\u88c5\u5176\u4ed6\u7684\u5305\uff0c\u975e\u5e38\u9002\u5408\u6211\u4eec\u8fd9\u79cd\u4e0d\u9700\u8981\u684c\u9762\u663e\u793a\u7684\u5f00\u53d1\u73af\u5883\u3002<\/p>\n<p>\u4ecedebian\u5b98\u7f51\u4e0b\u8f7dnetinst\u5b89\u88c5\u5305\uff1a<a href=\"https:\/\/www.debian.org\/distrib\/netinst\">Debian netinst URL<\/a><\/p>\n<h1>Install additional package<\/h1>\n<ul>\n<li>vim cscope git sudo ctags tcpdump<\/li>\n<li>tftpd-hpa sshd<\/li>\n<li>gcc make autoconf cmake autogen bison bc libncursesw5 libtinfo-dev libtool<\/li>\n<li>libc6-dev-i386 indent flex<\/li>\n<li>linux-headers-&#96;uname -r&#96;<\/li>\n<li>parted uuid rsync ntfs-3g<\/li>\n<li>net-tools (ifconfig .)<\/li>\n<li>u-boot-tools (mkimage)<\/li>\n<li>sysstat (iostat)<\/li>\n<li>ddclient (DDNS for remote connect)<\/li>\n<li>smartmontools (DISK monitor)<\/li>\n<\/ul>\n<h1>Copy data if needed<\/h1>\n<p>Copy directory from <em>source<\/em> to <em>dest<\/em><\/p>\n<pre><code class=\"language-bash\"># rsync -aHAX --progress \/source \/dest\n<\/code><\/pre>\n<ul>\n<li>-a: \u5b58\u6863\u6a21\u5f0f\uff0c\u7b49\u540c\u4e8e-rlptgoD \uff08\u6ca1\u6709-H,-A,-X\uff09\n<ul>\n<li>-r: \u9012\u5f52\u6a21\u5f0f<\/li>\n<li>-l: \u4fdd\u7559\u7b26\u53f7\u94fe\u63a5\uff08symlink\uff09<\/li>\n<li>-p: \u4fdd\u7559\u6743\u9650\uff08permissions\uff09<\/li>\n<li>-t: \u4fdd\u7559\u4fee\u6539\u65f6\u95f4\uff08modification times\uff09<\/li>\n<li>-g: \u4fdd\u7559\u5c5e\u7ec4\uff08group\uff09<\/li>\n<li>-o: \u4fdd\u7559\u6240\u6709\u4eba\uff08owner\uff09<\/li>\n<li>-D: \u7b49\u6548\u4e8e&#8211;devices &#8211;specials\n<ul>\n<li>&#8211;device: \u4fdd\u7559\u8bbe\u5907\u6587\u4ef6<\/li>\n<li>&#8211;specials: \u4fdd\u7559\u7279\u6b8a\u6587\u4ef6<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>-H: \u4fdd\u7559\u786c\u94fe\u63a5\uff08hard links\uff09<\/li>\n<li>-A: \u4fdd\u7559ACLs<\/li>\n<li>-X: \u4fdd\u7559\u989d\u5916\u5c5e\u6027\uff08extended attributes\uff09<\/li>\n<li>&#8211;progress: \u5728\u4f20\u8f93\u65f6\u663e\u793a\u4f20\u8f93\u8fc7\u7a0b<\/li>\n<\/ul>\n<p>1.7TB\u7684\u6570\u636e\u62f7\u8d1d\u7684\u4e24\u5929\u3002\u3002\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u516c\u53f8\u7684\u7f16\u8bd1\u73af\u5883\u662fdebian 8 (jessie)\u3002\u7cfb\u7edf\u88c5\u5728\u4e00\u4e2a500GB\u7684HDD\u4e0a\uff0c\u6570\u636e\u76d8\u662f\u4e00\u4e2a2T\u7684\u5e0c\u6377\u76d1\u63a7\u76d8\u3002 \u7531\u4e8e\u8fd1\u671f\u5728\u8fd0\u884cgit status\u7684\u65f6\u5019\u5de8\u6162\u65e0\u6bd4\uff0c\u611f\u89c9\u786c\u76d8\u5feb\u5230\u5e74\u5934\u4e86\uff0c\u4f46\u662fsmartctl\u6b63\u5e38\u3002 \u540c\u65f6\u7531\u4e8e\u6700\u65e9\u5b89\u88c5\u7cfb\u7edf\u7684\u65f6\u5019\uff0c\u53ea\u7ed9\u6839\u76ee\u5f55\u4e4b\u5206\u4e8610GB\uff0c\u5176\u4f59\u7684\u90fdmount\u5230\/home\u76ee\u5f55\u4e86\uff08\u5176\u5b9e\u6ca1\u7528\uff0c\u7528\u6237\u76ee\u5f55\u88ab\u6211\u94fe\u63a5\u5230\u4e86\u6570\u636e\u76d8\uff09\u3002 \u5728\u540e\u7eed\u4f7f\u7528\u7684\u8fc7\u7a0b\u4e2d\uff0c\u6839\u76ee\u5f55\u7ecf\u5e38\u7206\u6ee1\uff08\u4f7f\u7528\/tftpboot\u4f5c\u4e3a\u4ea4\u6362\u76ee\u5f55\uff09\u3002 \u8d81\u7740\u8fd9\u6b21\u6e05\u660e\u8282\u5047\u671f\uff0c\u6b63\u597d\u628a\u7f16\u8bd1\u73af\u5883\u91cd\u65b0\u6574\u7406\u4e00\u4e0b\uff1a Boot Disk: Samsung SSD 850 256GB Data Disks: Seagate 3T -> \/data Seagate 2T -> \/home Seagate 1T -> \/data\/sdk Seagete 1T&hellip;<\/p>\n","protected":false},"author":2,"featured_media":1898,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[5],"tags":[205,334,203],"class_list":["post-1888","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-debian","tag-install-os","tag-linux"],"_links":{"self":[{"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1888","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1888"}],"version-history":[{"count":16,"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1888\/revisions"}],"predecessor-version":[{"id":1910,"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1888\/revisions\/1910"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=\/wp\/v2\/media\/1898"}],"wp:attachment":[{"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1888"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1888"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1888"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}