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;
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
New contributor
add a comment
|
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
New contributor
add a comment
|
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
New contributor
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
partition partition-table
New contributor
New contributor
New contributor
asked 9 hours ago
somegasomega
1111 bronze badge
1111 bronze badge
New contributor
New contributor
add a comment
|
add a comment
|
1 Answer
1
active
oldest
votes
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).
add a comment
|
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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).
add a comment
|
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).
add a comment
|
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).
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).
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
add a comment
|
add a comment
|
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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