Repartition a non LVM system with LVM












1














I have installed my system without LVM but I need it now.



How can I repartition my disk with LVM and keep all my system files?



I know this would need backup, but I have never used it yet and don't know wich tool would best suit that situation.










share|improve this question






















  • There is a tool to convert to LVM ( github.com/g2p/blocks#readme ). I wrote a howto do it manually but it's in German wiki.ubuntuusers.de/Archiv/Howto/… - conversion aside you also have to make the system bootable for root-on-lvm. Backing up all files and reinstalling with LVM is not the worst option here. You should have a backup in any case.
    – frostschutz
    Dec 18 at 14:22


















1














I have installed my system without LVM but I need it now.



How can I repartition my disk with LVM and keep all my system files?



I know this would need backup, but I have never used it yet and don't know wich tool would best suit that situation.










share|improve this question






















  • There is a tool to convert to LVM ( github.com/g2p/blocks#readme ). I wrote a howto do it manually but it's in German wiki.ubuntuusers.de/Archiv/Howto/… - conversion aside you also have to make the system bootable for root-on-lvm. Backing up all files and reinstalling with LVM is not the worst option here. You should have a backup in any case.
    – frostschutz
    Dec 18 at 14:22
















1












1








1







I have installed my system without LVM but I need it now.



How can I repartition my disk with LVM and keep all my system files?



I know this would need backup, but I have never used it yet and don't know wich tool would best suit that situation.










share|improve this question













I have installed my system without LVM but I need it now.



How can I repartition my disk with LVM and keep all my system files?



I know this would need backup, but I have never used it yet and don't know wich tool would best suit that situation.







partition lvm disk






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 18 at 14:04









Nicolas Scotto Di Perto

236210




236210












  • There is a tool to convert to LVM ( github.com/g2p/blocks#readme ). I wrote a howto do it manually but it's in German wiki.ubuntuusers.de/Archiv/Howto/… - conversion aside you also have to make the system bootable for root-on-lvm. Backing up all files and reinstalling with LVM is not the worst option here. You should have a backup in any case.
    – frostschutz
    Dec 18 at 14:22




















  • There is a tool to convert to LVM ( github.com/g2p/blocks#readme ). I wrote a howto do it manually but it's in German wiki.ubuntuusers.de/Archiv/Howto/… - conversion aside you also have to make the system bootable for root-on-lvm. Backing up all files and reinstalling with LVM is not the worst option here. You should have a backup in any case.
    – frostschutz
    Dec 18 at 14:22


















There is a tool to convert to LVM ( github.com/g2p/blocks#readme ). I wrote a howto do it manually but it's in German wiki.ubuntuusers.de/Archiv/Howto/… - conversion aside you also have to make the system bootable for root-on-lvm. Backing up all files and reinstalling with LVM is not the worst option here. You should have a backup in any case.
– frostschutz
Dec 18 at 14:22






There is a tool to convert to LVM ( github.com/g2p/blocks#readme ). I wrote a howto do it manually but it's in German wiki.ubuntuusers.de/Archiv/Howto/… - conversion aside you also have to make the system bootable for root-on-lvm. Backing up all files and reinstalling with LVM is not the worst option here. You should have a backup in any case.
– frostschutz
Dec 18 at 14:22












1 Answer
1






active

oldest

votes


















0














If you have some free disk space you can do this. But this can be long and not so sample process. The best you can do is to copy your personal files to external disk or cloud storage. The commands with can help you to pack the files in bundles (if you have a lot of small files) are tar, zip.



The process of replacing current disks with LVM is in few words:




  • create PV from free space

  • create VG from from PV

  • create LV in VG

  • create filesystem on LV

  • mount filesystem

  • copy files to release some filesystem

  • unmount this filesystem

  • remount LV filesystem on the place of above filesystem

  • create PV from unmounted filesystem

  • add this PV to VG

  • repeat with next filesystem


After you finish with root partition you will need to edit /etc/fstab and update grub






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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    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%2f489693%2frepartition-a-non-lvm-system-with-lvm%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    If you have some free disk space you can do this. But this can be long and not so sample process. The best you can do is to copy your personal files to external disk or cloud storage. The commands with can help you to pack the files in bundles (if you have a lot of small files) are tar, zip.



    The process of replacing current disks with LVM is in few words:




    • create PV from free space

    • create VG from from PV

    • create LV in VG

    • create filesystem on LV

    • mount filesystem

    • copy files to release some filesystem

    • unmount this filesystem

    • remount LV filesystem on the place of above filesystem

    • create PV from unmounted filesystem

    • add this PV to VG

    • repeat with next filesystem


    After you finish with root partition you will need to edit /etc/fstab and update grub






    share|improve this answer




























      0














      If you have some free disk space you can do this. But this can be long and not so sample process. The best you can do is to copy your personal files to external disk or cloud storage. The commands with can help you to pack the files in bundles (if you have a lot of small files) are tar, zip.



      The process of replacing current disks with LVM is in few words:




      • create PV from free space

      • create VG from from PV

      • create LV in VG

      • create filesystem on LV

      • mount filesystem

      • copy files to release some filesystem

      • unmount this filesystem

      • remount LV filesystem on the place of above filesystem

      • create PV from unmounted filesystem

      • add this PV to VG

      • repeat with next filesystem


      After you finish with root partition you will need to edit /etc/fstab and update grub






      share|improve this answer


























        0












        0








        0






        If you have some free disk space you can do this. But this can be long and not so sample process. The best you can do is to copy your personal files to external disk or cloud storage. The commands with can help you to pack the files in bundles (if you have a lot of small files) are tar, zip.



        The process of replacing current disks with LVM is in few words:




        • create PV from free space

        • create VG from from PV

        • create LV in VG

        • create filesystem on LV

        • mount filesystem

        • copy files to release some filesystem

        • unmount this filesystem

        • remount LV filesystem on the place of above filesystem

        • create PV from unmounted filesystem

        • add this PV to VG

        • repeat with next filesystem


        After you finish with root partition you will need to edit /etc/fstab and update grub






        share|improve this answer














        If you have some free disk space you can do this. But this can be long and not so sample process. The best you can do is to copy your personal files to external disk or cloud storage. The commands with can help you to pack the files in bundles (if you have a lot of small files) are tar, zip.



        The process of replacing current disks with LVM is in few words:




        • create PV from free space

        • create VG from from PV

        • create LV in VG

        • create filesystem on LV

        • mount filesystem

        • copy files to release some filesystem

        • unmount this filesystem

        • remount LV filesystem on the place of above filesystem

        • create PV from unmounted filesystem

        • add this PV to VG

        • repeat with next filesystem


        After you finish with root partition you will need to edit /etc/fstab and update grub







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Dec 18 at 14:30

























        answered Dec 18 at 14:19









        Romeo Ninov

        5,21231827




        5,21231827






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f489693%2frepartition-a-non-lvm-system-with-lvm%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Morgemoulin

            Scott Moir

            Souastre