Parted: how to solve Location outside of device error?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I was trying to create new partition from existing unallocated space on /dev/sda , but when ever i set the 'start and end' i get location outside of device error. Below is the output



root@server01:/# parted /dev/sda
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print free

Model: VMware Virtual disk (scsi)
Disk /dev/sda: 2199GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:



Number Start End Size File system Name Flags
2 17.4kB 1049kB 1031kB bios_grub
1 1049kB 25.8GB 25.8GB zfs
25.8GB 25.8GB 3584B Free Space
3 25.8GB 36.5GB 10.7GB zfs
4 36.5GB 47.2GB 10.7GB zfs
5 47.2GB 1100GB 1052GB zfs
9 1100GB 1100GB 8392kB
1100GB 2199GB 1100GB Free Space

(parted) mkpart
Partition name? ? 10
File system type? [ext2]? zfs
Start? 1100GiB
End? 2199GiB
Error: The location 2199GiB is outside of the device /dev/sda.
(parted) mkpart
Partition name? ?
File system type? [ext2]? zfs
Start? 1100GiB
End? 2198GiB
Error: The location 2198GiB is outside of the device /dev/sda.


If i set the End? as 100% im able to create new partition. This leads to question on how to create multiple partitions if there is requirement to create 3 partitions with 100G, 500G and 500G







share|improve this question












migrated from serverfault.com Jan 10 at 11:00


