Is it possible to unmount a partition table?Change the number of the partition from sda1 to sda2Partition table not recognized by Linux kernelWiped out Windows partition tablePreseed existing partitionsfdisk: partition table “not in disk order” but “Order is correct already”? and GRUB-legacy issuesRecovering lost partition table with TestDisk

Any Issues with running Workbench 1.3 on a Kickstart 1.2 Amiga 500?

Does really each and every single photon leave a dot on the screen in the bright area (double slit)?

Neither Raman nor IR Active vibrational modes

Why is technology bad for children?

I got this nail stuck in my tire, should I plug or replace?

Will Schnorr Multi-signatures completely replace ECDSA?

Is it possible to have 2 ports open on SSH with 2 different authentication schemes?

Extra battery in the bay of an HDD

Is there a historical explanation as to why the USA people are so litigious compared to France?

Dice? = Is that so?

Is it possible to unmount a partition table?

Armory Automaton and Dowsing Dagger/Sword of the Animist

How many records can an Apex Batch process

Why do Computer Science degrees contain a high proportion of mathematics?

What is the "Applicable country" field on the Icelandair check-in form?

What are the branches of statistics?

Who is Sifter, and what is "the so-called Sifter flare"?

What do you call a document which has no content?

How to respond to "Why didn't you do a postdoc after your PhD?"

Can a Tundra Storm Herald Barbarian pre-emptively freeze the water of a Decanter of Endless Water?

What power does the UK parliament hold over a Prime Minister whom they refuse to remove from power?

Is it now possible to undetectably cross the Arctic Ocean on ski/kayak?

How should the 23rd judge vote?

Why is the empennage design of this Lockheed 1049E so complicated?



Is it possible to unmount a partition table?


Change the number of the partition from sda1 to sda2Partition table not recognized by Linux kernelWiped out Windows partition tablePreseed existing partitionsfdisk: partition table “not in disk order” but “Order is correct already”? and GRUB-legacy issuesRecovering lost partition table with TestDisk






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









2

















Is it possible to unmount a partition table so I only see sda and not sda1 and sda2 in /dev?



Background:



I know a partition table is not mounted.
But I did not find a better name for this.



I often use dd to overwrite a hard disk or an usb pen.
But they often have some partitions on it. And after overwriting I can still see the old (no longer existing) partition table using lsblk.



I know it's possible to reread the partition table using partprobe.



But I wonder if it is possible to unmount the partition table before overwriting the usb pen. Because I don't want a programm to access a corrupt partition while overwriting with dd.










share|improve this question







New contributor



