sector size won't change with fdisk

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











up vote
0
down vote

favorite












am trying to change the sector size from 512 to 2048 of my swap partition.



# fdisk -b 2048 /dev/mapper/fedora-swap


and then I try to write to it gives me the following message.




The partition table has been altered. Calling ioctl() to re-read
partition table. Re-reading the partition table failed.: Invalid
argument








share|improve this question
























    up vote
    0
    down vote

    favorite












    am trying to change the sector size from 512 to 2048 of my swap partition.



    # fdisk -b 2048 /dev/mapper/fedora-swap


    and then I try to write to it gives me the following message.




    The partition table has been altered. Calling ioctl() to re-read
    partition table. Re-reading the partition table failed.: Invalid
    argument








    share|improve this question






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      am trying to change the sector size from 512 to 2048 of my swap partition.



      # fdisk -b 2048 /dev/mapper/fedora-swap


      and then I try to write to it gives me the following message.




      The partition table has been altered. Calling ioctl() to re-read
      partition table. Re-reading the partition table failed.: Invalid
      argument








      share|improve this question












      am trying to change the sector size from 512 to 2048 of my swap partition.



      # fdisk -b 2048 /dev/mapper/fedora-swap


      and then I try to write to it gives me the following message.




      The partition table has been altered. Calling ioctl() to re-read
      partition table. Re-reading the partition table failed.: Invalid
      argument










      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 12 at 22:00









      alkabary

      574823




      574823




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          I think you have to "dismount" swap with the command



          swapoff /dev/mapper/fedora-swap
          fdisk -b 2048 /dev/mapper/fedora-swap
          swapon /dev/mapper/fedora-swap


          I am not sure about syntax then man swapoff.






          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%2f416689%2fsector-size-wont-change-with-fdisk%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
            0
            down vote













            I think you have to "dismount" swap with the command



            swapoff /dev/mapper/fedora-swap
            fdisk -b 2048 /dev/mapper/fedora-swap
            swapon /dev/mapper/fedora-swap


            I am not sure about syntax then man swapoff.






            share|improve this answer
























              up vote
              0
              down vote













              I think you have to "dismount" swap with the command



              swapoff /dev/mapper/fedora-swap
              fdisk -b 2048 /dev/mapper/fedora-swap
              swapon /dev/mapper/fedora-swap


              I am not sure about syntax then man swapoff.






              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                I think you have to "dismount" swap with the command



                swapoff /dev/mapper/fedora-swap
                fdisk -b 2048 /dev/mapper/fedora-swap
                swapon /dev/mapper/fedora-swap


                I am not sure about syntax then man swapoff.






                share|improve this answer












                I think you have to "dismount" swap with the command



                swapoff /dev/mapper/fedora-swap
                fdisk -b 2048 /dev/mapper/fedora-swap
                swapon /dev/mapper/fedora-swap


                I am not sure about syntax then man swapoff.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 12 at 23:25









                MysticDog

                12




                12






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f416689%2fsector-size-wont-change-with-fdisk%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?