This question came from our site for system and network administrators.


















    up vote
    0
    down vote

    favorite












    I was trying to create new partition from existing unallocated space on /dev/sda , but when ever i set the 'start and end' i get location outside of device error. Below is the output



    root@server01:/# parted /dev/sda
    GNU Parted 3.2
    Using /dev/sda
    Welcome to GNU Parted! Type 'help' to view a list of commands.
    (parted) print free

    Model: VMware Virtual disk (scsi)
    Disk /dev/sda: 2199GB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt
    Disk Flags:



    Number Start End Size File system Name Flags
    2 17.4kB 1049kB 1031kB bios_grub
    1 1049kB 25.8GB 25.8GB zfs
    25.8GB 25.8GB 3584B Free Space
    3 25.8GB 36.5GB 10.7GB zfs
    4 36.5GB 47.2GB 10.7GB zfs
    5 47.2GB 1100GB 1052GB zfs
    9 1100GB 1100GB 8392kB
    1100GB 2199GB 1100GB Free Space

    (parted) mkpart
    Partition name? ? 10
    File system type? [ext2]? zfs
    Start? 1100GiB
    End? 2199GiB
    Error: The location 2199GiB is outside of the device /dev/sda.
    (parted) mkpart
    Partition name? ?
    File system type? [ext2]? zfs
    Start? 1100GiB
    End? 2198GiB
    Error: The location 2198GiB is outside of the device /dev/sda.


    If i set the End? as 100% im able to create new partition. This leads to question on how to create multiple partitions if there is requirement to create 3 partitions with 100G, 500G and 500G







    share|improve this question












    migrated from serverfault.com Jan 10 at 11:00


    This question came from our site for system and network administrators.
















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I was trying to create new partition from existing unallocated space on /dev/sda , but when ever i set the 'start and end' i get location outside of device error. Below is the output



      root@server01:/# parted /dev/sda
      GNU Parted 3.2
      Using /dev/sda
      Welcome to GNU Parted! Type 'help' to view a list of commands.
      (parted) print free

      Model: VMware Virtual disk (scsi)
      Disk /dev/sda: 2199GB
      Sector size (logical/physical): 512B/512B
      Partition Table: gpt
      Disk Flags:



      Number Start End Size File system Name Flags
      2 17.4kB 1049kB 1031kB bios_grub
      1 1049kB 25.8GB 25.8GB zfs
      25.8GB 25.8GB 3584B Free Space
      3 25.8GB 36.5GB 10.7GB zfs
      4 36.5GB 47.2GB 10.7GB zfs
      5 47.2GB 1100GB 1052GB zfs
      9 1100GB 1100GB 8392kB
      1100GB 2199GB 1100GB Free Space

      (parted) mkpart
      Partition name? ? 10
      File system type? [ext2]? zfs
      Start? 1100GiB
      End? 2199GiB
      Error: The location 2199GiB is outside of the device /dev/sda.
      (parted) mkpart
      Partition name? ?
      File system type? [ext2]? zfs
      Start? 1100GiB
      End? 2198GiB
      Error: The location 2198GiB is outside of the device /dev/sda.


      If i set the End? as 100% im able to create new partition. This leads to question on how to create multiple partitions if there is requirement to create 3 partitions with 100G, 500G and 500G







      share|improve this question












      I was trying to create new partition from existing unallocated space on /dev/sda , but when ever i set the 'start and end' i get location outside of device error. Below is the output



      root@server01:/# parted /dev/sda
      GNU Parted 3.2
      Using /dev/sda
      Welcome to GNU Parted! Type 'help' to view a list of commands.
      (parted) print free

      Model: VMware Virtual disk (scsi)
      Disk /dev/sda: 2199GB
      Sector size (logical/physical): 512B/512B
      Partition Table: gpt
      Disk Flags:



      Number Start End Size File system Name Flags
      2 17.4kB 1049kB 1031kB bios_grub
      1 1049kB 25.8GB 25.8GB zfs
      25.8GB 25.8GB 3584B Free Space
      3 25.8GB 36.5GB 10.7GB zfs
      4 36.5GB 47.2GB 10.7GB zfs
      5 47.2GB 1100GB 1052GB zfs
      9 1100GB 1100GB 8392kB
      1100GB 2199GB 1100GB Free Space

      (parted) mkpart
      Partition name? ? 10
      File system type? [ext2]? zfs
      Start? 1100GiB
      End? 2199GiB
      Error: The location 2199GiB is outside of the device /dev/sda.
      (parted) mkpart
      Partition name? ?
      File system type? [ext2]? zfs
      Start? 1100GiB
      End? 2198GiB
      Error: The location 2198GiB is outside of the device /dev/sda.


      If i set the End? as 100% im able to create new partition. This leads to question on how to create multiple partitions if there is requirement to create 3 partitions with 100G, 500G and 500G









      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 5 at 4:45









      satch_boogie

      150111




      150111




      migrated from serverfault.com Jan 10 at 11:00


      This question came from our site for system and network administrators.






      migrated from serverfault.com Jan 10 at 11:00


      This question came from our site for system and network administrators.






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          Your disk has an end point of 2199GB. You are using GiB to set the size. GiB are larger than GB so 2199GiB is bigger than 2199GB and therefore beyond the end of the partition.



          Use GB instead of GiB to set the size.






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );








             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f416051%2fparted-how-to-solve-location-outside-of-device-error%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote



            accepted










            Your disk has an end point of 2199GB. You are using GiB to set the size. GiB are larger than GB so 2199GiB is bigger than 2199GB and therefore beyond the end of the partition.



            Use GB instead of GiB to set the size.






            share|improve this answer
























              up vote
              1
              down vote



              accepted










              Your disk has an end point of 2199GB. You are using GiB to set the size. GiB are larger than GB so 2199GiB is bigger than 2199GB and therefore beyond the end of the partition.



              Use GB instead of GiB to set the size.






              share|improve this answer






















                up vote
                1
                down vote



                accepted







                up vote
                1
                down vote



                accepted






                Your disk has an end point of 2199GB. You are using GiB to set the size. GiB are larger than GB so 2199GiB is bigger than 2199GB and therefore beyond the end of the partition.



                Use GB instead of GiB to set the size.






                share|improve this answer












                Your disk has an end point of 2199GB. You are using GiB to set the size. GiB are larger than GB so 2199GiB is bigger than 2199GB and therefore beyond the end of the partition.



                Use GB instead of GiB to set the size.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 5 at 7:23







                user449299





























                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f416051%2fparted-how-to-solve-location-outside-of-device-error%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?