somega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





























    2

















    Is it possible to unmount a partition table so I only see sda and not sda1 and sda2 in /dev?



    Background:



    I know a partition table is not mounted.
    But I did not find a better name for this.



    I often use dd to overwrite a hard disk or an usb pen.
    But they often have some partitions on it. And after overwriting I can still see the old (no longer existing) partition table using lsblk.



    I know it's possible to reread the partition table using partprobe.



    But I wonder if it is possible to unmount the partition table before overwriting the usb pen. Because I don't want a programm to access a corrupt partition while overwriting with dd.










    share|improve this question







    New contributor



    somega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.

























      2












      2








      2








      Is it possible to unmount a partition table so I only see sda and not sda1 and sda2 in /dev?



      Background:



      I know a partition table is not mounted.
      But I did not find a better name for this.



      I often use dd to overwrite a hard disk or an usb pen.
      But they often have some partitions on it. And after overwriting I can still see the old (no longer existing) partition table using lsblk.



      I know it's possible to reread the partition table using partprobe.



      But I wonder if it is possible to unmount the partition table before overwriting the usb pen. Because I don't want a programm to access a corrupt partition while overwriting with dd.










      share|improve this question







      New contributor



      somega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      Is it possible to unmount a partition table so I only see sda and not sda1 and sda2 in /dev?



      Background:



      I know a partition table is not mounted.
      But I did not find a better name for this.



      I often use dd to overwrite a hard disk or an usb pen.
      But they often have some partitions on it. And after overwriting I can still see the old (no longer existing) partition table using lsblk.



      I know it's possible to reread the partition table using partprobe.



      But I wonder if it is possible to unmount the partition table before overwriting the usb pen. Because I don't want a programm to access a corrupt partition while overwriting with dd.







      partition partition-table






      share|improve this question







      New contributor



      somega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share|improve this question







      New contributor



      somega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share|improve this question




      share|improve this question



      share|improve this question






      New contributor



      somega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      asked 9 hours ago









      somegasomega

      1111 bronze badge




      1111 bronze badge




      New contributor



      somega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      New contributor




      somega is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.

























          1 Answer
          1






          active

          oldest

          votes


















          5


















          You can use partx's -d option to tell the kernel to forget about partitions. For example, partx -d /dev/sda will make /dev/sda1, /dev/sda2, ... go away (temporarily). They'll show up again next time the kernel is made to re-scan the partition table.



          Another option is delpart: delpart /dev/sda 1; delpart /dev/sda 2 should do it (but the partx syntax is nicer).



          A third option is to wipe the partition table first then let the kernel reread it; any partition table editor tool (e.g., sfdisk, gdisk, etc.) could be used, or wipefs (which will do partition tables, not just filesystems).






          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/4.0/"u003ecc by-sa 4.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
            );



            );







            somega is a new contributor. Be nice, and check out our Code of Conduct.









            draft saved

            draft discarded
















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f545577%2fis-it-possible-to-unmount-a-partition-table%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









            5


















            You can use partx's -d option to tell the kernel to forget about partitions. For example, partx -d /dev/sda will make /dev/sda1, /dev/sda2, ... go away (temporarily). They'll show up again next time the kernel is made to re-scan the partition table.



            Another option is delpart: delpart /dev/sda 1; delpart /dev/sda 2 should do it (but the partx syntax is nicer).



            A third option is to wipe the partition table first then let the kernel reread it; any partition table editor tool (e.g., sfdisk, gdisk, etc.) could be used, or wipefs (which will do partition tables, not just filesystems).






            share|improve this answer
































              5


















              You can use partx's -d option to tell the kernel to forget about partitions. For example, partx -d /dev/sda will make /dev/sda1, /dev/sda2, ... go away (temporarily). They'll show up again next time the kernel is made to re-scan the partition table.



              Another option is delpart: delpart /dev/sda 1; delpart /dev/sda 2 should do it (but the partx syntax is nicer).



              A third option is to wipe the partition table first then let the kernel reread it; any partition table editor tool (e.g., sfdisk, gdisk, etc.) could be used, or wipefs (which will do partition tables, not just filesystems).






              share|improve this answer






























                5














                5










                5









                You can use partx's -d option to tell the kernel to forget about partitions. For example, partx -d /dev/sda will make /dev/sda1, /dev/sda2, ... go away (temporarily). They'll show up again next time the kernel is made to re-scan the partition table.



                Another option is delpart: delpart /dev/sda 1; delpart /dev/sda 2 should do it (but the partx syntax is nicer).



                A third option is to wipe the partition table first then let the kernel reread it; any partition table editor tool (e.g., sfdisk, gdisk, etc.) could be used, or wipefs (which will do partition tables, not just filesystems).






                share|improve this answer
















                You can use partx's -d option to tell the kernel to forget about partitions. For example, partx -d /dev/sda will make /dev/sda1, /dev/sda2, ... go away (temporarily). They'll show up again next time the kernel is made to re-scan the partition table.



                Another option is delpart: delpart /dev/sda 1; delpart /dev/sda 2 should do it (but the partx syntax is nicer).



                A third option is to wipe the partition table first then let the kernel reread it; any partition table editor tool (e.g., sfdisk, gdisk, etc.) could be used, or wipefs (which will do partition tables, not just filesystems).







                share|improve this answer















                share|improve this answer




                share|improve this answer



                share|improve this answer








                edited 8 hours ago

























                answered 8 hours ago









                derobertderobert

                80.9k9 gold badges182 silver badges237 bronze badges




                80.9k9 gold badges182 silver badges237 bronze badges
























                    somega is a new contributor. Be nice, and check out our Code of Conduct.









                    draft saved

                    draft discarded

















                    somega is a new contributor. Be nice, and check out our Code of Conduct.












                    somega is a new contributor. Be nice, and check out our Code of Conduct.











                    somega is a new contributor. Be nice, and check out our Code of Conduct.














                    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.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f545577%2fis-it-possible-to-unmount-a-partition-table%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

                    Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

                    Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

                    199年 目錄 大件事 到箇年出世嗰人 到箇年死嗰人 節慶、風俗習慣 導覽選單