Add PARTUUID to DOS MBR

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











up vote
0
down vote

favorite












I have an MBR style formatted SD card where I need a PARTUUID in order to mount a partition there as the rootfs (via linux kernel parameter root=PARTUUID=...). Using an fs UUID does not work.



However, blkid does not show any PARTUUIDs, only UUIDs.



I understand that PARTUUID is not a historical feature of MBRs, but that they can still be used. I have looked around for a way to add or change a PARTUUID, but all I can find is stuff where a GPT is being used.



I've read this answer to a related question, but the identifier pulled that way is just four null bytes (i.e., all zeros). This is also what fdisk gives as the "Disk Identifier", 0x00000000.










share|improve this question

























    up vote
    0
    down vote

    favorite












    I have an MBR style formatted SD card where I need a PARTUUID in order to mount a partition there as the rootfs (via linux kernel parameter root=PARTUUID=...). Using an fs UUID does not work.



    However, blkid does not show any PARTUUIDs, only UUIDs.



    I understand that PARTUUID is not a historical feature of MBRs, but that they can still be used. I have looked around for a way to add or change a PARTUUID, but all I can find is stuff where a GPT is being used.



    I've read this answer to a related question, but the identifier pulled that way is just four null bytes (i.e., all zeros). This is also what fdisk gives as the "Disk Identifier", 0x00000000.










    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have an MBR style formatted SD card where I need a PARTUUID in order to mount a partition there as the rootfs (via linux kernel parameter root=PARTUUID=...). Using an fs UUID does not work.



      However, blkid does not show any PARTUUIDs, only UUIDs.



      I understand that PARTUUID is not a historical feature of MBRs, but that they can still be used. I have looked around for a way to add or change a PARTUUID, but all I can find is stuff where a GPT is being used.



      I've read this answer to a related question, but the identifier pulled that way is just four null bytes (i.e., all zeros). This is also what fdisk gives as the "Disk Identifier", 0x00000000.










      share|improve this question













      I have an MBR style formatted SD card where I need a PARTUUID in order to mount a partition there as the rootfs (via linux kernel parameter root=PARTUUID=...). Using an fs UUID does not work.



      However, blkid does not show any PARTUUIDs, only UUIDs.



      I understand that PARTUUID is not a historical feature of MBRs, but that they can still be used. I have looked around for a way to add or change a PARTUUID, but all I can find is stuff where a GPT is being used.



      I've read this answer to a related question, but the identifier pulled that way is just four null bytes (i.e., all zeros). This is also what fdisk gives as the "Disk Identifier", 0x00000000.







      partition fdisk uuid partition-table






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 10 hours ago









      goldilocks

      60.3k13142197




      60.3k13142197




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          The PARTUUIDs used with MBR's are based on the "disk identifier", which evidently is not mandatory -- you can end up without one and the partition table is still functional.




          I've read this answer to a related question, but the identifier pulled that way is just four null bytes (i.e., all zeros). This is also what fdisk gives as the "Disk Identifier", 0x00000000.




          If you use fdisk to change the identifier to a non-zero value, you will magically have PARTUUIDs reported afterwards.



          1. This is an "expert" option; from the main menu choose x.


          2. From the expert menu, choose i.


          3. Enter any eight random hex digits, prefaced with 0x, e.g., Oxd3b587f.


          4. Go back to the main menu, r, and write the table, w.


          blkid should now report PARTUUIDs for the partitions.






          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%2f474258%2fadd-partuuid-to-dos-mbr%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













            The PARTUUIDs used with MBR's are based on the "disk identifier", which evidently is not mandatory -- you can end up without one and the partition table is still functional.




            I've read this answer to a related question, but the identifier pulled that way is just four null bytes (i.e., all zeros). This is also what fdisk gives as the "Disk Identifier", 0x00000000.




            If you use fdisk to change the identifier to a non-zero value, you will magically have PARTUUIDs reported afterwards.



            1. This is an "expert" option; from the main menu choose x.


            2. From the expert menu, choose i.


            3. Enter any eight random hex digits, prefaced with 0x, e.g., Oxd3b587f.


            4. Go back to the main menu, r, and write the table, w.


            blkid should now report PARTUUIDs for the partitions.






            share|improve this answer
























              up vote
              0
              down vote













              The PARTUUIDs used with MBR's are based on the "disk identifier", which evidently is not mandatory -- you can end up without one and the partition table is still functional.




              I've read this answer to a related question, but the identifier pulled that way is just four null bytes (i.e., all zeros). This is also what fdisk gives as the "Disk Identifier", 0x00000000.




              If you use fdisk to change the identifier to a non-zero value, you will magically have PARTUUIDs reported afterwards.



              1. This is an "expert" option; from the main menu choose x.


              2. From the expert menu, choose i.


              3. Enter any eight random hex digits, prefaced with 0x, e.g., Oxd3b587f.


              4. Go back to the main menu, r, and write the table, w.


              blkid should now report PARTUUIDs for the partitions.






              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                The PARTUUIDs used with MBR's are based on the "disk identifier", which evidently is not mandatory -- you can end up without one and the partition table is still functional.




                I've read this answer to a related question, but the identifier pulled that way is just four null bytes (i.e., all zeros). This is also what fdisk gives as the "Disk Identifier", 0x00000000.




                If you use fdisk to change the identifier to a non-zero value, you will magically have PARTUUIDs reported afterwards.



                1. This is an "expert" option; from the main menu choose x.


                2. From the expert menu, choose i.


                3. Enter any eight random hex digits, prefaced with 0x, e.g., Oxd3b587f.


                4. Go back to the main menu, r, and write the table, w.


                blkid should now report PARTUUIDs for the partitions.






                share|improve this answer












                The PARTUUIDs used with MBR's are based on the "disk identifier", which evidently is not mandatory -- you can end up without one and the partition table is still functional.




                I've read this answer to a related question, but the identifier pulled that way is just four null bytes (i.e., all zeros). This is also what fdisk gives as the "Disk Identifier", 0x00000000.




                If you use fdisk to change the identifier to a non-zero value, you will magically have PARTUUIDs reported afterwards.



                1. This is an "expert" option; from the main menu choose x.


                2. From the expert menu, choose i.


                3. Enter any eight random hex digits, prefaced with 0x, e.g., Oxd3b587f.


                4. Go back to the main menu, r, and write the table, w.


                blkid should now report PARTUUIDs for the partitions.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 10 hours ago









                goldilocks

                60.3k13142197




                60.3k13142197



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f474258%2fadd-partuuid-to-dos-mbr%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?

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay