Is a disk without being partitioned a partition by itself?

Multi tool use
From We can make a disk a PV by `pvcreate`, if and only if the disk has only one partition?
You can't make the whole disk a PV if there is at least one partition on it (because pvcreate won't let you).
When considering disks and partitions as concepts in operating systems, is it correct that a disk without being partitioned is a partition by itself?
If no, what is the difference between a disk without being partitioned and a disk with only one partition?
Can pvcreate
mark a disk with only one partition as a PV?
partition lvm
add a comment |
From We can make a disk a PV by `pvcreate`, if and only if the disk has only one partition?
You can't make the whole disk a PV if there is at least one partition on it (because pvcreate won't let you).
When considering disks and partitions as concepts in operating systems, is it correct that a disk without being partitioned is a partition by itself?
If no, what is the difference between a disk without being partitioned and a disk with only one partition?
Can pvcreate
mark a disk with only one partition as a PV?
partition lvm
1
Partitions exist when defined by a partition table. For this reason I wouldn't consider a disk to be a partition
– Torin
Feb 24 at 16:52
add a comment |
From We can make a disk a PV by `pvcreate`, if and only if the disk has only one partition?
You can't make the whole disk a PV if there is at least one partition on it (because pvcreate won't let you).
When considering disks and partitions as concepts in operating systems, is it correct that a disk without being partitioned is a partition by itself?
If no, what is the difference between a disk without being partitioned and a disk with only one partition?
Can pvcreate
mark a disk with only one partition as a PV?
partition lvm
From We can make a disk a PV by `pvcreate`, if and only if the disk has only one partition?
You can't make the whole disk a PV if there is at least one partition on it (because pvcreate won't let you).
When considering disks and partitions as concepts in operating systems, is it correct that a disk without being partitioned is a partition by itself?
If no, what is the difference between a disk without being partitioned and a disk with only one partition?
Can pvcreate
mark a disk with only one partition as a PV?
partition lvm
partition lvm
asked Feb 24 at 16:41


