{"id":6148,"date":"2019-07-18T14:16:12","date_gmt":"2019-07-18T14:16:12","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=6148"},"modified":"2019-07-18T14:16:12","modified_gmt":"2019-07-18T14:16:12","slug":"fixing-error-mounting-ebs-volume-appears-to-contain-a-partition-table-dos","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/fixing-error-mounting-ebs-volume-appears-to-contain-a-partition-table-dos\/","title":{"rendered":"Fixing error mounting EBS volume: &#8220;appears to contain a partition table (dos).&#8221;"},"content":{"rendered":"<p>If you mount an EBS volume and try to format it, you may get an error like so:<\/p>\n<pre lang=\"bash\">\nmkfs -t xfs \/dev\/xvdcz\n<\/pre>\n<pre>\nmkfs.xfs: \/dev\/xvdcz appears to contain a partition table (dos).\nmkfs.xfs: Use the -f option to force overwrite.\n<\/pre>\n<p>This command (mkfs) is a bit confusing, because if you look at the man pages there is no &#8220;-f&#8221; argument. In fact, it appears to be a proxy for another command which has more options, so the solution is to call that directly and add the -f, i.e.:<\/p>\n<pre lang=\"bash\">\nmkfs.xfs -f \/dev\/xvdcz\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Fixing an error formatting a disk<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4],"tags":[71,180,181],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/6148"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=6148"}],"version-history":[{"count":0,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/6148\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=6148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=6148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=6148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}