{"id":191713,"date":"2020-05-21T11:00:38","date_gmt":"2020-05-21T03:00:38","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=191713"},"modified":"2020-05-19T09:12:01","modified_gmt":"2020-05-19T01:12:01","slug":"linux-tf","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-tf.html","title":{"rendered":"\u5982\u4f55\u7b80\u5355\u7684\u5728TF\u5361\u4e0a\u505a\u4e00\u4e2aLinux\u7684\u6587\u4ef6\u7cfb\u7edf"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u5982\u4f55\u7528\u7b80\u5355\u7684\u65b9\u6cd5\u5728TF\u5361\u4e0a\u5feb\u901f\u7684\u505a\u4e00\u4e2a\u6587\u4ef6\u7cfb\u7edf\u5462\uff1f\u5f88\u591a\u4eba\u80af\u5b9a\u60f3\u7684\u662f\u628aTF\u5361\u653e\u5230\u8bbe\u5907\u4e0a\uff0c\u7136\u540e\u63d2U\u76d8\u6216\u8005\u5149\u76d8\uff0c\u542f\u52a8\u540e\u5b89\u88c5\u5c31\u884c\u4e86\uff0c\u4f46\u5176\u5b9e\u8fd9\u6837\u505a\u8d77\u6765\u9700\u8981\u64cd\u4f5c\u5404\u79cd\u9009\u9879\u8fd8\u6709\u82b1\u8d39\u7684\u65f6\u95f4\u90fd\u5f88\u591a\uff0c\u4e0b\u9762\u6211\u6765\u6559\u5927\u5bb6\u5feb\u901f\u7684\u505a\u4e00\u4e2aLinux\u6587\u4ef6\u7cfb\u7edf\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u9996\u5148\u6211\u4eec\u9700\u8981\u4e00\u4e2aLinux\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5bf9Linux\u7cfb\u7edf\u7684\u6839\u6587\u4ef6\u4e0b\u7684\u6240\u4ee5\u6587\u4ef6\u6253\u5305\u538b\u7f29\uff0c\u6253\u5305\u8fc7\u7a0b\u5c31\u5148\u4e0d\u8bf4\u5566\uff0c\u6211\u4eec\u6765\u5177\u4f53\u8bf4\u8bf4\u5982\u4f55\u8fd8\u539f\u3002<\/p>\n

\u7b2c\u4e00\u6b65\uff1a\u5c06U\u76d8\u901a\u8fc7fdisk\u547d\u4ee4\u8fdb\u884c\u5206\u533a<\/strong><\/div>\n
\r\n[root@localhost media]# umount \/media\/cdrom  #\uff08\u5378\u8f7d\u5df2\u6302\u8f7d\u7684TF\u5361\uff09\r\n[root@localhost media]# fdisk \/dev\/sdd    #\uff08TF\u5361\u5206\u533a\uff09\r\n\u6b22\u8fce\u4f7f\u7528 fdisk (util-linux 2.23.2)\u3002\r\n\r\n\u547d\u4ee4(\u8f93\u5165 m \u83b7\u53d6\u5e2e\u52a9)\uff1ad        #\uff08\u5220\u9664\u539f\u6709\u5206\u533a\uff09\r\n\u5df2\u9009\u62e9\u5206\u533a 1\r\n\u5206\u533a 1 \u5df2\u5220\u9664\r\n\r\n\u547d\u4ee4(\u8f93\u5165 m \u83b7\u53d6\u5e2e\u52a9)\uff1an         #\uff08\u521b\u5efa\u65b0\u5206\u533a\uff09\r\nPartition type:\r\n   p   primary (0 primary, 0 extended, 4 free)\r\n   e   extended\r\nSelect (default p): p\r\n\u5206\u533a\u53f7 (1-4\uff0c\u9ed8\u8ba4 1)\uff1a\r\n\u8d77\u59cb \u6247\u533a (2048-15126527\uff0c\u9ed8\u8ba4\u4e3a 2048)\uff1a\r\n\u5c06\u4f7f\u7528\u9ed8\u8ba4\u503c 2048\r\nLast \u6247\u533a, +\u6247\u533a or +size{K,M,G} (2048-15126527\uff0c\u9ed8\u8ba4\u4e3a 15126527)\uff1a+200M #\uff08\u8bbe\u7f6e\u5206\u533a\u5927\u5c0f\uff09\r\n\u5206\u533a 1 \u5df2\u8bbe\u7f6e\u4e3a Linux \u7c7b\u578b\uff0c\u5927\u5c0f\u8bbe\u4e3a 200 MiB\r\n\r\n\u547d\u4ee4(\u8f93\u5165 m \u83b7\u53d6\u5e2e\u52a9)\uff1an\r\nPartition type:\r\n   p   primary (1 primary, 0 extended, 3 free)\r\n   e   extended\r\nSelect (default p): p\r\n\u5206\u533a\u53f7 (2-4\uff0c\u9ed8\u8ba4 2)\uff1a\r\n\u8d77\u59cb \u6247\u533a (411648-15126527\uff0c\u9ed8\u8ba4\u4e3a 411648)\uff1a\r\n\u5c06\u4f7f\u7528\u9ed8\u8ba4\u503c 411648\r\nLast \u6247\u533a, +\u6247\u533a or +size{K,M,G} (411648-15126527\uff0c\u9ed8\u8ba4\u4e3a 15126527)\uff1a\r\n\u5c06\u4f7f\u7528\u9ed8\u8ba4\u503c 15126527\r\n\u5206\u533a 2 \u5df2\u8bbe\u7f6e\u4e3a Linux \u7c7b\u578b\uff0c\u5927\u5c0f\u8bbe\u4e3a 7 GiB\r\n#\uff08\u4e0d\u8f93\u5165\u503c\uff0c\u9ed8\u8ba4\u5c06\u6240\u6709\u5bb9\u91cf\u5206\u4e3a\u4e00\u4e2a\u533a\uff09\r\n\u547d\u4ee4(\u8f93\u5165 m \u83b7\u53d6\u5e2e\u52a9)\uff1ap      #\uff08\u67e5\u770b\u5206\u533a\uff09\r\n\r\n\u78c1\u76d8 \/dev\/sdd\uff1a7744 MB, 7744782336 \u5b57\u8282\uff0c15126528 \u4e2a\u6247\u533a\r\nUnits = \u6247\u533a of 1 * 512 = 512 bytes\r\n\u6247\u533a\u5927\u5c0f(\u903b\u8f91\/\u7269\u7406)\uff1a512 \u5b57\u8282 \/ 512 \u5b57\u8282\r\nI\/O \u5927\u5c0f(\u6700\u5c0f\/\u6700\u4f73)\uff1a512 \u5b57\u8282 \/ 512 \u5b57\u8282\r\n\u78c1\u76d8\u6807\u7b7e\u7c7b\u578b\uff1ados\r\n\u78c1\u76d8\u6807\u8bc6\u7b26\uff1a0xcc035aee\r\n\r\n   \u8bbe\u5907 Boot      Start         End      Blocks   Id  System\r\n\/dev\/sdd1            2048      411647      204800   83  Linux\r\n\/dev\/sdd2          411648    15126527     7357440   83  Linux\r\n\r\n\u547d\u4ee4(\u8f93\u5165 m \u83b7\u53d6\u5e2e\u52a9)\uff1aw    #\uff08\u540c\u6b65\u5206\u533a\uff09\r\nThe partition table has been altered!\r\n\r\nCalling ioctl() to re-read partition table.\r\n\u6b63\u5728\u540c\u6b65\u78c1\u76d8\u3002\r\n<\/pre>\n
\u7b2c\u4e8c\u6b65\uff1a\u683c\u5f0f\u5316\u5206\u533a\u4e3avfat32 ext4\u683c\u5f0f<\/strong><\/div>\n
\r\n[root@localhost media]# mkfs.vfat \/dev\/sdd1   #\uff08\u5c06\u5df2\u521b\u5efa\u7684sdd1\u683c\u5f0f\u5316\u4e3aVfat32\u6587\u4ef6\u7cfb\u7edf\uff09\r\nmkfs.fat 3.0.20 (12 Jun 2013)\r\n\r\n[root@localhost media]# mkfs.ext4 \/dev\/sdd2  #\uff08\u5c06sdd2\u683c\u5f0f\u5316\u4e3aext4\u6587\u4ef6\u7cfb\u7edf\uff09\r\nmke2fs 1.42.9 (28-Dec-2013)\r\n\u6587\u4ef6\u7cfb\u7edf\u6807\u7b7e=\r\nOS type: Linux\r\n\u5757\u5927\u5c0f=4096 (log=2)\r\n\u5206\u5757\u5927\u5c0f=4096 (log=2)\r\nStride=0 blocks, Stripe width=0 blocks\r\n460560 inodes, 1839360 blocks\r\n91968 blocks (5.00%) reserved for the super user\r\n\u7b2c\u4e00\u4e2a\u6570\u636e\u5757=0\r\nMaximum filesystem blocks=1885339648\r\n57 block groups\r\n32768 blocks per group, 32768 fragments per group\r\n8080 inodes per group\r\nSuperblock backups stored on blocks:\r\n        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632\r\n\r\nAllocating group tables: \u5b8c\u6210\r\n\u6b63\u5728\u5199\u5165inode\u8868: \u5b8c\u6210\r\nCreating journal (32768 blocks): \u5b8c\u6210\r\nWriting superblocks and filesystem accounting information:\r\n\u5b8c\u6210\r\n<\/pre>\n
\u7b2c\u4e09\u6b65\uff1a\u6302\u8f7d\u5206\u533a\uff0c\u5c06\u7cfb\u7edf\u6587\u4ef6\u89e3\u538b\u5230TF\u5361<\/strong><\/div>\n
\r\n[root@localhost media]# mount \/dev\/sdd2 cdrom  #\uff08\u6302\u8f7dsdd2\u5206\u533a\u5230cdrom\uff09\r\n[root@localhost media]# cd cdrom    #\uff08\u8fdb\u5165cdrom\uff09 \r\n[root@localhost cdrom]# tar Jxvf ..\/cdrom1\/CentOS-7.7.1908.tar.xz   #\uff08\u89e3\u538b\u955c\u50cf\u538b\u7f29\u5305\uff09\r\n.\/bin\r\n.........\r\n.........\r\n.\/var\/tmp\/systemd-private-f0a23baa295e4963af90040d13b0cb4c-chronyd.service- \r\n8WAqFb\/tmp\/\r\n<\/pre>\n
\u7b2c\u56db\u6b65\uff1a\u5378\u8f7d\u5206\u533a\uff0c\u5b8c\u6210<\/strong><\/div>\n
\r\n[root@localhost media]# umount cdrom    \uff08\u5378\u8f7dcdrom\uff09\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"

\u9996\u5148\u6211\u4eec\u9700\u8981\u4e00\u4e2aLinux\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5bf9Linux\u7cfb\u7edf\u7684\u6839\u6587\u4ef6\u4e0b\u7684\u6240\u4ee5\u6587\u4ef6\u6253\u5305\u538b\u7f29\uff0c\u6253\u5305\u8fc7\u7a0b\u5c31\u5148\u4e0d\u8bf4\u5566\uff0c\u6211\u4eec\u6765 […]<\/p>\n","protected":false},"author":1890,"featured_media":191718,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-191713","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/191713","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1890"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=191713"}],"version-history":[{"count":6,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/191713\/revisions"}],"predecessor-version":[{"id":191721,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/191713\/revisions\/191721"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/191718"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=191713"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=191713"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=191713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}