TimTim
27.8k78265485
27.8k78265485
1
Partitions exist when defined by a partition table. For this reason I wouldn't consider a disk to be a partition
– Torin
Feb 24 at 16:52
add a comment |
1
Partitions exist when defined by a partition table. For this reason I wouldn't consider a disk to be a partition
– Torin
Feb 24 at 16:52
1
1
Partitions exist when defined by a partition table. For this reason I wouldn't consider a disk to be a partition
– Torin
Feb 24 at 16:52
Partitions exist when defined by a partition table. For this reason I wouldn't consider a disk to be a partition
– Torin
Feb 24 at 16:52
add a comment |
3 Answers
3
active
oldest
votes
A disk without being partitioned is a disk with no partitions or partition table; it’s not a partition (a partition separates something into parts, even if it’s only one; a whole disk isn’t separated into parts).
A disk with one partition is a disk with a partition table of some sort (there are several partitioning schemes), with one entry in the table defining a partition.
pvcreate
can create a physical volume using an entire disk or a partition. By default it will refuse to create a physical volume using an entire disk if it already contains a partition table.
(Note that pvcreate
doesn’t “mark” an existing feature — disk or partition —, it creates a physical volume, which involves writing metadata.)
Thanks. "By default it will refuse to create a physical volume using an entire disk if it already contains a partition table." What is non default case?
– Tim
Feb 24 at 18:06
-f
or-ff
IIRC.
– Stephen Kitt
Feb 24 at 18:56
add a comment |
They are both block storage devices. In principle one could add a partition table to a partition, thus adding partitions to it. However Operating Systems may not recursively traverse partitions, so they may no be found, and thus may not be treated the same.
Note: Extended partitions are a partition with a partition table within.
partition table is more like a simple kernel built-in device-mapper solution. Pretty old, but still in common use.
– 炸鱼薯条德里克
Feb 25 at 1:06
@炸鱼薯条德里克 "partition table is more like a simple kernel built-in device-mapper solution." Is a partition table a mapping from what to what? Is LVM's device-mapper solution a mapping from what to what?
– Tim
Feb 26 at 4:28
from one physical disk to several partition block devices. from physical disks to LVs.@Tim
– 炸鱼薯条德里克
Feb 26 at 4:48
add a comment |
You can't make the whole disk a PV if there is at least one partition
on it (because pvcreate won't let you).
All this is saying is that pvcreate
refuses to wipe out your partition table if one exists. The point of this is to prevent data loss if a user accidentally runs pvcreate /dev/sda
.
If /dev/sda
isn't partitioned you can run pvcreate /dev/sda
to make the whole disk (even the area of the disk where a partition table would exist) a PV.
If /dev/sda
is partitioned (e.g. MBR or GPT) pvcreate
doesn't want to take a chance ("it won't let you"). This is a safety mechanism, not a technical limitation.
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/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
});
}
});
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%2f502721%2fis-a-disk-without-being-partitioned-a-partition-by-itself%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
A disk without being partitioned is a disk with no partitions or partition table; it’s not a partition (a partition separates something into parts, even if it’s only one; a whole disk isn’t separated into parts).
A disk with one partition is a disk with a partition table of some sort (there are several partitioning schemes), with one entry in the table defining a partition.
pvcreate
can create a physical volume using an entire disk or a partition. By default it will refuse to create a physical volume using an entire disk if it already contains a partition table.
(Note that pvcreate
doesn’t “mark” an existing feature — disk or partition —, it creates a physical volume, which involves writing metadata.)
Thanks. "By default it will refuse to create a physical volume using an entire disk if it already contains a partition table." What is non default case?
– Tim
Feb 24 at 18:06
-f
or-ff
IIRC.
– Stephen Kitt
Feb 24 at 18:56
add a comment |
A disk without being partitioned is a disk with no partitions or partition table; it’s not a partition (a partition separates something into parts, even if it’s only one; a whole disk isn’t separated into parts).
A disk with one partition is a disk with a partition table of some sort (there are several partitioning schemes), with one entry in the table defining a partition.
pvcreate
can create a physical volume using an entire disk or a partition. By default it will refuse to create a physical volume using an entire disk if it already contains a partition table.
(Note that pvcreate
doesn’t “mark” an existing feature — disk or partition —, it creates a physical volume, which involves writing metadata.)
Thanks. "By default it will refuse to create a physical volume using an entire disk if it already contains a partition table." What is non default case?
– Tim
Feb 24 at 18:06
-f
or-ff
IIRC.
– Stephen Kitt
Feb 24 at 18:56
add a comment |
A disk without being partitioned is a disk with no partitions or partition table; it’s not a partition (a partition separates something into parts, even if it’s only one; a whole disk isn’t separated into parts).
A disk with one partition is a disk with a partition table of some sort (there are several partitioning schemes), with one entry in the table defining a partition.
pvcreate
can create a physical volume using an entire disk or a partition. By default it will refuse to create a physical volume using an entire disk if it already contains a partition table.
(Note that pvcreate
doesn’t “mark” an existing feature — disk or partition —, it creates a physical volume, which involves writing metadata.)
A disk without being partitioned is a disk with no partitions or partition table; it’s not a partition (a partition separates something into parts, even if it’s only one; a whole disk isn’t separated into parts).
A disk with one partition is a disk with a partition table of some sort (there are several partitioning schemes), with one entry in the table defining a partition.
pvcreate
can create a physical volume using an entire disk or a partition. By default it will refuse to create a physical volume using an entire disk if it already contains a partition table.
(Note that pvcreate
doesn’t “mark” an existing feature — disk or partition —, it creates a physical volume, which involves writing metadata.)
answered Feb 24 at 17:04
Stephen KittStephen Kitt
176k24401479
176k24401479
Thanks. "By default it will refuse to create a physical volume using an entire disk if it already contains a partition table." What is non default case?
– Tim
Feb 24 at 18:06
-f
or-ff
IIRC.
– Stephen Kitt
Feb 24 at 18:56
add a comment |
Thanks. "By default it will refuse to create a physical volume using an entire disk if it already contains a partition table." What is non default case?
– Tim
Feb 24 at 18:06
-f
or-ff
IIRC.
– Stephen Kitt
Feb 24 at 18:56
Thanks. "By default it will refuse to create a physical volume using an entire disk if it already contains a partition table." What is non default case?
– Tim
Feb 24 at 18:06
Thanks. "By default it will refuse to create a physical volume using an entire disk if it already contains a partition table." What is non default case?
– Tim
Feb 24 at 18:06
-f
or -ff
IIRC.– Stephen Kitt
Feb 24 at 18:56
-f
or -ff
IIRC.– Stephen Kitt
Feb 24 at 18:56
add a comment |
They are both block storage devices. In principle one could add a partition table to a partition, thus adding partitions to it. However Operating Systems may not recursively traverse partitions, so they may no be found, and thus may not be treated the same.
Note: Extended partitions are a partition with a partition table within.
partition table is more like a simple kernel built-in device-mapper solution. Pretty old, but still in common use.
– 炸鱼薯条德里克
Feb 25 at 1:06
@炸鱼薯条德里克 "partition table is more like a simple kernel built-in device-mapper solution." Is a partition table a mapping from what to what? Is LVM's device-mapper solution a mapping from what to what?
– Tim
Feb 26 at 4:28
from one physical disk to several partition block devices. from physical disks to LVs.@Tim
– 炸鱼薯条德里克
Feb 26 at 4:48
add a comment |
They are both block storage devices. In principle one could add a partition table to a partition, thus adding partitions to it. However Operating Systems may not recursively traverse partitions, so they may no be found, and thus may not be treated the same.
Note: Extended partitions are a partition with a partition table within.
partition table is more like a simple kernel built-in device-mapper solution. Pretty old, but still in common use.
– 炸鱼薯条德里克
Feb 25 at 1:06
@炸鱼薯条德里克 "partition table is more like a simple kernel built-in device-mapper solution." Is a partition table a mapping from what to what? Is LVM's device-mapper solution a mapping from what to what?
– Tim
Feb 26 at 4:28
from one physical disk to several partition block devices. from physical disks to LVs.@Tim
– 炸鱼薯条德里克
Feb 26 at 4:48
add a comment |
They are both block storage devices. In principle one could add a partition table to a partition, thus adding partitions to it. However Operating Systems may not recursively traverse partitions, so they may no be found, and thus may not be treated the same.
Note: Extended partitions are a partition with a partition table within.
They are both block storage devices. In principle one could add a partition table to a partition, thus adding partitions to it. However Operating Systems may not recursively traverse partitions, so they may no be found, and thus may not be treated the same.
Note: Extended partitions are a partition with a partition table within.
answered Feb 24 at 17:04


