merge storage partitions in Ubuntu command line
I have a main disk named /dev/vda1
and this is the storage properties:
ubuntu@demo:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 8.8M 3.2G 1% /run
/dev/vda1 39G 37G 2.7G 94% /
tmpfs 16G 4.0K 16G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
tmpfs 3.2G 0 3.2G 0% /run/user/1000
as you see it has some free space. When I run the fdisk command there is some other partitions:
ubuntu@demo:~$ sudo fdisk -l
Disk /dev/vda: 40 GiB, 42949672960 bytes, 83886080 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xdcd70aad
Device Boot Start End Sectors Size Id Type
/dev/vda1 * 2048 83886046 83883999 40G 83 Linux
Disk /dev/vdb: 15 GiB, 16106127360 bytes, 31457280 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/vdc: 20 GiB, 21474836480 bytes, 41943040 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
It seems I have some other partitions which I am not using. How I can merge these partitions with my main storage (/dev/vda1
)?
I am using 16.04 version and it is a server version.
16.04 partitioning partitions merge
New contributor
add a comment |
I have a main disk named /dev/vda1
and this is the storage properties:
ubuntu@demo:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 8.8M 3.2G 1% /run
/dev/vda1 39G 37G 2.7G 94% /
tmpfs 16G 4.0K 16G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
tmpfs 3.2G 0 3.2G 0% /run/user/1000
as you see it has some free space. When I run the fdisk command there is some other partitions:
ubuntu@demo:~$ sudo fdisk -l
Disk /dev/vda: 40 GiB, 42949672960 bytes, 83886080 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xdcd70aad
Device Boot Start End Sectors Size Id Type
/dev/vda1 * 2048 83886046 83883999 40G 83 Linux
Disk /dev/vdb: 15 GiB, 16106127360 bytes, 31457280 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/vdc: 20 GiB, 21474836480 bytes, 41943040 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
It seems I have some other partitions which I am not using. How I can merge these partitions with my main storage (/dev/vda1
)?
I am using 16.04 version and it is a server version.
16.04 partitioning partitions merge
New contributor
add a comment |
I have a main disk named /dev/vda1
and this is the storage properties:
ubuntu@demo:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 8.8M 3.2G 1% /run
/dev/vda1 39G 37G 2.7G 94% /
tmpfs 16G 4.0K 16G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
tmpfs 3.2G 0 3.2G 0% /run/user/1000
as you see it has some free space. When I run the fdisk command there is some other partitions:
ubuntu@demo:~$ sudo fdisk -l
Disk /dev/vda: 40 GiB, 42949672960 bytes, 83886080 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xdcd70aad
Device Boot Start End Sectors Size Id Type
/dev/vda1 * 2048 83886046 83883999 40G 83 Linux
Disk /dev/vdb: 15 GiB, 16106127360 bytes, 31457280 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/vdc: 20 GiB, 21474836480 bytes, 41943040 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
It seems I have some other partitions which I am not using. How I can merge these partitions with my main storage (/dev/vda1
)?
I am using 16.04 version and it is a server version.
16.04 partitioning partitions merge
New contributor
I have a main disk named /dev/vda1
and this is the storage properties:
ubuntu@demo:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 8.8M 3.2G 1% /run
/dev/vda1 39G 37G 2.7G 94% /
tmpfs 16G 4.0K 16G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
tmpfs 3.2G 0 3.2G 0% /run/user/1000
as you see it has some free space. When I run the fdisk command there is some other partitions:
ubuntu@demo:~$ sudo fdisk -l
Disk /dev/vda: 40 GiB, 42949672960 bytes, 83886080 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xdcd70aad
Device Boot Start End Sectors Size Id Type
/dev/vda1 * 2048 83886046 83883999 40G 83 Linux
Disk /dev/vdb: 15 GiB, 16106127360 bytes, 31457280 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/vdc: 20 GiB, 21474836480 bytes, 41943040 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
It seems I have some other partitions which I am not using. How I can merge these partitions with my main storage (/dev/vda1
)?
I am using 16.04 version and it is a server version.
16.04 partitioning partitions merge
16.04 partitioning partitions merge
New contributor
New contributor
edited 2 days ago
Naser
New contributor
asked Jan 10 at 15:59
NaserNaser
11
11
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
No it can't be done
First, let us be clear about some terminology. memory
is RAM what we are discussing here is storage
in the form of virtual disks. RAM is not mounted or partitioned, on the other hand storage as a physical (or a virtual) drive can be partitioned and then mounted.
The fdisk
command shows your virtual Ubuntu server has three virtual drives, not three unmounted partitions in a single virtual drive. If you had a physical computer with three physical disk drives, you wouldn't be able to smash them together and make a single physical drive. Similarly, you won't be able merge these virtual drives into a single drive.
There is a way to do this using Logical Volume Manager (LVM), but that would require erasing everything in in /dev/vda/
and do it at the time of a new install.
There is another way
Since your drives are not physical, but virtual you should be able to increase the size of /dev/vda
when the virtual server is turned off using some tools in the virtualization software in the host computer. The exact method will depend on the host operating system (Ubuntu, Windows, etc.) and the specific virtualization software you are using (qemu, Virtual Box, VMWare etc.).
If you are not using /dev/vdb
and /dev/vdb
you may delete these from the virtualization software and the corresponding files host computer.
Hope this helps
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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
});
}
});
Naser 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%2faskubuntu.com%2fquestions%2f1108627%2fmerge-storage-partitions-in-ubuntu-command-line%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
No it can't be done
First, let us be clear about some terminology. memory
is RAM what we are discussing here is storage
in the form of virtual disks. RAM is not mounted or partitioned, on the other hand storage as a physical (or a virtual) drive can be partitioned and then mounted.
The fdisk
command shows your virtual Ubuntu server has three virtual drives, not three unmounted partitions in a single virtual drive. If you had a physical computer with three physical disk drives, you wouldn't be able to smash them together and make a single physical drive. Similarly, you won't be able merge these virtual drives into a single drive.
There is a way to do this using Logical Volume Manager (LVM), but that would require erasing everything in in /dev/vda/
and do it at the time of a new install.
There is another way
Since your drives are not physical, but virtual you should be able to increase the size of /dev/vda
when the virtual server is turned off using some tools in the virtualization software in the host computer. The exact method will depend on the host operating system (Ubuntu, Windows, etc.) and the specific virtualization software you are using (qemu, Virtual Box, VMWare etc.).
If you are not using /dev/vdb
and /dev/vdb
you may delete these from the virtualization software and the corresponding files host computer.
Hope this helps
add a comment |
No it can't be done
First, let us be clear about some terminology. memory
is RAM what we are discussing here is storage
in the form of virtual disks. RAM is not mounted or partitioned, on the other hand storage as a physical (or a virtual) drive can be partitioned and then mounted.
The fdisk
command shows your virtual Ubuntu server has three virtual drives, not three unmounted partitions in a single virtual drive. If you had a physical computer with three physical disk drives, you wouldn't be able to smash them together and make a single physical drive. Similarly, you won't be able merge these virtual drives into a single drive.
There is a way to do this using Logical Volume Manager (LVM), but that would require erasing everything in in /dev/vda/
and do it at the time of a new install.
There is another way
Since your drives are not physical, but virtual you should be able to increase the size of /dev/vda
when the virtual server is turned off using some tools in the virtualization software in the host computer. The exact method will depend on the host operating system (Ubuntu, Windows, etc.) and the specific virtualization software you are using (qemu, Virtual Box, VMWare etc.).
If you are not using /dev/vdb
and /dev/vdb
you may delete these from the virtualization software and the corresponding files host computer.
Hope this helps
add a comment |
No it can't be done
First, let us be clear about some terminology. memory
is RAM what we are discussing here is storage
in the form of virtual disks. RAM is not mounted or partitioned, on the other hand storage as a physical (or a virtual) drive can be partitioned and then mounted.
The fdisk
command shows your virtual Ubuntu server has three virtual drives, not three unmounted partitions in a single virtual drive. If you had a physical computer with three physical disk drives, you wouldn't be able to smash them together and make a single physical drive. Similarly, you won't be able merge these virtual drives into a single drive.
There is a way to do this using Logical Volume Manager (LVM), but that would require erasing everything in in /dev/vda/
and do it at the time of a new install.
There is another way
Since your drives are not physical, but virtual you should be able to increase the size of /dev/vda
when the virtual server is turned off using some tools in the virtualization software in the host computer. The exact method will depend on the host operating system (Ubuntu, Windows, etc.) and the specific virtualization software you are using (qemu, Virtual Box, VMWare etc.).
If you are not using /dev/vdb
and /dev/vdb
you may delete these from the virtualization software and the corresponding files host computer.
Hope this helps
No it can't be done
First, let us be clear about some terminology. memory
is RAM what we are discussing here is storage
in the form of virtual disks. RAM is not mounted or partitioned, on the other hand storage as a physical (or a virtual) drive can be partitioned and then mounted.
The fdisk
command shows your virtual Ubuntu server has three virtual drives, not three unmounted partitions in a single virtual drive. If you had a physical computer with three physical disk drives, you wouldn't be able to smash them together and make a single physical drive. Similarly, you won't be able merge these virtual drives into a single drive.
There is a way to do this using Logical Volume Manager (LVM), but that would require erasing everything in in /dev/vda/
and do it at the time of a new install.
There is another way
Since your drives are not physical, but virtual you should be able to increase the size of /dev/vda
when the virtual server is turned off using some tools in the virtualization software in the host computer. The exact method will depend on the host operating system (Ubuntu, Windows, etc.) and the specific virtualization software you are using (qemu, Virtual Box, VMWare etc.).
If you are not using /dev/vdb
and /dev/vdb
you may delete these from the virtualization software and the corresponding files host computer.
Hope this helps
answered Jan 10 at 16:25
user68186user68186
15.5k84667
15.5k84667
add a comment |
add a comment |
Naser is a new contributor. Be nice, and check out our Code of Conduct.
Naser is a new contributor. Be nice, and check out our Code of Conduct.
Naser is a new contributor. Be nice, and check out our Code of Conduct.
Naser is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Ask Ubuntu!
- 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%2faskubuntu.com%2fquestions%2f1108627%2fmerge-storage-partitions-in-ubuntu-command-line%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