{"id":586,"date":"2009-04-25T22:47:30","date_gmt":"2009-04-25T14:47:30","guid":{"rendered":"https:\/\/blog.ychsiao.org\/?p=586"},"modified":"2018-03-21T20:26:21","modified_gmt":"2018-03-21T12:26:21","slug":"linux-creating-a-partition-size-larger-than-2tb","status":"publish","type":"post","link":"https:\/\/blog.ychsiao.org\/?p=586","title":{"rendered":"Linux Creating a Partition Size Larger than 2TB"},"content":{"rendered":"<p>\u8d85\u904e2T\u4e5f\u662f\u4e00\u7a2e\u75db\u82e6:p<\/p>\n<p>\u9996\u5148parted<\/p>\n<p>ftp:~# <strong>parted \/dev\/sdb<\/strong><br \/>\nGNU Parted 1.8.8<br \/>\nUsing \/dev\/sdb<br \/>\nWelcome to GNU Parted! Type &#8216;help&#8217; to view a list of commands.<br \/>\n(parted)<strong> mklabel<\/strong><br \/>\nWarning: The existing disk label on \/dev\/sdb will be destroyed and all data on<br \/>\nthis disk will be lost. Do you want to continue?<br \/>\nYes\/No? <strong>yes<\/strong><br \/>\n<strong>New disk label type?\u00a0 [gpt]? gpt<\/strong><br \/>\n(parted)<strong> mkpart<\/strong><br \/>\nPartition name?\u00a0 []?<strong> primay<\/strong><br \/>\nFile system type?\u00a0 [ext2]?<strong> xfs<\/strong><br \/>\nStart? <strong>0<\/strong><br \/>\nEnd? <strong>-1<\/strong><br \/>\n(parted)<strong> print<\/strong><br \/>\nModel: Promise VTrak E610f (scsi)<br \/>\n<em>Disk \/dev\/sdb: 4000GB<\/em><br \/>\nSector size (logical\/physical): 512B\/512B<br \/>\nPartition Table: gpt<\/p>\n<p>Number\u00a0 Start\u00a0\u00a0 End\u00a0\u00a0\u00a0\u00a0 Size\u00a0\u00a0\u00a0 File system\u00a0 Name\u00a0\u00a0\u00a0 Flags<br \/>\n1\u00a0\u00a0\u00a0\u00a0\u00a0 17.4kB\u00a0 4000GB\u00a0 4000GB\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 primay<\/p>\n<p>ftp:~#<strong> fdisk -l<\/strong><\/p>\n<p>WARNING: GPT (GUID Partition Table) detected on &#8216;\/dev\/sdb&#8217;! The util fdisk doesn&#8217;t support GPT. Use GNU Parted.<br \/>\n<em>Disk \/dev\/sdb: 3999.9 GB, 3999999197184 bytes<\/em><br \/>\n255 heads, 63 sectors\/track, 486305 cylinders<br \/>\nUnits = cylinders of 16065 * 512 = 8225280 bytes<br \/>\nDisk identifier: 0x00000000<\/p>\n<p>Device Boot\u00a0\u00a0\u00a0\u00a0\u00a0 Start\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 End\u00a0\u00a0\u00a0\u00a0\u00a0 Blocks\u00a0\u00a0 Id\u00a0 System<br \/>\n<em>\/dev\/sdb1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\u00a0\u00a0\u00a0\u00a0\u00a0 267350\u00a0 2147483647+\u00a0 ee\u00a0 EFI GPT<\/em><\/p>\n<p>ftp:~# <strong>mkfs.xfs \/dev\/sdb1<\/strong><\/p>\n<p>\u7136\u5f8c\u5c31\u641e\u5b9a\u5566<\/p>\n<p>ftp:~# df -h<br \/>\nFilesystem\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Size\u00a0 Used Avail Use% Mounted on<\/p>\n<p><strong>\/dev\/sdb1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 3.7T\u00a0 4.2M\u00a0 3.7T\u00a0\u00a0 1% \/ftp4<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8d85\u904e2T\u4e5f\u662f\u4e00\u7a2e\u75db\u82e6:p \u9996\u5148parted ftp:~# parted \/dev\/sdb GNU Parted 1.8.8 Using \/dev\/sdb Welcome to GNU Parted! Type &#8216;help&#8217; to view a list of commands. (parted) mklabel Warning: The existing disk label on \/dev\/sdb will be destroyed and all data on this disk will be lost. Do you want to continue? Yes\/No? yes New disk label type?\u00a0 [gpt]? [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[26,3],"class_list":["post-586","post","type-post","status-publish","format-standard","hentry","category-general","tag-linux","tag-unix"],"_links":{"self":[{"href":"https:\/\/blog.ychsiao.org\/index.php?rest_route=\/wp\/v2\/posts\/586","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ychsiao.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ychsiao.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ychsiao.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ychsiao.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=586"}],"version-history":[{"count":2,"href":"https:\/\/blog.ychsiao.org\/index.php?rest_route=\/wp\/v2\/posts\/586\/revisions"}],"predecessor-version":[{"id":588,"href":"https:\/\/blog.ychsiao.org\/index.php?rest_route=\/wp\/v2\/posts\/586\/revisions\/588"}],"wp:attachment":[{"href":"https:\/\/blog.ychsiao.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=586"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ychsiao.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=586"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ychsiao.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}