{"id":575,"date":"2015-06-25T10:34:51","date_gmt":"2015-06-25T02:34:51","guid":{"rendered":"http:\/\/www.zyuns.com\/?p=575"},"modified":"2015-06-25T10:42:50","modified_gmt":"2015-06-25T02:42:50","slug":"%e8%a7%a3%e5%86%b3%ef%bc%9adisk-devsdb-doesnt-contain-a-valid-partition-table","status":"publish","type":"post","link":"https:\/\/www.siediyer.cn\/?p=575","title":{"rendered":"\u89e3\u51b3\uff1aDisk \/dev\/sdb doesn&#8217;t contain a valid partition table"},"content":{"rendered":"<p>1. \u865a\u62df\u673a&#8211;\u8bbe\u7f6e&#8211;\u6dfb\u52a0\uff0c\u9009\u62e9\u786c\u76d8\u6dfb\u52a0<\/p>\n<p>2. \u9996\u5148\u4e3a\u78c1\u76d8\u521b\u5efa\u6587\u4ef6\u7cfb\u7edf\uff1a<span style=\"color: #ff0000;\">mkfs.ext3 \/dev\/sdb<\/span><\/p>\n<p>3. \u521b\u5efa\u6302\u8f7d\u70b9\uff1a<span style=\"color: #ff0000;\">mkdir \/mnt\/sdb<\/span><\/p>\n<p>4. \u6302\u8f7d\uff1a<span style=\"color: #ff0000;\">mount \/dev\/sdb \/mnt\/sdb<\/span><\/p>\n<p>5. <span style=\"color: #ff0000;\">fdisk -l<\/span><\/p>\n<p>\u53d1\u73b0\u6709\u95ee\u9898\uff1a<\/p>\n<p>Disk \/dev\/sdb doesn&#8217;t contain a valid partition table<\/p>\n<p>6.\u00a0<span style=\"color: #ff0000;\">fdisk \/dev\/sdb<\/span><\/p>\n<p>\u8ddf\u7740\u5411\u5bfc\u4e00\u6b65\u6b65\u505a\u4e0b\u53bb\uff08\u5982\u679c\u4e0d\u77e5\u9053\u8be5\u8f93\u5165\u4ec0\u4e48\uff0c\u5c31\u8f93\u5165\u201cm\u201d\u5e76\u56de\u8f66\uff0c\u53ef\u4ee5\u6253\u5370\u51fa\u83dc\u5355\uff09\uff1a<\/p>\n<p>Command (m for help):\u00a0<span style=\"color: #ff0000;\"><strong>m<\/strong><\/span><\/p>\n<p>Command action<\/p>\n<p>a \u00a0 toggle a bootable flag<\/p>\n<p>b \u00a0 edit bsd disklabel<\/p>\n<p>c \u00a0 toggle the dos compatibility flag<\/p>\n<p>d \u00a0 delete a partition<\/p>\n<p>l \u00a0 list known partition types<\/p>\n<p>m \u00a0 print this menu<\/p>\n<p>n \u00a0 add a new partition<\/p>\n<p>\uff08\u540e\u9762\u7684\u83dc\u5355\u7701\u7565\uff0c\u592a\u957f\u4e86\uff09<\/p>\n<p>\u8fd9\u91cc\u6211\u4eec\u8981\u6dfb\u52a0\u4e00\u4e2a\u65b0\u7684\u5206\u533a\uff0c\u6240\u4ee5\u8f93\u5165\u201cn\u201d\uff1a<\/p>\n<p>Command (m for help):\u00a0<span style=\"color: #ff0000;\"><strong>n<\/strong><\/span><\/p>\n<p>Command action<\/p>\n<p>e \u00a0 extended<\/p>\n<p>p \u00a0 primary partition (1-4)<\/p>\n<p><span style=\"color: #ff0000;\">p<\/span><\/p>\n<p>Partition number (1-4):\u00a0<span style=\"color: #ff0000;\"><strong>1<\/strong><\/span><\/p>\n<p>First cylinder (1-14098, default 1):\u00a0\uff08\u6b64\u5904\u76f4\u63a5\u56de\u8f66\uff09<\/p>\n<p>Using default value 1<\/p>\n<p>Last cylinder or +size or +sizeM or +sizeK (1-14098, default 14098):\u00a0\uff08\u6b64\u5904\u76f4\u63a5\u56de\u8f66\uff09<\/p>\n<p>Using default value 14098<\/p>\n<p>Command (m for help):\u00a0<span style=\"color: #ff0000;\"><strong>p<\/strong><\/span><\/p>\n<p>Disk \/dev\/sdb: 115.9 GB, 115964116992 bytes<\/p>\n<p>255 heads, 63 sectors\/track, 14098 cylinders<\/p>\n<p>Units = cylinders of 16065 * 512 = 8225280 bytes<\/p>\n<p>Device Boot \u00a0 \u00a0 \u00a0Start \u00a0 \u00a0 \u00a0 \u00a0 End \u00a0 \u00a0 \u00a0Blocks \u00a0 Id \u00a0System<\/p>\n<p>\/dev\/sdb1 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 1 \u00a0 \u00a0 \u00a0 14098 \u00a0 113242153+ \u00a083 \u00a0Linux<\/p>\n<p>\u73b0\u5728\u53ef\u4ee5\u5199\u5165\u5206\u533a\u8868\u4e86\uff0c\u6240\u4ee5\u8f93\u5165\u201cw\u201d\uff1a<\/p>\n<p>Command (m for help):\u00a0<span style=\"color: #ff0000;\"><strong>w<\/strong><\/span><\/p>\n<p>The partition table has been altered!<\/p>\n<p>Calling ioctl() to re-read partition table.<\/p>\n<p>Syncing disks.<\/p>\n<p>\u73b0\u5728\u518dfdisk -l\uff0c\u7ed3\u679c\u6b63\u5e38<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u865a\u62df\u673a&#8211;\u8bbe\u7f6e&#8211;\u6dfb\u52a0\uff0c\u9009\u62e9\u786c\u76d8\u6dfb\u52a0 2. \u9996\u5148\u4e3a\u78c1\u76d8\u521b\u5efa\u6587\u4ef6\u7cfb\u7edf\uff1amkfs.ext [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[23,12],"class_list":["post-575","post","type-post","status-publish","format-standard","hentry","category-linux","tag-fdisk","tag-linux"],"_links":{"self":[{"href":"https:\/\/www.siediyer.cn\/index.php?rest_route=\/wp\/v2\/posts\/575","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.siediyer.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.siediyer.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.siediyer.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.siediyer.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=575"}],"version-history":[{"count":3,"href":"https:\/\/www.siediyer.cn\/index.php?rest_route=\/wp\/v2\/posts\/575\/revisions"}],"predecessor-version":[{"id":578,"href":"https:\/\/www.siediyer.cn\/index.php?rest_route=\/wp\/v2\/posts\/575\/revisions\/578"}],"wp:attachment":[{"href":"https:\/\/www.siediyer.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=575"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.siediyer.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=575"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.siediyer.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=575"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}