{"id":26,"date":"2014-05-17T11:51:05","date_gmt":"2014-05-17T03:51:05","guid":{"rendered":"http:\/\/59.120.129.122\/wordpress\/?p=26"},"modified":"2014-05-17T11:51:05","modified_gmt":"2014-05-17T03:51:05","slug":"%e8%ae%93-linux-partition-%e4%bd%bf%e7%94%a82t-%e4%bb%a5%e4%b8%8a%e7%9a%84%e7%a9%ba%e9%96%93-parted-with-gpt","status":"publish","type":"post","link":"https:\/\/jeng.lifenet.com.tw\/?p=26","title":{"rendered":"linux partition \u5927\u65bc 2T \u786c\u789f\u5b89\u88dd &#8211; parted with gpt"},"content":{"rendered":"<p>?????linux?? fdisk -l  ???????2T???????????parted ????(???GPT??)?<br \/>\n??? S350 Storage Server ??? 1 ? 250GB ? 4 ? 1T ? SATA ??<br \/>\n??? ?? Intel RAID Controller ??? ?? RAID0<br \/>\n       &#8211; VD0 : Raid0 : 250GB<br \/>\n       &#8211; VD1 : Raid0 : 4T<br \/>\n??? Debian ? 250 GB SATA ??<br \/>\n:: ?????? &#8211; ?? 4T ??????? partition ::<br \/>\ns350-storage:~# fdisk -l<br \/>\nDisk \/dev\/sda: 248.9 GB, 248999051264 bytes<br \/>\n255 heads, 63 sectors\/track, 30272 cylinders<br \/>\nUnits = cylinders of 16065 * 512 = 8225280 bytes<br \/>\n   Device Boot      Start         End      Blocks   Id  System<br \/>\n\/dev\/sda1   *           1       29942   240509083+  83  Linux<br \/>\n\/dev\/sda2           29943       30272     2650725    5  Extended<br \/>\n\/dev\/sda5           29943       30272     2650693+  82  Linux swap \/ Solaris<br \/>\nDisk \/dev\/sdb: 0 MB, 0 bytes<br \/>\n255 heads, 63 sectors\/track, 0 cylinders<br \/>\nUnits = cylinders of 16065 * 512 = 8225280 bytes<br \/>\nDisk \/dev\/sdb doesn&#8217;t contain a valid partition table<br \/>\ns350-storage:~# apt-get install parted<br \/>\ns350-storage:~# parted \/dev\/sdb<br \/>\n\bGNU Parted 1.7.1<br \/>\nUsing \/dev\/sdb<br \/>\nWelcome to GNU Parted! Type &#8216;help&#8217; to view a list of commands.<br \/>\n(parted) mklabel gpt<br \/>\n(parted) mkpart<br \/>\nPartition name?  []? primay<br \/>\nFile system type?  [ext2]? ext3\b<br \/>\nStart? 0<br \/>\nEnd? -1<br \/>\n(parted) print<br \/>\nDisk \/dev\/sdb: 3996GB<br \/>\nSector size (logical\/physical): 512B\/512B<br \/>\nPartition Table: gpt<br \/>\nNumber  Start   End     Size    File system  Name    Flags<br \/>\n 1      17.4kB  3996GB  3996GB               primay<br \/>\n(parted) quit<br \/>\ns350-storage:~# fdisk -l<br \/>\nDisk \/dev\/sda: 248.9 GB, 248999051264 bytes<br \/>\n255 heads, 63 sectors\/track, 30272 cylinders<br \/>\nUnits = cylinders of 16065 * 512 = 8225280 bytes<br \/>\n   Device Boot      Start         End      Blocks   Id  System<br \/>\n\/dev\/sda1   *           1       29942   240509083+  83  Linux<br \/>\n\/dev\/sda2           29943       30272     2650725    5  Extended<br \/>\n\/dev\/sda5           29943       30272     2650693+  82  Linux swap \/ Solaris<br \/>\nYou must set cylinders.<br \/>\nYou can do this from the extra functions menu.<br \/>\nDisk \/dev\/sdb: 0 MB, 0 bytes<br \/>\n255 heads, 63 sectors\/track, 0 cylinders<br \/>\nUnits = cylinders of 16065 * 512 = 8225280 bytes<br \/>\n   Device Boot      Start         End      Blocks   Id  System<br \/>\n\/dev\/sdb1               1      267350  2147483647+  ee  EFI GPT<br \/>\nPartition 1 has different physical\/logical beginnings (non-Linux?):<br \/>\n     phys=(0, 0, 1) logical=(0, 0, 2)<br \/>\nPartition 1 has different physical\/logical endings:<br \/>\n     phys=(1023, 254, 63) logical=(267349, 89, 4)<br \/>\ns350-storage:~# mkfs.ext3 \/dev\/sdb1<br \/>\ns350-storage:~# cd \/ ; mkdir \/pool<br \/>\ns350-storage:\/ # mount -t ext3 \/dev\/sdb1 \/pool<\/p>\n","protected":false},"excerpt":{"rendered":"<p>?????linux?? fdisk -l ???????2T???????????parted ????(? &hellip; <a href=\"https:\/\/jeng.lifenet.com.tw\/?p=26\" class=\"more-link\">\u95b1\u8b80\u5168\u6587 <span class=\"screen-reader-text\">linux partition \u5927\u65bc 2T \u786c\u789f\u5b89\u88dd &#8211; parted with gpt<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-26","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/jeng.lifenet.com.tw\/index.php?rest_route=\/wp\/v2\/posts\/26","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jeng.lifenet.com.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jeng.lifenet.com.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jeng.lifenet.com.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jeng.lifenet.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=26"}],"version-history":[{"count":0,"href":"https:\/\/jeng.lifenet.com.tw\/index.php?rest_route=\/wp\/v2\/posts\/26\/revisions"}],"wp:attachment":[{"href":"https:\/\/jeng.lifenet.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=26"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jeng.lifenet.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=26"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jeng.lifenet.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=26"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}