Accidentally deleted the only partition where LV for the root and swap

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











up vote
0
down vote

favorite












I accidentally deleted /dev/sda2. This is only partition which is member of my rhel VG. where I have created root and swap LV. I deleted this with fdisk, after deleting I run partprobe It gave some error then I reboot VM. Now it's stuck on a start job is running for /dev_mapper_rhel/x2droot.device.



Is there any way to recreate that partition? Can I make changes after mounting this disk to a Live Os?







share|improve this question


























    up vote
    0
    down vote

    favorite












    I accidentally deleted /dev/sda2. This is only partition which is member of my rhel VG. where I have created root and swap LV. I deleted this with fdisk, after deleting I run partprobe It gave some error then I reboot VM. Now it's stuck on a start job is running for /dev_mapper_rhel/x2droot.device.



    Is there any way to recreate that partition? Can I make changes after mounting this disk to a Live Os?







    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I accidentally deleted /dev/sda2. This is only partition which is member of my rhel VG. where I have created root and swap LV. I deleted this with fdisk, after deleting I run partprobe It gave some error then I reboot VM. Now it's stuck on a start job is running for /dev_mapper_rhel/x2droot.device.



      Is there any way to recreate that partition? Can I make changes after mounting this disk to a Live Os?







      share|improve this question














      I accidentally deleted /dev/sda2. This is only partition which is member of my rhel VG. where I have created root and swap LV. I deleted this with fdisk, after deleting I run partprobe It gave some error then I reboot VM. Now it's stuck on a start job is running for /dev_mapper_rhel/x2droot.device.



      Is there any way to recreate that partition? Can I make changes after mounting this disk to a Live Os?









      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 6 '17 at 6:11

























      asked Dec 6 '17 at 6:03









      AsmuAsheer

      536




      536




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Yes, you can recreate the partition using fdisk, or another other similar tool. All you need to do is input the start and end offsets as they used to be.



          And yes, you can make changes from a live disc.






          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%2f409110%2faccidentally-deleted-the-only-partition-where-lv-for-the-root-and-swap%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













            Yes, you can recreate the partition using fdisk, or another other similar tool. All you need to do is input the start and end offsets as they used to be.



            And yes, you can make changes from a live disc.






            share|improve this answer
























              up vote
              0
              down vote













              Yes, you can recreate the partition using fdisk, or another other similar tool. All you need to do is input the start and end offsets as they used to be.



              And yes, you can make changes from a live disc.






              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                Yes, you can recreate the partition using fdisk, or another other similar tool. All you need to do is input the start and end offsets as they used to be.



                And yes, you can make changes from a live disc.






                share|improve this answer












                Yes, you can recreate the partition using fdisk, or another other similar tool. All you need to do is input the start and end offsets as they used to be.



                And yes, you can make changes from a live disc.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 6 '17 at 14:15









                Emmanuel Rosa

                2,2901410




                2,2901410



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f409110%2faccidentally-deleted-the-only-partition-where-lv-for-the-root-and-swap%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?