{"id":727,"date":"2018-03-07T12:18:13","date_gmt":"2018-03-07T17:18:13","guid":{"rendered":"http:\/\/log.cagadaga.com\/?p=727"},"modified":"2018-03-07T13:13:03","modified_gmt":"2018-03-07T18:13:03","slug":"crear-particion-con-gparted","status":"publish","type":"post","link":"https:\/\/log.cagadaga.com\/?p=727","title":{"rendered":"crear particion con parted"},"content":{"rendered":"<p>Por lo general siempre que he creado particiones las he creado con fdisk, pero bueno el fdisk ya no nos permite crear particiones tan grandes, otra por que en la chamba ya no quieren que usemos fdisk si no parted \ud83d\ude1b y a parte con formato gpt, ya no msdos para soporte de mbr \ud83d\ude1b bueno asi que veamos como crear una particion sencilla con parted<\/p>\n<p>&nbsp;<br \/>\n&nbsp;<\/p>\n<pre lang=\"bash\">\r\n~]# parted -a optimal \/dev\/xvdc\r\nGNU Parted 2.1\r\nUsing \/dev\/xvdc\r\nWelcome to GNU Parted! Type 'help' to view a list of commands.\r\n(parted) help                                                             \r\n  align-check TYPE N                        check partition N for TYPE(min|opt) alignment\r\n  check NUMBER                             do a simple check on the file system\r\n  cp [FROM-DEVICE] FROM-NUMBER TO-NUMBER   copy file system to another partition\r\n  help [COMMAND]                           print general help, or help on COMMAND\r\n  mklabel,mktable LABEL-TYPE               create a new disklabel (partition table)\r\n  mkfs NUMBER FS-TYPE                      make a FS-TYPE file system on partition NUMBER\r\n  mkpart PART-TYPE [FS-TYPE] START END     make a partition\r\n  mkpartfs PART-TYPE FS-TYPE START END     make a partition with a file system\r\n  move NUMBER START END                    move partition NUMBER\r\n  name NUMBER NAME                         name partition NUMBER as NAME\r\n  print [devices|free|list,all|NUMBER]     display the partition table, available devices, free space, all found partitions, or a particular\r\n        partition\r\n  quit                                     exit program\r\n  rescue START END                         rescue a lost partition near START and END\r\n  resize NUMBER START END                  resize partition NUMBER and its file system\r\n  rm NUMBER                                delete partition NUMBER\r\n  select DEVICE                            choose the device to edit\r\n  set NUMBER FLAG STATE                    change the FLAG on partition NUMBER\r\n  toggle [NUMBER [FLAG]]                   toggle the state of FLAG on partition NUMBER\r\n  unit UNIT                                set the default unit to UNIT\r\n  version                                  display the version number and copyright information of GNU Parted\r\n(parted) mklabel gpt                                                      \r\n(parted) print                                                            \r\nModel: Xen Virtual Block Device (xvd)\r\nDisk \/dev\/xvdc: 215GB\r\nSector size (logical\/physical): 512B\/512B\r\nPartition Table: gpt\r\n\r\nNumber  Start  End  Size  File system  Name  Flags\r\n\r\n(parted) print free                                                       \r\nModel: Xen Virtual Block Device (xvd)\r\nDisk \/dev\/xvdc: 215GB\r\nSector size (logical\/physical): 512B\/512B\r\nPartition Table: gpt\r\n\r\nNumber  Start   End    Size   File system  Name  Flags\r\n        17.4kB  215GB  215GB  Free Space\r\n\r\n(parted) help unit\r\n  unit UNIT                                set the default unit to UNIT\r\n\r\n\tUNIT is one of: s, B, kB, MB, GB, TB, compact, cyl, chs, %, kiB, MiB, GiB, TiB\r\n(parted) unit GiB                                                         \r\n(parted) print free\r\nModel: Xen Virtual Block Device (xvd)\r\nDisk \/dev\/xvdc: 200GiB\r\nSector size (logical\/physical): 512B\/512B\r\nPartition Table: gpt\r\n\r\nNumber  Start    End     Size    File system  Name  Flags\r\n        0.00GiB  200GiB  200GiB  Free Space\r\n\r\n\r\n(parted) mkpart primary 0 200                                             \r\n(parted) name 1 u01                                                       \r\n(parted) print                                                            \r\nModel: Xen Virtual Block Device (xvd)\r\nDisk \/dev\/xvdc: 200GiB\r\nSector size (logical\/physical): 512B\/512B\r\nPartition Table: gpt\r\n\r\nNumber  Start    End     Size    File system  Name  Flags\r\n 1      0.00GiB  200GiB  200GiB               u01\r\n\r\n(parted) quit                                                             \r\nInformation: You may need to update \/etc\/fstab.      \r\n\r\n\r\n     ~]# mkfs.ext4 \/dev\/xvdc1\r\nmke2fs 1.43-WIP (20-Jun-2013)\r\nFilesystem label=\r\nOS type: Linux\r\nBlock size=4096 (log=2)\r\nFragment size=4096 (log=2)\r\nStride=0 blocks, Stripe width=0 blocks\r\n13107200 inodes, 52428288 blocks\r\n2621414 blocks (5.00%) reserved for the super user\r\nFirst data block=0\r\nMaximum filesystem blocks=4294967296\r\n1600 block groups\r\n32768 blocks per group, 32768 fragments per group\r\n8192 inodes per group\r\nSuperblock backups stored on blocks: \r\n\t32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, \r\n\t4096000, 7962624, 11239424, 20480000, 23887872\r\n\r\nAllocating group tables: done                            \r\nWriting inode tables: done                            \r\nCreating journal (32768 blocks): done\r\nWriting superblocks and filesystem accounting information: done  \r\n\r\n~]# vi \/etc\/fstab\r\n\r\nMontamos la particion  y si le damos un df en este caso ya etara vible nuestra particion de \/dev\/xvdc1  \r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Por lo general siempre que he creado particiones las he creado con fdisk, pero bueno el fdisk ya no nos permite crear particiones tan grandes, otra por que en la chamba ya no quieren que usemos fdisk si no parted \ud83d\ude1b y a parte con formato gpt, ya no msdos para soporte de mbr \ud83d\ude1b<span class=\"post-excerpt-end\">&hellip;<\/span><\/p>\n<p class=\"more-link\"><a href=\"https:\/\/log.cagadaga.com\/?p=727\" class=\"themebutton\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-727","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/log.cagadaga.com\/index.php?rest_route=\/wp\/v2\/posts\/727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/log.cagadaga.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/log.cagadaga.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/log.cagadaga.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/log.cagadaga.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=727"}],"version-history":[{"count":2,"href":"https:\/\/log.cagadaga.com\/index.php?rest_route=\/wp\/v2\/posts\/727\/revisions"}],"predecessor-version":[{"id":729,"href":"https:\/\/log.cagadaga.com\/index.php?rest_route=\/wp\/v2\/posts\/727\/revisions\/729"}],"wp:attachment":[{"href":"https:\/\/log.cagadaga.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/log.cagadaga.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/log.cagadaga.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}