ctrl-alt-delorctrl-alt-delor
12k42360
12k42360
partition table is more like a simple kernel built-in device-mapper solution. Pretty old, but still in common use.
– 炸鱼薯条德里克
Feb 25 at 1:06
@炸鱼薯条德里克 "partition table is more like a simple kernel built-in device-mapper solution." Is a partition table a mapping from what to what? Is LVM's device-mapper solution a mapping from what to what?
– Tim
Feb 26 at 4:28
from one physical disk to several partition block devices. from physical disks to LVs.@Tim
– 炸鱼薯条德里克
Feb 26 at 4:48
add a comment |
partition table is more like a simple kernel built-in device-mapper solution. Pretty old, but still in common use.
– 炸鱼薯条德里克
Feb 25 at 1:06
@炸鱼薯条德里克 "partition table is more like a simple kernel built-in device-mapper solution." Is a partition table a mapping from what to what? Is LVM's device-mapper solution a mapping from what to what?
– Tim
Feb 26 at 4:28
from one physical disk to several partition block devices. from physical disks to LVs.@Tim
– 炸鱼薯条德里克
Feb 26 at 4:48
partition table is more like a simple kernel built-in device-mapper solution. Pretty old, but still in common use.
– 炸鱼薯条德里克
Feb 25 at 1:06
partition table is more like a simple kernel built-in device-mapper solution. Pretty old, but still in common use.
– 炸鱼薯条德里克
Feb 25 at 1:06
@炸鱼薯条德里克 "partition table is more like a simple kernel built-in device-mapper solution." Is a partition table a mapping from what to what? Is LVM's device-mapper solution a mapping from what to what?
– Tim
Feb 26 at 4:28
@炸鱼薯条德里克 "partition table is more like a simple kernel built-in device-mapper solution." Is a partition table a mapping from what to what? Is LVM's device-mapper solution a mapping from what to what?
– Tim
Feb 26 at 4:28
from one physical disk to several partition block devices. from physical disks to LVs.@Tim
– 炸鱼薯条德里克
Feb 26 at 4:48
from one physical disk to several partition block devices. from physical disks to LVs.@Tim
– 炸鱼薯条德里克
Feb 26 at 4:48
add a comment |
You can't make the whole disk a PV if there is at least one partition
on it (because pvcreate won't let you).
All this is saying is that pvcreate
refuses to wipe out your partition table if one exists. The point of this is to prevent data loss if a user accidentally runs pvcreate /dev/sda
.
If /dev/sda
isn't partitioned you can run pvcreate /dev/sda
to make the whole disk (even the area of the disk where a partition table would exist) a PV.
If /dev/sda
is partitioned (e.g. MBR or GPT) pvcreate
doesn't want to take a chance ("it won't let you"). This is a safety mechanism, not a technical limitation.
add a comment |
You can't make the whole disk a PV if there is at least one partition
on it (because pvcreate won't let you).
All this is saying is that pvcreate
refuses to wipe out your partition table if one exists. The point of this is to prevent data loss if a user accidentally runs pvcreate /dev/sda
.
If /dev/sda
isn't partitioned you can run pvcreate /dev/sda
to make the whole disk (even the area of the disk where a partition table would exist) a PV.
If /dev/sda
is partitioned (e.g. MBR or GPT) pvcreate
doesn't want to take a chance ("it won't let you"). This is a safety mechanism, not a technical limitation.
add a comment |
You can't make the whole disk a PV if there is at least one partition
on it (because pvcreate won't let you).
All this is saying is that pvcreate
refuses to wipe out your partition table if one exists. The point of this is to prevent data loss if a user accidentally runs pvcreate /dev/sda
.
If /dev/sda
isn't partitioned you can run pvcreate /dev/sda
to make the whole disk (even the area of the disk where a partition table would exist) a PV.
If /dev/sda
is partitioned (e.g. MBR or GPT) pvcreate
doesn't want to take a chance ("it won't let you"). This is a safety mechanism, not a technical limitation.
You can't make the whole disk a PV if there is at least one partition
on it (because pvcreate won't let you).
All this is saying is that pvcreate
refuses to wipe out your partition table if one exists. The point of this is to prevent data loss if a user accidentally runs pvcreate /dev/sda
.
If /dev/sda
isn't partitioned you can run pvcreate /dev/sda
to make the whole disk (even the area of the disk where a partition table would exist) a PV.
If /dev/sda
is partitioned (e.g. MBR or GPT) pvcreate
doesn't want to take a chance ("it won't let you"). This is a safety mechanism, not a technical limitation.
answered Feb 24 at 17:58
catanmancatanman
9612
9612
add a comment |
add a comment |
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%2f502721%2fis-a-disk-without-being-partitioned-a-partition-by-itself%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
aBWhs,dvgOTnwy9f70SOmNQgxzD,kFiBLfQ,H9Q9z,vVMuQ3 5J5V,YorOrc9e68sk 3X,SIlKMDpJv,nj8fvivatup2 Cmfdp6J8zVRmP5De
1
Partitions exist when defined by a partition table. For this reason I wouldn't consider a disk to be a partition
– Torin
Feb 24 at 16:52